Home
last modified time | relevance | path

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

12

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp494 if (auto *IE = dyn_cast<InsertElementInst>(I)) { in visitExtractElementInst()
637 if (InsertElementInst *IEI = dyn_cast<InsertElementInst>(V)) { in collectSingleShuffleElements()
687 static bool replaceExtractElements(InsertElementInst *InsElt, in replaceExtractElements()
791 if (InsertElementInst *IEI = dyn_cast<InsertElementInst>(V)) { in collectShuffleElements()
1225 InsertElementInst *CurrIE = &InsElt; in foldInsSequenceIntoSplat()
1227 InsertElementInst *FirstIE = nullptr; in foldInsSequenceIntoSplat()
1390 return InsertElementInst::Create(NewInsElt1, Y, IdxC1); in hoistInsEltConst()
1502 static Instruction *narrowInsElt(InsertElementInst &InsElt, in narrowInsElt()
1619 return InsertElementInst::Create(NewIns, OtherScalar, in visitInsertElementInst()
2658 return InsertElementInst::Create(V1, Scalar, IndexC); in foldShuffleWithInsert()
[all …]
H A DInstCombineCasts.cpp648 auto *InsElt = dyn_cast<InsertElementInst>(Trunc.getOperand(0)); in shrinkInsertElt()
663 return InsertElementInst::Create(NarrowUndef, NarrowOp, Index); in shrinkInsertElt()
1999 return InsertElementInst::Create(Vec, NewCast, Index); in visitPtrToInt()
2595 return InsertElementInst::Create(PoisonValue::get(DestTy), Elem, in visitBitCast()
2634 if (auto *InsElt = dyn_cast<InsertElementInst>(Src)) in visitBitCast()
H A DInstCombineNegator.cpp369 auto *IEI = cast<InsertElementInst>(I); in visitImpl()
H A DInstCombineInternal.h173 Instruction *visitInsertElementInst(InsertElementInst &IE);
H A DInstCombineSimplifyDemanded.cpp1645 Instruction *New = InsertElementInst::Create( in SimplifyDemandedVectorElts()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Transforms/Vectorize/
H A DSLPVectorizer.h36 class InsertElementInst; variable
139 bool vectorizeInsertElementInst(InsertElementInst *IEI, BasicBlock *BB,
/freebsd-14.2/contrib/llvm-project/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.cpp92 Instruction *visitInsertElementInst(InsertElementInst &I);
388 Instruction *SPIRVEmitIntrinsics::visitInsertElementInst(InsertElementInst &I) { in visitInsertElementInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DSLPVectorizer.cpp217 if (!isa<InsertElementInst, ExtractElementInst>(V) && in isVectorLikeInstWithConstOps()
4023 InsertElementInst *VU, InsertElementInst *V, in areTwoInsertFromSameBuildVector()
5648 !isa<InsertElementInst>(S.OpValue)) { in buildTree_rec()
7765 if (isa<InsertElementInst>(VL[0])) in getEntryCost()
8776 const InsertElementInst *PrevI1; in isFirstInsertElement()
8777 const InsertElementInst *PrevI2; in isFirstInsertElement()
11256 InsertElementInst *Ins = cast<InsertElementInst>(VL0); in vectorizeTree()
11974 isa<InsertElementInst>(Scalar) && in vectorizeTree()
11976 auto *IE = cast<InsertElementInst>(Scalar); in vectorizeTree()
12208 InsertElementInst *II = nullptr; in vectorizeTree()
[all …]
H A DVPlanRecipes.cpp1519 InsertElementInst *IEI = cast<InsertElementInst>(VectorValue); in execute()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DReplaceConstant.cpp40 V = InsertElementInst::Create(V, Op, ConstantInt::get(IdxTy, Idx), "", in expandUser()
H A DInstructions.cpp1869 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index, in InsertElementInst() function in InsertElementInst
1873 OperandTraits<InsertElementInst>::op_begin(this), in InsertElementInst()
1883 InsertElementInst::InsertElementInst(Value *Vec, Value *Elt, Value *Index, in InsertElementInst() function in InsertElementInst
1887 OperandTraits<InsertElementInst>::op_begin(this), in InsertElementInst()
1898 bool InsertElementInst::isValidOperands(const Value *Vec, const Value *Elt, in isValidOperands()
4916 InsertElementInst *InsertElementInst::cloneImpl() const { in cloneImpl()
4917 return InsertElementInst::Create(getOperand(0), getOperand(1), getOperand(2)); in cloneImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DRewriteStatepointsForGC.cpp384 if (isa<InsertElementInst>(I)) { in findBaseDefiningValueOfVector()
660 !isa<ExtractElementInst>(V) && !isa<InsertElementInst>(V) && in isOriginalBaseResult()
838 isa<ExtractElementInst>(BDV) || isa<InsertElementInst>(BDV) || in findBasePointer()
867 } else if (auto *IE = dyn_cast<InsertElementInst>(BDV)) { in findBasePointer()
990 if (isa<InsertElementInst>(I) || isa<ExtractElementInst>(I)) in findBasePointer()
1092 assert(!isa<InsertElementInst>(I) || State.isConflict()); in findBasePointer()
1104 } else if (isa<InsertElementInst>(I)) { in findBasePointer()
1220 } else if (auto *BaseIE = dyn_cast<InsertElementInst>(State.getBaseValue())){ in findBasePointer()
1221 auto *BdvIE = cast<InsertElementInst>(BDV); in findBasePointer()
H A DScalarizer.cpp305 bool visitInsertElementInst(InsertElementInst &IEI);
390 InsertElementInst *Insert = dyn_cast<InsertElementInst>(V); in operator []()
962 bool ScalarizerVisitor::visitInsertElementInst(InsertElementInst &IEI) { in visitInsertElementInst()
H A DEarlyCSE.cpp149 isa<InsertElementInst>(Inst) || isa<ShuffleVectorInst>(Inst) || in canHandle()
312 isa<InsertElementInst>(Inst) || isa<ShuffleVectorInst>(Inst) || in getHashValueImpl()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DInterpreter.h164 void visitInsertElementInst(InsertElementInst &I);
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DInstructions.h1900 class InsertElementInst : public Instruction {
1901 InsertElementInst(Value *Vec, Value *NewElt, Value *Idx,
1904 InsertElementInst(Value *Vec, Value *NewElt, Value *Idx, const Twine &NameStr,
1911 InsertElementInst *cloneImpl() const;
1914 static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
1917 return new(3) InsertElementInst(Vec, NewElt, Idx, NameStr, InsertBefore);
1920 static InsertElementInst *Create(Value *Vec, Value *NewElt, Value *Idx,
1923 return new(3) InsertElementInst(Vec, NewElt, Idx, NameStr, InsertAtEnd);
1950 struct OperandTraits<InsertElementInst> :
1951 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
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DLint.cpp113 void visitInsertElementInst(InsertElementInst &I);
614 void Lint::visitInsertElementInst(InsertElementInst &I) { in visitInsertElementInst()
H A DVectorUtils.cpp176 if (InsertElementInst *III = dyn_cast<InsertElementInst>(V)) { in findScalarElement()
/freebsd-14.2/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DOperations.cpp322 return InsertElementInst::Create(Srcs[0], Srcs[1], Srcs[2], "I", Inst); in insertElementDescriptor()
/freebsd-14.2/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp530 Value *V = InsertElementInst::Create( in Act()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetTransformInfoImpl.h1299 auto *IE = dyn_cast<InsertElementInst>(U); in getInstructionCost()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUPromoteAlloca.cpp1127 if (isa<InsertValueInst>(User) || isa<InsertElementInst>(User)) in collectUsesWithPtrTypes()

12