Home
last modified time | relevance | path

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

12345678910>>...78

/freebsd/contrib/llvm-project/libc/src/__support/fixed_point/
H A Dfx_rep.h43 LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1;
44 LIBC_INLINE_VAR static constexpr int INTEGRAL_LEN = 0;
45 LIBC_INLINE_VAR static constexpr int FRACTION_LEN = SFRACT_FBIT;
46 LIBC_INLINE_VAR static constexpr int VALUE_LEN = INTEGRAL_LEN + FRACTION_LEN;
47 LIBC_INLINE_VAR static constexpr int TOTAL_LEN = SIGN_LEN + VALUE_LEN;
49 LIBC_INLINE static constexpr Type MIN() { return SFRACT_MIN; }
50 LIBC_INLINE static constexpr Type MAX() { return SFRACT_MAX; }
51 LIBC_INLINE static constexpr Type ZERO() { return 0.0HR; }
52 LIBC_INLINE static constexpr Type EPS() { return SFRACT_EPSILON; }
53 LIBC_INLINE static constexpr Type ONE_HALF() { return 0.5HR; }
[all …]
/freebsd/contrib/llvm-project/llvm/lib/TargetParser/
H A DX86TargetParser.cpp49 constexpr FeatureBitset Feature##ENUM = {X86::FEATURE_##ENUM};
53 constexpr FeatureBitset FeaturesPentiumMMX =
57 constexpr FeatureBitset FeaturesPentium2 =
59 constexpr FeatureBitset FeaturesPentium3 = FeaturesPentium2 | FeatureSSE;
62 constexpr FeatureBitset FeaturesPentium4 = FeaturesPentium3 | FeatureSSE2;
63 constexpr FeatureBitset FeaturesPrescott = FeaturesPentium4 | FeatureSSE3;
64 constexpr FeatureBitset FeaturesNocona =
68 constexpr FeatureBitset FeaturesX86_64 = FeaturesPentium4 | Feature64BIT;
69 constexpr FeatureBitset FeaturesX86_64_V2 = FeaturesX86_64 | FeatureSAHF |
72 constexpr FeatureBitset FeaturesX86_64_V3 =
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_dense_map_info.h21 static constexpr unsigned combineHashValue(unsigned a, unsigned b) { in combineHashValue()
40 constexpr DenseMapPair() = default;
41 constexpr DenseMapPair(const KeyT &f, const ValueT &s) in DenseMapPair()
45 constexpr DenseMapPair(KeyT2 &&f, ValueT2 &&s) in DenseMapPair()
49 constexpr DenseMapPair(const DenseMapPair &other) = default;
50 constexpr DenseMapPair &operator=(const DenseMapPair &other) = default;
51 constexpr DenseMapPair(DenseMapPair &&other) = default;
52 constexpr DenseMapPair &operator=(DenseMapPair &&other) = default;
81 static constexpr uptr Log2MaxAlign = 12;
83 static constexpr T *getEmptyKey() {
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/
H A DXCOFF.h29 constexpr size_t FileNamePadSize = 6;
30 constexpr size_t NameSize = 8;
31 constexpr size_t AuxFileEntNameSize = 14;
32 constexpr size_t FileHeaderSize32 = 20;
33 constexpr size_t FileHeaderSize64 = 24;
34 constexpr size_t AuxFileHeaderSize32 = 72;
35 constexpr size_t AuxFileHeaderSize64 = 110;
36 constexpr size_t AuxFileHeaderSizeShort = 28;
37 constexpr size_t SectionHeaderSize32 = 40;
38 constexpr size_t SectionHeaderSize64 = 72;
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/
H A DAMDGPUMetadata.h34 constexpr uint32_t VersionMajorV3 = 1;
36 constexpr uint32_t VersionMinorV3 = 0;
39 constexpr uint32_t VersionMajorV4 = 1;
41 constexpr uint32_t VersionMinorV4 = 1;
44 constexpr uint32_t VersionMajorV5 = 1;
46 constexpr uint32_t VersionMinorV5 = 2;
49 constexpr uint32_t VersionMajorV6 = 1;
51 constexpr uint32_t VersionMinorV6 = 2;
57 constexpr char AssemblerDirectiveBegin[] = ".amd_amdgpu_hsa_metadata";
130 constexpr char ReqdWorkGroupSize[] = "ReqdWorkGroupSize";
[all …]
H A DTypeSize.h97 constexpr FixedOrScalableQuantity() = default;
98 constexpr FixedOrScalableQuantity(ScalarTy Quantity, bool Scalable) in FixedOrScalableQuantity()
101 friend constexpr LeafTy &operator+=(LeafTy &LHS, const LeafTy &RHS) {
111 friend constexpr LeafTy &operator-=(LeafTy &LHS, const LeafTy &RHS) {
121 friend constexpr LeafTy &operator*=(LeafTy &LHS, ScalarTy RHS) {
126 friend constexpr LeafTy operator+(const LeafTy &LHS, const LeafTy &RHS) {
131 friend constexpr LeafTy operator-(const LeafTy &LHS, const LeafTy &RHS) {
136 friend constexpr LeafTy operator*(const LeafTy &LHS, ScalarTy RHS) {
142 friend constexpr std::enable_if_t<std::is_signed_v<U>, LeafTy>
149 constexpr bool operator==(const FixedOrScalableQuantity &RHS) const {
[all …]
/freebsd/contrib/llvm-project/libcxx/include/
H A Dnumbers17 template<class T> inline constexpr T e_v = unspecified;
18 template<class T> inline constexpr T log2e_v = unspecified;
19 template<class T> inline constexpr T log10e_v = unspecified;
20 template<class T> inline constexpr T pi_v = unspecified;
21 template<class T> inline constexpr T inv_pi_v = unspecified;
22 template<class T> inline constexpr T inv_sqrtpi_v = unspecified;
23 template<class T> inline constexpr T ln2_v = unspecified;
24 template<class T> inline constexpr T ln10_v = unspecified;
25 template<class T> inline constexpr T sqrt2_v = unspecified;
26 template<class T> inline constexpr T sqrt3_v = unspecified;
[all …]
H A Dmdspan57 static constexpr rank_type rank() noexcept { return sizeof...(_Extents); }
58 static constexpr rank_type rank_dynamic() noexcept { return dynamic-index(rank()); }
59 static constexpr size_t static_extent(rank_type) noexcept;
60 constexpr index_type extent(rank_type) const noexcept;
63 constexpr extents() noexcept = default;
66 constexpr explicit(see below)
69 constexpr explicit extents(_OtherIndexTypes...) noexcept;
71 constexpr explicit(N != rank_dynamic())
74 constexpr explicit(N != rank_dynamic())
79 friend constexpr bool operator==(const extents&,
[all …]
H A Dcompare23 constexpr bool is_eq (partial_ordering cmp) noexcept { return cmp == 0; }
24 constexpr bool is_neq (partial_ordering cmp) noexcept { return cmp != 0; }
25 constexpr bool is_lt (partial_ordering cmp) noexcept { return cmp < 0; }
26 constexpr bool is_lteq(partial_ordering cmp) noexcept { return cmp <= 0; }
27 constexpr bool is_gt (partial_ordering cmp) noexcept { return cmp > 0; }
28 constexpr bool is_gteq(partial_ordering cmp) noexcept { return cmp >= 0; }
55 inline constexpr unspecified strong_order = unspecified;
56 inline constexpr unspecified weak_order = unspecified;
57 inline constexpr unspecified partial_order = unspecified;
58 inline constexpr unspecified compare_strong_order_fallback = unspecified;
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A DFPBits.h100 LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1;
101 LIBC_INLINE_VAR static constexpr int EXP_LEN = 5;
102 LIBC_INLINE_VAR static constexpr int SIG_LEN = 10;
103 LIBC_INLINE_VAR static constexpr int FRACTION_LEN = SIG_LEN;
108 LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1;
109 LIBC_INLINE_VAR static constexpr int EXP_LEN = 8;
110 LIBC_INLINE_VAR static constexpr int SIG_LEN = 23;
111 LIBC_INLINE_VAR static constexpr int FRACTION_LEN = SIG_LEN;
116 LIBC_INLINE_VAR static constexpr int SIGN_LEN = 1;
117 LIBC_INLINE_VAR static constexpr int EXP_LEN = 11;
[all …]
/freebsd/contrib/llvm-project/lld/MachO/
H A DInputSection.h312 constexpr const char authGot[] = "__auth_got";
313 constexpr const char authPtr[] = "__auth_ptr";
314 constexpr const char binding[] = "__binding";
315 constexpr const char bitcodeBundle[] = "__bundle";
316 constexpr const char cString[] = "__cstring";
317 constexpr const char cfString[] = "__cfstring";
318 constexpr const char cgProfile[] = "__cg_profile";
319 constexpr const char chainFixups[] = "__chainfixups";
320 constexpr const char codeSignature[] = "__code_signature";
321 constexpr const char common[] = "__common";
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGenTypes/
H A DLowLevelType.h43 static constexpr LLT scalar(unsigned SizeInBits) { in scalar()
50 static constexpr LLT token() { in token()
58 static constexpr LLT pointer(unsigned AddressSpace, unsigned SizeInBits) { in pointer()
65 static constexpr LLT vector(ElementCount EC, unsigned ScalarSizeInBits) { in vector()
72 static constexpr LLT vector(ElementCount EC, LLT ScalarTy) { in vector()
85 static constexpr LLT float16() { in float16()
90 static constexpr LLT float32() { in float32()
95 static constexpr LLT float64() { in float64()
101 static constexpr LLT fixed_vector(unsigned NumElements, in fixed_vector()
108 static constexpr LLT fixed_vector(unsigned NumElements, LLT ScalarTy) { in fixed_vector()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__chrono/
H A Dyear_month_weekday.h43 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday( in year_month_weekday()
46 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday(const sys_days& __sysd) noexcept in year_month_weekday()
48 _LIBCPP_HIDE_FROM_ABI inline explicit constexpr year_month_weekday(const local_days& __locd) noexcept in year_month_weekday()
50 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday& operator+=(const months&) noexcept;
51 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday& operator-=(const months&) noexcept;
52 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday& operator+=(const years&) noexcept;
53 _LIBCPP_HIDE_FROM_ABI constexpr year_month_weekday& operator-=(const years&) noexcept;
55 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; } in year()
56 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m_; } in month()
57 _LIBCPP_HIDE_FROM_ABI inline constexpr chron in month()
[all...]
H A Dweekday.h35 _LIBCPP_HIDE_FROM_ABI static constexpr unsigned char __weekday_from_days(int __days) noexcept;
39 _LIBCPP_HIDE_FROM_ABI inline explicit constexpr weekday(unsigned __val) noexcept in weekday()
41 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday(const sys_days& __sysd) noexcept in weekday()
43 _LIBCPP_HIDE_FROM_ABI inline explicit constexpr weekday(const local_days& __locd) noexcept in weekday()
46 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday& operator++() noexcept {
50 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday operator++(int) noexcept {
55 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday& operator--() noexcept {
59 _LIBCPP_HIDE_FROM_ABI inline constexpr weekday operator--(int) noexcept {
64 _LIBCPP_HIDE_FROM_ABI constexpr weekday& operator+=(const days& __dd) noexcept;
65 _LIBCPP_HIDE_FROM_ABI constexpr weekday& operator-=(const days& __dd) noexcept;
[all …]
H A Dyear_month_day.h46 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month_day( in year_month_day()
49 _LIBCPP_HIDE_FROM_ABI constexpr year_month_day(const year_month_day_last& __ymdl) noexcept;
50 _LIBCPP_HIDE_FROM_ABI inline constexpr year_month_day(const sys_days& __sysd) noexcept in year_month_day()
52 _LIBCPP_HIDE_FROM_ABI inline explicit constexpr year_month_day(const local_days& __locd) noexcept in year_month_day()
55 _LIBCPP_HIDE_FROM_ABI constexpr year_month_day& operator+=(const months& __dm) noexcept;
56 _LIBCPP_HIDE_FROM_ABI constexpr year_month_day& operator-=(const months& __dm) noexcept;
57 _LIBCPP_HIDE_FROM_ABI constexpr year_month_day& operator+=(const years& __dy) noexcept;
58 _LIBCPP_HIDE_FROM_ABI constexpr year_month_day& operator-=(const years& __dy) noexcept;
60 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::year year() const noexcept { return __y_; } in year()
61 _LIBCPP_HIDE_FROM_ABI inline constexpr chrono::month month() const noexcept { return __m_; } in month()
[all …]
H A Dmonth.h33 _LIBCPP_HIDE_FROM_ABI explicit inline constexpr month(unsigned __val) noexcept in month()
35 _LIBCPP_HIDE_FROM_ABI inline constexpr month& operator++() noexcept {
39 _LIBCPP_HIDE_FROM_ABI inline constexpr month operator++(int) noexcept {
44 _LIBCPP_HIDE_FROM_ABI inline constexpr month& operator--() noexcept {
48 _LIBCPP_HIDE_FROM_ABI inline constexpr month operator--(int) noexcept {
53 _LIBCPP_HIDE_FROM_ABI constexpr month& operator+=(const months& __m1) noexcept;
54 _LIBCPP_HIDE_FROM_ABI constexpr month& operator-=(const months& __m1) noexcept;
55 …_LIBCPP_HIDE_FROM_ABI explicit inline constexpr operator unsigned() const noexcept { return __m_; }
56 …_LIBCPP_HIDE_FROM_ABI inline constexpr bool ok() const noexcept { return __m_ >= 1 && __m_ <= 12; } in ok()
59 _LIBCPP_HIDE_FROM_ABI inline constexpr bool operator==(const month& __lhs, const month& __rhs) noex…
[all …]
H A Dformatter.h106 if constexpr (chrono::treat_as_floating_point_v<_Rep>) in __format_sub_seconds()
139 if constexpr (chrono::treat_as_floating_point_v<typename _Duration::rep>) in __format_sub_seconds()
161 if constexpr (__is_time_point<_Tp>) in __use_fraction()
164 else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>) in __use_fraction()
167 else if constexpr (chrono::__is_duration_v<_Tp>) in __use_fraction()
169 else if constexpr (__is_hh_mm_ss<_Tp>) in __use_fraction()
236 if constexpr (same_as<_Tp, chrono::sys_info>) in __convert_to_time_zone()
239 …else if constexpr (__is_time_point<_Tp> && requires { requires same_as<typename _Tp::clock, chrono… in __convert_to_time_zone()
241 …else if constexpr (__is_time_point<_Tp> && requires { requires same_as<typename _Tp::clock, chrono… in __convert_to_time_zone()
243 else if constexpr (__is_specialization_v<_Tp, chrono::zoned_time>) in __convert_to_time_zone()
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__compare/
H A Dordering.h55 …_LIBCPP_HIDE_FROM_ABI explicit constexpr partial_ordering(_PartialOrdResult __v) noexcept : __valu… in partial_ordering()
65 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(partial_ordering, partial_ordering) noexcep…
67 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedParam)…
71 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<(partial_ordering __v, _CmpUnspecifiedParam) …
75 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<=(partial_ordering __v, _CmpUnspecifiedParam)…
79 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>(partial_ordering __v, _CmpUnspecifiedParam) …
83 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>=(partial_ordering __v, _CmpUnspecifiedParam)…
87 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<(_CmpUnspecifiedParam, partial_ordering __v) …
91 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<=(_CmpUnspecifiedParam, partial_ordering __v)…
95 …_LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>(_CmpUnspecifiedParam, partial_ordering __v) …
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/
H A DOrcABISupport.h58 static constexpr unsigned PointerSize = sizeof(uintptr_t);
59 static constexpr unsigned TrampolineSize = 1;
60 static constexpr unsigned StubSize = 1;
61 static constexpr unsigned StubToPointerMaxDisplacement = 1;
62 static constexpr unsigned ResolverCodeSize = 1;
92 static constexpr unsigned PointerSize = 8;
93 static constexpr unsigned TrampolineSize = 12;
94 static constexpr unsigned StubSize = 8;
95 static constexpr unsigned StubToPointerMaxDisplacement = 1U << 27;
96 static constexpr unsigned ResolverCodeSize = 0x120;
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/CPP/
H A Doptional.h22 LIBC_INLINE constexpr explicit nullopt_t() = default;
26 LIBC_INLINE_VAR constexpr nullopt_t nullopt{};
43 LIBC_INLINE constexpr OptionalStorage() : empty() {} in OptionalStorage()
46 LIBC_INLINE constexpr explicit OptionalStorage(in_place_t, Args &&...args) in OptionalStorage()
49 LIBC_INLINE constexpr void reset() { in reset()
66 LIBC_INLINE constexpr OptionalStorage() : empty() {}
69 LIBC_INLINE constexpr explicit OptionalStorage(in_place_t, Args &&...args)
72 LIBC_INLINE constexpr void reset() { in_use = false; }
78 LIBC_INLINE constexpr optional() = default;
79 LIBC_INLINE constexpr optional(nullopt_t) {}
[all …]
H A Darray.h31 LIBC_INLINE constexpr T *data() { return Data; } in data()
32 LIBC_INLINE constexpr const T *data() const { return Data; } in data()
34 LIBC_INLINE constexpr T &front() { return Data[0]; } in front()
35 LIBC_INLINE constexpr const T &front() const { return Data[0]; } in front()
37 LIBC_INLINE constexpr T &back() { return Data[N - 1]; } in back()
38 LIBC_INLINE constexpr const T &back() const { return Data[N - 1]; } in back()
40 LIBC_INLINE constexpr T &operator[](size_t Index) { return Data[Index]; }
42 LIBC_INLINE constexpr const T &operator[](size_t Index) const {
46 LIBC_INLINE constexpr size_t size() const { return N; } in size()
48 LIBC_INLINE constexpr bool empty() const { return N == 0; } in empty()
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DRegister.h23 constexpr Register(unsigned Val = 0) : Reg(Val) {} in Reg()
24 constexpr Register(MCRegister Val) : Reg(Val.id()) {} in Register()
38 static constexpr unsigned FirstStackSlot = 1u << 30;
40 static constexpr unsigned VirtualRegFlag = 1u << 31;
43 constexpr bool isStack() const { in isStack()
55 static constexpr bool isPhysicalRegister(unsigned Reg) { in isPhysicalRegister()
61 static constexpr bool isVirtualRegister(unsigned Reg) { in isVirtualRegister()
74 constexpr bool isVirtual() const { return isVirtualRegister(Reg); } in isVirtual()
78 constexpr bool isPhysical() const { return isPhysicalRegister(Reg); } in isPhysical()
93 constexpr operator unsigned() const { return Reg; }
[all …]
/freebsd/contrib/llvm-project/libcxx/include/__cxx03/
H A Dnumeric20 constexpr T // constexpr since C++20
24 constexpr T // constexpr since C++20
28 constexpr typename iterator_traits<InputIterator>::value_type // constexpr since C++20
32 constexpr T // constexpr since C++20
36 constexpr T // constexpr since C++20
40 constexpr T // constexpr since C++20
44 constexpr T // constexpr since C++20
50 constexpr T // constexpr since C++20
55 constexpr T // constexpr since C++20
61 constexpr T // constexpr since C++20
[all …]
H A Dchrono26 constexpr
32 template <class Rep> inline constexpr bool treat_as_floating_point_v
39 static constexpr Rep zero(); // noexcept in C++20
40 static constexpr Rep max(); // noexcept in C++20
41 static constexpr Rep min(); // noexcept in C++20
56 constexpr duration() = default;
58 constexpr explicit duration(const Rep2& r,
68 constexpr duration(const duration<Rep2, Period2>& d,
77 constexpr rep count() const;
81 constexpr common_type<duration>::type operator+() const;
[all …]
/freebsd/contrib/llvm-project/clang/lib/Headers/hlsl/
H A Dhlsl_compat_overloads.h20 constexpr float fn(double V) { return fn((float)V); } \
21 constexpr float2 fn(double2 V) { return fn((float2)V); } \
22 constexpr float3 fn(double3 V) { return fn((float3)V); } \
23 constexpr float4 fn(double4 V) { return fn((float4)V); }
26 constexpr float fn(double V1, double V2) { \
29 constexpr float2 fn(double2 V1, double2 V2) { \
32 constexpr float3 fn(double3 V1, double3 V2) { \
35 constexpr float4 fn(double4 V1, double4 V2) { \
40 constexpr float fn(double V1, double V2, double V3) { \
43 constexpr float2 fn(double2 V1, double2 V2, double2 V3) { \
[all …]

12345678910>>...78