| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | Evaluator.cpp | 124 if (auto *Agg = Val.dyn_cast<MutableAggregate *>()) in clear() local 125 delete Agg; in clear() 133 while (const auto *Agg = V->Val.dyn_cast<MutableAggregate *>()) { 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 = MV->Val.get<MutableAggregate *>(); 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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Analysis/ |
| H A D | InstSimplifyFolder.h | 88 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 D | TargetFolder.h | 141 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument 143 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue() 148 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument 150 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
|
| H A D | ConstantFolding.h | 119 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val, 125 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
|
| H A D | InstructionSimplify.h | 258 Value *simplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, 266 Value *simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | ConstantFold.h | 46 Constant *ConstantFoldExtractValueInstruction(Constant *Agg, 48 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
|
| H A D | ConstantFolder.h | 130 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument 132 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue() 137 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument 139 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
|
| H A D | IRBuilderFolder.h | 59 virtual Value *FoldExtractValue(Value *Agg, 62 virtual Value *FoldInsertValue(Value *Agg, Value *Val,
|
| H A D | NoFolder.h | 86 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument 91 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
|
| H A D | Instructions.h | 2464 inline ExtractValueInst(Value *Agg, 2468 inline ExtractValueInst(Value *Agg, 2481 static ExtractValueInst *Create(Value *Agg, 2486 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 2489 static ExtractValueInst *Create(Value *Agg, 2493 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 2500 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 2541 ExtractValueInst::ExtractValueInst(Value *Agg, 2545 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), 2546 ExtractValue, Agg, InsertBefore) { [all …]
|
| H A D | IRBuilder.h | 2397 Value *CreateExtractValue(Value *Agg, ArrayRef<unsigned> Idxs, 2399 if (auto *V = Folder.FoldExtractValue(Agg, Idxs)) 2401 return Insert(ExtractValueInst::Create(Agg, Idxs), Name); 2404 Value *CreateInsertValue(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, 2406 if (auto *V = Folder.FoldInsertValue(Agg, Val, Idxs)) 2408 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-c-test/ |
| H A D | echo.cpp | 787 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local 793 Dst = LLVMBuildExtractValue(Builder, Agg, I, Name); in CloneInstruction() 797 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local 804 Dst = LLVMBuildInsertValue(Builder, Agg, V, I, Name); in CloneInstruction() 808 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local 810 Dst = LLVMBuildExtractElement(Builder, Agg, Index, Name); in CloneInstruction() 814 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local 817 Dst = LLVMBuildInsertElement(Builder, Agg, V, Index, Name); in CloneInstruction()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 286 Value *Agg = IRB.CreateInsertValue(PoisonValue::get(StructTy), Mul, {0}); in buildUMulWithOverflowFunc() local 287 Value *Res = IRB.CreateInsertValue(Agg, Overflow, {1}); in buildUMulWithOverflowFunc()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 775 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument 779 return Agg; in ConstantFoldExtractValueInstruction() 781 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 787 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument 795 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction() 798 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction() 802 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction() 811 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction() 813 return ConstantArray::get(cast<ArrayType>(Agg->getType()), Result); in ConstantFoldInsertValueInstruction()
|
| H A D | Instructions.cpp | 2719 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument 2729 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init() 2731 Op<0>() = Agg; in init() 2774 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument 2783 if (ArrayType *AT = dyn_cast<ArrayType>(Agg)) { in getIndexedType() 2786 Agg = AT->getElementType(); in getIndexedType() 2787 } else if (StructType *ST = dyn_cast<StructType>(Agg)) { in getIndexedType() 2790 Agg = ST->getElementType(Index); in getIndexedType() 2796 return const_cast<Type*>(Agg); in getIndexedType()
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 4868 static Value *simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument 4871 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in simplifyInsertValueInst() 4878 (Q.isUndefValue(Val) && isGuaranteedNotToBePoison(Agg))) in simplifyInsertValueInst() 4879 return Agg; in simplifyInsertValueInst() 4883 if (EV->getAggregateOperand()->getType() == Agg->getType() && in simplifyInsertValueInst() 4886 if (Q.isUndefValue(Agg)) in simplifyInsertValueInst() 4890 if (Agg == EV->getAggregateOperand()) in simplifyInsertValueInst() 4891 return Agg; in simplifyInsertValueInst() 4897 Value *llvm::simplifyInsertValueInst(Value *Agg, Value *Val, in simplifyInsertValueInst() argument 4900 return ::simplifyInsertValueInst(Agg, Val, Idxs, Q, RecursionLimit); in simplifyInsertValueInst() [all …]
|
| H A D | ConstantFolding.cpp | 3232 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldFixedVectorCall() local 3233 if (!Agg) in ConstantFoldFixedVectorCall() 3236 Lane[J] = Agg; in ConstantFoldFixedVectorCall()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Coroutines/ |
| H A D | CoroSplit.cpp | 568 Value *Agg = UndefValue::get(NewS->getType()); in replaceRetconOrAsyncSuspendUses() local 570 Agg = Builder.CreateInsertValue(Agg, Args[I], I); in replaceRetconOrAsyncSuspendUses() 572 NewS->replaceAllUsesWith(Agg); in replaceRetconOrAsyncSuspendUses()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | SROA.cpp | 3650 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument 3654 Ty, Agg, commonAlignment(BaseAlign, Offset), Name); in emitSplitOps() 3665 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps() 3680 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps() 3703 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc() 3717 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc() 3750 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc() 3757 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"); in emitFunc()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 3350 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local 3353 return replaceInstUsesWith(EV, Agg); in visitExtractValueInst() 3355 if (Value *V = simplifyExtractValueInst(Agg, EV.getIndices(), in visitExtractValueInst() 3359 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst() 3414 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) { in visitExtractValueInst() 3443 if (auto *PN = dyn_cast<PHINode>(Agg)) in visitExtractValueInst()
|
| /openbsd-src/gnu/llvm/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 4995 Value *Agg; in parseFunctionBody() local 4997 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody() 4999 Type *Ty = Agg->getType(); in parseFunctionBody() 5031 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in parseFunctionBody() 5039 Value *Agg; in parseFunctionBody() local 5041 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, AggTypeID, CurBB)) in parseFunctionBody() 5053 Type *CurTy = Agg->getType(); in parseFunctionBody() 5078 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in parseFunctionBody()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 3842 SDValue Agg = getValue(Op0); in visitInsertValue() local 3847 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue() 3858 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue() 3887 SDValue Agg = getValue(Op0); in visitExtractValue() local 3892 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue() 3893 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Instrumentation/ |
| H A D | DataFlowSanitizer.cpp | 2808 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local 2809 Value *AggShadow = DFSF.getShadow(Agg); in visitExtractValueInst()
|
| H A D | MemorySanitizer.cpp | 4430 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local 4432 Value *AggShadow = getShadow(Agg); in visitExtractValueInst()
|