Home
last modified time | relevance | path

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

123

/NextBSD/contrib/llvm/lib/Target/NVPTX/
HDNVPTXLowerAlloca.cpp89 LI->setOperand(LI->getPointerOperandIndex(), NewASCToGeneric); in runOnBasicBlock()
94 SI->setOperand(SI->getPointerOperandIndex(), NewASCToGeneric); in runOnBasicBlock()
99 GI->setOperand(GI->getPointerOperandIndex(), NewASCToGeneric); in runOnBasicBlock()
104 BI->setOperand(0, NewASCToGeneric); in runOnBasicBlock()
HDNVPTXLowerKernelArgs.cpp148 ArgInGlobal->setOperand(0, Arg); in handlePointerParam()
HDNVPTXFavorNonGenericAddrSpaces.cpp261 MI->setOperand(Idx, ASC->getOperand(0)); in optimizeMemoryInstruction()
/NextBSD/contrib/llvm/lib/Target/AArch64/
HDAArch64AddressTypePromotion.cpp291 User->setOperand(U.getOperandNo(), SExt); in propagateSignExtension()
294 SExt->setOperand(0, Inst->getOperand(0)); in propagateSignExtension()
324 Inst->setOperand(OpIdx, ConstantInt::getSigned(SExt->getType(), in propagateSignExtension()
331 Inst->setOperand(OpIdx, UndefValue::get(SExt->getType())); in propagateSignExtension()
339 SExtForOpnd->setOperand(0, Opnd); in propagateSignExtension()
344 Inst->setOperand(OpIdx, SExtForOpnd); in propagateSignExtension()
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombineSelect.cpp481 ICI->setOperand(0, CmpLHS); in visitSelectInstWithICmp()
482 ICI->setOperand(1, CmpRHS); in visitSelectInstWithICmp()
483 SI.setOperand(1, TrueVal); in visitSelectInstWithICmp()
484 SI.setOperand(2, FalseVal); in visitSelectInstWithICmp()
532 SI.setOperand(1, CmpRHS); in visitSelectInstWithICmp()
536 SI.setOperand(2, CmpRHS); in visitSelectInstWithICmp()
1136 SI.setOperand(1, TrueSI->getTrueValue()); in visitSelectInst()
1144 SI.setOperand(0, And); in visitSelectInst()
1145 SI.setOperand(1, TrueSI->getTrueValue()); in visitSelectInst()
1156 SI.setOperand(2, FalseSI->getFalseValue()); in visitSelectInst()
[all …]
HDInstCombineSimplifyDemanded.cpp45 I->setOperand(OpNo, ConstantInt::get(OpC->getType(), Demanded)); in ShrinkDemandedConstant()
967 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
985 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1013 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1018 if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1051 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
1069 if (TmpV) { I->setOperand(1, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1073 if (TmpV) { I->setOperand(2, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
1121 I->setOperand(0, TmpV); in SimplifyDemandedVectorElts()
1155 if (TmpV) { I->setOperand(0, TmpV); MadeChange = true; } in SimplifyDemandedVectorElts()
[all …]
HDInstCombineShifts.cpp51 I.setOperand(1, Rem); in commonShiftTransforms()
212 I->setOperand( in GetShiftedValue()
214 I->setOperand( in GetShiftedValue()
232 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
254 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
273 BO->setOperand(1, ConstantInt::get(BO->getType(), NewShAmt)); in GetShiftedValue()
294 BO->setOperand(1, ConstantInt::get(BO->getType(), in GetShiftedValue()
301 I->setOperand( in GetShiftedValue()
303 I->setOperand( in GetShiftedValue()
HDInstCombineLoadStoreAlloca.cpp176 AI.setOperand(0, V); in simplifyAllocaArraySize()
216 AI.setOperand(0, V); in simplifyAllocaArraySize()
240 AI.setOperand(0, ConstantInt::get(AI.getArraySize()->getType(), 1)); in visitAllocaInst()
705 NewGEPI->setOperand(Idx, in replaceGEPIdxWithZero()
708 MemI.setOperand(MemI.getPointerOperandIndex(), NewGEPI); in replaceGEPIdxWithZero()
827 LI.setOperand(0, SI->getOperand(2)); in visitLoadInst()
834 LI.setOperand(0, SI->getOperand(1)); in visitLoadInst()
1039 SI.setOperand(0, UndefValue::get(Val->getType())); in visitStoreInst()
HDInstructionCombining.cpp205 I.setOperand(0, A); in SimplifyAssociativeOrCommutative()
206 I.setOperand(1, V); in SimplifyAssociativeOrCommutative()
234 I.setOperand(0, V); in SimplifyAssociativeOrCommutative()
235 I.setOperand(1, C); in SimplifyAssociativeOrCommutative()
256 I.setOperand(0, V); in SimplifyAssociativeOrCommutative()
257 I.setOperand(1, B); in SimplifyAssociativeOrCommutative()
276 I.setOperand(0, B); in SimplifyAssociativeOrCommutative()
277 I.setOperand(1, V); in SimplifyAssociativeOrCommutative()
309 I.setOperand(0, New); in SimplifyAssociativeOrCommutative()
310 I.setOperand(1, Folded); in SimplifyAssociativeOrCommutative()
[all …]
HDInstCombineCompares.cpp812 ICI.setOperand(0, DivI->getOperand(0)); // X/1 == X. in FoldICmpDivCst()
983 ICI.setOperand(0, Tmp); in FoldICmpShrCst()
1178 ICI.setOperand(0, CompareVal); in visitICmpInstWithInstAndIntCst()
1339 ICI.setOperand(1, NewCst); in visitICmpInstWithInstAndIntCst()
1345 LHSI->setOperand(1, NewAndCst); in visitICmpInstWithInstAndIntCst()
1346 LHSI->setOperand(0, Shift->getOperand(0)); in visitICmpInstWithInstAndIntCst()
1372 ICI.setOperand(0, NewAnd); in visitICmpInstWithInstAndIntCst()
1410 ICI.setOperand(0, NewAnd); in visitICmpInstWithInstAndIntCst()
1880 ICI.setOperand(0, II->getArgOperand(0)); in visitICmpInstWithInstAndIntCst()
1881 ICI.setOperand(1, Builder->getInt(RHSV.byteSwap())); in visitICmpInstWithInstAndIntCst()
[all …]
HDInstCombineVectorOps.cpp161 EI.setOperand(0, V); in visitExtractElementInst()
207 EI.setOperand(0, IE->getOperand(0)); in visitExtractElementInst()
883 SVI.setOperand(0, SVI.getOperand(1)); in visitShuffleVectorInst()
884 SVI.setOperand(1, UndefValue::get(RHS->getType())); in visitShuffleVectorInst()
885 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
HDInstCombineMulDivRem.cpp56 I->setOperand(0, V2); in simplifyValueKnownNonZero()
729 I.setOperand(1, SI->getOperand(NonNullOperand)); in SimplifyDivRemOfSelect()
788 I.setOperand(1, V); in commonIDivTransforms()
1346 I.setOperand(1, V); in commonIRemTransforms()
1426 I.setOperand(1, ConstantInt::get(I.getType(), -*Y)); in visitSRem()
1474 I.setOperand(1, NewRHSV); in visitSRem()
/NextBSD/contrib/llvm/include/llvm/IR/
HDOperandTraits.h111 inline void setOperand(unsigned, VALUECLASS*); \
142 void CLASS::setOperand(unsigned i_nocapture, VALUECLASS *Val_nocapture) { \
HDUser.h122 void setOperand(unsigned i, Value *Val) { in setOperand() function
HDInstructions.h1477 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
2390 setOperand(i, V);
2922 SI->setOperand(2 + Index*2, reinterpret_cast<Value*>(V));
2946 void setCondition(Value *V) { setOperand(0, V); }
2953 setOperand(1, reinterpret_cast<Value*>(DefaultCase));
3059 setOperand(idx*2+1, (Value*)NewSucc);
3135 void setAddress(Value *V) { setOperand(0, V); }
3159 setOperand(i+1, (Value*)NewSucc);
3272 void setArgOperand(unsigned i, Value *v) { setOperand(i, v); }
/NextBSD/contrib/llvm/lib/IR/
HDMetadata.cpp421 setOperand(Op++, MD); in MDNode()
423 setOperand(Op++, MD); in MDNode()
579 setOperand(I, nullptr); in dropAllReferences()
592 setOperand(Op, New); in handleChangedOperand()
600 setOperand(Op, New); in handleChangedOperand()
625 setOperand(O, nullptr); in handleChangedOperand()
748 setOperand(I, New); in replaceOperandWith()
755 void MDNode::setOperand(unsigned I, Metadata *New) { in setOperand() function in MDNode
973 void NamedMDNode::setOperand(unsigned I, MDNode *New) { in setOperand() function in NamedMDNode
HDUser.cpp35 setOperand(i, To); // Fix it now... in replaceUsesOfWith()
HDGlobals.cpp284 setOperand(0, Aliasee); in setAliasee()
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDConstantHoisting.cpp457 Inst->setOperand(Idx, IncomingVal); in updateOperand()
463 Inst->setOperand(Idx, Mat); in updateOperand()
502 ClonedCastInst->setOperand(0, Mat); in emitBaseConstants()
519 ConstExprInst->setOperand(0, Mat); in emitBaseConstants()
HDReassociate.cpp392 Neg->setOperand(1, Constant::getNullValue(Ty)); // Drop use of op. in LowerNegateToMultiply()
654 I->setOperand(OpIdx, UndefValue::get(I->getType())); in LinearizeExprTree()
812 Op->setOperand(0, NewLHS); in RewriteExprTree()
818 Op->setOperand(1, NewRHS); in RewriteExprTree()
843 Op->setOperand(1, NewRHS); in RewriteExprTree()
879 Op->setOperand(0, NewOp); in RewriteExprTree()
937 I->setOperand(0, NegateValue(I->getOperand(0), BI)); in NegateValue()
938 I->setOperand(1, NegateValue(I->getOperand(1), BI)); in NegateValue()
1037 Sub->setOperand(0, Constant::getNullValue(Sub->getType())); // Drop use of op. in BreakUpSubtract()
1038 Sub->setOperand(1, Constant::getNullValue(Sub->getType())); // Drop use of op. in BreakUpSubtract()
[all …]
HDLowerExpectIntrinsic.cpp123 CmpI->setOperand(0, ArgValue); in handleBranchExpect()
HDSimplifyCFGPass.cpp113 RetBlock->getTerminator()->setOperand(0, RetBlockPHI); in mergeEmptyReturnBlocks()
HDTailRecursionElimination.cpp769 AccRecInstr->setOperand(AccRecInstr->getOperand(0) != CI, AccPN); in EliminateRecursiveTailCall()
781 RI->setOperand(0, AccPN); in EliminateRecursiveTailCall()
HDSeparateConstOffsetFromGEP.cpp542 Ext->setOperand(0, Current); in applyExts()
882 GEP->setOperand(I, NewIdx); in splitGEP()
/NextBSD/contrib/llvm/lib/CodeGen/
HDCodeGenPrepare.cpp1771 Inst->setOperand(Idx, NewVal); in OperandSetter()
1779 Inst->setOperand(Idx, Origin); in undo()
1802 Inst->setOperand(It, UndefValue::get(Val->getType())); in OperandsHider()
1810 Inst->setOperand(It, OriginalValues[It]); in undo()
1946 UseIt->Inst->setOperand(UseIt->Idx, Inst); in undo()
2005 void setOperand(Instruction *Inst, unsigned Idx, Value *NewVal);
2028 void TypePromotionTransaction::setOperand(Instruction *Inst, unsigned Idx, in setOperand() function in __anon08e94ae70211::TypePromotionTransaction
2505 TPT.setOperand(SExt, 0, SExtOpnd->getOperand(0)); in promoteOperandForTruncAndAnyExt()
2558 TPT.setOperand(Ext, 0, ExtOpnd); in promoteOperandForOther()
2593 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
[all …]

123