Home
last modified time | relevance | path

Searched refs:IntType (Results 1 – 24 of 24) sorted by relevance

/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPointerIntPair.h53 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair()
61 IntType getInt() const { return (IntType)Info::getInt(Value); } in getInt()
67 void setInt(IntType IntVal) LLVM_LVALUE_FUNCTION { in setInt()
132 template <typename PointerTy, unsigned IntBits, typename IntType,
194 template <typename PointerTy, unsigned IntBits, typename IntType>
195 struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType>> {
196 using Ty = PointerIntPair<PointerTy, IntBits, IntType>;
219 template <typename PointerTy, unsigned IntBits, typename IntType,
222 PointerIntPair<PointerTy, IntBits, IntType, PtrTraits>> {
228 static inline PointerIntPair<PointerTy, IntBits, IntType>
[all …]
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DTargetInfo.h110 enum IntType { enum
318 IntType getSignedSizeType() const { in getSignedSizeType()
333 IntType getUIntMaxType() const { in getUIntMaxType()
343 IntType getUIntPtrType() const { in getUIntPtrType()
351 IntType getUInt64Type() const { in getUInt64Type()
355 IntType getUInt16Type() const { in getUInt16Type()
361 static IntType getCorrespondingUnsignedType(IntType T) { in getCorrespondingUnsignedType()
389 unsigned getTypeWidth(IntType T) const;
409 unsigned getTypeAlign(IntType T) const;
412 static bool isTypeSigned(IntType T);
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/include/lldb/Utility/
H A DStructuredData.h195 template <class IntType>
196 bool GetItemAtIndexAsInteger(size_t idx, IntType &result) const { in GetItemAtIndexAsInteger()
200 result = static_cast<IntType>(int_value->GetValue()); in GetItemAtIndexAsInteger()
207 template <class IntType>
208 bool GetItemAtIndexAsInteger(size_t idx, IntType &result, in GetItemAtIndexAsInteger()
209 IntType default_val) const { in GetItemAtIndexAsInteger()
402 template <class IntType>
407 result = static_cast<IntType>(int_value->GetValue()); in GetValueForKeyAsInteger()
414 template <class IntType>
416 IntType default_val) const { in GetValueForKeyAsInteger()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DTargetInfo.cpp172 const char *TargetInfo::getTypeName(IntType T) { in getTypeName()
190 const char *TargetInfo::getTypeConstantSuffix(IntType T) const { in getTypeConstantSuffix()
215 const char *TargetInfo::getTypeFormatModifier(IntType T) { in getTypeFormatModifier()
233 unsigned TargetInfo::getTypeWidth(IntType T) const { in getTypeWidth()
249 TargetInfo::IntType TargetInfo::getIntTypeByWidth( in getIntTypeByWidth()
264 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
309 unsigned TargetInfo::getTypeAlign(IntType T) const { in getTypeAlign()
327 bool TargetInfo::isTypeSigned(IntType T) { in isTypeSigned()
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/Targets/
H A DAVR.h156 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth()
162 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
H A DWebAssembly.h114 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth()
120 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
H A DOSTargets.h158 TargetInfo::IntType getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
/freebsd-13.1/contrib/llvm-project/clang/lib/Frontend/
H A DInitPreprocessor.cpp176 static void DefineTypeSize(const Twine &MacroName, TargetInfo::IntType Ty, in DefineTypeSize()
182 static void DefineFmt(const Twine &Prefix, TargetInfo::IntType Ty, in DefineFmt()
192 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty, in DefineType()
197 static void DefineTypeWidth(StringRef MacroName, TargetInfo::IntType Ty, in DefineTypeWidth()
208 static void DefineExactWidthIntType(TargetInfo::IntType Ty, in DefineExactWidthIntType()
233 static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty, in DefineExactWidthIntTypeSize()
251 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType()
265 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineFastIntType()
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DASTDiagnostic.cpp1178 QualType &IntType, bool &IsNullPtr, in InitializeNonTypeDiffVariables() argument
1188 IntType = Iter->getIntegralType(); in InitializeNonTypeDiffVariables()
1218 IntType = TA.getIntegralType(); in InitializeNonTypeDiffVariables()
1783 QualType IntType, bool PrintType) { in PrintAPSInt() argument
1796 IntType.print(OS, Context.getPrintingPolicy()); in PrintAPSInt()
1801 if (IntType->isBooleanType()) { in PrintAPSInt()
1901 const llvm::APSInt &Val, QualType IntType, in PrintValueDeclAndInteger() argument
1914 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintValueDeclAndInteger()
1921 void PrintIntegerAndValueDecl(const llvm::APSInt &Val, QualType IntType, in PrintIntegerAndValueDecl() argument
1927 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintIntegerAndValueDecl()
[all …]
H A DItaniumCXXABI.cpp196 TargetInfo::IntType PtrDiff = Target.getPtrDiffType(0); in getMemberPointerInfo()
H A DASTContext.cpp11176 TargetInfo::IntType Ty = getTargetInfo().getIntTypeByWidth(DestWidth, Signed); in getIntTypeForBitwidth()
/freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp481 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
482 IntType.apply(LHSValue); in evalBinOpNN()
483 IntType.apply(RHSValue); in evalBinOpNN()
603 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
604 const llvm::APSInt &first = IntType.convert(symIntExpr->getRHS()); in evalBinOpNN()
605 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN()
H A DRangeConstraintManager.cpp1069 APSIntType IntType = ValueFactory.getAPSIntType(T); in assumeNonZero() local
1070 return RangeFactory.deletePoint(Domain, IntType.getZeroValue()); in assumeNonZero()
2234 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in checkNull() local
2235 llvm::APSInt Zero = IntType.getZeroValue(); in checkNull()
/freebsd-13.1/contrib/llvm-project/libcxx/include/
H A Drandom446 template<class IntType = int>
451 typedef IntType result_type;
459 IntType b = numeric_limits<IntType>::max());
473 IntType b = numeric_limits<IntType>::max()); // C++20
627 template<class IntType = int>
641 IntType t() const;
660 IntType t() const;
687 template<class IntType = int>
745 template<class IntType = int>
805 template<class IntType = int>
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp974 IntegerType *IntType = IntegerType::get(CI->getContext(), Len * 8); in optimizeMemCmpConstantSize() local
975 unsigned PrefAlignment = DL.getPrefTypeAlignment(IntType); in optimizeMemCmpConstantSize()
980 LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
981 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmpConstantSize()
985 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
986 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize()
995 IntType->getPointerTo(LHS->getType()->getPointerAddressSpace()); in optimizeMemCmpConstantSize()
996 LHSV = B.CreateLoad(IntType, B.CreateBitCast(LHS, LHSPtrTy), "lhsv"); in optimizeMemCmpConstantSize()
1000 IntType->getPointerTo(RHS->getType()->getPointerAddressSpace()); in optimizeMemCmpConstantSize()
1001 RHSV = B.CreateLoad(IntType, B.CreateBitCast(RHS, RHSPtrTy), "rhsv"); in optimizeMemCmpConstantSize()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp560 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConstPtr() local
563 if (!IntType) { in FoldReinterpretLoadFromConstPtr()
606 unsigned BytesLoaded = (IntType->getBitWidth() + 7) / 8; in FoldReinterpretLoadFromConstPtr()
626 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
630 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
646 APInt ResultVal = APInt(IntType->getBitWidth(), 0); in FoldReinterpretLoadFromConstPtr()
661 return ConstantInt::get(IntType->getContext(), ResultVal); in FoldReinterpretLoadFromConstPtr()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp1758 QualType IntType = CGF.getContext().getIntTypeForBitwidth( in shuffleAndStore() local
1761 llvm::Type *IntTy = CGF.ConvertTypeForMem(IntType); in shuffleAndStore()
1787 CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc, in shuffleAndStore()
1790 IntType, Offset, Loc); in shuffleAndStore()
1791 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType, in shuffleAndStore()
1803 CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc, in shuffleAndStore()
1806 IntType, Offset, Loc); in shuffleAndStore()
1807 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType, in shuffleAndStore()
H A DCGBuiltin.cpp120 return CGF.Builder.CreatePtrToInt(V, IntType); in EmitToInt()
122 assert(V->getType() == IntType); in EmitToInt()
151 llvm::IntegerType *IntType = in MakeBinaryAtomicValue() local
160 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in MakeBinaryAtomicValue()
212 llvm::IntegerType *IntType = in EmitBinaryAtomicPost() local
220 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in EmitBinaryAtomicPost()
262 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in MakeAtomicCmpXchgValue()
895 llvm::Type *IntPtrType = IntType->getPointerTo(); in EmitX86BitTestIntrinsic()
4431 llvm::IntegerType *IntType = in EmitBuiltinExpr() local
17544 llvm::IntegerType *IntType = nullptr; member
[all …]
H A DTargetInfo.cpp62 llvm::Type *IntType = llvm::Type::getIntNTy(LLVMContext, Alignment); in coerceToIntArray() local
64 return ABIArgInfo::getDirect(llvm::ArrayType::get(IntType, NumElements)); in coerceToIntArray()
7068 llvm::Type *IntType = llvm::Type::getIntNTy(getVMContext(), Div); in coerceToIntArrayWithLimit() local
7070 return ABIArgInfo::getDirect(llvm::ArrayType::get(IntType, NumElements)); in coerceToIntArrayWithLimit()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp164 IntegerType* IntType = IntegerType::get(MI->getContext(), Size<<3); in SimplifyAnyMemTransfer() local
165 Type *NewSrcPtrTy = PointerType::get(IntType, SrcAddrSp); in SimplifyAnyMemTransfer()
166 Type *NewDstPtrTy = PointerType::get(IntType, DstAddrSp); in SimplifyAnyMemTransfer()
187 LoadInst *L = Builder.CreateLoad(IntType, Src); in SimplifyAnyMemTransfer()
H A DInstCombineCompares.cpp6423 Type *IntType = Builder.getIntNTy(X->getType()->getScalarSizeInBits()); in visitFCmpInst() local
6425 IntType = VectorType::get(IntType, VecTy->getElementCount()); in visitFCmpInst()
6429 Value *IntX = Builder.CreateBitCast(X, IntType); in visitFCmpInst()
6431 ConstantInt::getNullValue(IntType)); in visitFCmpInst()
/freebsd-13.1/contrib/llvm-project/clang/utils/TableGen/
H A DMveEmitter.cpp586 std::string getIntegerValue(const std::string &IntType) override { in getIntegerValue() argument
587 return "GetIntegerConstantValue<" + IntType + ">(E->getArg(" + in getIntegerValue()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp11665 QualType IntType = in checkArithmeticOrEnumeralThreeWayCompare() local
11667 assert(IntType->isArithmeticType()); in checkArithmeticOrEnumeralThreeWayCompare()
11672 if (IntType->isPromotableIntegerType()) in checkArithmeticOrEnumeralThreeWayCompare()
11673 IntType = S.Context.getPromotedIntegerType(IntType); in checkArithmeticOrEnumeralThreeWayCompare()
11675 LHS = S.ImpCastExprToType(LHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
11676 RHS = S.ImpCastExprToType(RHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
11677 LHSType = RHSType = IntType; in checkArithmeticOrEnumeralThreeWayCompare()
H A DSemaChecking.cpp891 const QualType &IntType);