diff options
author | Dan Gohman <gohman@apple.com> | 2009-01-15 16:43:02 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-01-15 16:43:02 +0000 |
commit | 4bdf021e055f79f0ad3a3365f5417a73682437c2 (patch) | |
tree | 66c10f51cf78f1295b2fc3890827b3d637cfabba /llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 02b93136e9eb904f88a29a5220afb736f4bc3a1a (diff) | |
download | bcm5719-llvm-4bdf021e055f79f0ad3a3365f5417a73682437c2.tar.gz bcm5719-llvm-4bdf021e055f79f0ad3a3365f5417a73682437c2.zip |
Use const with TargetLowering references in a few more places.
llvm-svn: 62260
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 18edb40239e..26a02babd2c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -542,7 +542,7 @@ void SelectionDAGLegalize::HandleOp(SDValue Op) { /// ExpandConstantFP - Expands the ConstantFP node to an integer constant or /// a load from the constant pool. static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP, - SelectionDAG &DAG, TargetLowering &TLI) { + SelectionDAG &DAG, const TargetLowering &TLI) { bool Extend = false; // If a FP immediate is precise when represented as a float and if the @@ -591,7 +591,8 @@ static SDValue ExpandConstantFP(ConstantFPSDNode *CFP, bool UseCP, /// operations. static SDValue ExpandFCOPYSIGNToBitwiseOps(SDNode *Node, MVT NVT, - SelectionDAG &DAG, TargetLowering &TLI) { + SelectionDAG &DAG, + const TargetLowering &TLI) { MVT VT = Node->getValueType(0); MVT SrcVT = Node->getOperand(1).getValueType(); assert((SrcVT == MVT::f32 || SrcVT == MVT::f64) && @@ -633,7 +634,7 @@ SDValue ExpandFCOPYSIGNToBitwiseOps(SDNode *Node, MVT NVT, /// ExpandUnalignedStore - Expands an unaligned store to 2 half-size stores. static SDValue ExpandUnalignedStore(StoreSDNode *ST, SelectionDAG &DAG, - TargetLowering &TLI) { + const TargetLowering &TLI) { SDValue Chain = ST->getChain(); SDValue Ptr = ST->getBasePtr(); SDValue Val = ST->getValue(); @@ -8301,7 +8302,7 @@ SDValue SelectionDAGLegalize::WidenVectorOp(SDValue Op, MVT WidenVT) { // Width: Preferred width of element type // VVT: Vector value type whose size we must match. // Returns VecEVT and EVT - the vector type and its associated element type -static void FindWidenVecType(TargetLowering &TLI, unsigned Width, MVT VVT, +static void FindWidenVecType(const TargetLowering &TLI, unsigned Width, MVT VVT, MVT& EVT, MVT& VecEVT) { // We start with the preferred width, make it a power of 2 and see if // we can find a vector type of that width. If not, we reduce it by |