Home
last modified time | relevance | path

Searched refs:IntT (Results 1 – 15 of 15) sorted by relevance

/llvm-project-15.0.7/libcxx/benchmarks/
H A DGenerateInput.h38 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 Dalgorithms.partition_point.bench.cpp28 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 Dclamp_to_integral.pass.cpp20 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 DPointerEmbeddedInt.h32 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 Drandom.pass.cpp22 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 DDialectImplementation.h86 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 DOpImplementation.h604 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 Dfold-character.cpp57 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 Dfold-logical.cpp87 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 DUDT_is_rejected.fail.cpp18 template <class IntT>
20 operator IntT() const { return 1; } in operator IntT()
/llvm-project-15.0.7/llvm/include/llvm/Support/
H A DScaledNumber.h540 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 DInstrProfReader.h338 template <class IntT> IntT swap(IntT Int) const { in swap()
/llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp239 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 DAsmPrinter.cpp3008 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 DSemaChecking.cpp14255 static bool checkOpenCLEnqueueIntType(Sema &S, Expr *E, const QualType &IntT) { in checkOpenCLEnqueueIntType() argument
14265 CheckImplicitConversion(S, E, IntT, E->getBeginLoc()); in checkOpenCLEnqueueIntType()