Home
last modified time | relevance | path

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

/freebsd-14.2/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.h144 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
146 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
151 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
153 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
H A DConstantFolding.h125 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
131 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
H A DInstructionSimplify.h170 Value *simplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
178 Value *simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/freebsd-14.2/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-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h133 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
135 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
140 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
142 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.h59 virtual Value *FoldExtractValue(Value *Agg,
62 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.h2473 inline ExtractValueInst(Value *Agg,
2477 inline ExtractValueInst(Value *Agg,
2490 static ExtractValueInst *Create(Value *Agg,
2498 static ExtractValueInst *Create(Value *Agg,
2550 ExtractValueInst::ExtractValueInst(Value *Agg,
2685 InsertValueInst::InsertValueInst(Value *Agg,
2690 : Instruction(Agg->getType(), InsertValue,
2693 init(Agg, Val, Idxs, NameStr);
2696 InsertValueInst::InsertValueInst(Value *Agg,
2701 : Instruction(Agg->getType(), InsertValue,
[all …]
H A DIRBuilder.h2499 Value *CreateExtractValue(Value *Agg, ArrayRef<unsigned> Idxs,
2501 if (auto *V = Folder.FoldExtractValue(Agg, Idxs))
2503 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
2506 Value *CreateInsertValue(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
2508 if (auto *V = Folder.FoldInsertValue(Agg, Val, Idxs))
2510 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DConstantFold.cpp578 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
582 return Agg; in ConstantFoldExtractValueInstruction()
584 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
590 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
598 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
601 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction()
605 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
614 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
616 return ConstantArray::get(cast<ArrayType>(Agg->getType()), Result); in ConstantFoldInsertValueInstruction()
H A DInstructions.cpp2721 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
2731 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
2733 Op<0>() = Agg; in init()
2776 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
2785 if (ArrayType *AT = dyn_cast<ArrayType>(Agg)) { in getIndexedType()
2788 Agg = AT->getElementType(); in getIndexedType()
2789 } else if (StructType *ST = dyn_cast<StructType>(Agg)) { in getIndexedType()
2792 Agg = ST->getElementType(Index); in getIndexedType()
2798 return const_cast<Type*>(Agg); in getIndexedType()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp235 Value *Agg = IRB.CreateInsertValue(PoisonValue::get(StructTy), Mul, {0}); in buildUMulWithOverflowFunc() local
236 Value *Res = IRB.CreateInsertValue(Agg, Overflow, {1}); in buildUMulWithOverflowFunc()
/freebsd-14.2/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1928 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
1930 GenericValue Src = getOperandValue(Agg, SF); in visitExtractValueInst()
1941 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitExtractValueInst()
1972 Value *Agg = I.getAggregateOperand(); in visitInsertValueInst() local
1974 GenericValue Src1 = getOperandValue(Agg, SF); in visitInsertValueInst()
1988 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitInsertValueInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Analysis/
H A DInstructionSimplify.cpp5094 static Value *simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument
5097 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in simplifyInsertValueInst()
5104 (Q.isUndefValue(Val) && isGuaranteedNotToBePoison(Agg))) in simplifyInsertValueInst()
5105 return Agg; in simplifyInsertValueInst()
5109 if (EV->getAggregateOperand()->getType() == Agg->getType() && in simplifyInsertValueInst()
5113 if (isa<PoisonValue>(Agg) || in simplifyInsertValueInst()
5114 (Q.isUndefValue(Agg) && in simplifyInsertValueInst()
5119 if (Agg == EV->getAggregateOperand()) in simplifyInsertValueInst()
5120 return Agg; in simplifyInsertValueInst()
5126 Value *llvm::simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument
[all …]
H A DConstantFolding.cpp3273 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldFixedVectorCall() local
3274 if (!Agg) in ConstantFoldFixedVectorCall()
3277 Lane[J] = Agg; in ConstantFoldFixedVectorCall()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp620 Value *Agg = PoisonValue::get(NewS->getType()); in replaceRetconOrAsyncSuspendUses() local
622 Agg = Builder.CreateInsertValue(Agg, Args[I], I); in replaceRetconOrAsyncSuspendUses()
624 NewS->replaceAllUsesWith(Agg); in replaceRetconOrAsyncSuspendUses()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSROA.cpp3795 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument
3799 Ty, Agg, commonAlignment(BaseAlign, Offset), Name); in emitSplitOps()
3810 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3825 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3848 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3862 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc()
3895 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3902 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"); in emitFunc()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp3478 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
3481 return replaceInstUsesWith(EV, Agg); in visitExtractValueInst()
3483 if (Value *V = simplifyExtractValueInst(Agg, EV.getIndices(), in visitExtractValueInst()
3487 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
3542 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) { in visitExtractValueInst()
3544 if (auto *STy = dyn_cast<StructType>(Agg->getType()); in visitExtractValueInst()
3576 if (auto *PN = dyn_cast<PHINode>(Agg)) in visitExtractValueInst()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp5034 Value *Agg; in parseFunctionBody() local
5036 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody()
5038 Type *Ty = Agg->getType(); in parseFunctionBody()
5070 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in parseFunctionBody()
5078 Value *Agg; in parseFunctionBody() local
5080 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody()
5092 Type *CurTy = Agg->getType(); in parseFunctionBody()
5117 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in parseFunctionBody()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp4036 SDValue Agg = getValue(Op0); in visitInsertValue() local
4041 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
4052 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
4081 SDValue Agg = getValue(Op0); in visitExtractValue() local
4086 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue()
4087 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DDataFlowSanitizer.cpp2810 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
2811 Value *AggShadow = DFSF.getShadow(Agg); in visitExtractValueInst()
H A DMemorySanitizer.cpp4499 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
4501 Value *AggShadow = getShadow(Agg); in visitExtractValueInst()