/external/clang/test/CodeGen/ |
H A D | block-byref-aggr.c | 4 typedef struct { int v; } Agg; typedef in typeref:struct:__anon18622 5 Agg makeAgg(void); 11 __block Agg a = {100}; 37 __block Agg a, b;
|
/external/clang/test/SemaCXX/ |
H A D | aggregate-initialization.cpp | 73 class Agg { class 80 Agg agg1; 81 Agg agg2;
|
H A D | cxx98-compat.cpp | 114 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 D | p10.cpp | 70 struct Agg { struct 74 constexpr int f3(Agg a) { return a.a; } 115 struct LitMemBase : Agg { 116 Agg agg; 128 Agg agg[24];
|
/external/llvm/include/llvm/Analysis/ |
H A D | TargetFolder.h | 249 Constant *CreateExtractValue(Constant *Agg, argument 251 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); 254 Constant *CreateInsertValue(Constant *Agg, Constant *Val, argument 256 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList));
|
/external/llvm/include/llvm/IR/ |
H A D | ConstantFolder.h | 225 Constant *CreateExtractValue(Constant *Agg, argument 227 return ConstantExpr::getExtractValue(Agg, IdxList); 230 Constant *CreateInsertValue(Constant *Agg, Constant *Val, argument 232 return ConstantExpr::getInsertValue(Agg, Val, IdxList);
|
H A D | NoFolder.h | 285 Instruction *CreateExtractValue(Constant *Agg, argument 287 return ExtractValueInst::Create(Agg, IdxList); 290 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, argument 292 return InsertValueInst::Create(Agg, Val, IdxList);
|
H A D | IRBuilder.h | 1401 Value *CreateExtractValue(Value *Agg, argument 1404 if (Constant *AggC = dyn_cast<Constant>(Agg)) 1406 return Insert(ExtractValueInst::Create(Agg, Idxs), Name); 1409 Value *CreateInsertValue(Value *Agg, Value *Val, argument 1412 if (Constant *AggC = dyn_cast<Constant>(Agg)) 1415 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
|
H A D | Instructions.h | 1842 inline ExtractValueInst(Value *Agg, 1846 inline ExtractValueInst(Value *Agg, 1858 static ExtractValueInst *Create(Value *Agg, argument 1863 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore); 1865 static ExtractValueInst *Create(Value *Agg, argument 1869 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd); 1876 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs); 1913 ExtractValueInst::ExtractValueInst(Value *Agg, argument 1917 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)), 1918 ExtractValue, Agg, InsertBefor 1921 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument 1973 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr = �, Instruction *InsertBefore = nullptr) argument 1979 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument 2039 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument 2049 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument [all...] |
/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/ |
H A D | p7-0x.cpp | 30 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}} 74 Agg<floa [all...] |
H A 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-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/CodeGenCXX/ |
H A D | const-init-cxx11.cpp | 431 struct Agg { int k; }; struct in namespace:LocalVarInit 445 int agg() { constexpr Agg a = { f(101) }; return a.k; }
|
/external/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 1747 Constant *Agg = Operands[J]->getAggregateElement(I); local 1748 if (!Agg) 1751 Lane[J] = Agg;
|
H A D | InstructionSimplify.cpp | 2801 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, argument 2804 if (Constant *CAgg = dyn_cast<Constant>(Agg)) 2810 return Agg; 2814 if (EV->getAggregateOperand()->getType() == Agg->getType() && 2817 if (match(Agg, m_Undef())) 2821 if (Agg == EV->getAggregateOperand()) 2822 return Agg; 2828 Value *llvm::SimplifyInsertValueInst(Value *Agg, Value *Val, argument 2833 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query (DL, TLI, DT),
|
/external/llvm/lib/IR/ |
H A D | ConstantFold.cpp | 839 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, argument 843 return Agg; 845 if (Constant *C = Agg->getAggregateElement(Idxs[0])) 851 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, argument 859 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) 861 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) 864 NumElts = Agg->getType()->getVectorNumElements(); 868 Constant *C = Agg->getAggregateElement(i); 877 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) 879 if (ArrayType *AT = dyn_cast<ArrayType>(Agg [all...] |
H A D | ConstantsContext.h | 172 ExtractValueConstantExpr(Constant *Agg, argument 177 Op<0>() = Agg; 198 InsertValueConstantExpr(Constant *Agg, Constant *Val, argument 203 Op<0>() = Agg;
|
H A D | Constants.cpp | 2042 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, argument 2044 assert(Agg->getType()->isFirstClassType() && 2047 assert(ExtractValueInst::getIndexedType(Agg->getType(), 2052 if (Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs)) 2055 Constant *ArgVec[] = { Agg, Val }; 2058 LLVMContextImpl *pImpl = Agg->getContext().pImpl; 2062 Constant *ConstantExpr::getExtractValue(Constant *Agg, argument 2064 assert(Agg->getType()->isFirstClassType() && 2067 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); 2071 assert(Agg [all...] |
H A D | Instructions.cpp | 1375 Type *Agg = PTy->getElementType(); 1379 return Agg; 1383 if (!Agg->isSized()) 1388 CompositeType *CT = dyn_cast<CompositeType>(Agg); 1392 Agg = CT->getTypeAtIndex(Index); 1394 return CurIdx == IdxList.size() ? Agg : nullptr; 1660 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, argument 1670 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == 1672 Op<0>() = Agg; 1715 Type *ExtractValueInst::getIndexedType(Type *Agg, argument [all...] |
/external/llvm/lib/Bitcode/Reader/ |
H A D | BitcodeReader.cpp | 2457 Value *Agg; local 2458 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) 2470 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx); 2478 Value *Agg; local 2479 if (getValueTypePair(Record, OpNum, NextValueNo, Agg)) 2494 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx);
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstructionCombining.cpp | 2003 Value *Agg = EV.getAggregateOperand(); local 2006 return ReplaceInstUsesWith(EV, Agg); 2008 if (Constant *C = dyn_cast<Constant>(Agg)) { 2019 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { 2070 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) { 2119 if (LoadInst *L = dyn_cast<LoadInst>(Agg))
|
/external/llvm/lib/Transforms/Scalar/ |
H A D | SROA.cpp | 2827 /// \param Agg The aggregate value being built up or stored, depending on 2829 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { argument 2831 return static_cast<Derived *>(this)->emitFunc(Ty, Agg, Name); 2841 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); 2856 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); 2873 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { argument 2878 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); 2904 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { argument 2908 IRB.CreateExtractValue(Agg, Indice [all...] |
/external/llvm/lib/Transforms/Instrumentation/ |
H A D | MemorySanitizer.cpp | 2510 Value *Agg = I.getAggregateOperand(); local 2512 Value *AggShadow = getShadow(Agg);
|