Home
last modified time | relevance | path

Searched refs:constexpr (Results 1 – 25 of 3675) sorted by relevance

12345678910>>...147

/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dconstexpr-vectors.cpp96 constexpr auto CmpMul(T t, U u) { in CmpMul()
101 constexpr auto CmpDiv(T t, U u) { in CmpDiv()
106 constexpr auto CmpRem(T t, U u) { in CmpRem()
112 constexpr auto CmpAdd(T t, U u) { in CmpAdd()
118 constexpr auto CmpSub(T t, U u) { in CmpSub()
283 constexpr auto InvH = -H; in CharUsage()
435 constexpr auto InvH = -H; in CharExtVecUsage()
548 constexpr auto Z = -Y; in FloatUsage()
644 constexpr auto Z = -Y; in FloatVecUsage()
655 constexpr auto b = a < 3; in I128Usage()
[all …]
H A Dconstant-expression-cxx11.cpp41 constexpr B *p = &d;
42 constexpr C *q = &d;
54 constexpr V *v = p;
55 constexpr V *w = q;
76 constexpr int n1 = 0;
490 constexpr T t;
741 constexpr E e3;
749 constexpr F f;
764 } constexpr g;
832 constexpr D d(3);
[all …]
H A Dconstant-expression-cxx2b.cpp45 constexpr int j(int n) { in j()
51 constexpr int j0 = j(0);
53 constexpr int k(int n) { in k()
60 constexpr int k0 = k(0);
62 constexpr int j_evaluated(int n) { in j_evaluated()
107 constexpr int f(int x) { in f()
121 constexpr int c = f(1);
123 constexpr int label() { in label()
129 constexpr int d = label();
144 auto b = [](int n) constexpr { in test_in_lambdas()
[all …]
H A Dconstant-expression-cxx14.cpp7 constexpr S(int);
26 constexpr int f() { in f()
40 constexpr int g(int k) { in g()
79 constexpr void k() { in k()
90 constexpr U(int n) { in U()
94 constexpr U u1{1};
125 constexpr int n = 0;
1065 constexpr S s; in evalS()
1110 constexpr B b;
1123 constexpr A() {} in A()
[all …]
H A Dconstant-expression-cxx2a.cpp12 } inline constexpr nothrow{};
50 constexpr void f() { in f()
170 constexpr D d;
247 constexpr G g;
297 constexpr A2 a2;
314 constexpr B2 b2;
671 constexpr ~B() { in dtor_calls_dtor()
1305 constexpr ~A() {} in ~A()
1347 constexpr Y y;
1358 constexpr Z z;
[all …]
/llvm-project-15.0.7/flang/lib/Parser/
H A Dtype-parsers.h25 constexpr Parser() {} in Parser()
26 constexpr Parser(const Parser &) = default;
51 constexpr Parser<Name> name; // R603
55 constexpr Parser<TypeSpec> typeSpec; // R702
62 constexpr Parser<KindParam> kindParam; // R709
69 constexpr Parser<NullInit> nullInit; // R806
79 constexpr Parser<DataStmt> dataStmt; // R837
84 constexpr Parser<Variable> variable; // R902
92 constexpr Parser<Expr> expr; // R1022
109 constexpr Parser<Format> format; // R1215
[all …]
/llvm-project-15.0.7/clang/test/CXX/expr/expr.const/
H A Dp2-0x.cpp84 constexpr int n = 0;
85 constexpr T t1(n); // ok
115 constexpr S *p = &s; // ok
178 constexpr S s = { 5 };
212 } constexpr c = C();
335 constexpr S s; // ok
387 constexpr int e = 42;
414 constexpr S s { 16 };
423 constexpr S s { 16 };
476 constexpr S *p = 0;
[all …]
/llvm-project-15.0.7/libcxx/test/support/
H A Dpropagate_const_helpers.h7 constexpr int &operator*() { return i_; }
9 constexpr int *get() { return &i_; } in get()
13 constexpr X(int i) : i_(i) {} in X()
21 constexpr int &operator*() { return i_; }
23 constexpr int *get() { return &i_; } in get()
38 constexpr int *get() { return &i_; } in get()
53 constexpr int *get() { return &i_; } in get()
67 constexpr int *get() { return &i_; } in get()
82 constexpr int *get() { return &i_; } in get()
97 constexpr int *get() { return &i_; } in get()
[all …]
/llvm-project-15.0.7/clang/test/CXX/dcl.dcl/dcl.spec/dcl.constexpr/
H A Dp1.cpp18 constexpr int i1 = 0;
19 constexpr int f1() { return 0; } in f1()
21 constexpr static int mi1 = 0;
24 constexpr int s1::mi2 = 0;
36 static constexpr int mi2;
60 constexpr union U3 {} u3 = {};
64 union U4 {} constexpr u4 = {};
114 constexpr int i3 = ft(1);
124 constexpr int bufsz = 1024;
129 constexpr pixel(int);
[all …]
H A Dp3.cpp19 constexpr Literal() {} in Literal()
33 constexpr T();
34 constexpr int f() const;
167 constexpr int ForStmt() { in ForStmt()
172 constexpr int VarDecl() { in VarDecl()
192 constexpr int FuncDecl() { in FuncDecl()
197 constexpr int ClassDecl1() { in ClassDecl1()
202 constexpr int ClassDecl2() { in ClassDecl2()
207 constexpr int ClassDecl3() { in ClassDecl3()
225 constexpr int f(int k) { in f()
[all …]
H A Dp4.cpp18 constexpr Literal() {} in Literal()
26 constexpr S(int, N::C) {} in S()
31 constexpr S() = default;
52 constexpr U() in U()
69 constexpr V() { in V()
140 constexpr W() {} in W()
197 } constexpr empty1;
203 } constexpr empty2;
268 constexpr X() {} in X()
332 constexpr B(B&);
[all …]
/llvm-project-15.0.7/clang/test/CXX/basic/basic.types/
H A Dp10.cpp9 constexpr void f() {} in f()
15 constexpr int f1(double) { return 0; } in f1()
19 constexpr int f2(S &) { return 0; } in f2()
45 constexpr NonTrivDtor();
58 constexpr TrivDtor();
62 constexpr TrivDefaultedDtor();
87 constexpr CtorArg(T);
98 constexpr DerivedFromVBase();
111 constexpr NonLitBase();
120 constexpr MemberType();
[all …]
/llvm-project-15.0.7/libc/benchmarks/
H A DMemorySizeDistributions.cpp9 static constexpr double MemmoveGoogleA[] = {
12 static constexpr double MemmoveGoogleB[] = {
15 static constexpr double MemmoveGoogleD[] = {
18 static constexpr double MemmoveGoogleQ[] = {
21 static constexpr double MemmoveGoogleL[] = {
24 static constexpr double MemmoveGoogleM[] = {
27 static constexpr double MemmoveGoogleS[] = {
30 static constexpr double MemmoveGoogleW[] = {
36 static constexpr double MemcmpGoogleA[] = {
39 static constexpr double MemcmpGoogleB[] = {
[all …]
/llvm-project-15.0.7/clang/test/CXX/class/class.compare/class.compare.default/
H A Dp3.cpp8 constexpr operator int() const { return n; } in operator int()
11 constexpr strong_ordering strong_ordering::less = {-1};
12 constexpr strong_ordering strong_ordering::equal = {0};
13 constexpr strong_ordering strong_ordering::greater = {1};
31 friend constexpr bool operator<(const A&, const A&);
32 friend constexpr bool operator<=(const A&, const A&);
33 friend constexpr bool operator>(const A&, const A&);
34 friend constexpr bool operator>=(const A&, const A&);
76 friend constexpr bool operator<(const B&, const B&);
77 friend constexpr bool operator<=(const B&, const B&);
[all …]
/llvm-project-15.0.7/clang/test/SemaCXX/Inputs/
H A Dstd-compare.h27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering()
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering()
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering()
34 constexpr bool __is_ordered() const noexcept { in __is_ordered()
63 constexpr bool test_eq(partial_ordering const &other) const noexcept { in test_eq()
130 constexpr operator partial_ordering() const noexcept { in partial_ordering()
153 constexpr bool test_eq(weak_ordering const &other) const noexcept { in test_eq()
161 inline constexpr weak_ordering weak_ordering::less(_OrdResult::__less);
220 constexpr operator partial_ordering() const noexcept { in partial_ordering()
224 constexpr operator weak_ordering() const noexcept { in weak_ordering()
[all …]
/llvm-project-15.0.7/clang/test/PCH/Inputs/
H A Dstd-compare.h27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering()
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering()
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering()
34 constexpr bool __is_ordered() const noexcept { in __is_ordered()
63 constexpr bool test_eq(partial_ordering const &other) const noexcept { in test_eq()
130 constexpr operator partial_ordering() const noexcept { in partial_ordering()
153 constexpr bool test_eq(weak_ordering const &other) const noexcept { in test_eq()
161 inline constexpr weak_ordering weak_ordering::less(_OrdResult::__less);
220 constexpr operator partial_ordering() const noexcept { in partial_ordering()
224 constexpr operator weak_ordering() const noexcept { in weak_ordering()
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/Inputs/
H A Dstd-compare.h27 explicit constexpr partial_ordering(_EqResult __v) noexcept in partial_ordering()
29 explicit constexpr partial_ordering(_OrdResult __v) noexcept in partial_ordering()
31 explicit constexpr partial_ordering(_NCmpResult __v) noexcept in partial_ordering()
34 constexpr bool __is_ordered() const noexcept { in __is_ordered()
63 constexpr bool test_eq(partial_ordering const &other) const noexcept { in test_eq()
130 constexpr operator partial_ordering() const noexcept { in partial_ordering()
153 constexpr bool test_eq(weak_ordering const &other) const noexcept { in test_eq()
161 inline constexpr weak_ordering weak_ordering::less(_OrdResult::__less);
220 constexpr operator partial_ordering() const noexcept { in partial_ordering()
224 constexpr operator weak_ordering() const noexcept { in weak_ordering()
[all …]
/llvm-project-15.0.7/llvm/lib/Support/
H A DX86TargetParser.cpp34 constexpr FeatureBitset() = default;
44 constexpr FeatureBitset &set(unsigned I) { in set()
135 constexpr FeatureBitset FeaturesNocona =
151 constexpr FeatureBitset FeaturesCore2 =
154 constexpr FeatureBitset FeaturesNehalem =
161 constexpr FeatureBitset FeaturesHaswell =
169 constexpr FeatureBitset FeaturesKNL =
233 constexpr FeatureBitset FeaturesGeode =
240 constexpr FeatureBitset FeaturesAthlon =
244 constexpr FeatureBitset FeaturesK8 =
[all …]
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_dense_map_info.h40 constexpr DenseMapPair() = default;
41 constexpr DenseMapPair(const KeyT &f, const ValueT &s) in DenseMapPair()
45 constexpr DenseMapPair(KeyT2 &&f, ValueT2 &&s) in DenseMapPair()
81 static constexpr uptr Log2MaxAlign = 12;
83 static constexpr T *getEmptyKey() {
89 static constexpr T *getTombstoneKey() {
107 static constexpr char getEmptyKey() { return ~0; }
220 static constexpr long getEmptyKey() {
239 static constexpr long long getTombstoneKey() {
259 static constexpr Pair getEmptyKey() {
[all …]
/llvm-project-15.0.7/libc/src/__support/FPUtil/
H A DFloatProperties.h31 static constexpr uint32_t EXPONENT_WIDTH = 8;
83 static constexpr uint32_t MANTISSA_WIDTH =
85 static constexpr uint32_t EXPONENT_WIDTH =
87 static constexpr BitsType MANTISSA_MASK =
90 static constexpr BitsType EXPONENT_MASK =
92 static constexpr uint32_t EXPONENT_BIAS =
95 static constexpr BitsType EXP_MANT_MASK =
103 static constexpr BitsType QUIET_NAN_MASK =
125 static constexpr BitsType SIGN_MASK =
127 static constexpr BitsType EXPONENT_MASK =
[all …]
/llvm-project-15.0.7/clang/test/CodeGenCXX/
H A Dconst-init-cxx11.cpp9 constexpr U(int x) : x(x) {} in U()
38 constexpr C() : c(0) {} in C()
46 constexpr D() : d(5) {} in D()
112 constexpr C ctors[3];
123 extern constexpr E e = E();
393 constexpr int &&ref = 0;
414 constexpr A &&b = {42};
504 constexpr X() : T() {} in X()
513 constexpr int *p = &n;
526 constexpr int &r = n;
[all …]
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DAMDGPUMetadata.h33 constexpr uint32_t VersionMajorV2 = 1;
35 constexpr uint32_t VersionMinorV2 = 0;
38 constexpr uint32_t VersionMajorV3 = 1;
40 constexpr uint32_t VersionMinorV3 = 0;
43 constexpr uint32_t VersionMajorV4 = 1;
173 constexpr char Name[] = "Name";
177 constexpr char Size[] = "Size";
181 constexpr char Align[] = "Align";
384 constexpr char Name[] = "Name";
392 constexpr char Attrs[] = "Attrs";
[all …]
/llvm-project-15.0.7/libcxx/include/
H A Dnumbers45 inline constexpr double e = e_v<double>;
48 inline constexpr double pi = pi_v<double>;
51 inline constexpr double ln2 = ln2_v<double>;
52 inline constexpr double ln10 = ln10_v<double>;
57 inline constexpr double phi = phi_v<double>;
78 inline constexpr bool __false = false;
114 inline constexpr double e = e_v<double>;
117 inline constexpr double pi = pi_v<double>;
120 inline constexpr double ln2 = ln2_v<double>;
121 inline constexpr double ln10 = ln10_v<double>;
[all …]
/llvm-project-15.0.7/clang/test/CXX/special/class.copy/
H A Dp13-0x.cpp6 constexpr Constexpr1() : n(0) {} in Constexpr1()
14 constexpr Constexpr2() = default;
31 constexpr NonConstexprCopy() = default;
53 constexpr Constexpr4 c4a = { ncd };
60 constexpr Constexpr5 ce5copy = ce5move;
97 friend constexpr U::U() noexcept;
98 friend constexpr U::U(U&&) noexcept;
101 friend constexpr V::V(V&&) noexcept;
104 friend constexpr W::W(W&&) noexcept;
106 friend constexpr S<U>::S() noexcept;
[all …]
/llvm-project-15.0.7/clang/test/CXX/special/class.inhctor/
H A Dp2.cpp15 constexpr A(X<1>) {} in A()
27 constexpr A a1c { X<1>{} };
28 constexpr A a1ic = { X<1>{} };
37 constexpr A a3c { X<3>{} };
52 constexpr B b1c { X<1>{} };
53 constexpr B b1ic = { X<1>{} };
62 constexpr B b3c { X<3>{} };
69 struct Constexpr { constexpr Constexpr(int) {} }; in Constexpr()
93 constexpr ConstexprEval3 ce{4, "foobar"};
99 constexpr TemplateCtors() {} in TemplateCtors()
[all …]

12345678910>>...147