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

/external/clang/test/CodeGen/
H A Dblock-byref-aggr.c4 typedef struct { int v; } Agg; typedef in typeref:struct:__anon4193
5 Agg makeAgg(void);
11 __block Agg a = {100};
37 __block Agg a, b;
/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.cpp1349 Type *Agg = PTy->getElementType();
1353 return Agg;
1357 if (!Agg->isSized())
1362 CompositeType *CT = dyn_cast<CompositeType>(Agg);
1366 Agg = CT->getTypeAtIndex(Index);
1368 return CurIdx == IdxList.size() ? Agg : 0;
1640 void InsertValueInst::init(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, argument
1650 assert(ExtractValueInst::getIndexedType(Agg->getType(), Idxs) ==
1652 Op<0>() = Agg;
1695 Type *ExtractValueInst::getIndexedType(Type *Agg, argument
[all...]
H A DConstantFold.cpp822 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, argument
826 return Agg;
828 if (Constant *C = Agg->getAggregateElement(Idxs[0]))
834 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, argument
842 if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
844 else if (ArrayType *AT = dyn_cast<ArrayType>(Agg->getType()))
851 Constant *C = Agg->getAggregateElement(i);
860 if (StructType *ST = dyn_cast<StructType>(Agg->getType()))
862 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 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 DNoFolder.h285 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);
/external/llvm/include/llvm/
H A DInstructions.h1742 inline ExtractValueInst(Value *Agg,
1746 inline ExtractValueInst(Value *Agg,
1758 static ExtractValueInst *Create(Value *Agg, argument
1763 ExtractValueInst(Agg, Idxs, NameStr, InsertBefore);
1765 static ExtractValueInst *Create(Value *Agg, argument
1769 return new ExtractValueInst(Agg, Idxs, NameStr, InsertAtEnd);
1776 static Type *getIndexedType(Type *Agg, ArrayRef<unsigned> Idxs);
1814 ExtractValueInst::ExtractValueInst(Value *Agg, argument
1818 : UnaryInstruction(checkGEPType(getIndexedType(Agg->getType(), Idxs)),
1819 ExtractValue, Agg, InsertBefor
1822 ExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
1874 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr = Ó, Instruction *InsertBefore = 0) argument
1880 Create(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
1941 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, Instruction *InsertBefore) argument
1951 InsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs, const Twine &NameStr, BasicBlock *InsertAtEnd) argument
[all...]
H A DIRBuilder.h1238 Value *CreateExtractValue(Value *Agg, argument
1241 if (Constant *AggC = dyn_cast<Constant>(Agg))
1243 return Insert(ExtractValueInst::Create(Agg, Idxs), Name);
1246 Value *CreateInsertValue(Value *Agg, Value *Val, argument
1249 if (Constant *AggC = dyn_cast<Constant>(Agg))
1252 return Insert(InsertValueInst::Create(Agg, Val, Idxs), Name);
H A DConstants.h1058 static Constant *getExtractValue(Constant *Agg, ArrayRef<unsigned> Idxs);
1059 static Constant *getInsertValue(Constant *Agg, Constant *Val,
/external/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp1321 Value *Agg = EV.getAggregateOperand(); local
1324 return ReplaceInstUsesWith(EV, Agg);
1326 if (Constant *C = dyn_cast<Constant>(Agg)) {
1337 if (InsertValueInst *IV = dyn_cast<InsertValueInst>(Agg)) {
1388 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(Agg)) {
1437 if (LoadInst *L = dyn_cast<LoadInst>(Agg))
/external/llvm/lib/Analysis/
H A DInstructionSimplify.cpp2590 static Value *SimplifyInsertValueInst(Value *Agg, Value *Val, argument
2593 if (Constant *CAgg = dyn_cast<Constant>(Agg))
2599 return Agg;
2603 if (EV->getAggregateOperand()->getType() == Agg->getType() &&
2606 if (match(Agg, m_Undef()))
2610 if (Agg == EV->getAggregateOperand())
2611 return Agg;
2617 Value *llvm::SimplifyInsertValueInst(Value *Agg, Value *Val, argument
2622 return ::SimplifyInsertValueInst(Agg, Val, Idxs, Query (TD, TLI, DT),
/external/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2070 Value *Agg; local
2071 if (getValueTypePair(Record, OpNum, NextValueNo, Agg))
2083 I = ExtractValueInst::Create(Agg, EXTRACTVALIdx);
2091 Value *Agg; local
2092 if (getValueTypePair(Record, OpNum, NextValueNo, Agg))
2107 I = InsertValueInst::Create(Agg, Val, INSERTVALIdx);
/external/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAGBuilder.cpp3050 SDValue Agg = getValue(Op0); local
3055 SDValue(Agg.getNode(), Agg.getResNo() + i);
3066 SDValue(Agg.getNode(), Agg.getResNo() + i);
3094 SDValue Agg = getValue(Op0); local
3099 DAG.getUNDEF(Agg.getNode()->getValueType(Agg.getResNo() + i)) :
3100 SDValue(Agg.getNode(), Agg
[all...]

Completed in 341 milliseconds