Home
last modified time | relevance | path

Searched refs:setOperand (Results 1 – 25 of 48) sorted by relevance

12

/freebsd-9-stable/contrib/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp49 I.setOperand(1, Rem); in commonShiftTransforms()
207 I->setOperand(0, GetShiftedValue(I->getOperand(0), NumBits,isLeftShift,IC)); in GetShiftedValue()
208 I->setOperand(1, GetShiftedValue(I->getOperand(1), NumBits,isLeftShift,IC)); in GetShiftedValue()
225 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
247 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
266 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
287 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
294 I->setOperand(1, GetShiftedValue(I->getOperand(1), NumBits,isLeftShift,IC)); in GetShiftedValue()
295 I->setOperand(2, GetShiftedValue(I->getOperand(2), NumBits,isLeftShift,IC)); in GetShiftedValue()
340 I.setOperand(1, ConstantInt::get(I.getType(), TypeBits-1)); in FoldShiftByConstant()
DInstCombineSimplifyDemanded.cpp44 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
1007 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1025 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1053 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1058 if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1091 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
1109 if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1113 if (TmpV) { I->setOperand(2, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1161 I->setOperand(0, TmpV); in SimplifyDemandedVectorElts()
1195 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
[all …]
DInstCombineSelect.cpp507 ICI->setOperand(0, CmpLHS); in visitSelectInstWithICmp()
508 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
509 SI.setOperand(1, TrueVal); in visitSelectInstWithICmp()
510 SI.setOperand(2, FalseVal); in visitSelectInstWithICmp()
577 SI.setOperand(1, CmpRHS); in visitSelectInstWithICmp()
581 SI.setOperand(2, CmpRHS); in visitSelectInstWithICmp()
962 SI.setOperand(1, TrueSI->getTrueValue()); in visitSelectInst()
970 SI.setOperand(2, FalseSI->getFalseValue()); in visitSelectInst()
976 SI.setOperand(0, BinaryOperator::getNotArgument(CondVal)); in visitSelectInst()
977 SI.setOperand(1, FalseVal); in visitSelectInst()
[all …]
DInstCombineLoadStoreAlloca.cpp161 AI.setOperand(0, V); in visitAllocaInst()
213 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst()
435 LI.setOperand(0, SI->getOperand(2)); in visitLoadInst()
442 LI.setOperand(0, SI->getOperand(1)); in visitLoadInst()
532 SI.setOperand(0, NewCast); in InstCombineStoreToCast()
533 SI.setOperand(1, CastOp); in InstCombineStoreToCast()
650 SI.setOperand(0, UndefValue::get(Val->getType())); in visitStoreInst()
DInstructionCombining.cpp226 I.setOperand(0, A); in SimplifyAssociativeOrCommutative()
227 I.setOperand(1, V); in SimplifyAssociativeOrCommutative()
255 I.setOperand(0, V); in SimplifyAssociativeOrCommutative()
256 I.setOperand(1, C); in SimplifyAssociativeOrCommutative()
277 I.setOperand(0, V); in SimplifyAssociativeOrCommutative()
278 I.setOperand(1, B); in SimplifyAssociativeOrCommutative()
297 I.setOperand(0, B); in SimplifyAssociativeOrCommutative()
298 I.setOperand(1, V); in SimplifyAssociativeOrCommutative()
324 I.setOperand(0, New); in SimplifyAssociativeOrCommutative()
325 I.setOperand(1, Folded); in SimplifyAssociativeOrCommutative()
[all …]
DInstCombineCompares.cpp831 ICI.setOperand(0, DivI->getOperand(0)); // X/1 == X. in FoldICmpDivCst()
1002 ICI.setOperand(0, Tmp); in FoldICmpShrCst()
1092 ICI.setOperand(0, CompareVal); in visitICmpInstWithInstAndIntCst()
1244 ICI.setOperand(1, NewCst); in visitICmpInstWithInstAndIntCst()
1250 LHSI->setOperand(1, NewAndCST); in visitICmpInstWithInstAndIntCst()
1251 LHSI->setOperand(0, Shift->getOperand(0)); in visitICmpInstWithInstAndIntCst()
1277 ICI.setOperand(0, NewAnd); in visitICmpInstWithInstAndIntCst()
1753 ICI.setOperand(0, II->getArgOperand(0)); in visitICmpInstWithInstAndIntCst()
1754 ICI.setOperand(1, Builder->getInt(RHSV.byteSwap())); in visitICmpInstWithInstAndIntCst()
1761 ICI.setOperand(0, II->getArgOperand(0)); in visitICmpInstWithInstAndIntCst()
[all …]
DInstCombineVectorOps.cpp204 EI.setOperand(0, V); in visitExtractElementInst()
253 EI.setOperand(0, IE->getOperand(0)); in visitExtractElementInst()
833 SVI.setOperand(0, SVI.getOperand(1)); in visitShuffleVectorInst()
834 SVI.setOperand(1, UndefValue::get(RHS->getType())); in visitShuffleVectorInst()
835 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
DInstCombineMulDivRem.cpp52 I->setOperand(0, V2); in simplifyValueKnownNonZero()
619 I.setOperand(1, SI->getOperand(NonNullOperand)); in SimplifyDivRemOfSelect()
678 I.setOperand(1, V); in commonIDivTransforms()
1118 I.setOperand(1, V); in commonIRemTransforms()
1193 I.setOperand(1, RHSNeg); in visitSRem()
1239 I.setOperand(1, NewRHSV); in visitSRem()
/freebsd-9-stable/contrib/llvm/include/llvm/IR/
DOperandTraits.h111 inline void setOperand(unsigned, VALUECLASS*); \
142 void CLASS::setOperand(unsigned i_nocapture, VALUECLASS *Val_nocapture) { \
DUser.h92 void setOperand(unsigned i, Value *Val) { in setOperand() function
DInstructions.h1246 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
2063 setOperand(i, V);
2586 SI->setOperand(2 + Index*2, reinterpret_cast<Value*>(V));
2611 void setCondition(Value *V) { setOperand(0, V); }
2618 setOperand(1, reinterpret_cast<Value*>(DefaultCase));
2713 setOperand(idx*2+1, (Value*)NewSucc);
2787 void setAddress(Value *V) { setOperand(0, V); }
2811 setOperand(i+1, (Value*)NewSucc);
2890 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
/freebsd-9-stable/contrib/llvm/lib/Transforms/Scalar/
DReassociate.cpp324 Neg->setOperand(1, Constant::getNullValue(Neg->getType())); // Drop use of op. in LowerNegateToMultiply()
586 I->setOperand(OpIdx, UndefValue::get(I->getType())); in LinearizeExprTree()
741 Op->setOperand(0, NewLHS); in RewriteExprTree()
747 Op->setOperand(1, NewRHS); in RewriteExprTree()
772 Op->setOperand(1, NewRHS); in RewriteExprTree()
806 Op->setOperand(0, NewOp); in RewriteExprTree()
851 I->setOperand(0, NegateValue(I->getOperand(0), BI)); in NegateValue()
852 I->setOperand(1, NegateValue(I->getOperand(1), BI)); in NegateValue()
937 Sub->setOperand(0, Constant::getNullValue(Sub->getType())); // Drop use of op. in BreakUpSubtract()
938 Sub->setOperand(1, Constant::getNullValue(Sub->getType())); // Drop use of op. in BreakUpSubtract()
[all …]
DSimplifyCFGPass.cpp131 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()
DTailRecursionElimination.cpp596 AccRecInstr->setOperand(AccRecInstr->getOperand(0) != CI, AccPN); in EliminateRecursiveTailCall()
608 RI->setOperand(0, AccPN); in EliminateRecursiveTailCall()
DLoopIdiomRecognize.cpp247 DeadInst->setOperand(op, 0); in deleteDeadInstruction()
590 LbCond->setOperand(0, TcDec); in transform()
591 LbCond->setOperand(1, cast<Value>(ConstantInt::get(Ty, 0))); in transform()
/freebsd-9-stable/contrib/llvm/lib/IR/
DGlobals.cpp163 this->setOperand(0, cast<Constant>(To)); in replaceUsesOfWithOnConstant()
229 setOperand(0, Aliasee); in setAliasee()
DUser.cpp37 setOperand(i, To); // Fix it now... in replaceUsesOfWith()
DConstants.cpp1371 setOperand(0, F); in BlockAddress()
1372 setOperand(1, BB); in BlockAddress()
1409 setOperand(0, NewF); in replaceUsesOfWithOnConstant()
1410 setOperand(1, NewBB); in replaceUsesOfWithOnConstant()
2625 setOperand(OperandToUpdate, ToC); in replaceUsesOfWithOnConstant()
2629 setOperand(i, ToC); in replaceUsesOfWithOnConstant()
2706 setOperand(OperandToUpdate, ToC); in replaceUsesOfWithOnConstant()
/freebsd-9-stable/contrib/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp261 EI->setOperand(0, AI); in lowerIncomingArguments()
262 NI->setOperand(0, AI); in lowerIncomingArguments()
277 NC->setOperand(0, AI); in lowerIncomingArguments()
/freebsd-9-stable/contrib/llvm/lib/Transforms/Utils/
DLowerInvoke.cpp300 EI->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes()
301 NI->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes()
315 NC->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes()
DLowerExpectIntrinsic.cpp130 CmpI->setOperand(0, ArgValue); in HandleIfExpect()
DInlineFunction.cpp483 DVI->setOperand(2, createInlinedVariable(DVI->getVariable(), in fixupLineNumbers()
819 Br->setOperand(0, FirstNewBlock); in InlineFunction()
DSimplifyIndVar.cpp137 UseInst->setOperand(OperIdx, IVSrc); in foldIVUser()
/freebsd-9-stable/contrib/llvm/include/llvm/Support/
DCallSite.h119 getInstruction()->setOperand(ArgNo, newVal); in setArgument()
/freebsd-9-stable/contrib/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp146 PN->setOperand(I, NewInst); in replaceConstantExprOp()

12