Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/clang/test/CXX/dcl.decl/dcl.init/dcl.init.list/
H A Dp7-0x.cpp34 struct Agg { struct
81 Agg<float> f1 = {f}; // OK (no-op) in shrink_float()
135 Agg<float> f8 = {EnumVal}; // OK in int_to_float()
163 Agg<int> i2 = {e}; // OK in shrink_int()
165 Agg<long> l2 = {ll}; // OK in shrink_int()
168 Agg<char> c3 = {127}; // OK in shrink_int()
173 Agg<int> i4 = {EnumVal}; // OK in shrink_int()
179 Agg<bool> b1 = {0}; // OK in shrink_int()
180 Agg<bool> b2 = {1}; // OK in shrink_int()
184 Agg<bool>* ptr = &b1; in shrink_int()
[all …]
H A Dp7-cxx11-nowarn.cpp31 struct Agg { struct
75 Agg<float> f1 = {f}; // OK (no-op) in shrink_float()
89 Agg<float> f10 = {e40 - 5 * e39 + e30 - 5 * e39}; // OK in shrink_float()
92 Agg<double> d1 = {f}; // OK (widening) in shrink_float()
93 Agg<double> d2 = {d}; // OK (no-op) in shrink_float()
103 Agg<double> d7 = {e315 - 5 * e314 + e305 - 5 * e314}; // OK in shrink_float()
150 Agg<long> l2 = {ll}; // OK in shrink_int()
153 Agg<char> c2 = {127}; // OK in shrink_int()
156 Agg<int> i2 = {0x7FFFFFFFU}; // OK in shrink_int()
162 Agg<bool> b1 = {0}; // OK in shrink_int()
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dmicrosoft-abi-byval-thunks.cpp5 struct Agg { struct
6 Agg();
7 Agg(const Agg &);
8 ~Agg();
35 Agg();
36 Agg(const Agg &);
37 ~Agg();
68 Agg(const Agg &);
73 struct A { virtual Agg __cdecl foo(Agg x); };
74 struct B { virtual Agg __cdecl foo(Agg x); };
[all …]
H A Dcxx2a-consteval.cpp106 struct Agg { struct
113 consteval Agg retAgg() { in retAgg() argument
135 Agg A = retAgg();
139 consteval const Agg &retRefAgg() { in retRefAgg()
140 const Agg &tmp = A; in retRefAgg()
163 consteval Agg is_const() { in is_const()
H A Dmember-expr-references-variable.cpp3 struct Agg { const char * x; const char * y; constexpr Agg() : x(0), y(0) {} }; in Agg() argument
10 static constexpr const Agg &agg = Agg();
H A Dconst-init-cxx11.cpp457 struct Agg { int k; }; argument
471 int agg() { constexpr Agg a = { f(101) }; return a.k; } in agg()
/llvm-project-15.0.7/clang/test/CodeGen/
H A Dblock-byref-aggr.c4 typedef struct { int v; } Agg; typedef
5 Agg makeAgg(void);
11 __block Agg a = {100}; in test0()
39 __block Agg a, b; in test1()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dms-initlist-narrowing.cpp6 struct Agg { struct
12Agg<float> f8 = {1E50}; // expected-error {{constant expression evaluates to 1.000000e+50 which c… in f() argument
16Agg<float> f2 = {d}; // expected-error {{non-constant-expression cannot be narrowed from type 'do… in f()
H A Daggregate-initialization.cpp86 class Agg { class
93 Agg agg1;
94 Agg agg2;
H A Dsource_location.cpp332 using Agg = SLF::AggrClass<>; in test_aggr_class() typedef
333 constexpr Agg Default{}; in test_aggr_class()
334 constexpr Agg InitOne{42}; in test_aggr_class()
/llvm-project-15.0.7/clang/test/CXX/basic/basic.types/
H A 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];
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DEvaluator.cpp124 if (auto *Agg = Val.dyn_cast<MutableAggregate *>()) in clear() local
125 delete Agg; in clear()
133 while (const auto *Agg = V->Val.dyn_cast<MutableAggregate *>()) { in read() local
134 Type *AggTy = Agg->Ty; in read()
136 if (!Index || Index->uge(Agg->Elements.size()) || in read()
140 V = &Agg->Elements[Index->getZExtValue()]; in read()
177 MutableAggregate *Agg = MV->Val.get<MutableAggregate *>(); in write() local
178 Type *AggTy = Agg->Ty; in write()
180 if (!Index || Index->uge(Agg->Elements.size()) || in write()
184 MV = &Agg->Elements[Index->getZExtValue()]; in write()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DInstSimplifyFolder.h88 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
90 return simplifyExtractValueInst(Agg, IdxList, SQ); in FoldExtractValue()
93 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
95 return simplifyInsertValueInst(Agg, Val, IdxList, SQ); in FoldInsertValue()
H A DTargetFolder.h141 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
143 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
148 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
150 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
H A DConstantFolding.h119 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
125 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
H A DInstructionSimplify.h254 Value *simplifyInsertValueInst(Value *Agg, Value *Val, ArrayRef<unsigned> Idxs,
262 Value *simplifyExtractValueInst(Value *Agg, ArrayRef<unsigned> Idxs,
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstantFold.h46 Constant *ConstantFoldExtractValueInstruction(Constant *Agg,
48 Constant *ConstantFoldInsertValueInstruction(Constant *Agg, Constant *Val,
H A DConstantFolder.h130 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
132 if (auto *CAgg = dyn_cast<Constant>(Agg)) in FoldExtractValue()
137 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
139 auto *CAgg = dyn_cast<Constant>(Agg); in FoldInsertValue()
H A DIRBuilderFolder.h59 virtual Value *FoldExtractValue(Value *Agg,
62 virtual Value *FoldInsertValue(Value *Agg, Value *Val,
H A DNoFolder.h86 Value *FoldExtractValue(Value *Agg, in FoldExtractValue() argument
91 Value *FoldInsertValue(Value *Agg, Value *Val, in FoldInsertValue() argument
H A DInstructions.h2420 inline ExtractValueInst(Value *Agg,
2424 inline ExtractValueInst(Value *Agg,
2437 static ExtractValueInst *Create(Value *Agg,
2445 static ExtractValueInst *Create(Value *Agg,
2497 ExtractValueInst::ExtractValueInst(Value *Agg,
2632 InsertValueInst::InsertValueInst(Value *Agg,
2637 : Instruction(Agg->getType(), InsertValue,
2640 init(Agg, Val, Idxs, NameStr);
2643 InsertValueInst::InsertValueInst(Value *Agg,
2648 : Instruction(Agg->getType(), InsertValue,
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Decho.cpp785 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
791 Dst = LLVMBuildExtractValue(Builder, Agg, I, Name); in CloneInstruction()
795 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
802 Dst = LLVMBuildInsertValue(Builder, Agg, V, I, Name); in CloneInstruction()
806 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
808 Dst = LLVMBuildExtractElement(Builder, Agg, Index, Name); in CloneInstruction()
812 LLVMValueRef Agg = CloneValue(LLVMGetOperand(Src, 0)); in CloneInstruction() local
815 Dst = LLVMBuildInsertElement(Builder, Agg, V, Index, Name); in CloneInstruction()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp222 Value *Agg = IRB.CreateInsertValue(UndefValue::get(StructTy), Mul, {0}); in buildUMulWithOverflowFunc() local
223 Value *Res = IRB.CreateInsertValue(Agg, Overflow, {1}); in buildUMulWithOverflowFunc()
/llvm-project-15.0.7/llvm/test/CodeGen/X86/
H A Dlifetime-alias.ll14 %struct.Agg = type { %"class.std::__3::basic_string", %"class.std::__3::basic_string" }
90 %agg = alloca %struct.Agg, align 8
114 %a2_.i = getelementptr inbounds %struct.Agg, ptr %agg, i64 0, i32 1
/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp775 Constant *llvm::ConstantFoldExtractValueInstruction(Constant *Agg, in ConstantFoldExtractValueInstruction() argument
779 return Agg; in ConstantFoldExtractValueInstruction()
781 if (Constant *C = Agg->getAggregateElement(Idxs[0])) in ConstantFoldExtractValueInstruction()
787 Constant *llvm::ConstantFoldInsertValueInstruction(Constant *Agg, in ConstantFoldInsertValueInstruction() argument
795 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
798 NumElts = cast<ArrayType>(Agg->getType())->getNumElements(); in ConstantFoldInsertValueInstruction()
802 Constant *C = Agg->getAggregateElement(i); in ConstantFoldInsertValueInstruction()
811 if (StructType *ST = dyn_cast<StructType>(Agg->getType())) in ConstantFoldInsertValueInstruction()
813 return ConstantArray::get(cast<ArrayType>(Agg->getType()), Result); in ConstantFoldInsertValueInstruction()

12