Home
last modified time | relevance | path

Searched refs:is_same_v (Results 1 – 25 of 125) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DInterpStack.h156 if constexpr (std::is_same_v<T, Pointer>) in toPrimType()
158 else if constexpr (std::is_same_v<T, bool> || std::is_same_v<T, Boolean>) in toPrimType()
160 else if constexpr (std::is_same_v<T, int8_t> || in toPrimType()
161 std::is_same_v<T, Integral<8, true>>) in toPrimType()
163 else if constexpr (std::is_same_v<T, uint8_t> || in toPrimType()
164 std::is_same_v<T, Integral<8, false>>) in toPrimType()
166 else if constexpr (std::is_same_v<T, int16_t> || in toPrimType()
167 std::is_same_v<T, Integral<16, true>>) in toPrimType()
169 else if constexpr (std::is_same_v<T, uint16_t> || in toPrimType()
170 std::is_same_v<T, Integral<16, false>>) in toPrimType()
[all …]
H A DPrimType.h80 return std::is_same_v<T, IntegralAP<false>> || in needsAlloc()
81 std::is_same_v<T, IntegralAP<true>> || std::is_same_v<T, Floating>; in needsAlloc()
/freebsd/contrib/llvm-project/lldb/include/lldb/Interpreter/
H A DOptionValue.h267 if constexpr (std::is_same_v<T, uint64_t>) in GetValueAs()
269 if constexpr (std::is_same_v<T, int64_t>) in GetValueAs()
271 if constexpr (std::is_same_v<T, bool>) in GetValueAs()
273 if constexpr (std::is_same_v<T, char>) in GetValueAs()
275 if constexpr (std::is_same_v<T, lldb::Format>) in GetValueAs()
277 if constexpr (std::is_same_v<T, FileSpec>) in GetValueAs()
279 if constexpr (std::is_same_v<T, FileSpecList>) in GetValueAs()
281 if constexpr (std::is_same_v<T, lldb::LanguageType>) in GetValueAs()
283 if constexpr (std::is_same_v<T, llvm::StringRef>) in GetValueAs()
285 if constexpr (std::is_same_v<T, ArchSpec>) in GetValueAs()
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A Dcast.h30 if constexpr (cpp::is_same_v<InType, OutType>) in cast()
34 if constexpr (cpp::is_same_v<OutType, bfloat16> || in cast()
35 cpp::is_same_v<InType, bfloat16> in cast()
37 || cpp::is_same_v<OutType, float16> || in cast()
38 cpp::is_same_v<InType, float16> in cast()
H A DFPBits.h793 if constexpr (cpp::is_same_v<UnqualT, float> && __FLT_MANT_DIG__ == 24)
795 else if constexpr (cpp::is_same_v<UnqualT, double> && __DBL_MANT_DIG__ == 53)
797 else if constexpr (cpp::is_same_v<UnqualT, long double>) {
806 else if constexpr (cpp::is_same_v<UnqualT, float16>)
810 else if constexpr (cpp::is_same_v<UnqualT, float128>)
813 else if constexpr (cpp::is_same_v<UnqualT, bfloat16>)
839 if constexpr (cpp::is_same_v<Unqual, T>) {
841 } else if constexpr (cpp::is_same_v<Unqual, StorageType>) {
/freebsd/contrib/llvm-project/llvm/include/llvm/SandboxIR/
H A DUtils.h58 static_assert(std::is_same_v<LoadOrStoreT, LoadInst> || in getMemInstructionBase()
59 std::is_same_v<LoadOrStoreT, StoreInst>, in getMemInstructionBase()
95 static_assert(std::is_same_v<LoadOrStoreT, LoadInst> || in getPointerDiffInBytes()
96 std::is_same_v<LoadOrStoreT, StoreInst>, in getPointerDiffInBytes()
/freebsd/contrib/llvm-project/libcxx/include/__compare/
H A Dcommon_comparison_category.h31 if (is_same_v<_Tp, partial_ordering>) in __type_to_enum()
33 if (is_same_v<_Tp, weak_ordering>) in __type_to_enum()
35 if (is_same_v<_Tp, strong_ordering>) in __type_to_enum()
H A Dweak_order.h38 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
47 requires is_same_v<_Dp, decay_t<_Up>> && is_floating_point_v<_Dp>
73 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
81 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
H A Dstrong_order.h45 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
54 requires is_same_v<_Dp, decay_t<_Up>> && is_floating_point_v<_Dp>
99 if constexpr (is_same_v<_IntType, void>) { in __go()
117 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
H A Dpartial_order.h36 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
45 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
53 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
H A Dordering.h43 template <class _Tp, class = __enable_if_t<is_same_v<_Tp, int> > >
276is_same_v<_Tp, partial_ordering> || is_same_v<_Tp, weak_ordering> || is_same_v<_Tp, strong_orderin…
H A Dcompare_strong_order_fallback.h33 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
41 requires is_same_v<decay_t<_Tp>, decay_t<_Up>> && requires(_Tp&& __t, _Up&& __u) { in requires()
H A Dcompare_weak_order_fallback.h33 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
41 requires is_same_v<decay_t<_Tp>, decay_t<_Up>> && requires(_Tp&& __t, _Up&& __u) { in requires()
H A Dcompare_partial_order_fallback.h33 requires is_same_v<decay_t<_Tp>, decay_t<_Up>>
41 requires is_same_v<decay_t<_Tp>, decay_t<_Up>> && requires(_Tp&& __t, _Up&& __u) { in requires()
/freebsd/contrib/llvm-project/libcxx/include/experimental/__simd/
H A Dutility.h37 is_arithmetic_v<_Tp> && !is_const_v<_Tp> && !is_volatile_v<_Tp> && !is_same_v<_Tp, bool>;
74 (!__is_vectorizable_v<_Up> && is_convertible_v<_Up, _Tp>) || is_same_v<_Up, int> ||
75 (is_same_v<_Up, unsigned int> && is_unsigned_v<_Tp>);
H A Dsimd_mask.h55 …template <class _Up, enable_if_t<!is_same_v<_Up, _Tp> && is_same_v<abi_type, simd_abi::fixed_size<…
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/
H A DMemProfYAML.h89 static_assert(std::is_same_v<decltype(Function.value),
109 std::is_same_v<remove_cvref_t<decltype(Function)>, GlobalValue::GUID>);
110 static_assert(std::is_same_v<remove_cvref_t<decltype(SymbolName)>,
113 std::is_same_v<remove_cvref_t<decltype(LineOffset)>, uint32_t>);
114 static_assert(std::is_same_v<remove_cvref_t<decltype(Column)>, uint32_t>);
116 std::is_same_v<remove_cvref_t<decltype(IsInlineFrame)>, bool>);
/freebsd/contrib/llvm-project/lldb/source/Plugins/Instruction/RISCV/
H A DEmulateInstructionRISCV.cpp189 std::is_same_v<T, LB> || std::is_same_v<T, LH> || std::is_same_v<T, LW> ||
190 std::is_same_v<T, LD> || std::is_same_v<T, LBU> || std::is_same_v<T, LHU> ||
191 std::is_same_v<T, LWU>;
194 constexpr bool is_store = std::is_same_v<T, SB> || std::is_same_v<T, SH> ||
195 std::is_same_v<T, SW> || std::is_same_v<T, SD>;
199 std::is_same_v<T, AMOADD_W> || std::is_same_v<T, AMOADD_D>;
203 std::is_same_v<T, AMOXOR_W> || std::is_same_v<T, AMOXOR_D> ||
204 std::is_same_v<T, AMOAND_W> || std::is_same_v<T, AMOAND_D> ||
205 std::is_same_v<T, AMOOR_W> || std::is_same_v<T, AMOOR_D>;
209 std::is_same_v<T, AMOSWAP_W> || std::is_same_v<T, AMOSWAP_D>;
[all …]
/freebsd/contrib/llvm-project/libc/src/__support/CPP/type_traits/
H A Dis_complex.h26 return (... || is_same_v<remove_cv_t<Head>, Args>); in __is_unqualified_any_of()
47 return is_same_v<remove_cv_t<T1>, T2>; in is_complex_type_same()
/freebsd/contrib/llvm-project/libcxx/include/__functional/
H A Dboyer_moore_searcher.h98 … is_integral_v<value_type> && sizeof(value_type) == 1 && is_same_v<_Hash, hash<value_type>> &&
99 is_same_v<_BinaryPredicate, equal_to<>>>;
126 …static_assert(is_same_v<__remove_cvref_t<typename iterator_traits<_RandomAccessIterator1>::value_t… in operator()
229 … is_integral_v<value_type> && sizeof(value_type) == 1 && is_same_v<_Hash, hash<value_type>> &&
230 is_same_v<_BinaryPredicate, equal_to<>>>;
257 …static_assert(is_same_v<__remove_cvref_t<typename std::iterator_traits<_RandomAccessIterator1>::va… in operator()
/freebsd/contrib/llvm-project/libcxx/include/__math/
H A Dhypot.h97 …std::is_same_v<_A1, __result_type> && std::is_same_v<_A2, __result_type> && std::is_same_v<_A3, __… in hypot()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DTargetRegisterInfo.cpp208 static_assert(std::is_same_v<TypeT, MVT> || std::is_same_v<TypeT, LLT>); in getMinimalPhysRegClass()
212 if constexpr (std::is_same_v<TypeT, MVT>) in getMinimalPhysRegClass()
227 if constexpr (std::is_same_v<TypeT, MVT>) in getMinimalPhysRegClass()
236 static_assert(std::is_same_v<TypeT, MVT> || std::is_same_v<TypeT, LLT>); in getCommonMinimalPhysRegClass()
241 if constexpr (std::is_same_v<TypeT, MVT>) in getCommonMinimalPhysRegClass()
256 if constexpr (std::is_same_v<TypeT, MVT>) in getCommonMinimalPhysRegClass()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DLowLevelHelpers.cpp31 static_assert(std::is_same_v<CallExpr, ExprNode> || in matchEachArgumentWithParamTypeImpl()
32 std::is_same_v<CXXConstructExpr, ExprNode>); in matchEachArgumentWithParamTypeImpl()
/freebsd/contrib/llvm-project/libcxx/include/__string/
H A Dconstexpr_c_functions.h55 if constexpr (is_same_v<_Tp, char>) in __constexpr_strlen()
137 if constexpr (is_same_v<remove_cv_t<_Tp>, char> && is_same_v<remove_cv_t<_Up>, char>) in __constexpr_memchr()
/freebsd/contrib/llvm-project/libcxx/include/__expected/
H A Dexpected.h452 …static_assert(!is_reference_v<_Tp> && !is_function_v<_Tp> && !is_same_v<remove_cv_t<_Tp>, in_place…
453 … !is_same_v<remove_cv_t<_Tp>, unexpect_t> && !__is_std_unexpected<remove_cv_t<_Tp>>::value &&
559 …requires(!is_same_v<remove_cvref_t<_Up>, in_place_t> && !is_same_v<expected, remove_cvref_t<_Up>> …
561 (!is_same_v<remove_cv_t<_Tp>, bool> || !__is_std_expected<remove_cvref_t<_Up>>::value))
673 …requires(!is_same_v<expected, remove_cvref_t<_Up>> && !__is_std_unexpected<remove_cvref_t<_Up>>::v…
927 static_assert(is_same_v<typename _Up::error_type, _Err>,
940 static_assert(is_same_v<typename _Up::error_type, _Err>,
954 static_assert(is_same_v<typename _Up::error_type, _Err>,
968 static_assert(is_same_v<typename _Up::error_type, _Err>,
981 static_assert(is_same_v<typename _Gp::value_type, _Tp>,
[all …]

12345