Introduce globalsym_addr.

This is an instruction used in legalization of GlobalVarData::Sym global
variables.
This commit is contained in:
Dan Gohman
2017-10-30 10:02:29 -07:00
parent cb805f704d
commit 9c54c3fff0
11 changed files with 96 additions and 9 deletions

View File

@@ -389,6 +389,14 @@ global_addr = Instruction(
""",
ins=GV, outs=addr)
# A specialized form of global_addr instructions that only handles
# symbolic names.
globalsym_addr = Instruction(
'globalsym_addr', r"""
Compute the address of global variable GV, which is a symbolic name.
""",
ins=GV, outs=addr)
#
# WebAssembly bounds-checked heap accesses.
#