/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
D | p7-0x.cpp | 30 struct Agg { struct 47 …Agg<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() 58 …Agg<char> ce1 = { Convert<float>(1.0) }; // expected-error {{type 'float' cannot be narrowed to 'c… in float_to_int() 59 …Agg<char> ce2 = { ConvertVar<double>() }; // expected-error {{type 'double' cannot be narrowed to … in float_to_int() 62 …Agg<bool> ab = {0.0}; // expected-error {{type 'double' cannot be narrowed to 'bool'}} expected-no… in float_to_int() [all …]
|
D | p7-cxx11-nowarn.cpp | 31 struct Agg { struct 48 …Agg<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() 59 …Agg<char> ce1 = { Convert<float>(1.0) }; // expected-warning {{type 'float' cannot be narrowed to … in float_to_int() 60 …Agg<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/ |
D | microsoft-abi-byval-thunks.cpp | 5 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 …]
|
D | const-init-cxx11.cpp | 440 struct Agg { int k; }; argument 454 int agg() { constexpr Agg a = { f(101) }; return a.k; } in agg()
|
/external/clang/test/CodeGen/ |
D | block-byref-aggr.c | 4 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/ |
D | p10.cpp | 69 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/ |
D | aggregate-initialization.cpp | 73 class Agg { class 80 Agg agg1; 81 Agg agg2;
|
D | cxx98-compat.cpp | 114 …struct Agg { int a, b; } const &agg = { 1, 2 }; // expected-warning {{reference initialized from i… in RangeFor() argument
|
/external/llvm/lib/IR/ |
D | ConstantFold.h | 42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg, 44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
|
D | ConstantsContext.h | 170 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument 174 Op<0>() = Agg; in ExtractValueConstantExpr() 195 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument 199 Op<0>() = Agg; in InsertValueConstantExpr()
|
D | ConstantFold.cpp | 865 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument 869 return Agg; in ConstantFoldExtractValueInstruction() 871 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction() 877 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument 885 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction() 887 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction() 890 NumElts = Agg->getType()->getVectorNumElements(); in ConstantFoldInsertValueInstruction() 894 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction() 903 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction() 905 if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
|
D | Instructions.cpp | 1271 static Type *getIndexedTypeInternal(Type *Agg, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument 1274 return Agg; in getIndexedTypeInternal() 1278 if (!Agg->isSized()) in getIndexedTypeInternal() 1283 CompositeType *CT = dyn_cast<CompositeType>(Agg); in getIndexedTypeInternal() 1287 Agg = CT->getTypeAtIndex(Index); in getIndexedTypeInternal() 1289 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal() 1555 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument 1565 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init() 1567 Op<0>() = Agg; in init() 1610 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument [all …]
|
D | Constants.cpp | 2163 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument 2166 assert(Agg->getType()->isFirstClassType() && in getInsertValue() 2169 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue() 2174 if (Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs)) in getInsertValue() 2180 Constant *ArgVec[] = { Agg, Val }; in getInsertValue() 2183 LLVMContextImpl *pImpl = Agg->getContext().pImpl; in getInsertValue() 2187 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue() argument 2189 assert(Agg->getType()->isFirstClassType() && in getExtractValue() 2192 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue() 2196 assert(Agg->getType()->isFirstClassType() && in getExtractValue() [all …]
|
/external/llvm/include/llvm/IR/ |
D | ConstantFolder.h | 232 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()
|
D | Instructions.h | 1907 inline ExtractValueInst(Value *Agg, 1911 inline ExtractValueInst(Value *Agg, 1923 static ExtractValueInst *Create(Value *Agg, 1928 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 1930 static ExtractValueInst *Create(Value *Agg, 1934 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 1941 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 1981 ExtractValueInst::ExtractValueInst(Value *Agg, 1985 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), 1986 ExtractValue, Agg, InsertBefore) { [all …]
|
D | NoFolder.h | 286 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()
|
D | IRBuilder.h | 1519 Value *CreateExtractValue(Value *Agg, 1522 if (Constant *AggC = dyn_cast<Constant>(Agg)) 1524 return Insert(ExtractValueInst::Create(Agg, Idxs), Name); 1527 Value *CreateInsertValue(Value *Agg, Value *Val, 1530 if (Constant *AggC = dyn_cast<Constant>(Agg)) 1533 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
|
D | Constants.h | 1105 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, 1107 static Constant *getInsertValue(Constant *Agg, Constant *Val,
|
/external/llvm/include/llvm/Analysis/ |
D | TargetFolder.h | 257 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()
|
D | ConstantFolding.h | 72 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
|
D | InstructionSimplify.h | 240 Value *SimplifyInsertValueInst(Value *Agg, Value *Val,
|
/external/llvm/lib/Transforms/Scalar/ |
D | SROA.cpp | 3207 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument 3209 return static_cast<Derived *>(this)->emitFunc(Ty, Agg, Name); in emitSplitOps() 3219 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps() 3234 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps() 3251 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { in emitFunc() 3257 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc() 3283 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { in emitFunc() 3287 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"), in emitFunc()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstructionCombining.cpp | 2138 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local 2141 return ReplaceInstUsesWith(EV, Agg); in visitExtractValueInst() 2143 if (Constant *C = dyn_cast<Constant>(Agg)) { in visitExtractValueInst() 2154 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst() 2205 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) { in visitExtractValueInst() 2254 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) in visitExtractValueInst()
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Execution.cpp | 1887 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local 1889 GenericValue Src = getOperandValue(Agg, SF); in visitExtractValueInst() 1900 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitExtractValueInst() 1930 Value *Agg = I.getAggregateOperand(); in visitInsertValueInst() local 1932 GenericValue Src1 = getOperandValue(Agg, SF); in visitInsertValueInst() 1946 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitInsertValueInst()
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 3339 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument 3342 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in SimplifyInsertValueInst() 3348 return Agg; in SimplifyInsertValueInst() 3352 if (EV->getAggregateOperand()->getType() == Agg->getType() && in SimplifyInsertValueInst() 3355 if (match(Agg, m_Undef())) in SimplifyInsertValueInst() 3359 if (Agg == EV->getAggregateOperand()) in SimplifyInsertValueInst() 3360 return Agg; in SimplifyInsertValueInst() 3367 Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL, in SimplifyInsertValueInst() argument 3370 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query(DL, TLI, DT, AC, CxtI), in SimplifyInsertValueInst()
|