Home
last modified time | relevance | path

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

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
HDPointerIntPair.h42 template <typename PointerTy, unsigned IntBits, typename IntType = unsigned,
53 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()
75 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) LLVM_LVALUE_FUNCTION { in setPointerAndInt()
132 template <typename PointerTy, unsigned IntBits, typename IntType,
135 struct is_trivially_copyable<PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, Info>> : std::t…
137 …static_assert(std::is_trivially_copyable<PointerIntPair<PointerTy, IntBits, IntType, PtrTraits, In…
194 template <typename PointerTy, unsigned IntBits, typename IntType>
195 struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType>> {
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/
HDTargetInfo.h107 enum IntType { enum
129 IntType SizeType, IntMaxType, PtrDiffType, IntPtrType, WCharType,
271 IntType getSizeType() const { return SizeType; } in getSizeType()
272 IntType getSignedSizeType() const { in getSignedSizeType()
286 IntType getIntMaxType() const { return IntMaxType; } in getIntMaxType()
287 IntType getUIntMaxType() const { in getUIntMaxType()
290 IntType getPtrDiffType(unsigned AddrSpace) const { in getPtrDiffType()
293 IntType getUnsignedPtrDiffType(unsigned AddrSpace) const { in getUnsignedPtrDiffType()
296 IntType getIntPtrType() const { return IntPtrType; } in getIntPtrType()
297 IntType getUIntPtrType() const { in getUIntPtrType()
[all …]
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Utility/
HDStructuredData.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>
403 bool GetValueForKeyAsInteger(llvm::StringRef key, IntType &result) const { in GetValueForKeyAsInteger()
407 result = static_cast<IntType>(int_value->GetValue()); in GetValueForKeyAsInteger()
414 template <class IntType>
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/
HDTargetInfo.cpp158 const char *TargetInfo::getTypeName(IntType T) { in getTypeName()
176 const char *TargetInfo::getTypeConstantSuffix(IntType T) const { in getTypeConstantSuffix()
201 const char *TargetInfo::getTypeFormatModifier(IntType T) { in getTypeFormatModifier()
219 unsigned TargetInfo::getTypeWidth(IntType T) const { in getTypeWidth()
235 TargetInfo::IntType TargetInfo::getIntTypeByWidth( in getIntTypeByWidth()
250 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
290 unsigned TargetInfo::getTypeAlign(IntType T) const { in getTypeAlign()
308 bool TargetInfo::isTypeSigned(IntType T) { in isTypeSigned()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/Targets/
HDAVR.h155 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth()
161 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
HDWebAssembly.h105 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth()
111 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
HDOSTargets.h167 TargetInfo::IntType getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/IR/
HDMDBuilder.cpp315 auto *IntType = Type::getInt64Ty(Context); in createMisExpect() local
318 createConstant(ConstantInt::get(IntType, Index)), in createMisExpect()
319 createConstant(ConstantInt::get(IntType, LikleyWeight)), in createMisExpect()
320 createConstant(ConstantInt::get(IntType, UnlikleyWeight)), in createMisExpect()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Frontend/
HDInitPreprocessor.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-11-stable/contrib/llvm-project/clang/lib/AST/
HDASTDiagnostic.cpp1177 QualType &IntType, bool &IsNullPtr, in InitializeNonTypeDiffVariables() argument
1187 IntType = Iter->getIntegralType(); in InitializeNonTypeDiffVariables()
1217 IntType = TA.getIntegralType(); in InitializeNonTypeDiffVariables()
1781 QualType IntType, bool PrintType) { in PrintAPSInt() argument
1794 IntType.print(OS, Context.getPrintingPolicy()); in PrintAPSInt()
1799 if (IntType->isBooleanType()) { in PrintAPSInt()
1892 const llvm::APSInt &Val, QualType IntType, in PrintValueDeclAndInteger() argument
1905 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintValueDeclAndInteger()
1912 void PrintIntegerAndValueDecl(const llvm::APSInt &Val, QualType IntType, in PrintIntegerAndValueDecl() argument
1918 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintIntegerAndValueDecl()
[all …]
HDItaniumCXXABI.cpp196 TargetInfo::IntType PtrDiff = Target.getPtrDiffType(0); in getMemberPointerInfo()
HDASTContext.cpp10375 TargetInfo::IntType Ty = getTargetInfo().getIntTypeByWidth(DestWidth, Signed); in getIntTypeForBitwidth()
/freebsd-11-stable/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
HDRangeConstraintManager.cpp395 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in checkNull() local
396 llvm::APSInt Zero = IntType.getZeroValue(); in checkNull()
438 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in assumeNonZero() local
439 return Domain.Intersect(BV, F, ++IntType.getZeroValue(), in assumeNonZero()
440 --IntType.getZeroValue()); in assumeNonZero()
HDSimpleSValBuilder.cpp612 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
613 IntType.apply(LHSValue); in evalBinOpNN()
614 IntType.apply(RHSValue); in evalBinOpNN()
727 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
728 const llvm::APSInt &first = IntType.convert(symIntExpr->getRHS()); in evalBinOpNN()
729 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
HDConstantFolding.cpp505 auto *IntType = dyn_cast<IntegerType>(LoadTy); in FoldReinterpretLoadFromConstPtr() local
508 if (!IntType) { in FoldReinterpretLoadFromConstPtr()
549 unsigned BytesLoaded = (IntType->getBitWidth() + 7) / 8; in FoldReinterpretLoadFromConstPtr()
568 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
572 return UndefValue::get(IntType); in FoldReinterpretLoadFromConstPtr()
588 APInt ResultVal = APInt(IntType->getBitWidth(), 0); in FoldReinterpretLoadFromConstPtr()
603 return ConstantInt::get(IntType->getContext(), ResultVal); in FoldReinterpretLoadFromConstPtr()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
HDSimplifyLibCalls.cpp1011 IntegerType *IntType = IntegerType::get(CI->getContext(), Len * 8); in optimizeMemCmpConstantSize() local
1012 unsigned PrefAlignment = DL.getPrefTypeAlignment(IntType); in optimizeMemCmpConstantSize()
1017 LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
1018 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmpConstantSize()
1022 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
1023 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize()
1032 IntType->getPointerTo(LHS->getType()->getPointerAddressSpace()); in optimizeMemCmpConstantSize()
1033 LHSV = B.CreateLoad(IntType, B.CreateBitCast(LHS, LHSPtrTy), "lhsv"); in optimizeMemCmpConstantSize()
1037 IntType->getPointerTo(RHS->getType()->getPointerAddressSpace()); in optimizeMemCmpConstantSize()
1038 RHSV = B.CreateLoad(IntType, B.CreateBitCast(RHS, RHSPtrTy), "rhsv"); in optimizeMemCmpConstantSize()
/freebsd-11-stable/contrib/llvm-project/libcxx/include/
HDrandom435 template<class IntType = int>
440 typedef IntType result_type;
447 explicit param_type(IntType a = 0,
448 IntType b = numeric_limits<IntType>::max());
458 explicit uniform_int_distribution(IntType a = 0,
459 IntType b = numeric_limits<IntType>::max());
609 template<class IntType = int>
614 typedef IntType result_type;
621 explicit param_type(IntType t = 1, double p = 0.5);
623 IntType t() const;
[all …]
/freebsd-11-stable/contrib/llvm-project/clang/lib/CodeGen/
HDCGBuiltin.cpp107 QualType T, llvm::IntegerType *IntType) { in EmitToInt() argument
111 return CGF.Builder.CreatePtrToInt(V, IntType); in EmitToInt()
113 assert(V->getType() == IntType); in EmitToInt()
142 llvm::IntegerType *IntType = in MakeBinaryAtomicValue() local
145 llvm::Type *IntPtrType = IntType->getPointerTo(AddrSpace); in MakeBinaryAtomicValue()
151 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in MakeBinaryAtomicValue()
203 llvm::IntegerType *IntType = in EmitBinaryAtomicPost() local
206 llvm::Type *IntPtrType = IntType->getPointerTo(AddrSpace); in EmitBinaryAtomicPost()
211 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in EmitBinaryAtomicPost()
219 llvm::ConstantInt::get(IntType, -1)); in EmitBinaryAtomicPost()
[all …]
HDCGOpenMPRuntimeNVPTX.cpp2901 QualType IntType = CGF.getContext().getIntTypeForBitwidth( in shuffleAndStore() local
2904 llvm::Type *IntTy = CGF.ConvertTypeForMem(IntType); in shuffleAndStore()
2929 CGF, CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc), in shuffleAndStore()
2930 IntType, Offset, Loc); in shuffleAndStore()
2931 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType); in shuffleAndStore()
2940 CGF, CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc), in shuffleAndStore()
2941 IntType, Offset, Loc); in shuffleAndStore()
2942 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType); in shuffleAndStore()
HDTargetInfo.cpp58 llvm::Type *IntType = llvm::Type::getIntNTy(LLVMContext, Alignment); in coerceToIntArray() local
60 return ABIArgInfo::getDirect(llvm::ArrayType::get(IntType, NumElements)); in coerceToIntArray()
6494 llvm::Type *IntType = llvm::Type::getIntNTy(LLVMContext, Div); in coerceToIntArrayWithLimit() local
6496 return ABIArgInfo::getDirect(llvm::ArrayType::get(IntType, NumElements)); in coerceToIntArrayWithLimit()
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
HDInstCombineVectorOps.cpp540 IntegerType *IntType = Type::getInt32Ty(InsElt->getContext()); in replaceExtractElements() local
542 ExtendMask.push_back(ConstantInt::get(IntType, i)); in replaceExtractElements()
544 ExtendMask.push_back(UndefValue::get(IntType)); in replaceExtractElements()
HDInstCombineCalls.cpp169 IntegerType* IntType = IntegerType::get(MI->getContext(), Size<<3); in SimplifyAnyMemTransfer() local
170 Type *NewSrcPtrTy = PointerType::get(IntType, SrcAddrSp); in SimplifyAnyMemTransfer()
171 Type *NewDstPtrTy = PointerType::get(IntType, DstAddrSp); in SimplifyAnyMemTransfer()
192 LoadInst *L = Builder.CreateLoad(IntType, Src); in SimplifyAnyMemTransfer()
/freebsd-11-stable/contrib/llvm-project/clang/utils/TableGen/
HDMveEmitter.cpp568 std::string getIntegerValue(const std::string &IntType) override { in getIntegerValue() argument
569 return "GetIntegerConstantValue<" + IntType + ">(E->getArg(" + in getIntegerValue()
/freebsd-11-stable/contrib/llvm-project/clang/lib/Sema/
HDSemaExpr.cpp10660 QualType IntType = in checkArithmeticOrEnumeralThreeWayCompare() local
10662 assert(IntType->isArithmeticType()); in checkArithmeticOrEnumeralThreeWayCompare()
10667 if (IntType->isPromotableIntegerType()) in checkArithmeticOrEnumeralThreeWayCompare()
10668 IntType = S.Context.getPromotedIntegerType(IntType); in checkArithmeticOrEnumeralThreeWayCompare()
10670 LHS = S.ImpCastExprToType(LHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
10671 RHS = S.ImpCastExprToType(RHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
10672 LHSType = RHSType = IntType; in checkArithmeticOrEnumeralThreeWayCompare()
HDSemaChecking.cpp651 const QualType &IntType);