This opcode generates a pointer to the address of the jump table specified by the source operand, which is a jump table index.
It will be used in conjunction with an upcoming G_BRJT opcode to support jump table codegen with GlobalISel.
Paths
| Differential D63111
[GlobalISel] Add a G_JUMP_TABLE opcode ClosedPublic Authored by aemerson on Jun 10 2019, 5:36 PM.
Details Summary This opcode generates a pointer to the address of the jump table specified by the source operand, which is a jump table index. It will be used in conjunction with an upcoming G_BRJT opcode to support jump table codegen with GlobalISel.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 11 2019, 12:43 PM Closed by commit rL363096: [GlobalISel] Add a G_JUMP_TABLE opcode. (authored by aemerson). · Explain WhyJun 11 2019, 12:56 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 203945 llvm/include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
llvm/include/llvm/Support/TargetOpcodes.def
llvm/include/llvm/Target/GenericOpcodes.td
llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
llvm/lib/CodeGen/MachineVerifier.cpp
llvm/test/MachineVerifier/test_g_jump_table.mir
|