[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineCodeForInstruction.h

Vikram Adve vadve at cs.uiuc.edu
Tue Oct 29 13:39:03 PST 2002


Changes in directory llvm/include/llvm/CodeGen:

MachineCodeForInstruction.h updated: 1.5 -> 1.6

---
Log message:

Move CallArgsDescriptor into this class instead of making it an
annotation on the machine instruction.


---
Diffs of the changes:

Index: llvm/include/llvm/CodeGen/MachineCodeForInstruction.h
diff -u llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.5 llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.6
--- llvm/include/llvm/CodeGen/MachineCodeForInstruction.h:1.5	Sun Oct 27 19:27:30 2002
+++ llvm/include/llvm/CodeGen/MachineCodeForInstruction.h	Tue Oct 29 13:38:46 2002
@@ -23,12 +23,14 @@
 class MachineInstr;
 class Instruction;
 class Value;
+class CallArgsDescriptor;
 
 extern AnnotationID MCFI_AID;
 
 class MachineCodeForInstruction : public Annotation {
-  std::vector<Value*> tempVec;         // used by m/c instr but not VM instr
-  std::vector<MachineInstr*> Contents;
+  std::vector<Value*> tempVec;          // used by m/c instr but not VM instr
+  std::vector<MachineInstr*> Contents;  // the machine instr for this VM instr
+  CallArgsDescriptor* callArgsDesc;     // only used for CALL instructions
 public:
   MachineCodeForInstruction() : Annotation(MCFI_AID) {}
   ~MachineCodeForInstruction();
@@ -81,6 +83,9 @@
     tempVec.push_back(tmp);
     return *this;
   }
+
+  void setCallArgsDescriptor(CallArgsDescriptor* desc) { callArgsDesc = desc; }
+  CallArgsDescriptor* getCallArgsDescriptor() const    { return callArgsDesc; }
 };
 
 #endif





More information about the llvm-commits mailing list