Home
last modified time | relevance | path

Searched refs:Agg (Results 1 – 25 of 30) 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()
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; }; argument
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.cpp73 class Agg { class
80 Agg agg1;
81 Agg agg2;
Dcxx98-compat.cpp117 …struct Agg { int a, b; } const &agg = { 1, 2 }; // expected-warning {{reference initialized from i… in RangeFor() argument
/external/llvm/lib/IR/
DConstantFold.h42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
DConstantsContext.h170 ExtractValueConstantExpr(Constant *Agg, ArrayRef<unsigned> IdxList, in ExtractValueConstantExpr() argument
174 Op<0>() = Agg; in ExtractValueConstantExpr()
202 InsertValueConstantExpr(Constant *Agg, Constant *Val, in InsertValueConstantExpr() argument
206 Op<0>() = Agg; in InsertValueConstantExpr()
DConstantFold.cpp871 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
875 return Agg; in ConstantFoldExtractValueInstruction()
877 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
883 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
891 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
893 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
896 NumElts = Agg->getType()->getVectorNumElements(); in ConstantFoldInsertValueInstruction()
900 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
909 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
911 if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
DConstants.cpp2126 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, in getInsertValue() argument
2129 assert(Agg->getType()->isFirstClassType() && in getInsertValue()
2132 assert(ExtractValueInst::getIndexedType(Agg->getType(), in getInsertValue()
2137 if (Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs)) in getInsertValue()
2143 Constant *ArgVec[] = { Agg, Val }; in getInsertValue()
2146 LLVMContextImpl *pImpl = Agg->getContext().pImpl; in getInsertValue()
2150 Constant *ConstantExpr::getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs, in getExtractValue() argument
2152 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
2155 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs); in getExtractValue()
2159 assert(Agg->getType()->isFirstClassType() && in getExtractValue()
[all …]
DInstructions.cpp1540 static Type *getIndexedTypeInternal(Type *Agg, ArrayRef<IndexTy> IdxList) { in getIndexedTypeInternal() argument
1543 return Agg; in getIndexedTypeInternal()
1547 if (!Agg->isSized()) in getIndexedTypeInternal()
1552 CompositeType *CT = dyn_cast<CompositeType>(Agg); in getIndexedTypeInternal()
1556 Agg = CT->getTypeAtIndex(Index); in getIndexedTypeInternal()
1558 return CurIdx == IdxList.size() ? Agg : nullptr; in getIndexedTypeInternal()
1824 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, in init() argument
1834 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) == in init()
1836 Op<0>() = Agg; in init()
1879 Type *ExtractValueInst::getIndexedType(Type *Agg, in getIndexedType() argument
[all …]
/external/llvm/include/llvm/Analysis/
DConstantFolding.h72 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
78 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.h240 Value *SimplifyInsertValueInst(Value *Agg, Value *Val,
249 Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/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.h2194 inline ExtractValueInst(Value *Agg,
2198 inline ExtractValueInst(Value *Agg,
2211 static ExtractValueInst *Create(Value *Agg,
2216 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
2218 static ExtractValueInst *Create(Value *Agg,
2222 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
2229 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
2269 ExtractValueInst::ExtractValueInst(Value *Agg,
2273 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
2274 ExtractValue, Agg, InsertBefore) {
[all …]
DIRBuilder.h1616 Value *CreateExtractValue(Value *Agg,
1619 if (Constant *AggC = dyn_cast<Constant>(Agg))
1621 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
1624 Value *CreateInsertValue(Value *Agg, Value *Val,
1627 if (Constant *AggC = dyn_cast<Constant>(Agg))
1630 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
/external/llvm/lib/Analysis/
DInstructionSimplify.cpp3547 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, in SimplifyInsertValueInst() argument
3550 if (Constant *CAgg = dyn_cast<Constant>(Agg)) in SimplifyInsertValueInst()
3556 return Agg; in SimplifyInsertValueInst()
3560 if (EV->getAggregateOperand()->getType() == Agg->getType() && in SimplifyInsertValueInst()
3563 if (match(Agg, m_Undef())) in SimplifyInsertValueInst()
3567 if (Agg == EV->getAggregateOperand()) in SimplifyInsertValueInst()
3568 return Agg; in SimplifyInsertValueInst()
3575 Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const DataLayout &DL, in SimplifyInsertValueInst() argument
3578 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query(DL, TLI, DT, AC, CxtI), in SimplifyInsertValueInst()
3584 static Value *SimplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, in SimplifyExtractValueInst() argument
[all …]
DCFLAliasAnalysis.cpp430 auto *Agg = Inst.getOperand(0); in visitInsertValueInst() local
432 Output.push_back(Edge(&Inst, Agg, EdgeType::Assign, AttrNone)); in visitInsertValueInst()
/external/llvm/lib/Transforms/Scalar/
DSROA.cpp3047 void emitSplitOps(Type *Ty, Value *&Agg, const Twine &Name) { in emitSplitOps() argument
3049 return static_cast<Derived *>(this)->emitFunc(Ty, Agg, Name); in emitSplitOps()
3059 emitSplitOps(ATy->getElementType(), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3074 emitSplitOps(STy->getElementType(Idx), Agg, Name + "." + Twine(Idx)); in emitSplitOps()
3091 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { in emitFunc()
3097 Agg = IRB.CreateInsertValue(Agg, Load, Indices, Name + ".insert"); in emitFunc()
3123 void emitFunc(Type *Ty, Value *&Agg, const Twine &Name) { in emitFunc()
3127 IRB.CreateExtractValue(Agg, Indices, Name + ".extract"), in emitFunc()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp2203 Value *Agg = EV.getAggregateOperand(); in visitExtractValueInst() local
2206 return ReplaceInstUsesWith(EV, Agg); in visitExtractValueInst()
2209 SimplifyExtractValueInst(Agg, EV.getIndices(), DL, TLI, DT, AC)) in visitExtractValueInst()
2212 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) { in visitExtractValueInst()
2263 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) { in visitExtractValueInst()
2312 if (LoadInst *L = dyn_cast<LoadInst>(Agg)) in visitExtractValueInst()
/external/llvm/lib/ExecutionEngine/Interpreter/
DExecution.cpp1887 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()

12