Build and insert Res = G_GLOBAL_VALUE GV
Declared in <llvm/CodeGen/GlobalISel/MachineIRBuilder.h>
MachineInstrBuilder
buildGlobalValue(
DstOp const& Res,
GlobalValue const* GV);
G_GLOBAL_VALUE materializes the address of the specified global into Res.
a MachineInstrBuilder for the newly created instruction.
| Name | Description |
|---|---|
| Res | Destination operand for the result. |
| GV | Global value whose address is materialized. |
Res must be a generic virtual register with pointer type in the same address space as GV.