| /freebsd/contrib/llvm-project/clang/lib/CIR/CodeGen/ |
| H A D | CIRGenTypeCache.h | 31 cir::IntType SInt8Ty; 32 cir::IntType SInt16Ty; 33 cir::IntType SInt32Ty; 34 cir::IntType SInt64Ty; 35 cir::IntType SInt128Ty; 38 cir::IntType UInt8Ty; 39 cir::IntType UInt16Ty; 40 cir::IntType UInt32Ty; 41 cir::IntType UInt64Ty; 42 cir::IntType UInt128Ty;
|
| H A D | CIRGenBuilder.h | 182 cir::IntType getUIntNTy(int n) { in getUIntNTy() 193 return cir::IntType::get(getContext(), n, false); in getUIntNTy() 197 cir::IntType getSIntNTy(int n) { in getSIntNTy() 208 return cir::IntType::get(getContext(), n, true); in getSIntNTy() 214 cir::IntType getSInt8Ty() { return typeCache.SInt8Ty; } in getSInt8Ty() 215 cir::IntType getSInt16Ty() { return typeCache.SInt16Ty; } in getSInt16Ty() 216 cir::IntType getSInt32Ty() { return typeCache.SInt32Ty; } in getSInt32Ty() 217 cir::IntType getSInt64Ty() { return typeCache.SInt64Ty; } in getSInt64Ty() 219 cir::IntType getUInt8Ty() { return typeCache.UInt8Ty; } in getUInt8Ty() 220 cir::IntType getUInt16Ty() { return typeCache.UInt16Ty; } in getUInt16Ty() [all …]
|
| H A D | CIRGenBuilder.cpp | 46 cir::IntType t = isSigned ? getSIntNTy(width) : getUIntNTy(width); in getConstInt() 58 assert(mlir::isa<cir::IntType>(t) && "expected cir::IntType"); in getConstInt()
|
| H A D | CIRGenModule.cpp | 72 SInt8Ty = cir::IntType::get(&getMLIRContext(), 8, /*isSigned=*/true); 73 SInt16Ty = cir::IntType::get(&getMLIRContext(), 16, /*isSigned=*/true); 74 SInt32Ty = cir::IntType::get(&getMLIRContext(), 32, /*isSigned=*/true); 75 SInt64Ty = cir::IntType::get(&getMLIRContext(), 64, /*isSigned=*/true); 76 SInt128Ty = cir::IntType::get(&getMLIRContext(), 128, /*isSigned=*/true); 77 UInt8Ty = cir::IntType::get(&getMLIRContext(), 8, /*isSigned=*/false); 78 UInt16Ty = cir::IntType::get(&getMLIRContext(), 16, /*isSigned=*/false); 79 UInt32Ty = cir::IntType::get(&getMLIRContext(), 32, /*isSigned=*/false); 80 UInt64Ty = cir::IntType::get(&getMLIRContext(), 64, /*isSigned=*/false); 81 UInt128Ty = cir::IntType::get(&getMLIRContext(), 128, /*isSigned=*/false); [all …]
|
| H A D | CIRGenTypes.cpp | 315 cir::IntType::get(&getMLIRContext(), astContext.getTypeSize(ty), in convertType() 331 cir::IntType::get(&getMLIRContext(), astContext.getTypeSize(ty), in convertType() 477 if (bitIntTy->getNumBits() > cir::IntType::maxBitwidth()) { in convertType() 481 resultType = cir::IntType::get(&getMLIRContext(), bitIntTy->getNumBits(), in convertType()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | PointerIntPair.h | 77 template <typename PointerTy, unsigned IntBits, typename IntType = unsigned, 88 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair() 96 IntType getInt() const { return (IntType)Info::getInt(Value); } in getInt() 102 void setInt(IntType IntVal) & { in setInt() 110 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) & { in setPointerAndInt() 217 template <typename PointerTy, unsigned IntBits, typename IntType> 218 struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType>, void> { 219 using Ty = PointerIntPair<PointerTy, IntBits, IntType>; 242 template <typename PointerTy, unsigned IntBits, typename IntType, 245 PointerIntPair<PointerTy, IntBits, IntType, PtrTraits>> { [all …]
|
| /freebsd/contrib/llvm-project/libc/src/__support/FPUtil/ |
| H A D | NearestIntegerOperations.h | 349 template <typename FloatType, typename IntType, 351 cpp::is_integral_v<IntType>, 353 LIBC_INLINE IntType rounded_float_to_signed_integer(FloatType x) { in rounded_float_to_signed_integer() 354 constexpr IntType INTEGER_MIN = (IntType(1) << (sizeof(IntType) * 8 - 1)); in rounded_float_to_signed_integer() 355 constexpr IntType INTEGER_MAX = -(INTEGER_MIN + 1); in rounded_float_to_signed_integer() 368 constexpr int EXPONENT_LIMIT = sizeof(IntType) * 8 - 1; in rounded_float_to_signed_integer() 384 return static_cast<IntType>(x); in rounded_float_to_signed_integer() 389 template <typename FloatType, typename IntType, 391 cpp::is_integral_v<IntType>, 393 LIBC_INLINE IntType round_to_signed_integer(FloatType x) { in round_to_signed_integer() [all …]
|
| /freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
| H A D | TargetInfo.h | 146 enum IntType { enum 161 IntType SizeType, IntMaxType, PtrDiffType, IntPtrType, WCharType, WIntType, 388 IntType getSizeType() const { return SizeType; } in getSizeType() 389 IntType getSignedSizeType() const { in getSignedSizeType() 403 IntType getIntMaxType() const { return IntMaxType; } in getIntMaxType() 404 IntType getUIntMaxType() const { in getUIntMaxType() 407 IntType getPtrDiffType(LangAS AddrSpace) const { in getPtrDiffType() 411 IntType getUnsignedPtrDiffType(LangAS AddrSpace) const { in getUnsignedPtrDiffType() 414 IntType getIntPtrType() const { return IntPtrType; } in getIntPtrType() 415 IntType getUIntPtrType() const { in getUIntPtrType() [all …]
|
| /freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
| H A D | StructuredData.h | 223 template <class IntType> in GetItemAtIndexAsInteger() 224 std::optional<IntType> GetItemAtIndexAsInteger(size_t idx) const { in GetItemAtIndexAsInteger() 226 if constexpr (std::numeric_limits<IntType>::is_signed) { in GetItemAtIndexAsInteger() 228 return static_cast<IntType>(signed_value->GetValue()); in GetItemAtIndexAsInteger() 231 return static_cast<IntType>(unsigned_value->GetValue()); in GetItemAtIndexAsInteger() 436 template <class IntType> in Dictionary() 437 bool GetValueForKeyAsInteger(llvm::StringRef key, IntType &result) const { in Dictionary() 440 if constexpr (std::numeric_limits<IntType>::is_signed) { 442 result = static_cast<IntType>(signed_value->GetValue()); 447 result = static_cast<IntType>(unsigned_valu in ForEach() [all...] |
| /freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/IR/ |
| H A D | CIRTypes.cpp | 399 Type IntType::parse(mlir::AsmParser &parser) { in parse() 427 if (width < IntType::minBitwidth() || width > IntType::maxBitwidth()) { in parse() 429 << IntType::minBitwidth() << " up to " << IntType::maxBitwidth(); in parse() 436 return IntType::get(context, width, isSigned); in parse() 439 void IntType::print(mlir::AsmPrinter &printer) const { in print() 445 IntType::getTypeSizeInBits(const mlir::DataLayout &dataLayout, in getTypeSizeInBits() 450 uint64_t IntType::getABIAlignment(const mlir::DataLayout &dataLayout, in getABIAlignment() 456 IntType::verify(llvm::function_ref<mlir::InFlightDiagnostic()> emitError, in verify() 458 if (width < IntType::minBitwidth() || width > IntType::maxBitwidth()) in verify() 460 << IntType::minBitwidth() << " up to " in verify() [all …]
|
| H A D | CIRDialect.cpp | 47 if (auto intType = dyn_cast<cir::IntType>(type)) { in getAlias() 390 if (!mlir::isa<cir::IntType>(srcType)) in verify() 402 if (!mlir::isa<cir::IntType>(resType)) in verify() 404 if (!mlir::isa<cir::IntType>(srcType)) in verify() 437 if (!mlir::dyn_cast<cir::IntType>(resType)) in verify() 442 if (!mlir::dyn_cast<cir::IntType>(srcType)) in verify() 451 if (!mlir::dyn_cast<cir::IntType>(resType)) in verify() 465 if (!mlir::isa<cir::IntType>(resType)) in verify() 470 if (!mlir::isa<cir::IntType>(srcType)) in verify() 1042 cir::IntType intCondType; in parseSwitchOp() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/ |
| H A D | TargetInfo.cpp | 232 const char *TargetInfo::getTypeName(IntType T) { in getTypeName() 250 const char *TargetInfo::getTypeConstantSuffix(IntType T) const { in getTypeConstantSuffix() 275 const char *TargetInfo::getTypeFormatModifier(IntType T) { in getTypeFormatModifier() 293 unsigned TargetInfo::getTypeWidth(IntType T) const { in getTypeWidth() 309 TargetInfo::IntType TargetInfo::getIntTypeByWidth( in getIntTypeByWidth() 324 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth() 375 unsigned TargetInfo::getTypeAlign(IntType T) const { in getTypeAlign() 393 bool TargetInfo::isTypeSigned(IntType T) { in isTypeSigned()
|
| /freebsd/contrib/llvm-project/libcxx/include/ |
| H A D | random | 446 template<class IntType = int> 451 typedef IntType result_type; 458 explicit param_type(IntType a = 0, 459 IntType b = numeric_limits<IntType>::max()); 469 explicit uniform_int_distribution(IntType a = 0, 470 IntType b = numeric_limits<IntType>::max()); // before C++20 472 explicit uniform_int_distribution(IntType a, 473 IntType b = numeric_limits<IntType>::max()); // C++20 627 template<class IntType = int> 632 typedef IntType result_type; [all …]
|
| /freebsd/contrib/llvm-project/libcxx/include/__cxx03/ |
| H A D | random | 446 template<class IntType = int> 451 typedef IntType result_type; 458 explicit param_type(IntType a = 0, 459 IntType b = numeric_limits<IntType>::max()); 469 explicit uniform_int_distribution(IntType a = 0, 470 IntType b = numeric_limits<IntType>::max()); // before C++20 472 explicit uniform_int_distribution(IntType a, 473 IntType b = numeric_limits<IntType>::max()); // C++20 627 template<class IntType = int> 632 typedef IntType result_type; [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
| H A D | AVR.h | 165 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() 171 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
|
| H A D | WebAssembly.h | 150 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() 156 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/ |
| H A D | LoweringHelpers.cpp | 36 assert(mlir::isa<cir::IntType>(ty) && "expected int type"); in getZeroInitFromType() 37 const auto intTy = mlir::cast<cir::IntType>(ty); in getZeroInitFromType() 138 if (mlir::isa<cir::IntType>(type)) in lowerConstArrayAttr()
|
| /freebsd/contrib/llvm-project/clang/include/clang/CIR/Dialect/IR/ |
| H A D | CIRTypeConstraints.td | 53 // IntType predicates 56 def CIR_AnyIntType : CIR_TypeBase<"::cir::IntType", "integer type">; 245 CPred<"::mlir::isa<::cir::IntType>(" 247 CPred<"::mlir::cast<::cir::IntType>("
|
| H A D | CIRAttrs.h | 37 class IntType; variable
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/ |
| H A D | LowerToLLVM.cpp | 289 if (const auto intType = mlir::dyn_cast<cir::IntType>(complexElemTy)) { in visitCirAttr() 604 cir::IntType srcIntType = in matchAndRewrite() 605 mlir::cast<cir::IntType>(elementTypeIfVector(srcType)); in matchAndRewrite() 606 cir::IntType dstIntType = in matchAndRewrite() 607 mlir::cast<cir::IntType>(elementTypeIfVector(dstType)); in matchAndRewrite() 646 auto dstTy = mlir::cast<cir::IntType>(castOp.getType()); in matchAndRewrite() 669 auto dstTy = mlir::cast<cir::IntType>(castOp.getType()); in matchAndRewrite() 694 if (mlir::cast<cir::IntType>(elementTypeIfVector(castOp.getSrc().getType())) in matchAndRewrite() 707 if (mlir::cast<cir::IntType>(elementTypeIfVector(castOp.getType())) in matchAndRewrite() 1014 } else if (mlir::isa<cir::IntType>(op.getType())) { in matchAndRewrite() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/Frontend/ |
| H A D | InitPreprocessor.cpp | 183 static void DefineTypeSize(const Twine &MacroName, TargetInfo::IntType Ty, in DefineTypeSize() 190 TargetInfo::IntType Ty, const TargetInfo &TI, in DefineFmt() 206 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty, in DefineType() 211 static void DefineTypeWidth(const Twine &MacroName, TargetInfo::IntType Ty, in DefineTypeWidth() 225 static void DefineTypeSizeAndWidth(const Twine &Prefix, TargetInfo::IntType Ty, in DefineTypeSizeAndWidth() 233 TargetInfo::IntType Ty, in DefineExactWidthIntType() 260 static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty, in DefineExactWidthIntTypeSize() 281 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType() 301 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineFastIntType()
|
| /freebsd/contrib/llvm-project/clang/lib/AST/ |
| H A D | ASTDiagnostic.cpp | 1242 QualType &IntType, bool &IsNullPtr, in InitializeNonTypeDiffVariables() argument 1255 IntType = Iter->getIntegralType(); in InitializeNonTypeDiffVariables() 1296 IntType = TA.getIntegralType(); in InitializeNonTypeDiffVariables() 1895 QualType IntType, bool PrintType) { in PrintAPSInt() argument 1908 IntType.print(OS, Context.getPrintingPolicy()); in PrintAPSInt() 1913 if (IntType->isBooleanType()) { in PrintAPSInt() 2025 const llvm::APSInt &Val, QualType IntType, in PrintValueDeclAndInteger() argument 2038 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintValueDeclAndInteger() 2045 void PrintIntegerAndValueDecl(const llvm::APSInt &Val, QualType IntType, in PrintIntegerAndValueDecl() argument 2051 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintIntegerAndValueDecl() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Dialect/Transforms/ |
| H A D | FlattenCFG.cpp | 195 cir::IntType sIntType = cir::IntType::get(op.getContext(), 32, true); in condBrToRangeDestination() 196 cir::IntType uIntType = cir::IntType::get(op.getContext(), 32, false); in condBrToRangeDestination()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGBuiltin.h | 81 clang::QualType T, llvm::IntegerType *IntType);
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | SimpleSValBuilder.cpp | 541 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local 542 IntType.apply(LHSValue); in evalBinOpNN() 543 IntType.apply(RHSValue); in evalBinOpNN() 676 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local 677 const llvm::APSInt &first = IntType.convert(symIntExpr->getRHS()); in evalBinOpNN() 678 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN()
|