Home
last modified time | relevance | path

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

12

/external/llvm/lib/Transforms/InstCombine/
DInstCombineSelect.cpp434 ICI->setOperand(0, CmpLHS); in visitSelectInstWithICmp()
435 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
436 SI.setOperand(1, TrueVal); in visitSelectInstWithICmp()
437 SI.setOperand(2, FalseVal); in visitSelectInstWithICmp()
504 SI.setOperand(1, CmpRHS); in visitSelectInstWithICmp()
508 SI.setOperand(2, CmpRHS); in visitSelectInstWithICmp()
878 SI.setOperand(1, TrueSI->getTrueValue()); in visitSelectInst()
884 SI.setOperand(2, FalseSI->getFalseValue()); in visitSelectInst()
890 SI.setOperand(0, BinaryOperator::getNotArgument(CondVal)); in visitSelectInst()
891 SI.setOperand(1, FalseVal); in visitSelectInst()
[all …]
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()
DInstCombineLoadStoreAlloca.cpp99 AI.setOperand(0, V); in visitAllocaInst()
307 LI.setOperand(0, SI->getOperand(2)); in visitLoadInst()
314 LI.setOperand(0, SI->getOperand(1)); in visitLoadInst()
404 SI.setOperand(0, NewCast); in InstCombineStoreToCast()
405 SI.setOperand(1, CastOp); in InstCombineStoreToCast()
522 SI.setOperand(0, UndefValue::get(Val->getType())); in visitStoreInst()
DInstCombineSimplifyDemanded.cpp43 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
903 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
921 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
949 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
954 if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
987 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
1034 I->setOperand(0, TmpV); in SimplifyDemandedVectorElts()
1068 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1071 if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
DInstCombineMulDivRem.cpp53 I->setOperand(0, V2); in simplifyValueKnownNonZero()
311 I.setOperand(1, SI->getOperand(NonNullOperand)); in SimplifyDivRemOfSelect()
371 I.setOperand(1, V); in commonIDivTransforms()
586 I.setOperand(1, V); in commonIRemTransforms()
672 I.setOperand(1, RHSNeg); in visitSRem()
718 I.setOperand(1, NewRHSV); in visitSRem()
DInstructionCombining.cpp201 I.setOperand(0, A); in SimplifyAssociativeOrCommutative()
202 I.setOperand(1, V); in SimplifyAssociativeOrCommutative()
230 I.setOperand(0, V); in SimplifyAssociativeOrCommutative()
231 I.setOperand(1, C); in SimplifyAssociativeOrCommutative()
252 I.setOperand(0, V); in SimplifyAssociativeOrCommutative()
253 I.setOperand(1, B); in SimplifyAssociativeOrCommutative()
272 I.setOperand(0, B); in SimplifyAssociativeOrCommutative()
273 I.setOperand(1, V); in SimplifyAssociativeOrCommutative()
299 I.setOperand(0, New); in SimplifyAssociativeOrCommutative()
300 I.setOperand(1, Folded); in SimplifyAssociativeOrCommutative()
[all …]
DInstCombineVectorOps.cpp126 EI.setOperand(0, V); in visitExtractElementInst()
167 EI.setOperand(0, IE->getOperand(0)); in visitExtractElementInst()
463 SVI.setOperand(0, SVI.getOperand(1)); in visitShuffleVectorInst()
464 SVI.setOperand(1, UndefValue::get(RHS->getType())); in visitShuffleVectorInst()
465 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
DInstCombineCompares.cpp794 ICI.setOperand(0, DivI->getOperand(0)); // X/1 == X. in FoldICmpDivCst()
965 ICI.setOperand(0, Tmp); in FoldICmpShrCst()
1056 ICI.setOperand(0, CompareVal); in visitICmpInstWithInstAndIntCst()
1192 ICI.setOperand(1, NewCst); in visitICmpInstWithInstAndIntCst()
1198 LHSI->setOperand(1, NewAndCST); in visitICmpInstWithInstAndIntCst()
1199 LHSI->setOperand(0, Shift->getOperand(0)); in visitICmpInstWithInstAndIntCst()
1225 ICI.setOperand(0, NewAnd); in visitICmpInstWithInstAndIntCst()
1511 ICI.setOperand(0, II->getArgOperand(0)); in visitICmpInstWithInstAndIntCst()
1512 ICI.setOperand(1, ConstantInt::get(II->getContext(), RHSV.byteSwap())); in visitICmpInstWithInstAndIntCst()
1519 ICI.setOperand(0, II->getArgOperand(0)); in visitICmpInstWithInstAndIntCst()
[all …]
/external/llvm/lib/Transforms/Scalar/
DReassociate.cpp243 I->setOperand(1, RHS->getOperand(0)); in LinearizeExpr()
244 RHS->setOperand(0, LHS); in LinearizeExpr()
245 I->setOperand(0, RHS); in LinearizeExpr()
302 I->setOperand(0, UndefValue::get(I->getType())); in LinearizeExprTree()
303 I->setOperand(1, UndefValue::get(I->getType())); in LinearizeExprTree()
338 I->setOperand(1, UndefValue::get(I->getType())); in LinearizeExprTree()
352 I->setOperand(0, Ops[i].Op); in RewriteExprTree()
353 I->setOperand(1, Ops[i+1].Op); in RewriteExprTree()
374 I->setOperand(1, Ops[i].Op); in RewriteExprTree()
418 I->setOperand(0, NegateValue(I->getOperand(0), BI)); in NegateValue()
[all …]
DTailRecursionElimination.cpp559 AccRecInstr->setOperand(AccRecInstr->getOperand(0) != CI, AccPN); in EliminateRecursiveTailCall()
571 RI->setOperand(0, AccPN); in EliminateRecursiveTailCall()
DSimplifyCFGPass.cpp270 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in MergeEmptyReturnBlocks()
DJumpThreading.cpp1281 BO->setOperand(!isLHS, SplitVal); in ProcessBranchOnXOR()
1390 New->setOperand(i, I->second); in ThreadEdge()
1532 New->setOperand(i, I->second); in DuplicateCondBranchOnPHIIntoPred()
/external/llvm/include/llvm/
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.h1242 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
2050 setOperand(i, V);
2577 SI->setOperand(2 + Index*2, reinterpret_cast<Value*>(V));
2602 void setCondition(Value *V) { setOperand(0, V); }
2609 setOperand(1, reinterpret_cast<Value*>(DefaultCase));
2704 setOperand(idx*2+1, (Value*)NewSucc);
2779 void setAddress(Value *V) { setOperand(0, V); }
2803 setOperand(i+1, (Value*)NewSucc);
2883 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
/external/llvm/lib/VMCore/
DGlobals.cpp157 this->setOperand(0, cast<Constant>(To)); in replaceUsesOfWithOnConstant()
223 setOperand(0, Aliasee); in setAliasee()
DUser.cpp36 setOperand(i, To); // Fix it now... in replaceUsesOfWith()
DConstants.cpp1288 setOperand(0, F); in BlockAddress()
1289 setOperand(1, BB); in BlockAddress()
1326 setOperand(0, NewF); in replaceUsesOfWithOnConstant()
1327 setOperand(1, NewBB); in replaceUsesOfWithOnConstant()
2438 setOperand(OperandToUpdate, ToC); in replaceUsesOfWithOnConstant()
2442 setOperand(i, ToC); in replaceUsesOfWithOnConstant()
2519 setOperand(OperandToUpdate, ToC); in replaceUsesOfWithOnConstant()
/external/llvm/unittests/VMCore/
DVerifierTest.cpp42 BI->setOperand(0, Zero32); in TEST()
/external/llvm/lib/CodeGen/
DSjLjEHPrepare.cpp274 EI->setOperand(0, AI); in lowerIncomingArguments()
275 NI->setOperand(0, AI); in lowerIncomingArguments()
291 NC->setOperand(0, AI); in lowerIncomingArguments()
/external/llvm/lib/Transforms/Utils/
DLowerInvoke.cpp303 EI->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes()
304 NI->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes()
318 NC->setOperand(0, AI); in splitLiveRangesLiveAcrossInvokes()
DLowerExpectIntrinsic.cpp138 CmpI->setOperand(0, ArgValue); in HandleIfExpect()
DInlineFunction.cpp472 DVI->setOperand(2, createInlinedVariable(DVI->getVariable(), in fixupLineNumbers()
786 Br->setOperand(0, FirstNewBlock); in InlineFunction()
DSimplifyIndVar.cpp139 UseInst->setOperand(OperIdx, IVSrc); in foldIVUser()
/external/llvm/include/llvm/Support/
DCallSite.h120 getInstruction()->setOperand(ArgNo, newVal); in setArgument()

12