Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstantFold.h43 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
45 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DConstantsContext.h175 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
179 Op<0>() = Agg; in ExtractValueConstantExpr()
206 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument
210 Op<0>() = Agg; in InsertValueConstantExpr()
H A DConstants.cpp2171 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument
2174 assert(Agg->getType()->isFirstClassType() && in getInsertValue()
2177 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue()
2188 Constant *ArgVec[] = { Agg, Val }; in getInsertValue()
2191 LLVMContextImpl *pImpl = Agg->getContext().pImpl; in getInsertValue()
2197 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
2200 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue()
2204 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
2206 if (Constant *FC = ConstantFoldExtractValueInstruction(Agg, Idxs)) in getExtractValue()
2212 Constant *ArgVec[] = { Agg }; in getExtractValue()
[all …]
H A DInstructions.cpp1475 return Agg; in getIndexedTypeInternal()
1479 if (!Agg->isSized()) in getIndexedTypeInternal()
1484 CompositeType *CT = dyn_cast<CompositeType>(Agg); in getIndexedTypeInternal()
1488 Agg = CT->getTypeAtIndex(Index); in getIndexedTypeInternal()
1490 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal()
1945 Op<0>() = Agg; in init()
1988 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
1997 if (ArrayType *AT = dyn_cast<ArrayType>(Agg)) { in getIndexedType()
2000 } else if (StructType *ST = dyn_cast<StructType>(Agg)) { in getIndexedType()
2008 Agg = cast<CompositeType>(Agg)->getTypeAtIndex(Index); in getIndexedType()
[all …]
H A DConstantFold.cpp876 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
880 return Agg; in ConstantFoldExtractValueInstruction()
882 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
888 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
896 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
899 NumElts = cast<SequentialType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction()
903 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
912 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
914 if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DConstantFolder.h264 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
266 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
269 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
271 return ConstantExpr::getInsertValue(Agg, Val, IdxList); in CreateInsertValue()
H A DNoFolder.h329 Instruction *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
331 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
334 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
336 return InsertValueInst::Create(Agg, Val, IdxList); in CreateInsertValue()
H A DInstructions.h2312 inline ExtractValueInst(Value *Agg,
2316 inline ExtractValueInst(Value *Agg,
2329 static ExtractValueInst *Create(Value *Agg,
2337 static ExtractValueInst *Create(Value *Agg,
2389 ExtractValueInst::ExtractValueInst(Value *Agg,
2525 InsertValueInst::InsertValueInst(Value *Agg,
2530 : Instruction(Agg->getType(), InsertValue,
2533 init(Agg, Val, Idxs, NameStr);
2536 InsertValueInst::InsertValueInst(Value *Agg,
2541 : Instruction(Agg->getType(), InsertValue,
[all …]
H A DIRBuilder.h2083 Value *CreateExtractValue(Value *Agg,
2086 if (auto *AggC = dyn_cast<Constant>(Agg))
2088 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
2091 Value *CreateInsertValue(Value *Agg, Value *Val,
2094 if (auto *AggC = dyn_cast<Constant>(Agg))
2097 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
H A DConstants.h1203 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs,
1205 static Constant *getInsertValue(Constant *Agg, Constant *Val,
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DTargetFolder.h256 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
258 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
261 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
263 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList)); in CreateInsertValue()
H A DConstantFolding.h96 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
102 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
H A DInstructionSimplify.h202 Value *SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
210 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DCFLGraph.h491 auto *Agg = Inst.getOperand(0); in visitInsertValueInst() local
493 addAssignEdge(Agg, &Inst); in visitInsertValueInst()
H A DInstructionSimplify.cpp4168 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument
4171 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in SimplifyInsertValueInst()
4177 return Agg; in SimplifyInsertValueInst()
4181 if (EV->getAggregateOperand()->getType() == Agg->getType() && in SimplifyInsertValueInst()
4184 if (match(Agg, m_Undef())) in SimplifyInsertValueInst()
4188 if (Agg == EV->getAggregateOperand()) in SimplifyInsertValueInst()
4189 return Agg; in SimplifyInsertValueInst()
4195 Value *llvm::SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument
4228 if (auto *CAgg = dyn_cast<Constant>(Agg)) in SimplifyExtractValueInst()
4233 for (auto *IVI = dyn_cast<InsertValueInst>(Agg); IVI != nullptr; in SimplifyExtractValueInst()
[all …]
H A DConstantFolding.cpp2274 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldVectorCall() local
2275 if (!Agg) in ConstantFoldVectorCall()
2278 Lane[J] = Agg; in ConstantFoldVectorCall()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DSROA.cpp3248 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument
3252 Ty, Agg, MinAlign(BaseAlign, Offset), Name); in emitSplitOps()
3263 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3278 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3299 void emitFunc(Type *Ty, Value *&Agg, unsigned Align, const Twine &Name) { in emitFunc()
3307 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc()
3339 void emitFunc(Type *Ty, Value *&Agg, unsigned Align, const Twine &Name) { in emitFunc()
3346 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"); in emitFunc()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/Interpreter/
H A DExecution.cpp1881 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
1883 GenericValue Src = getOperandValue(Agg, SF); in visitExtractValueInst()
1894 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitExtractValueInst()
1924 Value *Agg = I.getAggregateOperand(); in visitInsertValueInst() local
1926 GenericValue Src1 = getOperandValue(Agg, SF); in visitInsertValueInst()
1940 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitInsertValueInst()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2562 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
2565 return replaceInstUsesWith(EV, Agg); in visitExtractValueInst()
2567 if (Value *V = SimplifyExtractValueInst(Agg, EV.getIndices(), in visitExtractValueInst()
2571 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
2622 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) { in visitExtractValueInst()
2671 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) in visitExtractValueInst()
/freebsd-12.1/contrib/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp3704 Value *Agg; in parseFunctionBody() local
3705 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) in parseFunctionBody()
3713 Type *CurTy = Agg->getType(); in parseFunctionBody()
3735 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in parseFunctionBody()
3743 Value *Agg; in parseFunctionBody() local
3744 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) in parseFunctionBody()
3755 Type *CurTy = Agg->getType(); in parseFunctionBody()
3780 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in parseFunctionBody()
/freebsd-12.1/contrib/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp3432 SDValue Agg = getValue(Op0); in visitInsertValue() local
3437 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
3448 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
3482 SDValue Agg = getValue(Op0); in visitExtractValue() local
3487 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue()
3488 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()
/freebsd-12.1/contrib/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp3478 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
3480 Value *AggShadow = getShadow(Agg); in visitExtractValueInst()