Reorganize the global value kinds. (#490)
* Reorganize the global value kinds. This: - renames "deref" global values to "load" and gives it a offset that works like the "load" instructions' does - adds an explicit "iadd_imm" global value kind, which replaces the builtin iadd in "vmctx" and "deref" global values. - also renames "globalsym" to "symbol"
This commit is contained in:
@@ -506,9 +506,9 @@ global_value = Instruction(
|
||||
|
||||
# A specialized form of global_value instructions that only handles
|
||||
# symbolic names.
|
||||
globalsym_addr = Instruction(
|
||||
'globalsym_addr', r"""
|
||||
Compute the address of global GV, which is a symbolic name.
|
||||
symbol_value = Instruction(
|
||||
'symbol_value', r"""
|
||||
Compute the value of global GV, which is a symbolic address.
|
||||
""",
|
||||
ins=GV, outs=addr)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user