]> granicus.if.org Git - llvm/commit
[GlobalISel] Add a G_JUMP_TABLE opcode.
authorAmara Emerson <aemerson@apple.com>
Tue, 11 Jun 2019 19:58:06 +0000 (19:58 +0000)
committerAmara Emerson <aemerson@apple.com>
Tue, 11 Jun 2019 19:58:06 +0000 (19:58 +0000)
commitdae5d38e983792c73073d8a4e6ade2a040391f3b
treec2fcd2459faf655edac4d8cd7ee12c14601ed80c
parent68e99ab9740a6abe59119ae1f9ecdc0ec36eb2f0
[GlobalISel] Add a G_JUMP_TABLE opcode.

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.

Differential Revision: https://reviews.llvm.org/D63111

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363096 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/GlobalISel/MachineIRBuilder.h
include/llvm/Support/TargetOpcodes.def
include/llvm/Target/GenericOpcodes.td
lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
lib/CodeGen/MachineVerifier.cpp
test/MachineVerifier/test_g_jump_table.mir [new file with mode: 0644]