Home
last modified time | relevance | path

Searched refs:Agg (Results 1 – 24 of 24) sorted by relevance

/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h88 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
90 return simplifyExtractValueInst(Agg, IdxList, SQ); in FoldExtractValue()
93 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
95 return simplifyInsertValueInst(Agg, Val, IdxList, SQ); in FoldInsertValue()
H A DTargetFolder.h141 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
143 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
148 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
150 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
H A DConstantFolding.h138 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
144 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
H A DInstructionSimplify.h172 Value *simplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
180 Value *simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp124 if (auto *Agg = dyn_cast_if_present<MutableAggregate *>(Val)) in clear() local
125 delete Agg; in clear()
133 while (const auto *Agg = dyn_cast_if_present<MutableAggregate *>(V->Val)) { in read() local
134 Type *AggTy = Agg->Ty; in read()
136 if (!Index || Index->uge(Agg->Elements.size()) || in read()
140 V = &Agg->Elements[Index->getZExtValue()]; in read()
177 MutableAggregate *Agg = cast<MutableAggregate *>(MV->Val); in write() local
178 Type *AggTy = Agg->Ty; in write()
180 if (!Index || Index->uge(Agg->Elements.size()) || in write()
184 MV = &Agg->Elements[Index->getZExtValue()]; in write()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h130 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
132 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
137 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
139 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
H A DConstantFold.h46 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
48 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DIRBuilderFolder.h60 virtual Value *FoldExtractValue(Value *Agg,
63 virtual Value *FoldInsertValue(Value *Agg, Value *Val,
H A DNoFolder.h86 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
91 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
H A DInstructions.h2311 inline ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
2323 static ExtractValueInst *Create(Value *Agg, ArrayRef<unsigned> Idxs,
2327 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2334 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2375 ExtractValueInst::ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
2378 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
2379 ExtractValue, Agg, InsertBefore) {
2399 inline InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
2404 InsertValueInst(Value *Agg, Value *Val, unsigned Idx,
2408 void init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
[all …]
H A DIRBuilder.h2521 Value *CreateExtractValue(Value *Agg, ArrayRef<unsigned> Idxs,
2523 if (auto *V = Folder.FoldExtractValue(Agg, Idxs))
2525 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
2528 Value *CreateInsertValue(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
2530 if (auto *V = Folder.FoldInsertValue(Agg, Val, Idxs))
2532 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp511 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
515 return Agg; in ConstantFoldExtractValueInstruction()
517 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
523 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
531 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
534 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction()
538 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
547 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
549 return ConstantArray::get(cast<ArrayType>(Agg->getType()), Result); in ConstantFoldInsertValueInstruction()
H A DInstructions.cpp2443 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
2453 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
2455 Op<0>() = Agg; in init()
2498 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
2507 if (ArrayType *AT = dyn_cast<ArrayType>(Agg)) { in getIndexedType()
2510 Agg = AT->getElementType(); in getIndexedType()
2511 } else if (StructType *ST = dyn_cast<StructType>(Agg)) { in getIndexedType()
2514 Agg = ST->getElementType(Index); in getIndexedType()
2520 return const_cast<Type*>(Agg); in getIndexedType()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp364 Value *Agg = IRB.CreateInsertValue(PoisonValue::get(StructTy), Mul, {0}); in buildUMulWithOverflowFunc() local
365 Value *Res = IRB.CreateInsertValue(Agg, Overflow, {1}); in buildUMulWithOverflowFunc()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1892 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
1894 GenericValue Src = getOperandValue(Agg, SF); in visitExtractValueInst()
1905 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitExtractValueInst()
1936 Value *Agg = I.getAggregateOperand(); in visitInsertValueInst() local
1938 GenericValue Src1 = getOperandValue(Agg, SF); in visitInsertValueInst()
1952 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitInsertValueInst()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp5120 static Value *simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument
5123 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in simplifyInsertValueInst()
5130 (Q.isUndefValue(Val) && isGuaranteedNotToBePoison(Agg))) in simplifyInsertValueInst()
5131 return Agg; in simplifyInsertValueInst()
5135 if (EV->getAggregateOperand()->getType() == Agg->getType() && in simplifyInsertValueInst()
5139 if (isa<PoisonValue>(Agg) || in simplifyInsertValueInst()
5140 (Q.isUndefValue(Agg) && in simplifyInsertValueInst()
5145 if (Agg == EV->getAggregateOperand()) in simplifyInsertValueInst()
5146 return Agg; in simplifyInsertValueInst()
5152 Value *llvm::simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument
[all …]
H A DConstantFolding.cpp3353 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldFixedVectorCall() local
3354 if (!Agg) in ConstantFoldFixedVectorCall()
3357 Lane[J] = Agg; in ConstantFoldFixedVectorCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp603 Value *Agg = PoisonValue::get(NewS->getType()); in replaceRetconOrAsyncSuspendUses() local
605 Agg = Builder.CreateInsertValue(Agg, Args[I], I); in replaceRetconOrAsyncSuspendUses()
607 NewS->replaceAllUsesWith(Agg); in replaceRetconOrAsyncSuspendUses()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp3762 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument
3766 Ty, Agg, commonAlignment(BaseAlign, Offset), Name); in emitSplitOps()
3777 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3792 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3815 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3830 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc()
3863 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3870 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"); in emitFunc()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3959 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
3962 return replaceInstUsesWith(EV, Agg); in visitExtractValueInst()
3964 if (Value *V = simplifyExtractValueInst(Agg, EV.getIndices(), in visitExtractValueInst()
3968 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
4023 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) { in visitExtractValueInst()
4025 if (auto *STy = dyn_cast<StructType>(Agg->getType()); in visitExtractValueInst()
4057 if (auto *PN = dyn_cast<PHINode>(Agg)) in visitExtractValueInst()
4063 if (auto *SI = dyn_cast<SelectInst>(Agg)) in visitExtractValueInst()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5211 Value *Agg; in parseFunctionBody() local
5213 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody()
5215 Type *Ty = Agg->getType(); in parseFunctionBody()
5247 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in parseFunctionBody()
5255 Value *Agg; in parseFunctionBody() local
5257 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody()
5269 Type *CurTy = Agg->getType(); in parseFunctionBody()
5294 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in parseFunctionBody()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp4227 SDValue Agg = getValue(Op0); in visitInsertValue() local
4232 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
4243 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
4272 SDValue Agg = getValue(Op0); in visitExtractValue() local
4277 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue()
4278 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp2824 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
2825 Value *AggShadow = DFSF.getShadow(Agg); in visitExtractValueInst()
H A DMemorySanitizer.cpp4760 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
4762 Value *AggShadow = getShadow(Agg); in visitExtractValueInst()