Reputation: 6403
I have read LLVM IR language reference and bitcode file format, but I haven't found any documentation containing an opcode list or explaining the instruction encoding.
Is there any place where it'd be possible to find this information, or searching the source code is necessary?
Upvotes: 10
Views: 4954
Reputation: 26868
You'll have to look in the source code. Fortunately for you, it's all pretty neatly laid out in LLVMBitCodes.h.
Just keep in mind that the encoding does occasionally change, so be careful if you depend on it for anything (though I think things are only added to the enums, not removed or changed).
Upvotes: 6