mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Lump the base opcode in with the X86 TargetSpecific flags
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7540 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
abf05b2dae
commit
4d18d5ce1e
@ -134,9 +134,11 @@ namespace X86II {
|
||||
FPTypeMask = 7 << 14,
|
||||
|
||||
// PrintImplUses - Print out implicit uses in the assembly output.
|
||||
PrintImplUses = 1 << 17
|
||||
PrintImplUses = 1 << 17,
|
||||
|
||||
// Bits 18 -> 31 are unused
|
||||
OpcodeMask = 0xFF << 18,
|
||||
OpcodeShift = 18,
|
||||
// Bits 26 -> 31 are unused
|
||||
};
|
||||
}
|
||||
|
||||
@ -166,8 +168,9 @@ public:
|
||||
// getBaseOpcodeFor - This function returns the "base" X86 opcode for the
|
||||
// specified opcode number.
|
||||
//
|
||||
unsigned char getBaseOpcodeFor(unsigned Opcode) const;
|
||||
unsigned char getBaseOpcodeFor(unsigned Opcode) const {
|
||||
return get(Opcode).TSFlags >> X86II::OpcodeShift;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user