Home
last modified time | relevance | path

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

12

/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()
74 Agg<float> f1 = {f}; // OK (no-op) in shrink_float()
[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/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.cpp70 struct Agg { struct
74 constexpr int f3(Agg a) { return a.a; } in f3() argument
115 struct LitMemBase : Agg {
116 Agg agg;
128 Agg agg[24];
/external/clang/test/SemaCXX/
Daggregate-initialization.cpp73 class Agg { class
80 Agg agg1;
81 Agg agg2;
Dcxx98-compat.cpp114 …struct Agg { int a, b; } const &agg = { 1, 2 }; // expected-warning {{reference initialized from i… in RangeFor() struct
/external/llvm/lib/IR/
DConstantFold.h42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
DConstantsContext.h172 ExtractValueConstantExpr(Constant *Agg, in ExtractValueConstantExpr() argument
177 Op<0>() = Agg; in ExtractValueConstantExpr()
198 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument
203 Op<0>() = Agg; in InsertValueConstantExpr()
DConstantFold.cpp839 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
843 return Agg; in ConstantFoldExtractValueInstruction()
845 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
851 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
859 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
861 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
864 NumElts = Agg->getType()->getVectorNumElements(); in ConstantFoldInsertValueInstruction()
868 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
877 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
879 if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
DConstants.cpp2042 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument
2044 assert(Agg->getType()->isFirstClassType() && in getInsertValue()
2047 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue()
2052 if (Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs)) in getInsertValue()
2055 Constant *ArgVec[] = { Agg, Val }; in getInsertValue()
2058 LLVMContextImpl *pImpl = Agg->getContext().pImpl; in getInsertValue()
2062 Constant *ConstantExpr::getExtractValue(Constant *Agg, in getExtractValue() argument
2064 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
2067 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue()
2071 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
[all …]
DInstructions.cpp1375 Type *Agg = PTy->getElementType(); in getIndexedTypeInternal() local
1379 return Agg; in getIndexedTypeInternal()
1383 if (!Agg->isSized()) in getIndexedTypeInternal()
1388 CompositeType *CT = dyn_cast<CompositeType>(Agg); in getIndexedTypeInternal()
1392 Agg = CT->getTypeAtIndex(Index); in getIndexedTypeInternal()
1394 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal()
1660 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
1670 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
1672 Op<0>() = Agg; in init()
1715 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
[all …]
/external/llvm/include/llvm/IR/
DConstantFolder.h225 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
227 return ConstantExpr::getExtractValue(Agg, IdxList); in CreateExtractValue()
230 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
232 return ConstantExpr::getInsertValue(Agg, Val, IdxList); in CreateInsertValue()
DInstructions.h1842 inline ExtractValueInst(Value *Agg,
1846 inline ExtractValueInst(Value *Agg,
1858 static ExtractValueInst *Create(Value *Agg,
1863 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
1865 static ExtractValueInst *Create(Value *Agg,
1869 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
1876 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
1913 ExtractValueInst::ExtractValueInst(Value *Agg,
1917 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
1918 ExtractValue, Agg, InsertBefore) {
[all …]
DNoFolder.h285 Instruction *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
287 return ExtractValueInst::Create(Agg, IdxList); in CreateExtractValue()
290 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
292 return InsertValueInst::Create(Agg, Val, IdxList); in CreateInsertValue()
DIRBuilder.h1401 Value *CreateExtractValue(Value *Agg,
1404 if (Constant *AggC = dyn_cast<Constant>(Agg))
1406 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
1409 Value *CreateInsertValue(Value *Agg, Value *Val,
1412 if (Constant *AggC = dyn_cast<Constant>(Agg))
1415 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
DConstants.h1058 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs);
1059 static Constant *getInsertValue(Constant *Agg, Constant *Val,
/external/llvm/include/llvm/Analysis/
DTargetFolder.h249 Constant *CreateExtractValue(Constant *Agg, in CreateExtractValue() argument
251 return Fold(ConstantExpr::getExtractValue(Agg, IdxList)); in CreateExtractValue()
254 Constant *CreateInsertValue(Constant *Agg, Constant *Val, in CreateInsertValue() argument
256 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList)); in CreateInsertValue()
DConstantFolding.h73 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
DInstructionSimplify.h200 Value *SimplifyInsertValueInst(Value *Agg, Value *Val,
/external/clang/test/CodeGenCXX/
Dconst-init-cxx11.cpp431 struct Agg { int k; }; struct
445 int agg() { constexpr Agg a = { f(101) }; return a.k; } in agg()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp2829 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument
2831 return static_cast<Derived *>(this)->emitFunc(Ty, Agg, Name); in emitSplitOps()
2841 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
2856 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
2873 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { in emitFunc()
2878 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc()
2904 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { in emitFunc()
2908 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"), in emitFunc()
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp2801 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument
2804 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in SimplifyInsertValueInst()
2810 return Agg; in SimplifyInsertValueInst()
2814 if (EV->getAggregateOperand()->getType() == Agg->getType() && in SimplifyInsertValueInst()
2817 if (match(Agg, m_Undef())) in SimplifyInsertValueInst()
2821 if (Agg == EV->getAggregateOperand()) in SimplifyInsertValueInst()
2822 return Agg; in SimplifyInsertValueInst()
2828 Value *llvm::SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument
2833 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query (DL, TLI, DT), in SimplifyInsertValueInst()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2003 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
2006 return ReplaceInstUsesWith(EV, Agg); in visitExtractValueInst()
2008 if (Constant *C = dyn_cast<Constant>(Agg)) { in visitExtractValueInst()
2019 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
2070 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) { in visitExtractValueInst()
2119 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) in visitExtractValueInst()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1886 Value *Agg = I.getAggregateOperand(); in visitExtractValueInst() local
1888 GenericValue Src = getOperandValue(Agg, SF); in visitExtractValueInst()
1899 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitExtractValueInst()
1929 Value *Agg = I.getAggregateOperand(); in visitInsertValueInst() local
1931 GenericValue Src1 = getOperandValue(Agg, SF); in visitInsertValueInst()
1945 Type *IndexedType = ExtractValueInst::getIndexedType(Agg->getType(), I.getIndices()); in visitInsertValueInst()
/external/chromium_org/third_party/sqlite/src/test/
Dselect5.test87 # Get the Agg function to rehash in vdbe.c

12