[llvm-commits] CVS: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp AlphaISelLowering.cpp
Nate Begeman
natebegeman at mac.com
Sat Apr 22 11:54:06 PDT 2006
Changes in directory llvm/lib/Target/Alpha:
AlphaAsmPrinter.cpp updated: 1.33 -> 1.34
AlphaISelLowering.cpp updated: 1.46 -> 1.47
---
Log message:
JumpTable support! What this represents is working asm and jit support for
x86 and ppc for 100% dense switch statements when relocations are non-PIC.
This support will be extended and enhanced in the coming days to support
PIC, and less dense forms of jump tables.
---
Diffs of the changes: (+3 -7)
AlphaAsmPrinter.cpp | 9 ++-------
AlphaISelLowering.cpp | 1 +
2 files changed, 3 insertions(+), 7 deletions(-)
Index: llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp
diff -u llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.33 llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.34
--- llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp:1.33 Thu Mar 9 00:14:35 2006
+++ llvm/lib/Target/Alpha/AlphaAsmPrinter.cpp Sat Apr 22 13:53:45 2006
@@ -115,14 +115,9 @@
abort();
return;
- case MachineOperand::MO_MachineBasicBlock: {
- MachineBasicBlock *MBBOp = MO.getMachineBasicBlock();
- O << PrivateGlobalPrefix << "LBB"
- << Mang->getValueName(MBBOp->getParent()->getFunction())
- << "_" << MBBOp->getNumber() << "\t" << CommentString << " "
- << MBBOp->getBasicBlock()->getName();
+ case MachineOperand::MO_MachineBasicBlock:
+ printBasicBlockLabel(MO.getMachineBasicBlock());
return;
- }
case MachineOperand::MO_ConstantPoolIndex:
O << PrivateGlobalPrefix << "CPI" << getFunctionNumber() << "_"
Index: llvm/lib/Target/Alpha/AlphaISelLowering.cpp
diff -u llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.46 llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.47
--- llvm/lib/Target/Alpha/AlphaISelLowering.cpp:1.46 Thu Apr 6 18:18:45 2006
+++ llvm/lib/Target/Alpha/AlphaISelLowering.cpp Sat Apr 22 13:53:45 2006
@@ -193,6 +193,7 @@
addRegisterClass(MVT::f64, Alpha::F8RCRegisterClass);
addRegisterClass(MVT::f32, Alpha::F4RCRegisterClass);
+ setOperationAction(ISD::BRIND, MVT::i64, Expand);
setOperationAction(ISD::BR_CC, MVT::Other, Expand);
setOperationAction(ISD::SELECT_CC, MVT::Other, Expand);
More information about the llvm-commits
mailing list