diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-05-16 19:29:10 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-05-16 19:29:10 +0000 |
commit | e1f6e4b21d7e3067dc733b0d9676709fff584119 (patch) | |
tree | ad4b82236a5292607dbf46ac6733c27bf8dfe097 /llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | |
parent | 9800faa57866d82ebad291a0f828f9d3aa7faddf (diff) | |
download | bcm5719-llvm-e1f6e4b21d7e3067dc733b0d9676709fff584119.tar.gz bcm5719-llvm-e1f6e4b21d7e3067dc733b0d9676709fff584119.zip |
API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.)
llvm-svn: 51200
Diffstat (limited to 'llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index 2dfd4d7a3d3..959a8320045 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -389,7 +389,7 @@ static bool OptimizeNoopCopyExpression(CastInst *CI, const TargetLowering &TLI){ while (isa<PHINode>(InsertPt)) ++InsertPt; InsertedCast = - CastInst::create(CI->getOpcode(), CI->getOperand(0), CI->getType(), "", + CastInst::Create(CI->getOpcode(), CI->getOperand(0), CI->getType(), "", InsertPt); MadeChange = true; } @@ -447,7 +447,7 @@ static bool OptimizeCmpExpression(CmpInst *CI){ while (isa<PHINode>(InsertPt)) ++InsertPt; InsertedCmp = - CmpInst::create(CI->getOpcode(), CI->getPredicate(), CI->getOperand(0), + CmpInst::Create(CI->getOpcode(), CI->getPredicate(), CI->getOperand(0), CI->getOperand(1), "", InsertPt); MadeChange = true; } @@ -880,7 +880,7 @@ bool CodeGenPrepare::OptimizeLoadStoreInst(Instruction *LdStInst, Value *Addr, V = new SExtInst(V, IntPtrTy, "sunkaddr", InsertPt); } if (AddrMode.Scale != 1) - V = BinaryOperator::createMul(V, ConstantInt::get(IntPtrTy, + V = BinaryOperator::CreateMul(V, ConstantInt::get(IntPtrTy, AddrMode.Scale), "sunkaddr", InsertPt); Result = V; @@ -892,7 +892,7 @@ bool CodeGenPrepare::OptimizeLoadStoreInst(Instruction *LdStInst, Value *Addr, if (V->getType() != IntPtrTy) V = new PtrToIntInst(V, IntPtrTy, "sunkaddr", InsertPt); if (Result) - Result = BinaryOperator::createAdd(Result, V, "sunkaddr", InsertPt); + Result = BinaryOperator::CreateAdd(Result, V, "sunkaddr", InsertPt); else Result = V; } @@ -902,7 +902,7 @@ bool CodeGenPrepare::OptimizeLoadStoreInst(Instruction *LdStInst, Value *Addr, Value *V = new PtrToIntInst(AddrMode.BaseGV, IntPtrTy, "sunkaddr", InsertPt); if (Result) - Result = BinaryOperator::createAdd(Result, V, "sunkaddr", InsertPt); + Result = BinaryOperator::CreateAdd(Result, V, "sunkaddr", InsertPt); else Result = V; } @@ -911,7 +911,7 @@ bool CodeGenPrepare::OptimizeLoadStoreInst(Instruction *LdStInst, Value *Addr, if (AddrMode.BaseOffs) { Value *V = ConstantInt::get(IntPtrTy, AddrMode.BaseOffs); if (Result) - Result = BinaryOperator::createAdd(Result, V, "sunkaddr", InsertPt); + Result = BinaryOperator::CreateAdd(Result, V, "sunkaddr", InsertPt); else Result = V; } |