aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2001-07-31 21:55:51 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2001-07-31 21:55:51 +0000
commit3929cf67790f99fbdfff64d51d9daf975ca32614 (patch)
tree0e1bb4bb7b3ee4c407f04ec964a8487931f8a894
parent960066ad75e1dce3b908c6b211b3d69974380246 (diff)
Allow numOperands of -1 for variable #operands.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/TargetMachine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/TargetMachine.h b/include/llvm/CodeGen/TargetMachine.h
index 9395cb1ec6..5dd6def407 100644
--- a/include/llvm/CodeGen/TargetMachine.h
+++ b/include/llvm/CodeGen/TargetMachine.h
@@ -64,7 +64,7 @@ const unsigned int M_STORE_FLAG = 1 << 12;
struct MachineInstrDescriptor {
string opCodeString; // Assembly language mnemonic for the opcode.
- unsigned int numOperands; // Number of arguments for the instruction.
+ int numOperands; // Number of args; -1 if variable #args
int resultPos; // Position of the result; -1 if no result
unsigned int maxImmedConst; // Largest +ve constant in IMMMED field or 0.
bool immedIsSignExtended; // Is IMMED field sign-extended? If so,
@@ -167,6 +167,8 @@ public:
const MachineInstrInfo& getInstrInfo () const { return *machineInstrInfo; }
+ // const MachineSchedInfo& getSchedInfo() const { return *machineSchedInfo; }
+
virtual unsigned int findOptimalStorageSize (const Type* ty) const;
virtual unsigned int* findOptimalMemberOffsets(const StructType* stype)const;
@@ -176,6 +178,7 @@ protected:
// Description of machine instructions
// Protect so that subclass can control alloc/dealloc
MachineInstrInfo* machineInstrInfo;
+ // MachineSchedInfo* machineSchedInfo;
private:
/*ctor*/ TargetMachine (); // disable