[llvm-commits] CVS: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp

Reid Spencer reid at x10sys.com
Sat Dec 30 21:56:04 PST 2006



Changes in directory llvm/lib/Target/ARM:

ARMISelDAGToDAG.cpp updated: 1.94 -> 1.95
---
Log message:

For PR950: http://llvm.org/PR950 :
Three changes:
1. Convert signed integer types to signless versions.
2. Implement the @sext and @zext parameter attributes. Previously the
   type of an function parameter was used to determine whether it should
   be sign extended or zero extended before the call. This information is
   now communicated via the function type's parameter attributes. 
3. The interface to LowerCallTo had to be changed in order to accommodate
   the parameter attribute information. Although it would have been
   convenient to pass in the FunctionType itself, there isn't always one
   present in the caller. Consequently, a signedness indication for the
   result type and for each parameter was provided for in the interface
   to this method. All implementations were changed to make the adjustment
   necessary.


---
Diffs of the changes:  (+1 -1)

 ARMISelDAGToDAG.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
diff -u llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.94 llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.95
--- llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:1.94	Fri Dec 29 08:28:12 2006
+++ llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp	Sat Dec 30 23:55:36 2006
@@ -915,7 +915,7 @@
         SDOperand C = CurDAG->getTargetConstant(~val,  MVT::i32);
         n           = CurDAG->getTargetNode(ARM::MVN,  MVT::i32, C, Z, Z);
      } else {
-        Constant    *C = ConstantInt::get(Type::UIntTy, val);
+        Constant    *C = ConstantInt::get(Type::Int32Ty, val);
         int  alignment = 2;
         SDOperand Addr = CurDAG->getTargetConstantPool(C, MVT::i32, alignment);
         n              = CurDAG->getTargetNode(ARM::LDR,  MVT::i32, Addr, Z);






More information about the llvm-commits mailing list