/llvm-project/libcxx/benchmarks/ |
H A D | GenerateInput.h |
|
H A D | algorithms.partition_point.bench.cpp |
|
/llvm-project/libcxx/test/libcxx/numerics/ |
H A D | clamp_to_integral.pass.cpp | 9 // __clamp_to_integral<IntT>(RealT) 13 // numeric_limits<IntT>::max()/min() if the value isn't representable. 22 template <class IntT> in test() 24 typedef std::numeric_limits<IntT> Lim; in test() 25 const bool MaxIsRepresentable = sizeof(IntT) < 8; in test() 26 const bool IsSigned = std::is_signed<IntT>::value; in test() 29 IntT Expect; in test() 34 {IsSigned ? static_cast<IntT>(-1) : 0, in test() 35 IsSigned ? static_cast<IntT>(-1) : 0, true}, in test() 43 auto res = std::__clamp_to_integral<IntT>(T in test() [all...] |
/llvm-project/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) { 64 assert((std::is_signed<IntT>::value ? isInt<Bits>(I) : isUInt<Bits>(I)) && 72 operator IntT() const { 73 if (std::is_signed<IntT>::value) 74 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift); 75 return static_cast<IntT>(Value >> Shift); 81 template <typename IntT, int Bits> 82 struct PointerLikeTypeTraits<PointerEmbeddedInt<IntT, Bits>> { [all …]
|
/llvm-project/libcxx/test/libcxx/fuzzing/ |
H A D | random.pass.cpp | 26 template <class IntT> 27 std::vector<IntT> GetValues(const std::uint8_t *data, std::size_t size) { in GetValues() 28 std::vector<IntT> result; in GetValues() 29 while (size >= sizeof(IntT)) { in GetValues() 30 IntT tmp; in GetValues() 31 std::memcpy(&tmp, data, sizeof(IntT)); in GetValues() 32 size -= sizeof(IntT); in GetValues() 33 data += sizeof(IntT); in GetValues() 92 template <class IntT> 93 struct ParamTypeHelper<std::poisson_distribution<IntT>> { [all...] |
/llvm-project/mlir/include/mlir/IR/ |
H A D | DialectImplementation.h | 105 template <typename IntT> 106 struct FieldParser<IntT, 107 std::enable_if_t<std::is_integral<IntT>::value, IntT>> { 108 static FailureOr<IntT> parse(AsmParser &parser) { 109 IntT value = 0; 149 template <typename IntT> 151 std::optional<IntT>, 152 std::enable_if_t<std::is_integral<IntT>::value, std::optional<IntT>>> { [all...] |
H A D | OpImplementation.h | 714 template <typename IntT> in parseInteger() 715 ParseResult parseInteger(IntT &result) { in parseInteger() 724 template <typename IntT> in parseOptionalInteger() 725 ParseResult parseDecimalInteger(IntT &result) { in parseOptionalInteger() 738 template <typename IntT, typename ParseFn> in parseOptionalInteger() 739 OptionalParseResult parseOptionalIntegerAndCheck(IntT &result, 751 (IntT)uintResult.sextOrTrunc(sizeof(IntT) * CHAR_BIT).getLimitedValue(); 753 /*isSigned=*/std::is_signed_v<IntT>, 760 template <typename IntT> [all...] |
/llvm-project/mlir/include/mlir/Dialect/LLVMIR/ |
H A D | LLVMDialect.h | 228 template <typename IntT = int64_t> 229 SmallVector<IntT> convertArrayToIndices(ArrayRef<Attribute> attrs) { 230 SmallVector<IntT> indices; 239 template <typename IntT = int64_t> 240 SmallVector<IntT> convertArrayToIndices(ArrayAttr attrs) { 241 return convertArrayToIndices<IntT>(attrs.getValue());
|
/llvm-project/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() 60 if (i.IsNegative() || i.BGE(Scalar<IntT>{0}.IBSET(8 * KIND))) { in FoldIntrinsicFunction()
|
H A D | fold-logical.cpp | 685 using IntT = typename std::decay_t<decltype(ix)>::Result; in FoldIntrinsicFunction() 686 if (auto *c{UnwrapConstantValue<IntT>(ix)}) { in FoldIntrinsicFunction() 684 using IntT = typename std::decay_t<decltype(ix)>::Result; FoldIntrinsicFunction() typedef
|
/llvm-project/libcxx/test/std/numerics/complex.number/cmplx.over/ |
H A D | UDT_is_rejected.verify.cpp | 18 template <class IntT> 20 operator IntT() const { return 1; } in operator IntT()
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | ScaledNumber.h | 541 template <class IntT> IntT toInt() const; 780 template <class IntT> 781 IntT ScaledNumber<DigitsT>::toInt() const { in toInt() 782 typedef std::numeric_limits<IntT> Limits; in toInt() 788 IntT N = Digits; in toInt() 790 assert(size_t(Scale) < sizeof(IntT) * 8); in toInt() 794 assert(size_t(-Scale) < sizeof(IntT) * 8); in toInt()
|
/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | InstrProfReader.h | 448 template <class IntT> IntT swap(IntT Int) const { in advanceData()
|
/llvm-project/clang/lib/Sema/ |
H A D | SemaOpenCL.cpp | 192 static bool checkOpenCLEnqueueIntType(Sema &S, Expr *E, const QualType &IntT) { in checkOpenCLEnqueueIntType() argument 202 S.CheckImplicitConversion(E, IntT, E->getBeginLoc()); in checkOpenCLEnqueueIntType()
|
/llvm-project/llvm/lib/CodeGen/LiveDebugValues/ |
H A D | VarLocBasedImpl.cpp | 252 template<typename IntT> static LocIndex fromRawInteger(IntT ID) { in fromRawInteger() 253 static_assert(std::is_unsigned_v<IntT> && sizeof(ID) == sizeof(uint64_t), in fromRawInteger()
|
/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 3693 Type *IntT = in emitGlobalConstantImpl() 3696 ConstantExpr::getBitCast(const_cast<Constant *>(CV), IntT), DL)); in emitGlobalConstantImpl() 3439 Type *IntT = emitGlobalConstantVector() local
|