/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() 218 template <typename PointerTy, unsigned IntBits, typename IntType> 219 struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType>, void> { 220 using Ty = PointerIntPair<PointerTy, IntBits, IntType>; 243 template <typename PointerTy, unsigned IntBits, typename IntType, 246 PointerIntPair<PointerTy, IntBits, IntType, PtrTraits>> { [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | TargetInfo.h | 142 enum IntType { enum 157 IntType SizeType, IntMaxType, PtrDiffType, IntPtrType, WCharType, WIntType, 371 IntType getSizeType() const { return SizeType; } in getSizeType() 372 IntType getSignedSizeType() const { in getSignedSizeType() 386 IntType getIntMaxType() const { return IntMaxType; } in getIntMaxType() 387 IntType getUIntMaxType() const { in getUIntMaxType() 390 IntType getPtrDiffType(LangAS AddrSpace) const { in getPtrDiffType() 394 IntType getUnsignedPtrDiffType(LangAS AddrSpace) const { in getUnsignedPtrDiffType() 397 IntType getIntPtrType() const { return IntPtrType; } in getIntPtrType() 398 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/Basic/ |
H A D | TargetInfo.cpp | 209 const char *TargetInfo::getTypeName(IntType T) { in getTypeName() 227 const char *TargetInfo::getTypeConstantSuffix(IntType T) const { in getTypeConstantSuffix() 252 const char *TargetInfo::getTypeFormatModifier(IntType T) { in getTypeFormatModifier() 270 unsigned TargetInfo::getTypeWidth(IntType T) const { in getTypeWidth() 286 TargetInfo::IntType TargetInfo::getIntTypeByWidth( in getIntTypeByWidth() 301 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth() 352 unsigned TargetInfo::getTypeAlign(IntType T) const { in getTypeAlign() 370 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/clang/lib/Basic/Targets/ |
H A D | AVR.h | 159 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() 165 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
|
H A D | WebAssembly.h | 145 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth() 151 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
|
H A D | OSTargets.h | 126 TargetInfo::IntType getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
|
/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() 258 static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty, in DefineExactWidthIntTypeSize() 279 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType() 299 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineFastIntType()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ASTDiagnostic.cpp | 1213 QualType &IntType, bool &IsNullPtr, in InitializeNonTypeDiffVariables() argument 1226 IntType = Iter->getIntegralType(); in InitializeNonTypeDiffVariables() 1267 IntType = TA.getIntegralType(); in InitializeNonTypeDiffVariables() 1856 QualType IntType, bool PrintType) { in PrintAPSInt() argument 1869 IntType.print(OS, Context.getPrintingPolicy()); in PrintAPSInt() 1874 if (IntType->isBooleanType()) { in PrintAPSInt() 1980 const llvm::APSInt &Val, QualType IntType, in PrintValueDeclAndInteger() argument 1993 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintValueDeclAndInteger() 2000 void PrintIntegerAndValueDecl(const llvm::APSInt &Val, QualType IntType, in PrintIntegerAndValueDecl() argument 2006 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintIntegerAndValueDecl() [all …]
|
H A D | ItaniumCXXABI.cpp | 228 TargetInfo::IntType PtrDiff = Target.getPtrDiffType(LangAS::Default); in getMemberPointerInfo()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | NVPTX.cpp | 146 llvm::Type *IntType = llvm::Type::getIntNTy(getVMContext(), Div); in coerceToIntArrayWithLimit() local 148 return ABIArgInfo::getDirect(llvm::ArrayType::get(IntType, NumElements)); in coerceToIntArrayWithLimit()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | ABIInfoImpl.cpp | 87 llvm::Type *IntType = llvm::Type::getIntNTy(LLVMContext, Alignment); in coerceToIntArray() local 89 return ABIArgInfo::getDirect(llvm::ArrayType::get(IntType, NumElements)); in coerceToIntArray()
|
H A D | CGBuiltin.cpp | 173 QualType T, llvm::IntegerType *IntType) { in EmitToInt() argument 177 return CGF.Builder.CreatePtrToInt(V, IntType); in EmitToInt() 179 assert(V->getType() == IntType); in EmitToInt() 224 llvm::IntegerType *IntType = llvm::IntegerType::get( in MakeBinaryAtomicValue() local 229 Val = EmitToInt(CGF, Val, T, IntType); in MakeBinaryAtomicValue() 277 llvm::IntegerType *IntType = llvm::IntegerType::get( in EmitBinaryAtomicPost() local 282 Val = EmitToInt(CGF, Val, T, IntType); in EmitBinaryAtomicPost() 290 llvm::ConstantInt::getAllOnesValue(IntType)); in EmitBinaryAtomicPost() 314 llvm::IntegerType *IntType = llvm::IntegerType::get( in MakeAtomicCmpXchgValue() local 319 Cmp = EmitToInt(CGF, Cmp, T, IntType); in MakeAtomicCmpXchgValue() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ConstantFolding.cpp | 552 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConst() local 555 if (!IntType) { in FoldReinterpretLoadFromConst() 588 unsigned BytesLoaded = (IntType->getBitWidth() + 7) / 8; in FoldReinterpretLoadFromConst() 594 return PoisonValue::get(IntType); in FoldReinterpretLoadFromConst() 603 return PoisonValue::get(IntType); in FoldReinterpretLoadFromConst() 619 APInt ResultVal = APInt(IntType->getBitWidth(), 0); in FoldReinterpretLoadFromConst() 634 return ConstantInt::get(IntType->getContext(), ResultVal); in FoldReinterpretLoadFromConst()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
H A D | SPIRVGlobalRegistry.cpp | 1069 const SPIRVType *IntType = retrieveScalarOrVectorIntType(Type); in isScalarOrVectorSigned() local 1070 return IntType && IntType->getOperand(2).getImm() != 0; in isScalarOrVectorSigned()
|
H A D | SPIRVBuiltins.cpp | 532 SPIRVType *IntType = GR->getOrCreateSPIRVIntegerType(BitWidth, MIRBuilder); in buildConstantIntReg() local 533 return GR->buildConstantInt(Val, MIRBuilder, IntType); in buildConstantIntReg()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | SimplifyLibCalls.cpp | 1554 IntegerType *IntType = IntegerType::get(CI->getContext(), Len * 8); in optimizeMemCmpConstantSize() local 1555 Align PrefAlignment = DL.getPrefTypeAlign(IntType); in optimizeMemCmpConstantSize() 1560 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmpConstantSize() 1564 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize() 1571 LHSV = B.CreateLoad(IntType, LHS, "lhsv"); in optimizeMemCmpConstantSize() 1573 RHSV = B.CreateLoad(IntType, RHS, "rhsv"); in optimizeMemCmpConstantSize()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | RangeConstraintManager.cpp | 1437 APSIntType IntType = ValueFactory.getAPSIntType(T); in assumeNonZero() local 1438 return RangeFactory.deletePoint(Domain, IntType.getZeroValue()); in assumeNonZero() 2856 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in checkNull() local 2857 llvm::APSInt Zero = IntType.getZeroValue(); in checkNull()
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | RegisterInfoEmitter.cpp | 805 auto *IntType = in emitComposeSubRegIndexLaneMask() local 809 << IntType << " CompositeSequences[] = {\n"; in emitComposeSubRegIndexLaneMask()
|
/freebsd/contrib/llvm-project/llvm/lib/Frontend/OpenMP/ |
H A D | OMPIRBuilder.cpp | 2307 Type *IntType = Builder.getIntNTy(IntSize * 8); in shuffleAndStore() local 2309 Ptr, IntType->getPointerTo(), Ptr->getName() + ".ascast"); in shuffleAndStore() 2313 ElemPtr, IntType->getPointerTo(), ElemPtr->getName() + ".ascast"); in shuffleAndStore() 2343 IntType, Ptr, M.getDataLayout().getPrefTypeAlign(ElemType)), in shuffleAndStore() 2344 IntType, Offset); in shuffleAndStore() 2348 Builder.CreateGEP(IntType, Ptr, {ConstantInt::get(IndexTy, 1)}); in shuffleAndStore() 2350 Builder.CreateGEP(IntType, ElemPtr, {ConstantInt::get(IndexTy, 1)}); in shuffleAndStore() 2357 AllocaIP, Builder.CreateLoad(IntType, Ptr), IntType, Offset); in shuffleAndStore() 2362 Ptr = Builder.CreateGEP(IntType, Ptr, {ConstantInt::get(IndexTy, 1)}); in shuffleAndStore() 2364 Builder.CreateGEP(IntType, ElemPtr, {ConstantInt::get(IndexTy, 1)}); in shuffleAndStore()
|
/freebsd/contrib/llvm-project/clang/utils/TableGen/ |
H A D | MveEmitter.cpp | 582 std::string getIntegerValue(const std::string &IntType) override { in getIntegerValue() argument 583 return "GetIntegerConstantValue<" + IntType + ">(E->getArg(" + in getIntegerValue()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Compiler.cpp | 377 QualType IntType = SubExpr->getType(); in VisitCastExpr() local 378 assert(IntType->isIntegralOrEnumerationType()); in VisitCastExpr() 383 PrimType T = classifyPrim(IntType); in VisitCastExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 8326 Type *IntType = Builder.getIntNTy(X->getType()->getScalarSizeInBits()); in visitFCmpInst() local 8328 IntType = VectorType::get(IntType, VecTy->getElementCount()); in visitFCmpInst() 8332 Value *IntX = Builder.CreateBitCast(X, IntType); in visitFCmpInst() 8334 ConstantInt::getNullValue(IntType)); in visitFCmpInst()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExpr.cpp | 11943 QualType IntType = in checkArithmeticOrEnumeralThreeWayCompare() local 11945 assert(IntType->isArithmeticType()); in checkArithmeticOrEnumeralThreeWayCompare() 11950 if (S.Context.isPromotableIntegerType(IntType)) in checkArithmeticOrEnumeralThreeWayCompare() 11951 IntType = S.Context.getPromotedIntegerType(IntType); in checkArithmeticOrEnumeralThreeWayCompare() 11953 LHS = S.ImpCastExprToType(LHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare() 11954 RHS = S.ImpCastExprToType(RHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare() 11955 LHSType = RHSType = IntType; in checkArithmeticOrEnumeralThreeWayCompare()
|