Searched refs:Agg (Results 1 - 25 of 30) sorted by relevance

12

/external/clang/test/CodeGenCXX/
H A Dmicrosoft-abi-byval-thunks.cpp5 struct Agg { struct in namespace:byval_thunk
6 Agg();
7 Agg(const Agg &);
8 ~Agg();
12 struct A { virtual void foo(Agg x); };
13 struct B { virtual void foo(Agg x); };
14 struct C : A, B { C(); virtual void foo(Agg x); };
18 // CHECK32: (%"struct.byval_thunk::C"* %this, <{ %"struct.byval_thunk::Agg" }>* inalloca)
21 // CHECK32: (%"struct.byval_thunk::C"* %{{.*}}, <{ %"struct.byval_thunk::Agg" }>* inalloc
34 struct Agg { struct in namespace:stdcall_thunk
66 struct Agg { struct in namespace:sret_thunk
[all...]
H A Dconst-init-cxx11.cpp440 struct Agg { int k; }; struct in namespace:LocalVarInit
454 int agg() { constexpr Agg a = { f(101) }; return a.k; }
/external/clang/test/CodeGen/
H A Dblock-byref-aggr.c4 typedef struct { int v; } Agg; typedef in typeref:struct:__anon1779
5 Agg makeAgg(void);
11 __block Agg a = {100};
37 __block Agg a, b;
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/
H A Dp7-0x.cpp30 struct Agg { struct
47 Agg<char> a1 = {1.0F}; // expected-error {{type 'float' cannot be narrowed to 'char'}} expected-note {{silence}}
48 Agg<char> a2 = {1.0}; // expected-error {{ cannot be narrowed }} expected-note {{silence}}
49 Agg<char> a3 = {1.0L}; // expected-error {{ cannot be narrowed }} expected-note {{silence}}
54 Agg<char> a4 = {f}; // expected-error {{ cannot be narrowed }} expected-note {{silence}}
55 Agg<char> a5 = {d}; // expected-error {{ cannot be narrowed }} expected-note {{silence}}
56 Agg<char> a6 = {ld}; // expected-error {{ cannot be narrowed }} expected-note {{silence}}
58 Agg<char> ce1 = { Convert<float>(1.0) }; // expected-error {{type 'float' cannot be narrowed to 'char'}} expected-note {{silence}}
59 Agg<char> ce2 = { ConvertVar<double>() }; // expected-error {{type 'double' cannot be narrowed to 'char'}} expected-note {{silence}}
62 Agg<boo
[all...]
H A Dp7-cxx11-nowarn.cpp31 struct Agg { struct
48 Agg<char> a1 = {1.0F}; // expected-warning {{type 'float' cannot be narrowed to 'char'}} expected-note {{silence}}
49 Agg<char> a2 = {1.0}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}}
50 Agg<char> a3 = {1.0L}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}}
55 Agg<char> a4 = {f}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}}
56 Agg<char> a5 = {d}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}}
57 Agg<char> a6 = {ld}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}}
59 Agg<char> ce1 = { Convert<float>(1.0) }; // expected-warning {{type 'float' cannot be narrowed to 'char'}} expected-note {{silence}}
60 Agg<char> ce2 = { ConvertVar<double>() }; // expected-warning {{type 'double' cannot be narrowed to 'char'}} expected-note {{silence}}
75 Agg<floa
[all...]
/external/clang/test/SemaCXX/
H A Daggregate-initialization.cpp73 class Agg { class
80 Agg agg1;
81 Agg agg2;
H A Dcxx98-compat.cpp114 struct Agg { int a, b; } const &agg = { 1, 2 }; // expected-warning {{reference initialized from initializer list is incompatible with C++98}} struct
/external/clang/test/CXX/basic/basic.types/
H A Dp10.cpp69 struct Agg { struct
73 constexpr int f3(Agg a) { return a.a; }
114 struct LitMemBase : Agg {
115 Agg agg;
127 Agg agg[24];
/external/llvm/lib/IR/
H A DConstantFold.h42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DConstantsContext.h170 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, argument
174 Op<0>() = Agg;
195 InsertValueConstantExpr(Constant *Agg, Constant *Val, argument
199 Op<0>() = Agg;
H A DConstantFold.cpp865 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, argument
869 return Agg;
871 if (Constant *C = Agg->getAggregateElement(Idxs[0]))
877 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, argument
885 if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
887 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType()))
890 NumElts = Agg->getType()->getVectorNumElements();
894 Constant *C = Agg->getAggregateElement(i);
903 if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
905 if (ArrayType *AT = dyn_cast<ArrayType>(Agg
[all...]
H A DInstructions.cpp1271 static Type *getIndexedTypeInternal(Type *Agg, ArrayRef<IndexTy> IdxList) { argument
1274 return Agg;
1278 if (!Agg->isSized())
1283 CompositeType *CT = dyn_cast<CompositeType>(Agg);
1287 Agg = CT->getTypeAtIndex(Index);
1289 return CurIdx == IdxList.size() ? Agg : nullptr;
1555 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, argument
1565 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
1567 Op<0>() = Agg;
1610 Type *ExtractValueInst::getIndexedType(Type *Agg, argument
[all...]
H A DConstants.cpp2163 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, argument
2166 assert(Agg->getType()->isFirstClassType() &&
2169 assert(ExtractValueInst::getIndexedType(Agg->getType(),
2174 if (Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs))
2180 Constant *ArgVec[] = { Agg, Val };
2183 LLVMContextImpl *pImpl = Agg->getContext().pImpl;
2187 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, argument
2189 assert(Agg->getType()->isFirstClassType() &&
2192 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs);
2196 assert(Agg
[all...]
/external/llvm/include/llvm/Analysis/
H A DConstantFolding.h72 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DTargetFolder.h257 Constant *CreateExtractValue(Constant *Agg, argument
259 return Fold(ConstantExpr::getExtractValue(Agg, IdxList));
262 Constant *CreateInsertValue(Constant *Agg, Constant *Val, argument
264 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList));
H A DInstructionSimplify.h240 Value *SimplifyInsertValueInst(Value *Agg, Value *Val,
/external/llvm/include/llvm/IR/
H A DConstantFolder.h232 Constant *CreateExtractValue(Constant *Agg, argument
234 return ConstantExpr::getExtractValue(Agg, IdxList);
237 Constant *CreateInsertValue(Constant *Agg, Constant *Val, argument
239 return ConstantExpr::getInsertValue(Agg, Val, IdxList);
H A DNoFolder.h286 Instruction *CreateExtractValue(Constant *Agg, argument
288 return ExtractValueInst::Create(Agg, IdxList);
291 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, argument
293 return InsertValueInst::Create(Agg, Val, IdxList);
H A DInstructions.h1907 inline ExtractValueInst(Value *Agg,
1911 inline ExtractValueInst(Value *Agg,
1923 static ExtractValueInst *Create(Value *Agg, argument
1928 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
1930 static ExtractValueInst *Create(Value *Agg, argument
1934 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
1941 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
1981 ExtractValueInst::ExtractValueInst(Value *Agg, argument
1985 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
1986 ExtractValue, Agg, InsertBefor
1989 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
2041 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = nullptr) argument
2047 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
2110 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument
2120 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
[all...]
H A DIRBuilder.h1519 Value *CreateExtractValue(Value *Agg, argument
1522 if (Constant *AggC = dyn_cast<Constant>(Agg))
1524 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
1527 Value *CreateInsertValue(Value *Agg, Value *Val, argument
1530 if (Constant *AggC = dyn_cast<Constant>(Agg))
1533 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
H A DConstants.h1105 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs,
1107 static Constant *getInsertValue(Constant *Agg, Constant *Val,
/external/llvm/lib/Transforms/Scalar/
H A DSROA.cpp3205 /// \param Agg The aggregate value being built up or stored, depending on
3207 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) {
3209 return static_cast<Derived *>(this)->emitFunc(Ty, Agg, Name);
3219 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx));
3234 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx));
3251 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) {
3257 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert");
3283 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) {
3287 IRB.CreateExtractValue(Agg, Indice
[all...]
/external/llvm/lib/Analysis/
H A DCFLAliasAnalysis.cpp526 auto *Agg = Inst.getOperand(0); local
528 Output.push_back(Edge(&Inst, Agg, EdgeType::Assign, AttrNone));
H A DInstructionSimplify.cpp3339 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, argument
3342 if (Constant *CAgg = dyn_cast<Constant>(Agg))
3348 return Agg;
3352 if (EV->getAggregateOperand()->getType() == Agg->getType() &&
3355 if (match(Agg, m_Undef()))
3359 if (Agg == EV->getAggregateOperand())
3360 return Agg;
3367 Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL,
3370 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query(DL, TLI, DT, AC, CxtI),
3366 SimplifyInsertValueInst( Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL, const TargetLibraryInfo *TLI, const DominatorTree *DT, AssumptionCache *AC, const Instruction *CxtI) argument
H A DConstantFolding.cpp1747 Constant *Agg = Operands[J]->getAggregateElement(I); local
1748 if (!Agg)
1751 Lane[J] = Agg;

Completed in 708 milliseconds

12