| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | Evaluator.cpp | 125 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 D | InstSimplifyFolder.h | 90 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 D | TargetFolder.h | 142 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 D | ConstantFolding.h | 141 LLVM_ABI Constant *ConstantFoldInsertValueInstruction(Constant *Agg, 148 LLVM_ABI Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
|
| H A D | InstructionSimplify.h | 177 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 D | ConstantFolder.h | 131 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 D | ConstantFold.h | 51 ConstantFoldExtractValueInstruction(Constant *Agg, ArrayRef<unsigned> Idxs); 53 ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
|
| H A D | IRBuilderFolder.h | 61 virtual Value *FoldExtractValue(Value *Agg, 64 virtual Value *FoldInsertValue(Value *Agg, Value *Val,
|
| H A D | NoFolder.h | 87 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument 92 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
|
| H A D | Instructions.h | 2444 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 D | IRBuilder.h | 2617 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 D | ConstantFold.cpp | 505 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 D | Instructions.cpp | 2508 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 D | Instruction.cpp | 1527 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 D | DWARFVerifier.cpp | 2260 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 D | Execution.cpp | 1892 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 D | InstructionSimplify.cpp | 5146 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 D | ConstantFolding.cpp | 3842 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 D | InstructionCombining.cpp | 4392 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 D | SROA.cpp | 3854 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 D | Instruction.h | 970 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 D | BitcodeReader.cpp | 5300 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 D | SelectionDAGBuilder.cpp | 4289 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 D | DataFlowSanitizer.cpp | 2814 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local 2815 Value *AggShadow = DFSF.getShadow(Agg); in visitExtractValueInst()
|
| H A D | MemorySanitizer.cpp | 6244 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local 6246 Value *AggShadow = getShadow(Agg); in visitExtractValueInst()
|