llvm.org GIT mirror llvm / 5c1b738
Remove some more C junk from these files. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206721 91177308-0d34-0410-b5e6-96231b3b80d8 Richard Smith 6 years ago
2 changed file(s) with 6 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
7373 #ifndef X86DISASSEMBLER_H
7474 #define X86DISASSEMBLER_H
7575
76 #define INSTRUCTION_SPECIFIER_FIELDS \
77 uint16_t operands;
78
79 #define INSTRUCTION_IDS \
80 uint16_t instructionIDs;
81
8276 #include "X86DisassemblerDecoderCommon.h"
83
84 #undef INSTRUCTION_SPECIFIER_FIELDS
85 #undef INSTRUCTION_IDS
86
8777 #include "llvm/MC/MCDisassembler.h"
8878
8979 namespace llvm {
599599 /* The instruction ID, extracted from the decode table */
600600 uint16_t instructionID;
601601 /* The specifier for the instruction, from the instruction info table */
602 const struct InstructionSpecifier *spec;
602 const InstructionSpecifier *spec;
603603
604604 /* state for additional bytes, consumed during operand decode. Pattern:
605605 consumed___ indicates that the byte was already consumed and does not
653653 uint8_t sibScale;
654654 SIBBase sibBase;
655655
656 const struct OperandSpecifier *operands;
656 const OperandSpecifier *operands;
657657 };
658658
659659 /* decodeInstruction - Decode one instruction and store the decoding results in
672672 * @param mode - The mode (16-bit, 32-bit, 64-bit) to decode in.
673673 * @return - Nonzero if there was an error during decode, 0 otherwise.
674674 */
675 int decodeInstruction(struct InternalInstruction* insn,
675 int decodeInstruction(InternalInstruction *insn,
676676 byteReader_t reader,
677 const void* readerArg,
677 const void *readerArg,
678678 dlog_t logger,
679 void* loggerArg,
680 const void* miiArg,
679 void *loggerArg,
680 const void *miiArg,
681681 uint64_t startLoc,
682682 DisassemblerMode mode);
683683