Add intrinsics.volatile_store and intrinsics.volatile_load

This commit is contained in:
gingerBill
2021-03-09 11:40:36 +00:00
parent 083cec6c88
commit 3ff7bded64
6 changed files with 79 additions and 42 deletions
+3
View File
@@ -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);