Searched refs:Agg (Results 1 - 21 of 21) sorted by relevance

/external/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/
H A Dp7-0x.cpp30 struct Agg { struct
47 Agg<char> a1 = {1.0F}; // expected-error {{type 'float' cannot be narrowed to 'char'}} expected-note {{override}}
48 Agg<char> a2 = {1.0}; // expected-error {{ cannot be narrowed }} expected-note {{override}}
49 Agg<char> a3 = {1.0L}; // expected-error {{ cannot be narrowed }} expected-note {{override}}
54 Agg<char> a4 = {f}; // expected-error {{ cannot be narrowed }} expected-note {{override}}
55 Agg<char> a5 = {d}; // expected-error {{ cannot be narrowed }} expected-note {{override}}
56 Agg<char> a6 = {ld}; // expected-error {{ cannot be narrowed }} expected-note {{override}}
58 Agg<char> ce1 = { Convert<float>(1.0) }; // expected-error {{type 'float' cannot be narrowed to 'char'}} expected-note {{override}}
59 Agg<char> ce2 = { ConvertVar<double>() }; // expected-error {{type 'double' cannot be narrowed to 'char'}} expected-note {{override}}
74 Agg<floa
[all...]
H A Dp7-cxx11-nowarn.cpp31 struct Agg { struct
48 Agg<char> a1 = {1.0F}; // expected-warning {{type 'float' cannot be narrowed to 'char'}} expected-note {{override}}
49 Agg<char> a2 = {1.0}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
50 Agg<char> a3 = {1.0L}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
55 Agg<char> a4 = {f}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
56 Agg<char> a5 = {d}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
57 Agg<char> a6 = {ld}; // expected-warning {{ cannot be narrowed }} expected-note {{override}}
59 Agg<char> ce1 = { Convert<float>(1.0) }; // expected-warning {{type 'float' cannot be narrowed to 'char'}} expected-note {{override}}
60 Agg<char> ce2 = { ConvertVar<double>() }; // expected-warning {{type 'double' cannot be narrowed to 'char'}} expected-note {{override}}
75 Agg<floa
[all...]
/external/clang/test/SemaCXX/
H A Daggregate-initialization.cpp73 class Agg { class
80 Agg agg1;
81 Agg agg2;
/external/clang/test/CXX/basic/basic.types/
H A Dp10.cpp64 struct Agg { struct
68 constexpr int f3(Agg a) { return a.a; }
109 struct LitMemBase : Agg {
110 Agg agg;
122 Agg agg[24];
/external/llvm/lib/VMCore/
H A DConstantFold.h42 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
44 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DConstantsContext.h169 ExtractValueConstantExpr(Constant *Agg, argument
174 Op<0>() = Agg;
195 InsertValueConstantExpr(Constant *Agg, Constant *Val, argument
200 Op<0>() = Agg;
H A DInstructions.cpp1343 Type *Agg = PTy->getElementType();
1347 return Agg;
1351 if (!Agg->isSized())
1356 CompositeType *CT = dyn_cast<CompositeType>(Agg);
1360 Agg = CT->getTypeAtIndex(Index);
1362 return CurIdx == IdxList.size() ? Agg : 0;
1634 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, argument
1644 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
1646 Op<0>() = Agg;
1689 Type *ExtractValueInst::getIndexedType(Type *Agg, argument
[all...]
H A DConstantFold.cpp815 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, argument
819 return Agg;
821 if (Constant *C = Agg->getAggregateElement(Idxs[0]))
827 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, argument
835 if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
837 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType()))
844 Constant *C = Agg->getAggregateElement(i);
853 if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
855 if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType()))
H A DConstants.cpp1875 Constant *ConstantExpr::getInsertValue(Constant *Agg, Constant *Val, argument
1877 assert(ExtractValueInst::getIndexedType(Agg->getType(),
1880 assert(Agg->getType()->isFirstClassType() &&
1882 Constant *FC = ConstantFoldInsertValueInstruction(Agg, Val, Idxs);
1887 Constant *ConstantExpr::getExtractValue(Constant *Agg, argument
1889 assert(Agg->getType()->isFirstClassType() &&
1892 Type *ReqTy = ExtractValueInst::getIndexedType(Agg->getType(), Idxs);
1896 assert(Agg->getType()->isFirstClassType() &&
1898 Constant *FC = ConstantFoldExtractValueInstruction(Agg, Idxs);
/external/llvm/include/llvm/Analysis/
H A DConstantFolding.h72 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DInstructionSimplify.h156 Value *SimplifyInsertValueInst(Value *Agg, Value *Val,
/external/llvm/include/llvm/Support/
H A DConstantFolder.h225 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 DNoFolder.h273 Instruction *CreateExtractValue(Constant *Agg, argument
275 return ExtractValueInst::Create(Agg, IdxList);
278 Instruction *CreateInsertValue(Constant *Agg, Constant *Val, argument
280 return InsertValueInst::Create(Agg, Val, IdxList);
H A DTargetFolder.h242 Constant *CreateExtractValue(Constant *Agg, argument
244 return Fold(ConstantExpr::getExtractValue(Agg, IdxList));
247 Constant *CreateInsertValue(Constant *Agg, Constant *Val, argument
249 return Fold(ConstantExpr::getInsertValue(Agg, Val, IdxList));
H A DIRBuilder.h1223 Value *CreateExtractValue(Value *Agg, argument
1226 if (Constant *AggC = dyn_cast<Constant>(Agg))
1228 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
1231 Value *CreateInsertValue(Value *Agg, Value *Val, argument
1234 if (Constant *AggC = dyn_cast<Constant>(Agg))
1237 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
/external/llvm/include/llvm/
H A DInstructions.h1735 inline ExtractValueInst(Value *Agg,
1739 inline ExtractValueInst(Value *Agg,
1751 static ExtractValueInst *Create(Value *Agg, argument
1756 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
1758 static ExtractValueInst *Create(Value *Agg, argument
1762 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
1769 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
1807 ExtractValueInst::ExtractValueInst(Value *Agg, argument
1811 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
1812 ExtractValue, Agg, InsertBefor
1815 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
1867 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr = Ó, Instruction *InsertBefore = 0) argument
1873 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
1934 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument
1944 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
[all...]
H A DConstants.h1047 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs);
1048 static Constant *getInsertValue(Constant *Agg, Constant *Val,
/external/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1268 Value *Agg = EV.getAggregateOperand(); local
1271 return ReplaceInstUsesWith(EV, Agg);
1273 if (Constant *C = dyn_cast<Constant>(Agg)) {
1284 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) {
1335 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) {
1384 if (LoadInst *L = dyn_cast<LoadInst>(Agg))
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2584 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, argument
2587 if (Constant *CAgg = dyn_cast<Constant>(Agg))
2593 return Agg;
2597 if (EV->getAggregateOperand()->getType() == Agg->getType() &&
2600 if (match(Agg, m_Undef()))
2604 if (Agg == EV->getAggregateOperand())
2605 return Agg;
2611 Value *llvm::SimplifyInsertValueInst(Value *Agg, Value *Val, argument
2616 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query (TD, TLI, DT),
/external/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2088 Value *Agg; local
2089 if (getValueTypePair(Record, OpNum, NextValueNo, Agg))
2101 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx);
2109 Value *Agg; local
2110 if (getValueTypePair(Record, OpNum, NextValueNo, Agg))
2125 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp3015 SDValue Agg = getValue(Op0); local
3020 SDValue(Agg.getNode(), Agg.getResNo() + i);
3031 SDValue(Agg.getNode(), Agg.getResNo() + i);
3059 SDValue Agg = getValue(Op0); local
3064 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) :
3065 SDValue(Agg.getNode(), Agg
[all...]

Completed in 205 milliseconds