mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-27 04:18:42 +00:00
Remove all traces of the "Opcode Mask" field in the MachineInstr class
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4359 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
1 parent
b98a53f201
commit
9a8e4121aa
6 files changed
+3
-30
No files matched your search
@@ -17,7 +17,6 @@ class Value;
|
||||
class Function;
|
||||
|
||||
typedef int MachineOpCode;
|
||||
typedef int OpCodeMask;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// class MachineOperand
|
||||
@@ -185,13 +184,6 @@ private:
|
||||
// MachineOpCode must be an enum, defined separately for each target.
|
||||
// E.g., It is defined in SparcInstructionSelection.h for the SPARC.
|
||||
//
|
||||
// opCodeMask is used to record variants of an instruction.
|
||||
// E.g., each branch instruction on SPARC has 2 flags (i.e., 4 variants):
|
||||
// ANNUL: if 1: Annul delay slot instruction.
|
||||
// PREDICT-NOT-TAKEN: if 1: predict branch not taken.
|
||||
// Instead of creating 4 different opcodes for BNZ, we create a single
|
||||
// opcode and set bits in opCodeMask for each of these flags.
|
||||
//
|
||||
// There are 2 kinds of operands:
|
||||
//
|
||||
// (1) Explicit operands of the machine instruction in vector operands[]
|
||||
@@ -204,7 +196,6 @@ private:
|
||||
class MachineInstr : public Annotable, // MachineInstrs are annotable
|
||||
public NonCopyable { // Disable copy operations
|
||||
MachineOpCode opCode; // the opcode
|
||||
OpCodeMask opCodeMask; // extra bits for variants of an opcode
|
||||
std::vector<MachineOperand> operands; // the operands
|
||||
|
||||
struct ImplicitRef {
|
||||
|
||||
Reference in new issue
Block a user