aboutsummaryrefslogtreecommitdiff
path: root/src/ir_print.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-03-09 11:40:36 +0000
committergingerBill <bill@gingerbill.org>2021-03-09 11:40:36 +0000
commit3ff7bded642ef399fda68ac1078d6a091474ab11 (patch)
tree7dfbfb3b860a1241943f7194d88c9ed3f991800d /src/ir_print.cpp
parent083cec6c88b37001a57eac1ae9377b4ef73cf8a3 (diff)
Add `intrinsics.volatile_store` and `intrinsics.volatile_load`
Diffstat (limited to 'src/ir_print.cpp')
-rw-r--r--src/ir_print.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/ir_print.cpp b/src/ir_print.cpp
index e7af016d5..d6f46ce4d 100644
--- a/src/ir_print.cpp
+++ b/src/ir_print.cpp
@@ -1534,6 +1534,9 @@ void ir_print_instr(irFileBuffer *f, irModule *m, irValue *value) {
case irInstr_Load: {
Type *type = instr->Load.type;
ir_fprintf(f, "%%%d = load ", value->index);
+ if (instr->Load.is_volatile) {
+ ir_write_str_lit(f, "volatile ");
+ }
ir_print_type(f, m, type);
ir_write_str_lit(f, ", ");
ir_print_type(f, m, type);