Added description of jump table and G_JUMP_TABLE opcode.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Time | Test | |
---|---|---|
30,470 ms | x64 debian > libFuzzer.libFuzzer::fork.test |
Event Timeline
Did some git archaeology to give some better feedback. :)
llvm/docs/GlobalISel/GenericOpcode.rst | ||
---|---|---|
809 | 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. | |
811 | 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 | ||
---|---|---|
812 | 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 | ||
---|---|---|
802–803 | 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. |