| /freebsd-13.1/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.h | 42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg, 44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
|
| H A D | ConstantsContext.h | 217 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument 221 Op<0>() = Agg; in ExtractValueConstantExpr() 247 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument 251 Op<0>() = Agg; in InsertValueConstantExpr()
|
| H A D | ConstantFold.cpp | 771 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument 775 return Agg; in ConstantFoldExtractValueInstruction() 777 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 783 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument 791 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction() 794 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction() 798 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction() 807 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction() 809 return ConstantArray::get(cast<ArrayType>(Agg->getType()), Result); in ConstantFoldInsertValueInstruction()
|
| H A D | Constants.cpp | 2613 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument 2616 assert(Agg->getType()->isFirstClassType() && in getInsertValue() 2619 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue() 2630 Constant *ArgVec[] = { Agg, Val }; in getInsertValue() 2633 LLVMContextImpl *pImpl = Agg->getContext().pImpl; in getInsertValue() 2639 assert(Agg->getType()->isFirstClassType() && in getExtractValue() 2642 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue() 2646 assert(Agg->getType()->isFirstClassType() && in getExtractValue() 2648 if (Constant *FC = ConstantFoldExtractValueInstruction(Agg, Idxs)) in getExtractValue() 2654 Constant *ArgVec[] = { Agg }; in getExtractValue() [all …]
|
| H A D | Instructions.cpp | 2333 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument 2343 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init() 2345 Op<0>() = Agg; in init() 2388 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument 2397 if (ArrayType *AT = dyn_cast<ArrayType>(Agg)) { in getIndexedType() 2400 Agg = AT->getElementType(); in getIndexedType() 2401 } else if (StructType *ST = dyn_cast<StructType>(Agg)) { in getIndexedType() 2404 Agg = ST->getElementType(Index); in getIndexedType() 2410 return const_cast<Type*>(Agg); in getIndexedType()
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | ConstantFolder.h | 272 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument 274 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue() 277 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument 279 return ConstantExpr::getInsertValue(Agg, Val, IdxList); in CreateInsertValue()
|
| H A D | NoFolder.h | 307 Instruction *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument 309 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue() 312 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument 314 return InsertValueInst::Create(Agg, Val, IdxList); in CreateInsertValue()
|
| H A D | Instructions.h | 2353 inline ExtractValueInst(Value *Agg, 2357 inline ExtractValueInst(Value *Agg, 2370 static ExtractValueInst *Create(Value *Agg, 2378 static ExtractValueInst *Create(Value *Agg, 2430 ExtractValueInst::ExtractValueInst(Value *Agg, 2565 InsertValueInst::InsertValueInst(Value *Agg, 2570 : Instruction(Agg->getType(), InsertValue, 2573 init(Agg, Val, Idxs, NameStr); 2576 InsertValueInst::InsertValueInst(Value *Agg, 2581 : Instruction(Agg->getType(), InsertValue, [all …]
|
| H A D | IRBuilderFolder.h | 133 virtual Value *CreateExtractValue(Constant *Agg, 135 virtual Value *CreateInsertValue(Constant *Agg, Constant *Val,
|
| H A D | IRBuilder.h | 2497 Value *CreateExtractValue(Value *Agg, 2500 if (auto *AggC = dyn_cast<Constant>(Agg)) 2502 return Insert(ExtractValueInst::Create(Agg, Idxs), Name); 2505 Value *CreateInsertValue(Value *Agg, Value *Val, 2508 if (auto *AggC = dyn_cast<Constant>(Agg)) 2511 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
|
| H A D | Constants.h | 1260 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, 1262 static Constant *getInsertValue(Constant *Agg, Constant *Val,
|
| /freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/ |
| H A D | ConstantFolding.h | 103 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, 109 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
|
| H A D | TargetFolder.h | 266 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument 268 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue() 271 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument 273 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList)); in CreateInsertValue()
|
| H A D | InstructionSimplify.h | 255 Value *SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, 263 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | CFLGraph.h | 498 auto *Agg = Inst.getOperand(0); in visitInsertValueInst() local 500 addAssignEdge(Agg, &Inst); in visitInsertValueInst()
|
| H A D | InstructionSimplify.cpp | 4445 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument 4448 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in SimplifyInsertValueInst() 4454 return Agg; in SimplifyInsertValueInst() 4458 if (EV->getAggregateOperand()->getType() == Agg->getType() && in SimplifyInsertValueInst() 4461 if (Q.isUndefValue(Agg)) in SimplifyInsertValueInst() 4465 if (Agg == EV->getAggregateOperand()) in SimplifyInsertValueInst() 4466 return Agg; in SimplifyInsertValueInst() 4472 Value *llvm::SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument 4517 if (auto *CAgg = dyn_cast<Constant>(Agg)) in SimplifyExtractValueInst() 4522 for (auto *IVI = dyn_cast<InsertValueInst>(Agg); IVI != nullptr; in SimplifyExtractValueInst() [all …]
|
| H A D | ConstantFolding.cpp | 3106 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldFixedVectorCall() local 3107 if (!Agg) in ConstantFoldFixedVectorCall() 3110 Lane[J] = Agg; in ConstantFoldFixedVectorCall()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
| H A D | Execution.cpp | 1928 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-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 3346 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument 3350 Ty, Agg, commonAlignment(BaseAlign, Offset), Name); in emitSplitOps() 3361 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps() 3376 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps() 3398 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc() 3412 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc() 3445 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc() 3452 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"); in emitFunc()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroSplit.cpp | 536 Value *Agg = UndefValue::get(NewS->getType()); in replaceRetconOrAsyncSuspendUses() local 538 Agg = Builder.CreateInsertValue(Agg, Args[I], I); in replaceRetconOrAsyncSuspendUses() 540 NewS->replaceAllUsesWith(Agg); in replaceRetconOrAsyncSuspendUses()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 3057 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local 3060 return replaceInstUsesWith(EV, Agg); in visitExtractValueInst() 3062 if (Value *V = SimplifyExtractValueInst(Agg, EV.getIndices(), in visitExtractValueInst() 3066 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst() 3117 if (WithOverflowInst *WO = dyn_cast<WithOverflowInst>(Agg)) { in visitExtractValueInst() 3164 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) in visitExtractValueInst()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 4166 Value *Agg; in parseFunctionBody() local 4167 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) in parseFunctionBody() 4169 Type *Ty = Agg->getType(); in parseFunctionBody() 4197 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in parseFunctionBody() 4205 Value *Agg; in parseFunctionBody() local 4206 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) in parseFunctionBody() 4217 Type *CurTy = Agg->getType(); in parseFunctionBody() 4242 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in parseFunctionBody()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3773 SDValue Agg = getValue(Op0); in visitInsertValue() local 3778 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue() 3789 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue() 3823 SDValue Agg = getValue(Op0); in visitExtractValue() local 3828 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue() 3829 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | DataFlowSanitizer.cpp | 2638 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local 2639 Value *AggShadow = DFSF.getShadow(Agg); in visitExtractValueInst()
|
| H A D | MemorySanitizer.cpp | 3996 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local 3998 Value *AggShadow = getShadow(Agg); in visitExtractValueInst()
|