Home
last modified time | relevance | path

Searched refs:replaceOperand (Results 1 – 18 of 18) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineAtomicRMW.cpp143 return replaceOperand(RMWI, 1, ConstantInt::get(RMWI.getType(), 0)); in visitAtomicRMWInst()
147 return replaceOperand(RMWI, 1, ConstantFP::getNegativeZero(RMWI.getType())); in visitAtomicRMWInst()
H A DInstCombineSelect.cpp1430 IC.replaceOperand(Sel, 0, NewCmp); in tryToReuseConstantFromSelectInComparison()
2028 return IC.replaceOperand( in canonicalizeScalarSelectOfVecs()
2695 return replaceOperand(SI, 1, One); in visitSelectInst()
2726 return replaceOperand(SI, 0, A); in visitSelectInst()
2730 return replaceOperand(SI, 0, A); in visitSelectInst()
2735 return replaceOperand(SI, 1, S); in visitSelectInst()
2738 return replaceOperand(SI, 2, S); in visitSelectInst()
2771 return replaceOperand(SI, 0, A); in visitSelectInst()
3092 replaceOperand(SI, 0, And); in visitSelectInst()
3109 replaceOperand(SI, 0, Or); in visitSelectInst()
[all …]
H A DInstCombineCalls.cpp345 return replaceOperand(II, 0, V); in simplifyMaskedStore()
384 return replaceOperand(II, 0, V); in simplifyMaskedScatter()
387 return replaceOperand(II, 1, V); in simplifyMaskedScatter()
549 return IC.replaceOperand(II, 0, X); in foldCtpop()
555 return IC.replaceOperand(II, 0, X); in foldCtpop()
1438 replaceOperand(*II, 0, X); in visitCallInst()
1439 replaceOperand(*II, 1, Y); in visitCallInst()
1446 replaceOperand(*II, 0, X); in visitCallInst()
1447 replaceOperand(*II, 1, X); in visitCallInst()
1615 replaceOperand(*II, 0, Data); in visitCallInst()
[all …]
H A DInstructionCombining.cpp413 replaceOperand(I, 0, A); in SimplifyAssociativeOrCommutative()
414 replaceOperand(I, 1, V); in SimplifyAssociativeOrCommutative()
446 replaceOperand(I, 0, V); in SimplifyAssociativeOrCommutative()
447 replaceOperand(I, 1, C); in SimplifyAssociativeOrCommutative()
474 replaceOperand(I, 0, V); in SimplifyAssociativeOrCommutative()
475 replaceOperand(I, 1, B); in SimplifyAssociativeOrCommutative()
494 replaceOperand(I, 0, B); in SimplifyAssociativeOrCommutative()
495 replaceOperand(I, 1, V); in SimplifyAssociativeOrCommutative()
528 replaceOperand(I, 0, NewBO); in SimplifyAssociativeOrCommutative()
2907 return replaceOperand(RI, 0, in visitReturnInst()
[all …]
H A DInstCombineMulDivRem.cpp76 IC.replaceOperand(*I, 0, V2); in simplifyValueKnownNonZero()
645 replaceOperand(I, 1, SI->getOperand(NonNullOperand)); in simplifyDivRemOfSelectWithZeroOp()
736 return replaceOperand(I, 1, V); in commonIDivTransforms()
850 replaceOperand(I, 0, ConstantInt::get(Ty, 1)); in commonIDivTransforms()
851 replaceOperand(I, 1, Y); in commonIDivTransforms()
1412 replaceOperand(I, 0, ConstantFP::get(I.getType(), 1.0)); in visitFDiv()
1413 replaceOperand(I, 1, Y); in visitFDiv()
1442 return replaceOperand(I, 1, V); in commonIRemTransforms()
1543 return replaceOperand(I, 1, ConstantInt::get(I.getType(), -*Y)); in visitSRem()
1591 return replaceOperand(I, 1, NewRHSV); in visitSRem()
H A DInstCombineLoadStoreAlloca.cpp179 return IC.replaceOperand(AI, 0, IC.Builder.getInt32(1)); in simplifyAllocaArraySize()
228 return IC.replaceOperand(AI, 0, V); in simplifyAllocaArraySize()
378 return replaceOperand(AI, 0, in visitAllocaInst()
1038 return replaceOperand(LI, 0, SI->getOperand(2)); in visitLoadInst()
1044 return replaceOperand(LI, 0, SI->getOperand(1)); in visitLoadInst()
1455 return replaceOperand(SI, 0, PoisonValue::get(Val->getType())); in visitStoreInst()
H A DInstCombineVectorOps.cpp386 return replaceOperand(EI, 0, V); in visitExtractElementInst()
452 return replaceOperand(EI, 0, IE->getOperand(0)); in visitExtractElementInst()
2217 return IC.replaceOperand(Shuf, 0, X); in foldShuffleWithInsert()
2225 return IC.replaceOperand(Shuf, 1, X); in foldShuffleWithInsert()
H A DInstCombineCompares.cpp1609 return replaceOperand(Cmp, 0, X); in foldICmpXorConstant()
1737 return replaceOperand(Cmp, 0, NewAnd); in foldICmpAndShift()
1843 return replaceOperand(Cmp, 0, NewAnd); in foldICmpAndConstConst()
6212 return IC.replaceOperand(*I, 0, X); in foldFabsWithFcmpZero()
6313 return replaceOperand(I, 0, ConstantFP::getNullValue(OpType)); in visitFCmpInst()
6316 return replaceOperand(I, 1, ConstantFP::getNullValue(OpType)); in visitFCmpInst()
6342 return replaceOperand(I, 1, ConstantFP::getNullValue(OpType)); in visitFCmpInst()
H A DInstCombineInternal.h418 Instruction *replaceOperand(Instruction &I, unsigned OpNum, Value *V) { in replaceOperand() function
H A DInstCombineAddSub.cpp1415 replaceOperand(I, 0, A); in visitAdd()
1416 replaceOperand(I, 1, B); in visitAdd()
H A DInstCombineSimplifyDemanded.cpp1166 replaceOperand(*Inst, OpNum, V); in SimplifyDemandedVectorElts()
H A DInstCombinePHI.cpp1386 replaceOperand(PN, i, NonZeroConst); in visitPHINode()
H A DInstCombineShifts.cpp420 return replaceOperand(I, 1, Rem); in commonShiftTransforms()
H A DInstCombineCasts.cpp2039 return replaceOperand(CI, 0, GEP->getOperand(0)); in commonPointerCastTransforms()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp323 return IC.replaceOperand( in instCombineIntrinsic()
422 return IC.replaceOperand( in instCombineIntrinsic()
432 return IC.replaceOperand( in instCombineIntrinsic()
478 IC.replaceOperand(II, I + 2, UndefValue::get(Src->getType())); in instCombineIntrinsic()
620 IC.replaceOperand(II, 1, ConstantInt::getNullValue(Src1->getType())); in instCombineIntrinsic()
621 IC.replaceOperand(II, 2, in instCombineIntrinsic()
749 return IC.replaceOperand(II, 0, UndefValue::get(Old->getType())); in instCombineIntrinsic()
763 return IC.replaceOperand(II, 0, UndefValue::get(VDstIn->getType())); in instCombineIntrinsic()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp1110 return IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1162 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1166 IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1356 return IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1432 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1441 IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1492 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1496 IC.replaceOperand(II, 1, V); in instCombineIntrinsic()
1525 return IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
1592 IC.replaceOperand(II, 0, V); in instCombineIntrinsic()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h437 Instruction *replaceOperand(Instruction &I, unsigned OpNum, Value *V) { in replaceOperand() function
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMTargetTransformInfo.cpp156 return IC.replaceOperand( in instCombineIntrinsic()