[llvm-commits] [llvm] r45454 - in /llvm/trunk/lib/CodeGen: AsmPrinter.cpp DwarfWriter.cpp MachineInstr.cpp PrologEpilogInserter.cpp
Chris Lattner
sabre at nondot.org
Sun Dec 30 12:50:30 PST 2007
Author: lattner
Date: Sun Dec 30 14:50:28 2007
New Revision: 45454
URL: http://llvm.org/viewvc/llvm-project?rev=45454&view=rev
Log:
MachineOperand::getImmedValue -> MachineOperand::getImm
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter.cpp
llvm/trunk/lib/CodeGen/DwarfWriter.cpp
llvm/trunk/lib/CodeGen/MachineInstr.cpp
llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter.cpp?rev=45454&r1=45453&r2=45454&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter.cpp Sun Dec 30 14:50:28 2007
@@ -1215,14 +1215,14 @@
// Scan to find the machine operand number for the operand.
for (; Val; --Val) {
if (OpNo >= MI->getNumOperands()) break;
- unsigned OpFlags = MI->getOperand(OpNo).getImmedValue();
+ unsigned OpFlags = MI->getOperand(OpNo).getImm();
OpNo += (OpFlags >> 3) + 1;
}
if (OpNo >= MI->getNumOperands()) {
Error = true;
} else {
- unsigned OpFlags = MI->getOperand(OpNo).getImmedValue();
+ unsigned OpFlags = MI->getOperand(OpNo).getImm();
++OpNo; // Skip over the ID number.
if (Modifier[0]=='l') // labels are target independent
@@ -1256,11 +1256,8 @@
/// printLabel - This method prints a local label used by debug and
/// exception handling tables.
void AsmPrinter::printLabel(const MachineInstr *MI) const {
- O << "\n"
- << TAI->getPrivateGlobalPrefix()
- << "label"
- << MI->getOperand(0).getImmedValue()
- << ":\n";
+ O << "\n" << TAI->getPrivateGlobalPrefix()
+ << "label" << MI->getOperand(0).getImm() << ":\n";
}
/// PrintAsmOperand - Print the specified operand of MI, an INLINEASM
Modified: llvm/trunk/lib/CodeGen/DwarfWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/DwarfWriter.cpp?rev=45454&r1=45453&r2=45454&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/DwarfWriter.cpp (original)
+++ llvm/trunk/lib/CodeGen/DwarfWriter.cpp Sun Dec 30 14:50:28 2007
@@ -3159,7 +3159,7 @@
continue;
}
- unsigned BeginLabel = MI->getOperand(0).getImmedValue();
+ unsigned BeginLabel = MI->getOperand(0).getImm();
assert(BeginLabel && "Invalid label!");
// End of the previous try-range?
Modified: llvm/trunk/lib/CodeGen/MachineInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineInstr.cpp?rev=45454&r1=45453&r2=45454&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineInstr.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineInstr.cpp Sun Dec 30 14:50:28 2007
@@ -288,7 +288,7 @@
OutputReg(OS, MO.getReg(), MRI);
break;
case MachineOperand::MO_Immediate:
- OS << MO.getImmedValue();
+ OS << MO.getImm();
break;
case MachineOperand::MO_MachineBasicBlock:
OS << "mbb<"
@@ -398,7 +398,7 @@
OutputReg(OS, getReg());
break;
case MO_Immediate:
- OS << (long)getImmedValue();
+ OS << getImm();
break;
case MO_MachineBasicBlock:
OS << "<mbb:"
Modified: llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp?rev=45454&r1=45453&r2=45454&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp (original)
+++ llvm/trunk/lib/CodeGen/PrologEpilogInserter.cpp Sun Dec 30 14:50:28 2007
@@ -147,7 +147,7 @@
I->getOpcode() == FrameDestroyOpcode) {
assert(I->getNumOperands() >= 1 && "Call Frame Setup/Destroy Pseudo"
" instructions should have a single immediate argument!");
- unsigned Size = I->getOperand(0).getImmedValue();
+ unsigned Size = I->getOperand(0).getImm();
if (Size > MaxCallFrameSize) MaxCallFrameSize = Size;
HasCalls = true;
FrameSDOps.push_back(I);
@@ -516,7 +516,7 @@
// Remember how much SP has been adjustment to create the call frame.
if (I->getOpcode() == FrameSetupOpcode ||
I->getOpcode() == FrameDestroyOpcode) {
- int Size = I->getOperand(0).getImmedValue();
+ int Size = I->getOperand(0).getImm();
if ((!StackGrowsDown && I->getOpcode() == FrameSetupOpcode) ||
(StackGrowsDown && I->getOpcode() == FrameDestroyOpcode))
Size = -Size;
More information about the llvm-commits
mailing list