mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
use ArgOperand API
llvm-svn: 107145
This commit is contained in:
parent
e82ec778a2
commit
50741043d0
@ -429,9 +429,9 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
|
|||||||
// Remove upgraded multiply.
|
// Remove upgraded multiply.
|
||||||
CI->eraseFromParent();
|
CI->eraseFromParent();
|
||||||
} else if (F->getName() == "llvm.x86.ssse3.palign.r") {
|
} else if (F->getName() == "llvm.x86.ssse3.palign.r") {
|
||||||
Value *Op1 = CI->getOperand(1);
|
Value *Op1 = CI->getArgOperand(0);
|
||||||
Value *Op2 = CI->getOperand(2);
|
Value *Op2 = CI->getArgOperand(1);
|
||||||
Value *Op3 = CI->getOperand(3);
|
Value *Op3 = CI->getArgOperand(2);
|
||||||
unsigned shiftVal = cast<ConstantInt>(Op3)->getZExtValue();
|
unsigned shiftVal = cast<ConstantInt>(Op3)->getZExtValue();
|
||||||
Value *Rep;
|
Value *Rep;
|
||||||
IRBuilder<> Builder(C);
|
IRBuilder<> Builder(C);
|
||||||
@ -485,9 +485,9 @@ void llvm::UpgradeIntrinsicCall(CallInst *CI, Function *NewFn) {
|
|||||||
CI->eraseFromParent();
|
CI->eraseFromParent();
|
||||||
|
|
||||||
} else if (F->getName() == "llvm.x86.ssse3.palign.r.128") {
|
} else if (F->getName() == "llvm.x86.ssse3.palign.r.128") {
|
||||||
Value *Op1 = CI->getOperand(1);
|
Value *Op1 = CI->getArgOperand(0);
|
||||||
Value *Op2 = CI->getOperand(2);
|
Value *Op2 = CI->getArgOperand(1);
|
||||||
Value *Op3 = CI->getOperand(3);
|
Value *Op3 = CI->getArgOperand(2);
|
||||||
unsigned shiftVal = cast<ConstantInt>(Op3)->getZExtValue();
|
unsigned shiftVal = cast<ConstantInt>(Op3)->getZExtValue();
|
||||||
Value *Rep;
|
Value *Rep;
|
||||||
IRBuilder<> Builder(C);
|
IRBuilder<> Builder(C);
|
||||||
|
Loading…
Reference in New Issue
Block a user