| /llvm-project-15.0.7/libc/test/src/math/ |
| H A D | ModfTest.h | 27 T integral; in testSpecialNumbers() local 30 EXPECT_FP_EQ(integral, zero); in testSpecialNumbers() 35 EXPECT_FP_EQ(inf, integral); in testSpecialNumbers() 37 EXPECT_FP_EQ(neg_inf, integral); in testSpecialNumbers() 43 T integral; in testIntegers() local 46 EXPECT_FP_EQ(T(1.0), integral); in testIntegers() 49 EXPECT_FP_EQ(T(-1.0), integral); in testIntegers() 65 T integral; in testFractions() local 68 EXPECT_FP_EQ(integral, T(1.0)); in testFractions() 94 T integral; in testRange() local [all …]
|
| /llvm-project-15.0.7/libcxx/test/std/concepts/concepts.lang/concepts.arithmetic/ |
| H A D | integral.pass.cpp | 22 constexpr bool result = std::integral<T>; in CheckIntegralQualifiers() 27 static_assert(!std::integral<T&>); in CheckIntegralQualifiers() 28 static_assert(!std::integral<const T&>); in CheckIntegralQualifiers() 32 static_assert(!std::integral<T&&>); in CheckIntegralQualifiers() 33 static_assert(!std::integral<const T&&>); in CheckIntegralQualifiers() 37 static_assert(!std::integral<T*>); in CheckIntegralQualifiers() 38 static_assert(!std::integral<const T*>); in CheckIntegralQualifiers() 42 static_assert(!std::integral<T (*)()>); in CheckIntegralQualifiers() 43 static_assert(!std::integral<T (&)()>); in CheckIntegralQualifiers() 44 static_assert(!std::integral<T(&&)()>); in CheckIntegralQualifiers() [all …]
|
| H A D | arithmetic.h | 14 template <std::integral I> 20 template <std::integral I> 26 template <std::integral I>
|
| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | signed-char-bool-conversion.m | 19 b = i; // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}} 39 bp.p = i; // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}} 57 b = bf->signed_bf1; // expected-warning{{implicit conversion from integral type 'int' to 'BOOL'}} 58 b = bf->signed_bf2; // expected-warning{{implicit conversion from integral type 'int' to 'BOOL'}} 86 …b = unsigned_bf2; // expected-warning{{implicit conversion from integral type 'unsigned int' to 'B… 99 …BOOL b = i.i; // expected-warning{{implicit conversion from integral type 'unsigned int' to 'BOOL'… 111 b = b ?: i; // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}} 112 b = (b = i) // expected-warning {{implicit conversion from integral type 'int' to 'BOOL'}} 114 …b = (1 ? YES : i) ?: YES; // expected-warning {{implicit conversion from integral type 'int' to 'B… 115 …b = b ?: (1 ? i : i); // expected-warning 2 {{implicit conversion from integral type 'int' to 'BOO… [all …]
|
| H A D | arc-dict-bridged-cast.m | 31 …ubscript type 'CFStringRef' (aka 'const struct __CFString *') is not an integral or Objective-C po… 32 …bscript type 'CFMutableStringRef' (aka 'struct __CFString *') is not an integral or Objective-C po…
|
| H A D | objc-container-subscripting-2.m | 19 …indexing expression is invalid because subscript type 'float' is not an integral or Objective-C po… 20 …ndexing expression is invalid because subscript type 'double' is not an integral or Objective-C po…
|
| H A D | objc-container-subscripting.m | 15 …Object = array[10]; // expected-error {{method index parameter type 'double' is not integral type}} 16 array[3] = 0; // expected-error {{method index parameter type 'void *' is not integral type}} \
|
| H A D | attr-swift-async-error.m | 41 …ift_async_error' attribute with 'zero_argument' convention must have an integral-typed parameter i… 81 …_async_error' attribute with 'nonzero_argument' convention must have an integral-typed parameter i…
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/performance/ |
| H A D | no-int-to-ptr.rst | 8 While casting an (integral) pointer to an integer is obvious - you just get 9 the integral value of the pointer, casting an integer to an (integral) pointer 10 is deceivingly different. While you will get a pointer with that integral value, 11 if you got that integral value via a pointer-to-integer cast originally, 14 So while (integral) pointer to integer casts are effectively no-ops, 15 and are transparent to the optimizer, integer to (integral) pointer casts
|
| /llvm-project-15.0.7/libcxx/include/__concepts/ |
| H A D | arithmetic.h | 28 concept integral = is_integral_v<_Tp>; variable 31 concept signed_integral = integral<_Tp> && is_signed_v<_Tp>; 34 concept unsigned_integral = integral<_Tp> && !signed_integral<_Tp>;
|
| /llvm-project-15.0.7/libcxx/include/ |
| H A D | atomic | 134 integral operator=(integral desr) volatile noexcept; 135 integral operator=(integral desr) noexcept; 137 integral exchange(integral desr, 176 integral operator+=(integral op) volatile noexcept; 177 integral operator+=(integral op) noexcept; 178 integral operator-=(integral op) volatile noexcept; 179 integral operator-=(integral op) noexcept; 180 integral operator&=(integral op) volatile noexcept; 181 integral operator&=(integral op) noexcept; 183 integral operator|=(integral op) noexcept; [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/docs/clang-tidy/checks/bugprone/ |
| H A D | integer-division.rst | 11 - operands of operators expecting integral or bool types, 12 - call expressions of integral or bool types, and 13 - explicit cast expressions to integral or bool types,
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | OperationKinds.def | 170 /// CK_PointerToIntegral - Pointer to integral. A special kind of 193 /// CK_IntegralCast - A cast between integral types (other than to 220 /// CK_FixedPointToIntegral - Fixed point to integral. 232 /// CK_FloatingToIntegral - Floating point to integral. Rounds 287 /// Converts from a floating complex to an integral complex. 291 /// Converts from an integral real to an integral complex 297 /// Converts an integral complex to an integral real of the 302 /// Converts an integral complex to bool by comparing against 306 /// Converts between different integral complex types. 311 /// Converts from an integral complex to a floating complex.
|
| /llvm-project-15.0.7/clang/test/CodeCompletion/ |
| H A D | concepts.cpp | 3 template <typename T> concept integral = true; 7 { b.www } noexcept -> integral;
|
| /llvm-project-15.0.7/llvm/test/CodeGen/SystemZ/ |
| H A D | call-zos-vec.ll | 34 ; Verify that 3 is used for passing integral types if 44 ; Verify that 3 is not allocated for passing integral types 55 ; Verify that 3 is not allocated for passing integral types
|
| /llvm-project-15.0.7/llvm/test/Transforms/SROA/ |
| H A D | non-integral-pointers.ll | 4 ; casts from and to non-integral pointers. The "ni:4" bit in the 6 ; considered "non-integral". 64 ;; pattern for a non-integral bit pattern is that null is zero. As such
|
| /llvm-project-15.0.7/mlir/test/Dialect/SparseTensor/ |
| H A D | invalid_encoding.mlir | 38 #a = #sparse_tensor.encoding<{pointerBitWidth = "x"}> // expected-error {{expected an integral poin… 48 ….encoding<{indexBitWidth = "not really"}> // expected-error {{expected an integral index bitwidth}}
|
| /llvm-project-15.0.7/clang/test/Sema/ |
| H A D | vector-decl-crash.c | 6 … expected-error {{vector size not an integral multiple of component size}}
|
| /llvm-project-15.0.7/llvm/test/Transforms/LoopIdiom/ |
| H A D | non-integral-pointers.ll | 8 ; they're integral pointers. 41 ; they're non-integral pointers. NOTE: Zero is special value which 74 ; Same as previous case, but vector of non-integral pointers
|
| /llvm-project-15.0.7/llvm/test/Transforms/InstCombine/ |
| H A D | non-integral-pointers.ll | 16 ; inttoptr is fine here since addrspace(3) is integral. 26 ; integers, since pointers in address space 4 are non-integral. 41 ; integers, since pointers in address space 3 are integral.
|
| /llvm-project-15.0.7/llvm/test/Transforms/CodeGenPrepare/X86/ |
| H A D | nonintegral.ll | 4 ; This target data layout is modified to have a non-integral addrspace(1), 32 ; Doing the inttoptr in the integral addrspace(0) followed by an explicit
|
| /llvm-project-15.0.7/libcxx/include/__bit/ |
| H A D | byteswap.h | 26 template <integral _Tp>
|
| /llvm-project-15.0.7/clang/test/SemaOpenCL/ |
| H A D | invalid-kernel-attrs.cl | 41 …xpected-error{{'work_group_size_hint' attribute requires a non-negative integral compile time cons… 42 …xpected-error{{'reqd_work_group_size' attribute requires a non-negative integral compile time cons…
|
| H A D | unroll-hint.cl | 15 … // expected-error {{'opencl_unroll_hint' attribute requires a positive integral compile time cons…
|
| /llvm-project-15.0.7/clang/docs/ |
| H A D | ObjectiveCLiterals.rst | 49 // integral literals. 149 Although enum values are integral, they may not be used directly as 361 When the subscript operand has an integral type, the expression is 364 element using an integral index, as in the following example: 377 When an expression writes an element using an integral index: 391 must be declared with an argument of integral type and a return value of 395 integral type. 460 Currently, only subscripts of integral or Objective-C object pointer 462 conversion function to an integral or Objective-C pointer type, in which
|