| /llvm-project-15.0.7/libcxx/benchmarks/ |
| H A D | GenerateInput.h | 38 template <class IntT> 39 inline IntT getRandomInteger(IntT Min, IntT Max) { in getRandomInteger() 50 template <class IntT> 52 std::vector<IntT> inputs(N, static_cast<IntT>(-1)); in getDuplicateIntegerInputs() 56 template <class IntT> 64 template <class IntT> 73 template <class IntT> 75 std::vector<IntT> inputs = getSortedIntegerInputs<IntT>(N); in getSortedTopBitsIntegerInputs() 80 template <class IntT> 91 template <class IntT> [all …]
|
| H A D | algorithms.partition_point.bench.cpp | 28 template <class IntT> 30 static std::vector<IntT> generateInput(size_t size) { in generateInput() 31 std::vector<IntT> Res(size); in generateInput() 33 [] { return getRandomInteger<IntT>(0, std::numeric_limits<IntT>::max()); }); in generateInput()
|
| /llvm-project-15.0.7/libcxx/test/libcxx/numerics/ |
| H A D | clamp_to_integral.pass.cpp | 20 template <class IntT> 22 typedef std::numeric_limits<IntT> Lim; in test() 23 const bool MaxIsRepresentable = sizeof(IntT) < 8; in test() 24 const bool IsSigned = std::is_signed<IntT>::value; in test() 27 IntT Expect; in test() 32 {IsSigned ? static_cast<IntT>(-1) : 0, in test() 33 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test() 51 template <class IntT> 53 typedef std::numeric_limits<IntT> Lim; in test_float() 59 IntT Expect; in test_float() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | PointerEmbeddedInt.h | 32 template <typename IntT, int Bits = sizeof(IntT) * CHAR_BIT> 61 PointerEmbeddedInt(IntT I) { *this = I; } 63 PointerEmbeddedInt &operator=(IntT I) { 72 operator IntT() const { 73 if (std::is_signed<IntT>::value) 75 return static_cast<IntT>(Value >> Shift); 81 template <typename IntT, int Bits> 83 using T = PointerEmbeddedInt<IntT, Bits>; 102 template <typename IntT, int Bits> 104 using T = PointerEmbeddedInt<IntT, Bits>; [all …]
|
| /llvm-project-15.0.7/libcxx/test/libcxx/fuzzing/ |
| H A D | random.pass.cpp | 22 template <class IntT> 24 std::vector<IntT> result; in GetValues() 25 while (size >= sizeof(IntT)) { in GetValues() 26 IntT tmp; in GetValues() 27 std::memcpy(&tmp, data, sizeof(IntT)); in GetValues() 28 size -= sizeof(IntT); in GetValues() 29 data += sizeof(IntT); in GetValues() 88 template <class IntT> 90 using Dist = std::poisson_distribution<IntT>; 104 template <class IntT> [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | DialectImplementation.h | 86 template <typename IntT> 87 struct FieldParser<IntT, 88 std::enable_if_t<std::is_integral<IntT>::value, IntT>> { 89 static FailureOr<IntT> parse(AsmParser &parser) { 90 IntT value;
|
| H A D | OpImplementation.h | 604 template <typename IntT> 605 ParseResult parseInteger(IntT &result) { in parseInteger() 616 template <typename IntT> 617 OptionalParseResult parseOptionalInteger(IntT &result) { in parseOptionalInteger() 630 (IntT)uintResult.sextOrTrunc(sizeof(IntT) * CHAR_BIT).getLimitedValue(); in parseOptionalInteger()
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | fold-character.cpp | 57 using IntT = SubscriptInteger; in FoldIntrinsicFunction() typedef 58 return FoldElementalIntrinsic<T, IntT>(context, std::move(funcRef), in FoldIntrinsicFunction() 59 ScalarFunc<T, IntT>([](const Scalar<IntT> &i) { in FoldIntrinsicFunction()
|
| H A D | fold-logical.cpp | 87 using IntT = typename std::decay_t<decltype(ix)>::Result; in FoldIntrinsicFunction() typedef 88 if (auto *c{UnwrapConstantValue<IntT>(ix)}) { in FoldIntrinsicFunction()
|
| /llvm-project-15.0.7/libcxx/test/std/numerics/complex.number/cmplx.over/ |
| H A D | UDT_is_rejected.fail.cpp | 18 template <class IntT> 20 operator IntT() const { return 1; } in operator IntT()
|
| /llvm-project-15.0.7/llvm/include/llvm/Support/ |
| H A D | ScaledNumber.h | 540 template <class IntT> IntT toInt() const; 779 template <class IntT> 780 IntT ScaledNumber<DigitsT>::toInt() const { in toInt() 781 typedef std::numeric_limits<IntT> Limits; in toInt() 787 IntT N = Digits; in toInt() 789 assert(size_t(Scale) < sizeof(IntT) * 8); in toInt() 793 assert(size_t(-Scale) < sizeof(IntT) * 8); in toInt()
|
| /llvm-project-15.0.7/llvm/include/llvm/ProfileData/ |
| H A D | InstrProfReader.h | 338 template <class IntT> IntT swap(IntT Int) const { in swap()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/ |
| H A D | VarLocBasedImpl.cpp | 239 template<typename IntT> static LocIndex fromRawInteger(IntT ID) { in fromRawInteger() 240 static_assert(std::is_unsigned<IntT>::value && in fromRawInteger()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | AsmPrinter.cpp | 3008 Type *IntT = in emitGlobalConstantVector() local 3011 ConstantExpr::getBitCast(const_cast<ConstantVector *>(CV), IntT), DL)); in emitGlobalConstantVector()
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaChecking.cpp | 14255 static bool checkOpenCLEnqueueIntType(Sema &S, Expr *E, const QualType &IntT) { in checkOpenCLEnqueueIntType() argument 14265 CheckImplicitConversion(S, E, IntT, E->getBeginLoc()); in checkOpenCLEnqueueIntType()
|