[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineInstr.h
Chris Lattner
lattner at cs.uiuc.edu
Wed Jan 15 13:23:05 PST 2003
Changes in directory llvm/include/llvm/CodeGen:
MachineInstr.h updated: 1.96 -> 1.97
---
Log message:
Add support for the CC registers for Sparc BE
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineInstr.h
diff -u llvm/include/llvm/CodeGen/MachineInstr.h:1.96 llvm/include/llvm/CodeGen/MachineInstr.h:1.97
--- llvm/include/llvm/CodeGen/MachineInstr.h:1.96 Tue Jan 14 15:29:39 2003
+++ llvm/include/llvm/CodeGen/MachineInstr.h Wed Jan 15 13:22:06 2003
@@ -473,6 +473,14 @@
UTy, isPCRelative));
}
+ void addCCRegOperand(Value *V, MOTy::UseType UTy = MOTy::Use) {
+ assert(!OperandsComplete() &&
+ "Trying to add an operand to a machine instr that is already done!");
+ operands.push_back(MachineOperand(V, MachineOperand::MO_CCRegister, UTy,
+ false));
+ }
+
+
/// addRegOperand - Add a symbolic virtual register reference...
///
void addRegOperand(int reg, bool isDef) {
More information about the llvm-commits
mailing list