[PATCH] D107630: [docs][GlobalISel]Adding info for G_JUMP_TABLE generic opcode

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 19 17:00:07 PDT 2021


aemerson accepted this revision.
aemerson added inline comments.


================
Comment at: llvm/docs/GlobalISel/GenericOpcode.rst:802-803
+Generates a pointer to the address of the jump table specified by the source 
+operand. The source operand is a jump table index. A jump table is an array 
+of addresses the CPU should jump to based on certain conditions.
+G_JUMP_TABLE can be used in conjunction with G_BRJT to support jump table 
----------------
I don't think this sentence really fits in this doc. If the user doesn't know what a jump table is then it's better to go read about it in a more detailed source that here. Otherwise, LGTM.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107630/new/

https://reviews.llvm.org/D107630



More information about the llvm-commits mailing list