diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-09 11:40:36 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-09 11:40:36 +0000 |
| commit | 3ff7bded642ef399fda68ac1078d6a091474ab11 (patch) | |
| tree | 7dfbfb3b860a1241943f7194d88c9ed3f991800d /src/ir_print.cpp | |
| parent | 083cec6c88b37001a57eac1ae9377b4ef73cf8a3 (diff) | |
Add `intrinsics.volatile_store` and `intrinsics.volatile_load`
Diffstat (limited to 'src/ir_print.cpp')
| -rw-r--r-- | src/ir_print.cpp | 3 |
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); |