Home
last modified time | relevance | path

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

123

/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/
Dp7-0x.cpp30 struct Agg { struct
47Agg<char> a1 = {1.0F}; // expected-error {{type 'float' cannot be narrowed to 'char'}} expected-n… in float_to_int() argument
48 Agg<char> a2 = {1.0}; // expected-error {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
49 Agg<char> a3 = {1.0L}; // expected-error {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
54 Agg<char> a4 = {f}; // expected-error {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
55 Agg<char> a5 = {d}; // expected-error {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
56 Agg<char> a6 = {ld}; // expected-error {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
58Agg<char> ce1 = { Convert<float>(1.0) }; // expected-error {{type 'float' cannot be narrowed to 'c… in float_to_int()
59Agg<char> ce2 = { ConvertVar<double>() }; // expected-error {{type 'double' cannot be narrowed to … in float_to_int()
62Agg<bool> ab = {0.0}; // expected-error {{type 'double' cannot be narrowed to 'bool'}} expected-no… in float_to_int()
[all …]
Dp7-cxx11-nowarn.cpp31 struct Agg { struct
48Agg<char> a1 = {1.0F}; // expected-warning {{type 'float' cannot be narrowed to 'char'}} expected… in float_to_int() argument
49 Agg<char> a2 = {1.0}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
50 Agg<char> a3 = {1.0L}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
55 Agg<char> a4 = {f}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
56 Agg<char> a5 = {d}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
57 Agg<char> a6 = {ld}; // expected-warning {{ cannot be narrowed }} expected-note {{silence}} in float_to_int()
59Agg<char> ce1 = { Convert<float>(1.0) }; // expected-warning {{type 'float' cannot be narrowed to … in float_to_int()
60Agg<char> ce2 = { ConvertVar<double>() }; // expected-warning {{type 'double' cannot be narrowed t… in float_to_int()
75 Agg<float> f1 = {f}; // OK (no-op) in shrink_float()
[all …]
/external/clang/test/CodeGenCXX/
Dmicrosoft-abi-byval-thunks.cpp5 struct Agg { struct
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); };
34 struct Agg { struct
35 Agg();
36 Agg(const Agg &);
[all …]
Dconst-init-cxx11.cpp441 struct Agg { int k; }; struct
455 int agg() { constexpr Agg a = { f(101) }; return a.k; } in agg()
/external/clang/test/CodeGen/
Dblock-byref-aggr.c4 typedef struct { int v; } Agg; typedef
5 Agg makeAgg(void);
11 __block Agg a = {100}; in test0()
37 __block Agg a, b; in test1()
/external/clang/test/CXX/basic/basic.types/
Dp10.cpp69 struct Agg { struct
73 constexpr int f3(Agg a) { return a.a; } in f3() argument
114 struct LitMemBase : Agg {
115 Agg agg;
127 Agg agg[24];
/external/clang/test/SemaCXX/
Daggregate-initialization.cpp81 class Agg { class
88 Agg agg1;
89 Agg agg2;
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DConstantFold.h43 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
45 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
DConstantsContext.h175 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
179 Op<0>() = Agg; in ExtractValueConstantExpr()
206 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument
210 Op<0>() = Agg; in InsertValueConstantExpr()
DConstants.cpp2119 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument
2122 assert(Agg->getType()->isFirstClassType() && in getInsertValue()
2125 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue()
2130 if (Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs)) in getInsertValue()
2136 Constant *ArgVec[] = { Agg, Val }; in getInsertValue()
2139 LLVMContextImpl *pImpl = Agg->getContext().pImpl; in getInsertValue()
2143 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue() argument
2145 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
2148 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue()
2152 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
[all …]
/external/llvm/lib/IR/
DConstantFold.h41 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
43 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
DConstantsContext.h168 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
172 Op<0>() = Agg; in ExtractValueConstantExpr()
200 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument
204 Op<0>() = Agg; in InsertValueConstantExpr()
DConstantFold.cpp870 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
874 return Agg; in ConstantFoldExtractValueInstruction()
876 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
882 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
890 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
892 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
895 NumElts = Agg->getType()->getVectorNumElements(); in ConstantFoldInsertValueInstruction()
899 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
908 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
910 if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
/external/llvm/include/llvm/IR/
DConstantFolder.h232 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
234 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
237 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
239 return ConstantExpr::getInsertValue(Agg, Val, IdxList); in CreateInsertValue()
DNoFolder.h286 Instruction *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
288 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
291 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
293 return InsertValueInst::Create(Agg, Val, IdxList); in CreateInsertValue()
DInstructions.h2240 inline ExtractValueInst(Value *Agg,
2244 inline ExtractValueInst(Value *Agg,
2257 static ExtractValueInst *Create(Value *Agg,
2262 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2264 static ExtractValueInst *Create(Value *Agg,
2268 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
2275 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2315 ExtractValueInst::ExtractValueInst(Value *Agg,
2319 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
2320 ExtractValue, Agg, InsertBefore) {
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DConstantFolder.h264 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
266 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
269 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
271 return ConstantExpr::getInsertValue(Agg, Val, IdxList); in CreateInsertValue()
DNoFolder.h329 Instruction *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
331 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
334 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
336 return InsertValueInst::Create(Agg, Val, IdxList); in CreateInsertValue()
DInstructions.h2673 inline ExtractValueInst(Value *Agg,
2677 inline ExtractValueInst(Value *Agg,
2690 static ExtractValueInst *Create(Value *Agg,
2695 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2698 static ExtractValueInst *Create(Value *Agg,
2702 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
2709 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2750 ExtractValueInst::ExtractValueInst(Value *Agg,
2754 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
2755 ExtractValue, Agg, InsertBefore) {
[all …]
/external/llvm/include/llvm/Analysis/
DConstantFolding.h101 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
107 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
DTargetFolder.h257 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
259 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
262 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
264 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList)); in CreateInsertValue()
DInstructionSimplify.h241 Value *SimplifyInsertValueInst(Value *Agg, Value *Val,
250 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Analysis/
DTargetFolder.h256 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
258 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
261 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
263 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList)); in CreateInsertValue()
DConstantFolding.h96 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
102 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
DInstructionSimplify.h161 Value *SimplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
169 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,

123