Home
last modified time | relevance | path

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

/external/clang/test/SemaCXX/
Daggregate-initialization.cpp73 class Agg { class
80 Agg agg1;
81 Agg agg2;
/external/llvm/lib/VMCore/
DConstantFold.h42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
DConstantFold.cpp882 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
886 return Agg; in ConstantFoldExtractValueInstruction()
888 if (isa<UndefValue>(Agg)) // ev(undef, x) -> undef in ConstantFoldExtractValueInstruction()
889 return UndefValue::get(ExtractValueInst::getIndexedType(Agg->getType(), in ConstantFoldExtractValueInstruction()
892 if (isa<ConstantAggregateZero>(Agg)) // ev(0, x) -> 0 in ConstantFoldExtractValueInstruction()
894 Constant::getNullValue(ExtractValueInst::getIndexedType(Agg->getType(), in ConstantFoldExtractValueInstruction()
898 if (ConstantStruct *CS = dyn_cast<ConstantStruct>(Agg)) in ConstantFoldExtractValueInstruction()
902 if (ConstantArray *CA = dyn_cast<ConstantArray>(Agg)) in ConstantFoldExtractValueInstruction()
905 ConstantVector *CV = cast<ConstantVector>(Agg); in ConstantFoldExtractValueInstruction()
910 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
[all …]
DConstants.cpp1732 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument
1734 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue()
1737 assert(Agg->getType()->isFirstClassType() && in getInsertValue()
1739 Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs); in getInsertValue()
1744 Constant *ConstantExpr::getExtractValue(Constant *Agg, in getExtractValue() argument
1746 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
1749 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue()
1753 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
1755 Constant *FC = ConstantFoldExtractValueInstruction(Agg, Idxs); in getExtractValue()
2099 Constant *Agg = getOperand(0); in replaceUsesOfWithOnConstant() local
[all …]
DConstantsContext.h160 ExtractValueConstantExpr(Constant *Agg, in ExtractValueConstantExpr() argument
165 Op<0>() = Agg; in ExtractValueConstantExpr()
185 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument
190 Op<0>() = Agg; in InsertValueConstantExpr()
DInstructions.cpp1074 Type *Agg = PTy->getElementType(); in getIndexedTypeInternal() local
1078 return Agg; in getIndexedTypeInternal()
1082 if (!Agg->isSized()) in getIndexedTypeInternal()
1087 CompositeType *CT = dyn_cast<CompositeType>(Agg); in getIndexedTypeInternal()
1091 Agg = CT->getTypeAtIndex(Index); in getIndexedTypeInternal()
1093 return CurIdx == NumIdx ? Agg : 0; in getIndexedTypeInternal()
1330 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
1340 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
1342 Op<0>() = Agg; in init()
1385 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
[all …]
/external/llvm/include/llvm/
DInstructions.h1388 inline ExtractValueInst(Value *Agg,
1392 inline ExtractValueInst(Value *Agg,
1404 static ExtractValueInst *Create(Value *Agg,
1409 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
1411 static ExtractValueInst *Create(Value *Agg,
1415 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
1422 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
1460 ExtractValueInst::ExtractValueInst(Value *Agg,
1464 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
1465 ExtractValue, Agg, InsertBefore) {
[all …]
DConstants.h815 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs);
816 static Constant *getInsertValue(Constant *Agg, Constant *Val,
/external/llvm/include/llvm/Support/
DConstantFolder.h213 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
215 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
218 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
220 return ConstantExpr::getInsertValue(Agg, Val, IdxList); in CreateInsertValue()
DTargetFolder.h230 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
232 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
235 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
237 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList)); in CreateInsertValue()
DNoFolder.h273 Instruction *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
275 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
278 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
280 return InsertValueInst::Create(Agg, Val, IdxList); in CreateInsertValue()
DIRBuilder.h1187 Value *CreateExtractValue(Value *Agg,
1190 if (Constant *AggC = dyn_cast<Constant>(Agg))
1192 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
1195 Value *CreateInsertValue(Value *Agg, Value *Val,
1198 if (Constant *AggC = dyn_cast<Constant>(Agg))
1201 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp1184 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
1187 return ReplaceInstUsesWith(EV, Agg); in visitExtractValueInst()
1189 if (Constant *C = dyn_cast<Constant>(Agg)) { in visitExtractValueInst()
1208 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
1259 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) { in visitExtractValueInst()
1308 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) in visitExtractValueInst()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp272 static Constant *getAggregateConstantElement(Constant *Agg, Constant *Idx) { in getAggregateConstantElement() argument
277 if (ConstantStruct *CS = dyn_cast<ConstantStruct>(Agg)) { in getAggregateConstantElement()
279 } else if (ConstantArray *CA = dyn_cast<ConstantArray>(Agg)) { in getAggregateConstantElement()
281 } else if (ConstantVector *CP = dyn_cast<ConstantVector>(Agg)) { in getAggregateConstantElement()
283 } else if (isa<ConstantAggregateZero>(Agg)) { in getAggregateConstantElement()
284 if (StructType *STy = dyn_cast<StructType>(Agg->getType())) { in getAggregateConstantElement()
288 dyn_cast<SequentialType>(Agg->getType())) { in getAggregateConstantElement()
291 } else if (isa<UndefValue>(Agg)) { in getAggregateConstantElement()
292 if (StructType *STy = dyn_cast<StructType>(Agg->getType())) { in getAggregateConstantElement()
296 dyn_cast<SequentialType>(Agg->getType())) { in getAggregateConstantElement()
/external/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp2196 Value *Agg; in ParseFunctionBody() local
2197 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) in ParseFunctionBody()
2209 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); in ParseFunctionBody()
2217 Value *Agg; in ParseFunctionBody() local
2218 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) in ParseFunctionBody()
2233 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx); in ParseFunctionBody()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAGBuilder.cpp2905 SDValue Agg = getValue(Op0); in visitInsertValue() local
2910 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
2921 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitInsertValue()
2949 SDValue Agg = getValue(Op0); in visitExtractValue() local
2954 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) : in visitExtractValue()
2955 SDValue(Agg.getNode(), Agg.getResNo() + i); in visitExtractValue()