Home
last modified time | relevance | path

Searched refs:InsertElementInst (Results 1 – 25 of 42) sorted by relevance

12

/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp491 if (auto *IE = dyn_cast<InsertElementInst>(I)) { in visitExtractElementInst()
633 if (InsertElementInst *IEI = dyn_cast<InsertElementInst>(V)) { in collectSingleShuffleElements()
683 static void replaceExtractElements(InsertElementInst *InsElt, in replaceExtractElements()
729 if (InsElt->hasOneUse() && isa<InsertElementInst>(InsElt->user_back())) in replaceExtractElements()
782 if (InsertElementInst *IEI = dyn_cast<InsertElementInst>(V)) { in collectShuffleElements()
1191 static Instruction *foldInsSequenceIntoSplat(InsertElementInst &InsElt) { in foldInsSequenceIntoSplat()
1194 if (InsElt.hasOneUse() && isa<InsertElementInst>(InsElt.user_back())) in foldInsSequenceIntoSplat()
1210 InsertElementInst *CurrIE = &InsElt; in foldInsSequenceIntoSplat()
1212 InsertElementInst *FirstIE = nullptr; in foldInsSequenceIntoSplat()
1221 auto *NextIE = dyn_cast<InsertElementInst>(CurrIE->getOperand(0)); in foldInsSequenceIntoSplat()
[all …]
H A DInstCombineCasts.cpp780 auto *InsElt = dyn_cast<InsertElementInst>(Trunc.getOperand(0)); in shrinkInsertElt()
795 return InsertElementInst::Create(NarrowUndef, NarrowOp, Index); in shrinkInsertElt()
2113 return InsertElementInst::Create(Vec, NewCast, Index); in visitPtrToInt()
2770 return InsertElementInst::Create(PoisonValue::get(DestTy), Elem, in visitBitCast()
2809 if (auto *InsElt = dyn_cast<InsertElementInst>(Src)) in visitBitCast()
H A DInstCombineNegator.cpp373 auto *IEI = cast<InsertElementInst>(I); in visitImpl()
H A DInstCombineInternal.h169 Instruction *visitInsertElementInst(InsertElementInst &IE);
H A DInstCombineSimplifyDemanded.cpp1543 Instruction *New = InsertElementInst::Create( in SimplifyDemandedVectorElts()
/openbsd-src/gnu/llvm/llvm/include/llvm/Transforms/Vectorize/
H A DSLPVectorizer.h37 class InsertElementInst; variable
144 bool vectorizeInsertElementInst(InsertElementInst *IEI, BasicBlock *BB,
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp215 if (!isa<InsertElementInst, ExtractElementInst>(V) && in isVectorLikeInstWithConstOps()
225 assert(isa<InsertElementInst>(V) && "Expected only insertelement."); in isVectorLikeInstWithConstOps()
292 if (const auto *IE = dyn_cast<InsertElementInst>(InsertInst)) { in getInsertIndex()
376 while (auto *II = dyn_cast<InsertElementInst>(Base)) {
3871 InsertElementInst *VU, InsertElementInst *V, in areTwoInsertFromSameBuildVector()
3872 function_ref<Value *(InsertElementInst *)> GetBaseOperand) { in areTwoInsertFromSameBuildVector()
3901 IE1 = dyn_cast_or_null<InsertElementInst>(GetBaseOperand(IE1)); in areTwoInsertFromSameBuildVector()
3908 IE2 = dyn_cast_or_null<InsertElementInst>(GetBaseOperand(IE2)); in areTwoInsertFromSameBuildVector()
3974 (TopToBottom && isa<StoreInst, InsertElementInst>(TE.getMainOp()))) && in getReorderingData()
3983 if (auto *IE1 = dyn_cast<InsertElementInst>(FirstUserOfPhi1)) in getReorderingData()
[all …]
H A DVPlanRecipes.cpp985 InsertElementInst *IEI = cast<InsertElementInst>(VectorValue); in execute()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVRegularizer.cpp128 Repl = InsertElementInst::Create( in runLowerConstExpr()
238 InsertElementInst::Create(PVal, CI->getOperand(1), ConstInt, "", CI); in visitCallScalToVec()
H A DSPIRVEmitIntrinsics.cpp83 Instruction *visitInsertElementInst(InsertElementInst &I);
230 Instruction *SPIRVEmitIntrinsics::visitInsertElementInst(InsertElementInst &I) { in visitInsertElementInst()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp224 bool visitInsertElementInst(InsertElementInst &IEI);
326 InsertElementInst *Insert = dyn_cast<InsertElementInst>(V); in operator []()
801 bool ScalarizerVisitor::visitInsertElementInst(InsertElementInst &IEI) { in visitInsertElementInst()
H A DRewriteStatepointsForGC.cpp452 if (isa<InsertElementInst>(I)) { in findBaseDefiningValueOfVector()
728 !isa<ExtractElementInst>(V) && !isa<InsertElementInst>(V) && in isOriginalBaseResult()
906 isa<ExtractElementInst>(BDV) || isa<InsertElementInst>(BDV) || in findBasePointer()
935 } else if (auto *IE = dyn_cast<InsertElementInst>(BDV)) { in findBasePointer()
1143 assert(!isa<InsertElementInst>(I) || State.isConflict()); in findBasePointer()
1155 } else if (isa<InsertElementInst>(I)) { in findBasePointer()
1271 } else if (auto *BaseIE = dyn_cast<InsertElementInst>(State.getBaseValue())){ in findBasePointer()
1272 auto *BdvIE = cast<InsertElementInst>(BDV); in findBasePointer()
H A DEarlyCSE.cpp148 isa<ExtractElementInst>(Inst) || isa<InsertElementInst>(Inst) || in canHandle()
298 isa<ExtractElementInst>(Inst) || isa<InsertElementInst>(Inst) || in getHashValueImpl()
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h164 void visitInsertElementInst(InsertElementInst &I);
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DInstructions.h1945 class InsertElementInst : public Instruction {
1946 InsertElementInst(Value *Vec, Value *NewElt, Value *Idx,
1949 InsertElementInst(Value *Vec, Value *NewElt, Value *Idx, const Twine &NameStr,
1956 InsertElementInst *cloneImpl() const;
1959 static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
1962 return new(3) InsertElementInst(Vec, NewElt, Idx, NameStr, InsertBefore);
1965 static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
1968 return new(3) InsertElementInst(Vec, NewElt, Idx, NameStr, InsertAtEnd);
1995 struct OperandTraits<InsertElementInst> :
1996 public FixedNumOperandTraits<InsertElementInst, 3> {
[all …]
H A DInstVisitor.h192 RetTy visitInsertElementInst(InsertElementInst &I) { DELEGATE(Instruction);} in visitInsertElementInst()
H A DInstruction.def215 HANDLE_OTHER_INST(62, InsertElement, InsertElementInst) // insert into vector
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DLint.cpp115 void visitInsertElementInst(InsertElementInst &I);
612 void Lint::visitInsertElementInst(InsertElementInst &I) { in visitInsertElementInst()
H A DVectorUtils.cpp298 if (InsertElementInst *III = dyn_cast<InsertElementInst>(V)) { in findScalarElement()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DInstructions.cpp2004 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index, in InsertElementInst() function in InsertElementInst
2008 OperandTraits<InsertElementInst>::op_begin(this), in InsertElementInst()
2018 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index, in InsertElementInst() function in InsertElementInst
2022 OperandTraits<InsertElementInst>::op_begin(this), in InsertElementInst()
2033 bool InsertElementInst::isValidOperands(const Value *Vec, const Value *Elt, in isValidOperands()
4932 InsertElementInst *InsertElementInst::cloneImpl() const { in cloneImpl()
4933 return InsertElementInst::Create(getOperand(0), getOperand(1), getOperand(2)); in cloneImpl()
/openbsd-src/gnu/llvm/llvm/lib/FuzzMutate/
H A DOperations.cpp299 return InsertElementInst::Create(Srcs[0], Srcs[1], Srcs[2], "I", Inst); in insertElementDescriptor()
/openbsd-src/gnu/llvm/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp534 Value *V = InsertElementInst::Create( in Act()
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp739 if (isa<InsertValueInst>(User) || isa<InsertElementInst>(User)) in collectUsesWithPtrTypes()
/openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1178 auto *IE = dyn_cast<InsertElementInst>(U); in getInstructionCost()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp805 void visitInsertElementInst(InsertElementInst &I);
2798 void DFSanVisitor::visitInsertElementInst(InsertElementInst &I) { in visitInsertElementInst()

12