Home
last modified time | relevance | path

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

12

/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DPointerIntPair.h43 template <typename PointerTy, unsigned IntBits, typename IntType = unsigned,
54 PointerIntPair(PointerTy PtrVal, IntType IntVal) { in PointerIntPair()
62 IntType getInt() const { return (IntType)Info::getInt(Value); } in getInt()
68 void setInt(IntType IntVal) & { in setInt()
76 void setPointerAndInt(PointerTy PtrVal, IntType IntVal) & { in setPointerAndInt()
182 template <typename PointerTy, unsigned IntBits, typename IntType>
183 struct DenseMapInfo<PointerIntPair<PointerTy, IntBits, IntType>, void> {
184 using Ty = PointerIntPair<PointerTy, IntBits, IntType>;
207 template <typename PointerTy, unsigned IntBits, typename IntType,
210 PointerIntPair<PointerTy, IntBits, IntType, PtrTraits>> {
[all …]
/openbsd-src/gnu/llvm/clang/include/clang/Basic/
H A DTargetInfo.h135 enum IntType { enum
150 IntType SizeType, IntMaxType, PtrDiffType, IntPtrType, WCharType, WIntType,
340 IntType getSizeType() const { return SizeType; } in getSizeType()
341 IntType getSignedSizeType() const { in getSignedSizeType()
355 IntType getIntMaxType() const { return IntMaxType; } in getIntMaxType()
356 IntType getUIntMaxType() const { in getUIntMaxType()
359 IntType getPtrDiffType(LangAS AddrSpace) const { in getPtrDiffType()
363 IntType getUnsignedPtrDiffType(LangAS AddrSpace) const { in getUnsignedPtrDiffType()
366 IntType getIntPtrType() const { return IntPtrType; } in getIntPtrType()
367 IntType getUIntPtrType() const { in getUIntPtrType()
[all …]
/openbsd-src/gnu/llvm/lldb/include/lldb/Utility/
H A DStructuredData.h201 template <class IntType>
202 bool GetItemAtIndexAsInteger(size_t idx, IntType &result) const { in GetItemAtIndexAsInteger()
206 result = static_cast<IntType>(int_value->GetValue()); in GetItemAtIndexAsInteger()
213 template <class IntType>
214 bool GetItemAtIndexAsInteger(size_t idx, IntType &result, in GetItemAtIndexAsInteger()
215 IntType default_val) const { in GetItemAtIndexAsInteger()
428 template <class IntType>
429 bool GetValueForKeyAsInteger(llvm::StringRef key, IntType &result) const { in GetValueForKeyAsInteger()
433 result = static_cast<IntType>(int_value->GetValue()); in GetValueForKeyAsInteger()
440 template <class IntType>
[all …]
/openbsd-src/gnu/llvm/libcxxabi/src/
H A Dcxa_guard_impl.h132 template <class IntType>
137 explicit AtomicInt(IntType* b) : b_(b) {} in AtomicInt()
141 IntType load(MemoryOrder ord) { return std::__libcpp_atomic_load(b_, ord); } in load()
142 void store(IntType val, MemoryOrder ord) { std::__libcpp_atomic_store(b_, val, ord); } in store()
143IntType exchange(IntType new_val, MemoryOrder ord) { return std::__libcpp_atomic_exchange(b_, new_… in exchange()
144 …bool compare_exchange(IntType* expected, IntType desired, MemoryOrder ord_success, MemoryOrder ord… in compare_exchange()
149 IntType* b_;
/openbsd-src/gnu/llvm/clang/lib/Basic/
H A DTargetInfo.cpp206 const char *TargetInfo::getTypeName(IntType T) { in getTypeName()
224 const char *TargetInfo::getTypeConstantSuffix(IntType T) const { in getTypeConstantSuffix()
249 const char *TargetInfo::getTypeFormatModifier(IntType T) { in getTypeFormatModifier()
267 unsigned TargetInfo::getTypeWidth(IntType T) const { in getTypeWidth()
283 TargetInfo::IntType TargetInfo::getIntTypeByWidth( in getIntTypeByWidth()
298 TargetInfo::IntType TargetInfo::getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
349 unsigned TargetInfo::getTypeAlign(IntType T) const { in getTypeAlign()
367 bool TargetInfo::isTypeSigned(IntType T) { in isTypeSigned()
/openbsd-src/gnu/llvm/libcxx/include/
H A Drandom446 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 …]
/openbsd-src/gnu/llvm/clang/lib/Basic/Targets/
H A DAVR.h157 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth()
163 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
H A DWebAssembly.h115 IntType getIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getIntTypeByWidth()
121 IntType getLeastIntTypeByWidth(unsigned BitWidth, bool IsSigned) const final { in getLeastIntTypeByWidth()
H A DOSTargets.h156 TargetInfo::IntType getLeastIntTypeByWidth(unsigned BitWidth, in getLeastIntTypeByWidth()
/openbsd-src/gnu/llvm/llvm/utils/
H A Dllvm.grm69 IntType ::= INTTYPE;
363 | switch IntType ValueRef ^ "," label ValueRef "[" JumpTable "]"
364 | switch IntType ValueRef ^ "," label ValueRef "[" ^ "]"
371 JumpTable ::= JumpTable IntType ConstValueRef ^ "," label ValueRef
372 | IntType ConstValueRef ^ "," label ValueRef ;
/openbsd-src/gnu/llvm/clang/lib/Frontend/
H A DInitPreprocessor.cpp178 static void DefineTypeSize(const Twine &MacroName, TargetInfo::IntType Ty, in DefineTypeSize()
184 static void DefineFmt(const Twine &Prefix, TargetInfo::IntType Ty, in DefineFmt()
194 static void DefineType(const Twine &MacroName, TargetInfo::IntType Ty, in DefineType()
199 static void DefineTypeWidth(const Twine &MacroName, TargetInfo::IntType Ty, in DefineTypeWidth()
213 static void DefineTypeSizeAndWidth(const Twine &Prefix, TargetInfo::IntType Ty, in DefineTypeSizeAndWidth()
220 static void DefineExactWidthIntType(TargetInfo::IntType Ty, in DefineExactWidthIntType()
245 static void DefineExactWidthIntTypeSize(TargetInfo::IntType Ty, in DefineExactWidthIntTypeSize()
265 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineLeastWidthIntType()
284 TargetInfo::IntType Ty = TI.getLeastIntTypeByWidth(TypeWidth, IsSigned); in DefineFastIntType()
/openbsd-src/gnu/llvm/clang/lib/AST/
H A DASTDiagnostic.cpp1212 QualType &IntType, bool &IsNullPtr, in InitializeNonTypeDiffVariables() argument
1222 IntType = Iter->getIntegralType(); in InitializeNonTypeDiffVariables()
1252 IntType = TA.getIntegralType(); in InitializeNonTypeDiffVariables()
1833 QualType IntType, bool PrintType) { in PrintAPSInt() argument
1846 IntType.print(OS, Context.getPrintingPolicy()); in PrintAPSInt()
1851 if (IntType->isBooleanType()) { in PrintAPSInt()
1951 const llvm::APSInt &Val, QualType IntType, in PrintValueDeclAndInteger() argument
1964 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintValueDeclAndInteger()
1971 void PrintIntegerAndValueDecl(const llvm::APSInt &Val, QualType IntType, in PrintIntegerAndValueDecl() argument
1977 PrintAPSInt(Val, IntExpr, true /*Valid*/, IntType, false /*PrintType*/); in PrintIntegerAndValueDecl()
[all …]
H A DItaniumCXXABI.cpp228 TargetInfo::IntType PtrDiff = Target.getPtrDiffType(LangAS::Default); in getMemberPointerInfo()
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp525 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
526 IntType.apply(LHSValue); in evalBinOpNN()
527 IntType.apply(RHSValue); in evalBinOpNN()
647 APSIntType IntType = BasicVals.getAPSIntType(resultTy); in evalBinOpNN() local
648 const llvm::APSInt &first = IntType.convert(symIntExpr->getRHS()); in evalBinOpNN()
649 const llvm::APSInt &second = IntType.convert(*RHSValue); in evalBinOpNN()
H A DRangeConstraintManager.cpp1437 APSIntType IntType = ValueFactory.getAPSIntType(T); in assumeNonZero() local
1438 return RangeFactory.deletePoint(Domain, IntType.getZeroValue()); in assumeNonZero()
2849 APSIntType IntType = BV.getAPSIntType(Sym->getType()); in checkNull() local
2850 llvm::APSInt Zero = IntType.getZeroValue(); in checkNull()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DSimplifyLibCalls.cpp1479 IntegerType *IntType = IntegerType::get(CI->getContext(), Len * 8); in optimizeMemCmpConstantSize() local
1480 Align PrefAlignment = DL.getPrefTypeAlign(IntType); in optimizeMemCmpConstantSize()
1485 LHSC = ConstantExpr::getBitCast(LHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
1486 LHSV = ConstantFoldLoadFromConstPtr(LHSC, IntType, DL); in optimizeMemCmpConstantSize()
1490 RHSC = ConstantExpr::getBitCast(RHSC, IntType->getPointerTo()); in optimizeMemCmpConstantSize()
1491 RHSV = ConstantFoldLoadFromConstPtr(RHSC, IntType, DL); in optimizeMemCmpConstantSize()
1500 IntType->getPointerTo(LHS->getType()->getPointerAddressSpace()); in optimizeMemCmpConstantSize()
1501 LHSV = B.CreateLoad(IntType, B.CreateBitCast(LHS, LHSPtrTy), "lhsv"); in optimizeMemCmpConstantSize()
1505 IntType->getPointerTo(RHS->getType()->getPointerAddressSpace()); in optimizeMemCmpConstantSize()
1506 RHSV = B.CreateLoad(IntType, B.CreateBitCast(RHS, RHSPtrTy), "rhsv"); in optimizeMemCmpConstantSize()
/openbsd-src/gnu/llvm/llvm/lib/Analysis/
H A DConstantFolding.cpp552 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()
/openbsd-src/gnu/llvm/clang/lib/CodeGen/
H A DCGOpenMPRuntimeGPU.cpp1436 QualType IntType = CGF.getContext().getIntTypeForBitwidth( in shuffleAndStore() local
1439 llvm::Type *IntTy = CGF.ConvertTypeForMem(IntType); in shuffleAndStore()
1468 CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc, in shuffleAndStore()
1471 IntType, Offset, Loc); in shuffleAndStore()
1472 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType, in shuffleAndStore()
1484 CGF.EmitLoadOfScalar(Ptr, /*Volatile=*/false, IntType, Loc, in shuffleAndStore()
1487 IntType, Offset, Loc); in shuffleAndStore()
1488 CGF.EmitStoreOfScalar(Res, ElemPtr, /*Volatile=*/false, IntType, in shuffleAndStore()
H A DCGBuiltin.cpp151 QualType T, llvm::IntegerType *IntType) { in EmitToInt() argument
155 return CGF.Builder.CreatePtrToInt(V, IntType); in EmitToInt()
157 assert(V->getType() == IntType); in EmitToInt()
187 llvm::IntegerType *IntType = in MakeBinaryAtomicValue() local
190 llvm::Type *IntPtrType = IntType->getPointerTo(AddrSpace); in MakeBinaryAtomicValue()
196 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in MakeBinaryAtomicValue()
249 llvm::IntegerType *IntType = in EmitBinaryAtomicPost() local
252 llvm::Type *IntPtrType = IntType->getPointerTo(AddrSpace); in EmitBinaryAtomicPost()
257 Args[1] = EmitToInt(CGF, Args[1], T, IntType); in EmitBinaryAtomicPost()
266 llvm::ConstantInt::getAllOnesValue(IntType)); in EmitBinaryAtomicPost()
[all …]
/openbsd-src/gnu/llvm/llvm/utils/TableGen/
H A DRegisterInfoEmitter.cpp817 auto *IntType = getMinimalTypeForRange(*std::max_element( in emitComposeSubRegIndexLaneMask() local
821 << IntType << " CompositeSequences[] = {\n"; in emitComposeSubRegIndexLaneMask()
/openbsd-src/gnu/llvm/clang/utils/TableGen/
H A DMveEmitter.cpp582 std::string getIntegerValue(const std::string &IntType) override { in getIntegerValue() argument
583 return "GetIntegerConstantValue<" + IntType + ">(E->getArg(" + in getIntegerValue()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/InstCombine/
H A DInstCombineCalls.cpp181 IntegerType* IntType = IntegerType::get(MI->getContext(), Size<<3); in SimplifyAnyMemTransfer() local
182 Type *NewSrcPtrTy = PointerType::get(IntType, SrcAddrSp); in SimplifyAnyMemTransfer()
183 Type *NewDstPtrTy = PointerType::get(IntType, DstAddrSp); in SimplifyAnyMemTransfer()
204 LoadInst *L = Builder.CreateLoad(IntType, Src); in SimplifyAnyMemTransfer()
H A DInstCombineCompares.cpp7018 Type *IntType = Builder.getIntNTy(X->getType()->getScalarSizeInBits()); in visitFCmpInst() local
7020 IntType = VectorType::get(IntType, VecTy->getElementCount()); in visitFCmpInst()
7024 Value *IntX = Builder.CreateBitCast(X, IntType); in visitFCmpInst()
7026 ConstantInt::getNullValue(IntType)); in visitFCmpInst()
/openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/
H A DSPIRVBuiltins.cpp415 SPIRVType *IntType = GR->getOrCreateSPIRVIntegerType(BitWidth, MIRBuilder); in buildConstantIntReg() local
416 return GR->buildConstantInt(Val, MIRBuilder, IntType); in buildConstantIntReg()
/openbsd-src/gnu/llvm/clang/lib/Sema/
H A DSemaExpr.cpp12525 QualType IntType = in checkArithmeticOrEnumeralThreeWayCompare() local
12527 assert(IntType->isArithmeticType()); in checkArithmeticOrEnumeralThreeWayCompare()
12532 if (S.Context.isPromotableIntegerType(IntType)) in checkArithmeticOrEnumeralThreeWayCompare()
12533 IntType = S.Context.getPromotedIntegerType(IntType); in checkArithmeticOrEnumeralThreeWayCompare()
12535 LHS = S.ImpCastExprToType(LHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
12536 RHS = S.ImpCastExprToType(RHS.get(), IntType, CK_IntegralCast); in checkArithmeticOrEnumeralThreeWayCompare()
12537 LHSType = RHSType = IntType; in checkArithmeticOrEnumeralThreeWayCompare()

12