From 3ff7bded642ef399fda68ac1078d6a091474ab11 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Tue, 9 Mar 2021 11:40:36 +0000 Subject: Add `intrinsics.volatile_store` and `intrinsics.volatile_load` --- src/ir_print.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ir_print.cpp') 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); -- cgit v1.2.3