Home
last modified time | relevance | path

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

12

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstantFold.h42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DConstantsContext.h221 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
225 Op<0>() = Agg; in ExtractValueConstantExpr()
252 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument
256 Op<0>() = Agg; in InsertValueConstantExpr()
H A DConstantFold.cpp1015 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
1019 return Agg; in ConstantFoldExtractValueInstruction()
1021 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
1027 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
1035 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
1038 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction()
1042 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
1051 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
1053 return ConstantArray::get(cast<ArrayType>(Agg->getType()), Result); in ConstantFoldInsertValueInstruction()
H A DConstants.cpp2611 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument
2614 assert(Agg->getType()->isFirstClassType() && in getInsertValue()
2617 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue()
2622 if (Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs)) in getInsertValue()
2628 Constant *ArgVec[] = { Agg, Val }; in getInsertValue()
2631 LLVMContextImpl *pImpl = Agg->getContext().pImpl; in getInsertValue()
2635 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue() argument
2637 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
2640 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue()
2644 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
[all …]
H A DInstructions.cpp2319 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
2329 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
2331 Op<0>() = Agg; in init()
2374 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
2383 if (ArrayType *AT = dyn_cast<ArrayType>(Agg)) { in getIndexedType()
2386 Agg = AT->getElementType(); in getIndexedType()
2387 } else if (StructType *ST = dyn_cast<StructType>(Agg)) { in getIndexedType()
2390 Agg = ST->getElementType(Index); in getIndexedType()
2396 return const_cast<Type*>(Agg); in getIndexedType()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DConstantFolder.h272 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 DNoFolder.h307 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 DInstructions.h2341 inline ExtractValueInst(Value *Agg,
2345 inline ExtractValueInst(Value *Agg,
2358 static ExtractValueInst *Create(Value *Agg,
2363 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2366 static ExtractValueInst *Create(Value *Agg,
2370 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
2377 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2418 ExtractValueInst::ExtractValueInst(Value *Agg,
2422 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
2423 ExtractValue, Agg, InsertBefore) {
[all …]
H A DIRBuilderFolder.h133 virtual Value *CreateExtractValue(Constant *Agg,
135 virtual Value *CreateInsertValue(Constant *Agg, Constant *Val,
H A DIRBuilder.h2450 Value *CreateExtractValue(Value *Agg,
2453 if (auto *AggC = dyn_cast<Constant>(Agg))
2455 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
2458 Value *CreateInsertValue(Value *Agg, Value *Val,
2461 if (auto *AggC = dyn_cast<Constant>(Agg))
2464 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
H A DConstants.h1255 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs,
1257 static Constant *getInsertValue(Constant *Agg, Constant *Val,
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/
H A DTargetFolder.h266 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 DConstantFolding.h103 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
109 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
H A DInstructionSimplify.h239 Value *SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
247 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-c-test/
H A Decho.cpp782 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
788 Dst = LLVMBuildExtractValue(Builder, Agg, I, Name); in CloneInstruction()
792 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
799 Dst = LLVMBuildInsertValue(Builder, Agg, V, I, Name); in CloneInstruction()
803 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
805 Dst = LLVMBuildExtractElement(Builder, Agg, Index, Name); in CloneInstruction()
809 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
812 Dst = LLVMBuildInsertElement(Builder, Agg, V, Index, Name); in CloneInstruction()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DCFLGraph.h498 auto *Agg = Inst.getOperand(0); in visitInsertValueInst() local
500 addAssignEdge(Agg, &Inst); in visitInsertValueInst()
H A DInstructionSimplify.cpp4373 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument
4376 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in SimplifyInsertValueInst()
4382 return Agg; in SimplifyInsertValueInst()
4386 if (EV->getAggregateOperand()->getType() == Agg->getType() && in SimplifyInsertValueInst()
4389 if (Q.isUndefValue(Agg)) in SimplifyInsertValueInst()
4393 if (Agg == EV->getAggregateOperand()) in SimplifyInsertValueInst()
4394 return Agg; in SimplifyInsertValueInst()
4400 Value *llvm::SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument
4403 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Q, RecursionLimit); in SimplifyInsertValueInst()
4443 static Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in SimplifyExtractValueInst() argument
[all …]
H A DConstantFolding.cpp2953 Constant *Agg = Operands[J]->getAggregateElement(I); in ConstantFoldFixedVectorCall() local
2954 if (!Agg) in ConstantFoldFixedVectorCall()
2957 Lane[J] = Agg; in ConstantFoldFixedVectorCall()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/
H A DSROA.cpp3331 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument
3335 Ty, Agg, commonAlignment(BaseAlign, Offset), Name); in emitSplitOps()
3346 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3361 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3383 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3397 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc()
3430 void emitFunc(Type *Ty, Value *&Agg, Align Alignment, const Twine &Name) { in emitFunc()
3437 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"); in emitFunc()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Coroutines/
H A DCoroSplit.cpp533 Value *Agg = UndefValue::get(NewS->getType()); in replaceRetconOrAsyncSuspendUses() local
535 Agg = Builder.CreateInsertValue(Agg, Args[I], I); in replaceRetconOrAsyncSuspendUses()
537 NewS->replaceAllUsesWith(Agg); in replaceRetconOrAsyncSuspendUses()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp2991 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
2994 return replaceInstUsesWith(EV, Agg); in visitExtractValueInst()
2996 if (Value *V = SimplifyExtractValueInst(Agg, EV.getIndices(), in visitExtractValueInst()
3000 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
3051 if (WithOverflowInst *WO = dyn_cast<WithOverflowInst>(Agg)) { in visitExtractValueInst()
3075 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) in visitExtractValueInst()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp4196 Value *Agg; in parseFunctionBody() local
4197 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, &FullTy)) in parseFunctionBody()
4226 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in parseFunctionBody()
4234 Value *Agg; in parseFunctionBody() local
4235 if (getValueTypePair(Record, OpNum, NextValueNo, Agg, &FullTy)) in parseFunctionBody()
4246 Type *CurTy = Agg->getType(); in parseFunctionBody()
4271 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in parseFunctionBody()
/netbsd-src/external/gpl3/gcc/dist/libphobos/libdruntime/
H A Dobject.d4468 struct Agg
4479 Agg a;
4500 struct Agg
4511 Agg a;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp3772 SDValue Agg = getValue(Op0); in visitInsertValue() local
3777 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
3788 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
3822 SDValue Agg = getValue(Op0); in visitExtractValue() local
3827 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue()
3828 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()

12