Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp125 if (auto *Agg = dyn_cast_if_present<MutableAggregate *>(Val)) in clear() local
126 delete Agg; in clear()
134 while (const auto *Agg = dyn_cast_if_present<MutableAggregate *>(V->Val)) { in read() local
135 Type *AggTy = Agg->Ty; in read()
137 if (!Index || Index->uge(Agg->Elements.size()) || in read()
141 V = &Agg->Elements[Index->getZExtValue()]; in read()
178 MutableAggregate *Agg = cast<MutableAggregate *>(MV->Val); in write() local
179 Type *AggTy = Agg->Ty; in write()
181 if (!Index || Index->uge(Agg->Elements.size()) || in write()
185 MV = &Agg->Elements[Index->getZExtValue()]; in write()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h90 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
92 return simplifyExtractValueInst(Agg, IdxList, SQ); in FoldExtractValue()
95 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
97 return simplifyInsertValueInst(Agg, Val, IdxList, SQ); in FoldInsertValue()
H A DTargetFolder.h142 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
144 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
149 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
151 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
H A DConstantFolding.h141 LLVM_ABI Constant *ConstantFoldInsertValueInstruction(Constant *Agg,
148 LLVM_ABI Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
H A DInstructionSimplify.h177 LLVM_ABI Value *simplifyInsertValueInst(Value *Agg, Value *Val,
186 LLVM_ABI Value *simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h131 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
133 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
138 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
140 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
H A DConstantFold.h51 ConstantFoldExtractValueInstruction(Constant *Agg, ArrayRef<unsigned> Idxs);
53 ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DIRBuilderFolder.h61 virtual Value *FoldExtractValue(Value *Agg,
64 virtual Value *FoldInsertValue(Value *Agg, Value *Val,
H A DNoFolder.h87 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
92 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
H A DInstructions.h2444 inline ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
2456 static ExtractValueInst *Create(Value *Agg, ArrayRef<unsigned> Idxs,
2460 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2467 LLVM_ABI static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2508 ExtractValueInst::ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
2511 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
2512 ExtractValue, Agg, InsertBefore) {
2534 inline InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
2539 InsertValueInst(Value *Agg, Value *Val, unsigned Idx,
2543 LLVM_ABI void init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
[all …]
H A DIRBuilder.h2617 Value *CreateExtractValue(Value *Agg, ArrayRef<unsigned> Idxs,
2619 if (auto *V = Folder.FoldExtractValue(Agg, Idxs))
2621 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
2624 Value *CreateInsertValue(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
2626 if (auto *V = Folder.FoldInsertValue(Agg, Val, Idxs))
2628 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp505 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
509 return Agg; in ConstantFoldExtractValueInstruction()
511 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
517 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
525 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
528 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction()
532 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
541 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
543 return ConstantArray::get(cast<ArrayType>(Agg->getType()), Result); in ConstantFoldInsertValueInstruction()
H A DInstructions.cpp2508 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
2518 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
2520 Op<0>() = Agg; in init()
2563 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
2572 if (ArrayType *AT = dyn_cast<ArrayType>(Agg)) { in getIndexedType()
2575 Agg = AT->getElementType(); in getIndexedType()
2576 } else if (StructType *ST = dyn_cast<StructType>(Agg)) { in getIndexedType()
2579 Agg = ST->getElementType(Index); in getIndexedType()
2585 return Agg; in getIndexedType()
/freebsd/contrib/llvm-project/llvm/lib/SandboxIR/
H A DInstruction.cpp1527 Value *ExtractValueInst::create(Value *Agg, ArrayRef<unsigned> Idxs, in create() argument
1531 llvm::Value *NewV = Builder.CreateExtractValue(Agg->Val, Idxs, Name); in create()
1538 Type *ExtractValueInst::getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs) { in getIndexedType() argument
1539 auto *LLVMTy = llvm::ExtractValueInst::getIndexedType(Agg->LLVMTy, Idxs); in getIndexedType()
1540 return Agg->getContext().getType(LLVMTy); in getIndexedType()
1543 Value *InsertValueInst::create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in create() argument
1547 llvm::Value *NewV = Builder.CreateInsertValue(Agg->Val, Val->Val, Idxs, Name); in create()
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/DWARF/
H A DDWARFVerifier.cpp2260 AggregationData &Agg = Aggregation[category_str]; in Report() local
2261 Agg.OverallCount++; in Report()
2263 Agg.DetailedCounts[std::string(sub_category)]++; in Report()
2277 const auto Agg = Aggregation.find(category); in EnumerateDetailedResultsFor() local
2278 if (Agg != Aggregation.end()) { in EnumerateDetailedResultsFor()
2279 for (const auto &[name, aggData] : Agg->second.DetailedCounts) { in EnumerateDetailedResultsFor()
/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.cpp5146 static Value *simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument
5149 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in simplifyInsertValueInst()
5156 (Q.isUndefValue(Val) && isGuaranteedNotToBePoison(Agg))) in simplifyInsertValueInst()
5157 return Agg; in simplifyInsertValueInst()
5161 if (EV->getAggregateOperand()->getType() == Agg->getType() && in simplifyInsertValueInst()
5165 if (isa<PoisonValue>(Agg) || in simplifyInsertValueInst()
5166 (Q.isUndefValue(Agg) && in simplifyInsertValueInst()
5171 if (Agg == EV->getAggregateOperand()) in simplifyInsertValueInst()
5172 return Agg; in simplifyInsertValueInst()
5178 Value *llvm::simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument
[all …]
H A DConstantFolding.cpp3842 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldFixedVectorCall() local
3843 if (!Agg) in ConstantFoldFixedVectorCall()
3846 Lane[J] = Agg; in ConstantFoldFixedVectorCall()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp4392 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
4395 return replaceInstUsesWith(EV, Agg); in visitExtractValueInst()
4397 if (Value *V = simplifyExtractValueInst(Agg, EV.getIndices(), in visitExtractValueInst()
4405 cast<SelectInst>(cast<IntrinsicInst>(Agg)->getArgOperand(0)); in visitExtractValueInst()
4407 foldFrexpOfSelect(EV, cast<IntrinsicInst>(Agg), SelInst, Builder)) in visitExtractValueInst()
4410 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
4465 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) { in visitExtractValueInst()
4467 if (auto *STy = dyn_cast<StructType>(Agg->getType()); in visitExtractValueInst()
4499 if (auto *PN = dyn_cast<PHINode>(Agg)) in visitExtractValueInst()
4505 if (auto *SI = dyn_cast<SelectInst>(Agg)) in visitExtractValueInst()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp3854 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument
3858 Ty, Agg, commonAlignment(BaseAlign, Offset), Name); in emitSplitOps()
3869 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3884 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3913 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3931 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc()
3985 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3992 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"); in emitFunc()
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DInstruction.h970 LLVM_ABI static Value *create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
1115 LLVM_ABI static Value *create(Value *Agg, ArrayRef<unsigned> Idxs,
1127 LLVM_ABI static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5300 Value *Agg; in parseFunctionBody() local
5302 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody()
5304 Type *Ty = Agg->getType(); in parseFunctionBody()
5336 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in parseFunctionBody()
5344 Value *Agg; in parseFunctionBody() local
5346 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody()
5358 Type *CurTy = Agg->getType(); in parseFunctionBody()
5383 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in parseFunctionBody()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp4289 SDValue Agg = getValue(Op0); in visitInsertValue() local
4294 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
4305 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
4334 SDValue Agg = getValue(Op0); in visitExtractValue() local
4339 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue()
4340 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp2814 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
2815 Value *AggShadow = DFSF.getShadow(Agg); in visitExtractValueInst()
H A DMemorySanitizer.cpp6244 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
6246 Value *AggShadow = getShadow(Agg); in visitExtractValueInst()