Added description of jump table and G_JUMP_TABLE opcode.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Did some git archaeology to give some better feedback. :)
llvm/docs/GlobalISel/GenericOpcode.rst | ||
---|---|---|
833 | When it's a pointer, we should use pN, where N is the address space. I think 0 is the default, so you can probably just use that. | |
835 | I took a look at the commit that added G_JUMP_TABLE to GenericOpcodes.td (d133c1592560edb77958492a77e4e871b21a9d52) The message says:
So I think that we should basically use that description here. :) |
llvm/docs/GlobalISel/GenericOpcode.rst | ||
---|---|---|
836 | minor nit: I think "Source operand must be a jump table index." seems redundant here as you already said above "The source operand is a jump table index." |
llvm/docs/GlobalISel/GenericOpcode.rst | ||
---|---|---|
826–827 | 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. |