mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-24 06:35:00 -07:00
Add intrinsics.volatile_store and intrinsics.volatile_load
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user