[llvm-commits] CVS: llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Jun 8 13:54:01 PDT 2004
Changes in directory llvm/lib/Target/SparcV9/InstrSelection:
InstrSelection.cpp updated: 1.78 -> 1.79
---
Log message:
Add a TmpInstruction ctor that doesn't take a MCFI.
---
Diffs of the changes: (+13 -2)
Index: llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp
diff -u llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.78 llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.79
--- llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp:1.78 Wed Jun 2 00:54:48 2004
+++ llvm/lib/Target/SparcV9/InstrSelection/InstrSelection.cpp Tue Jun 8 13:52:46 2004
@@ -84,6 +84,17 @@
};
}
+TmpInstruction::TmpInstruction(Value *s1, Value *s2, const std::string &name)
+ : Instruction(s1->getType(), Instruction::UserOp1, name)
+{
+ Operands.push_back(Use(s1, this)); // s1 must be non-null
+ if (s2)
+ Operands.push_back(Use(s2, this));
+
+ // TmpInstructions should not be garbage checked.
+ LeakDetector::removeGarbageObject(this);
+}
+
TmpInstruction::TmpInstruction(MachineCodeForInstruction& mcfi,
Value *s1, Value *s2, const std::string &name)
: Instruction(s1->getType(), Instruction::UserOp1, name)
@@ -97,9 +108,9 @@
// TmpInstructions should not be garbage checked.
LeakDetector::removeGarbageObject(this);
}
-
+
// Constructor that requires the type of the temporary to be specified.
-// Both S1 and S2 may be NULL.(
+// Both S1 and S2 may be NULL.
TmpInstruction::TmpInstruction(MachineCodeForInstruction& mcfi,
const Type *Ty, Value *s1, Value* s2,
const std::string &name)
More information about the llvm-commits
mailing list