Home
last modified time | relevance | path

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

/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DPointerIntPair.h52 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair()
60 IntType getInt() const { return (IntType)Info::getInt(Value); } in getInt()
66 void setInt(IntType IntVal) { in setInt()
74 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) { in setPointerAndInt()
180 template <typename PointerTy, unsigned IntBits, typename IntType>
181 struct isPodLike<PointerIntPair<PointerTy, IntBits, IntType>> {
186 template <typename PointerTy, unsigned IntBits, typename IntType>
188 using Ty = PointerIntPair<PointerTy, IntBits, IntType>;
214 PointerIntPair<PointerTy, IntBits, IntType, PtrTraits>> {
220 static inline PointerIntPair<PointerTy, IntBits, IntType>
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/Basic/
H A DTargetInfo.h158 enum IntType { enum
259 IntType getSizeType() const { return SizeType; } in getSizeType()
260 IntType getSignedSizeType() const { in getSignedSizeType()
275 IntType getUIntMaxType() const { in getUIntMaxType()
285 IntType getUIntPtrType() const { in getUIntPtrType()
293 IntType getUInt64Type() const { in getUInt64Type()
299 static IntType getCorrespondingUnsignedType(IntType T) { in getCorrespondingUnsignedType()
327 unsigned getTypeWidth(IntType T) const;
342 unsigned getTypeAlign(IntType T) const;
345 static bool isTypeSigned(IntType T);
[all …]
/freebsd-12.1/contrib/llvm/tools/lldb/include/lldb/Utility/
H A DStructuredData.h194 template <class IntType>
195 bool GetItemAtIndexAsInteger(size_t idx, IntType &result) const { in GetItemAtIndexAsInteger()
199 result = static_cast<IntType>(int_value->GetValue()); in GetItemAtIndexAsInteger()
206 template <class IntType>
207 bool GetItemAtIndexAsInteger(size_t idx, IntType &result, in GetItemAtIndexAsInteger()
208 IntType default_val) const { in GetItemAtIndexAsInteger()
401 template <class IntType>
406 result = static_cast<IntType>(int_value->GetValue()); in GetValueForKeyAsInteger()
413 template <class IntType>
415 IntType default_val) const { in GetValueForKeyAsInteger()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DTargetInfo.cpp153 const char *TargetInfo::getTypeName(IntType T) { in getTypeName()
171 const char *TargetInfo::getTypeConstantSuffix(IntType T) const { in getTypeConstantSuffix()
196 const char *TargetInfo::getTypeFormatModifier(IntType T) { in getTypeFormatModifier()
214 unsigned TargetInfo::getTypeWidth(IntType T) const { in getTypeWidth()
230 TargetInfo::IntType TargetInfo::getIntTypeByWidth( in getIntTypeByWidth()
245 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
285 unsigned TargetInfo::getTypeAlign(IntType T) const { in getTypeAlign()
303 bool TargetInfo::isTypeSigned(IntType T) { in isTypeSigned()
/freebsd-12.1/contrib/llvm/tools/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.h102 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth()
108 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
H A DOSTargets.h137 TargetInfo::IntType getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
/freebsd-12.1/contrib/llvm/tools/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()
228 static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty, in DefineExactWidthIntTypeSize()
246 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType()
260 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineFastIntType()
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DASTDiagnostic.cpp1160 QualType &IntType, bool &IsNullPtr, in InitializeNonTypeDiffVariables() argument
1170 IntType = Iter->getIntegralType(); in InitializeNonTypeDiffVariables()
1200 IntType = TA.getIntegralType(); in InitializeNonTypeDiffVariables()
1764 QualType IntType, bool PrintType) { in PrintAPSInt() argument
1777 IntType.print(OS, Context.getPrintingPolicy()); in PrintAPSInt()
1782 if (IntType->isBooleanType()) { in PrintAPSInt()
1875 const llvm::APSInt &Val, QualType IntType, in PrintValueDeclAndInteger() argument
1888 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintValueDeclAndInteger()
1895 void PrintIntegerAndValueDecl(const llvm::APSInt &Val, QualType IntType, in PrintIntegerAndValueDecl() argument
1901 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintIntegerAndValueDecl()
[all …]
H A DItaniumCXXABI.cpp166 TargetInfo::IntType PtrDiff = Target.getPtrDiffType(0); in getMemberPointerInfo()
H A DASTContext.cpp10023 TargetInfo::IntType Ty = getTargetInfo().getIntTypeByWidth(DestWidth, Signed); in getIntTypeForBitwidth()
/freebsd-12.1/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp374 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in checkNull() local
375 llvm::APSInt Zero = IntType.getZeroValue(); in checkNull()
417 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in assumeNonZero() local
418 return Domain.Intersect(BV, F, ++IntType.getZeroValue(), in assumeNonZero()
419 --IntType.getZeroValue()); in assumeNonZero()
H A DSimpleSValBuilder.cpp605 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
606 IntType.apply(LHSValue); in evalBinOpNN()
607 IntType.apply(RHSValue); in evalBinOpNN()
720 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
721 const llvm::APSInt &first = IntType.convert(symIntExpr->getRHS()); in evalBinOpNN()
722 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp500 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConstPtr() local
503 if (!IntType) { in FoldReinterpretLoadFromConstPtr()
529 unsigned BytesLoaded = (IntType->getBitWidth() + 7) / 8; in FoldReinterpretLoadFromConstPtr()
548 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
552 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
568 APInt ResultVal = APInt(IntType->getBitWidth(), 0); in FoldReinterpretLoadFromConstPtr()
583 return ConstantInt::get(IntType->getContext(), ResultVal); in FoldReinterpretLoadFromConstPtr()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp859 IntegerType *IntType = IntegerType::get(CI->getContext(), Len * 8); in optimizeMemCmp() local
860 unsigned PrefAlignment = DL.getPrefTypeAlignment(IntType); in optimizeMemCmp()
865 LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo()); in optimizeMemCmp()
866 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmp()
870 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmp()
871 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmp()
880 IntType->getPointerTo(LHS->getType()->getPointerAddressSpace()); in optimizeMemCmp()
885 IntType->getPointerTo(RHS->getType()->getPointerAddressSpace()); in optimizeMemCmp()
/freebsd-12.1/contrib/libc++/include/
H A Drandom436 template<class IntType = int>
441 typedef IntType result_type;
449 IntType b = numeric_limits<IntType>::max());
460 IntType b = numeric_limits<IntType>::max());
610 template<class IntType = int>
624 IntType t() const;
641 IntType t() const;
668 template<class IntType = int>
724 template<class IntType = int>
782 template<class IntType = int>
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGOpenMPRuntimeNVPTX.cpp2853 QualType IntType = CGF.getContext().getIntTypeForBitwidth( in shuffleAndStore() local
2856 llvm::Type *IntTy = CGF.ConvertTypeForMem(IntType); in shuffleAndStore()
2881 CGF, CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc), in shuffleAndStore()
2882 IntType, Offset, Loc); in shuffleAndStore()
2883 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType); in shuffleAndStore()
2894 CGF, CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc), in shuffleAndStore()
2895 IntType, Offset, Loc); in shuffleAndStore()
2896 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType); in shuffleAndStore()
H A DCGBuiltin.cpp80 return CGF.Builder.CreatePtrToInt(V, IntType); in EmitToInt()
82 assert(V->getType() == IntType); in EmitToInt()
111 llvm::IntegerType *IntType = in MakeBinaryAtomicValue() local
120 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in MakeBinaryAtomicValue()
172 llvm::IntegerType *IntType = in EmitBinaryAtomicPost() local
180 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in EmitBinaryAtomicPost()
213 llvm::IntegerType *IntType = llvm::IntegerType::get( in MakeAtomicCmpXchgValue() local
221 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in MakeAtomicCmpXchgValue()
653 llvm::IntegerType *IntType = llvm::IntegerType::get( in EmitX86BitTestIntrinsic() local
656 llvm::Type *IntPtrType = IntType->getPointerTo(); in EmitX86BitTestIntrinsic()
[all …]
H A DTargetInfo.cpp57 llvm::Type *IntType = llvm::Type::getIntNTy(LLVMContext, Alignment); in coerceToIntArray() local
59 return ABIArgInfo::getDirect(llvm::ArrayType::get(IntType, NumElements)); in coerceToIntArray()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp462 IntegerType *IntType = Type::getInt32Ty(InsElt->getContext()); in replaceExtractElements() local
464 ExtendMask.push_back(ConstantInt::get(IntType, i)); in replaceExtractElements()
466 ExtendMask.push_back(UndefValue::get(IntType)); in replaceExtractElements()
H A DInstCombineCalls.cpp153 IntegerType* IntType = IntegerType::get(MI->getContext(), Size<<3); in SimplifyAnyMemTransfer() local
154 Type *NewSrcPtrTy = PointerType::get(IntType, SrcAddrSp); in SimplifyAnyMemTransfer()
155 Type *NewDstPtrTy = PointerType::get(IntType, DstAddrSp); in SimplifyAnyMemTransfer()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Sema/
H A DSemaExpr.cpp10179 QualType IntType = in checkArithmeticOrEnumeralThreeWayCompare() local
10181 assert(IntType->isArithmeticType()); in checkArithmeticOrEnumeralThreeWayCompare()
10186 if (IntType->isPromotableIntegerType()) in checkArithmeticOrEnumeralThreeWayCompare()
10187 IntType = S.Context.getPromotedIntegerType(IntType); in checkArithmeticOrEnumeralThreeWayCompare()
10189 LHS = S.ImpCastExprToType(LHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
10190 RHS = S.ImpCastExprToType(RHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
10191 LHSType = RHSType = IntType; in checkArithmeticOrEnumeralThreeWayCompare()
H A DSemaChecking.cpp455 const QualType &IntType);