[PATCH] D63111: [GlobalISel] Add a G_JUMP_TABLE opcode

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 17:37:36 PDT 2019


aemerson created this revision.
aemerson added reviewers: jpaquette, qcolombet, dsanders, arsenm, Petar.Avramovic.
aemerson added a project: LLVM.
Herald added subscribers: volkan, hiraditya, kristof.beyls, rovka, wdng.
Herald added a reviewer: paquette.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D63111

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D63111.203945.patch
Type: text/x-patch
Size: 4574 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190611/88afaad1/attachment.bin>


More information about the llvm-commits mailing list