| /freebsd-src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CodeGenTypeCache.h | 22 class IntegerType; variable 37 llvm::IntegerType *Int8Ty, *Int16Ty, *Int32Ty, *Int64Ty; 42 llvm::IntegerType *IntTy; 45 llvm::IntegerType *CharTy; 49 llvm::IntegerType *IntPtrTy; 50 llvm::IntegerType *SizeTy; 51 llvm::IntegerType *PtrDiffTy;
|
| H A D | PatternInit.cpp | 38 cast<llvm::IntegerType>(Ty->getScalarType())->getBitWidth(); in initializationPatternFor() 50 llvm::Type *IntTy = llvm::IntegerType::get(CGM.getLLVMContext(), PtrWidth); in initializationPatternFor()
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/ADT/ |
| H A D | Bitfields.h | 159 using IntegerType = typename Bitfield::IntegerType; 160 using C = Compressor<IntegerType, Bitfield::Bits>; 170 static void update(StorageType &Packed, IntegerType UserValue) { 178 static IntegerType extract(StorageType Packed) { 225 using IntegerType = 237 static constexpr size_t TypeBits = sizeof(IntegerType) * CHAR_BIT; 242 std::is_unsigned<IntegerType>::value, 244 static_assert(std::is_integral<IntegerType>::value && 245 std::numeric_limits<IntegerType>::is_integer, 248 static constexpr IntegerType UserMaxValue = [all …]
|
| /freebsd-src/contrib/llvm-project/llvm/lib/IR/ |
| H A D | Type.cpp | 57 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 187 return TypeSize::getFixed(cast<IntegerType>(this)->getBitWidth()); in getPrimitiveSizeInBits() 251 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty() 252 IntegerType *Type::getInt8Ty(LLVMContext &C) { return &C.pImpl->Int8Ty; } in getInt8Ty() 253 IntegerType *Type::getInt16Ty(LLVMContext &C) { return &C.pImpl->Int16Ty; } in getInt16Ty() 254 IntegerType *Type::getInt32Ty(LLVMContext &C) { return &C.pImpl->Int32Ty; } in getInt32Ty() 255 IntegerType *Type::getInt64Ty(LLVMContext &C) { return &C.pImpl->Int64Ty; } in getInt64Ty() 256 IntegerType *Type::getInt128Ty(LLVMContext &C) { return &C.pImpl->Int128Ty; } in getInt128Ty() 258 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy() 259 return IntegerType in getIntNTy() [all...] |
| H A D | ConstantFold.cpp | 63 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair() 177 Type *Ty = IntegerType::get(V->getContext(), 32); in ExtractConstantBytes() 210 uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth(); in ConstantFoldCastInstruction() 234 uint32_t BitWidth = cast<IntegerType>(DestTy)->getBitWidth(); in ConstantFoldCastInstruction() 241 uint32_t BitWidth = cast<IntegerType>(DestTy)->getBitWidth(); in ConstantFoldCastInstruction() 250 uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth(); in ConstantFoldCastInstruction() 277 Type *Ty = IntegerType::get(CondV->getContext(), 32); in ConstantFoldCastInstruction() 467 Type *Ty = IntegerType::get(V1->getContext(), 32); in ConstantFoldExtractElementInstruction() 497 Type *Ty = IntegerType::get(V2->getContext(), 32); in ConstantFoldInsertElementInstruction() 502 Type *Ty = IntegerType in ConstantFoldInsertElementInstruction() [all...] |
| H A D | DataLayout.cpp | 878 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType() 880 return IntegerType::get(C, getPointerSizeInBits(AddressSpace)); in getIntPtrType() 887 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType() 905 IntegerType *DataLayout::getIndexType(LLVMContext &C, in getIndexType() 907 return IntegerType::get(C, getIndexSizeInBits(AddressSpace)); in getIndexType() 914 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType()
|
| /freebsd-src/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | Type.h | 29 class IntegerType; variable 459 static IntegerType *getIntNTy(LLVMContext &C, unsigned N); 460 static IntegerType *getInt1Ty(LLVMContext &C); 461 static IntegerType *getInt8Ty(LLVMContext &C); 462 static IntegerType *getInt16Ty(LLVMContext &C); 463 static IntegerType *getInt32Ty(LLVMContext &C); 464 static IntegerType *getInt64Ty(LLVMContext &C); 465 static IntegerType *getInt128Ty(LLVMContext &C);
|
| H A D | DerivedTypes.h | 40 class IntegerType : public Type { 44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() function 49 /// This enum is just used to hold constants we need for IntegerType. 55 ///< power of 2 IntegerType, so limit to the largest representable power 59 /// This static method is the primary way of constructing an IntegerType. 60 /// If an IntegerType with the same NumBits value was previously instantiated, 63 /// Get or create an IntegerType instance. 64 static IntegerType *get(LLVMContext &C, unsigned NumBits); 67 IntegerType *getExtendedType() const { in getExtendedType() 71 /// Get the number of bits in this IntegerType [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ExpandLargeDivRem.cpp | 38 cl::init(llvm::IntegerType::MAX_INT_BITS), 86 if (ExpandDivRemBits != llvm::IntegerType::MAX_INT_BITS) in runImpl() 89 if (MaxLegalDivRemBitWidth >= llvm::IntegerType::MAX_INT_BITS) in runImpl() 102 auto *IntTy = dyn_cast<IntegerType>(I.getType()->getScalarType()); in runImpl()
|
| H A D | TypePromotion.cpp | 112 IntegerType *ExtTy = nullptr; 131 ExtTy = IntegerType::get(Ctx, PromotedWidth); in IRPromoter() 231 if (!isa<IntegerType>(V->getType())) in isSource() 383 if (!isa<IntegerType>(V->getType()) || isSink(V)) in shouldPromote() 489 if ((Op->getType() == ExtTy) || !isa<IntegerType>(Op->getType())) in PromoteTree() 529 if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType())) in TruncateSinks() 639 IntegerType *SrcTy = cast<IntegerType>(Trunc->getOperand(0)->getType()); in ConvertTruncs() 640 IntegerType *DestTy = cast<IntegerType>(TruncTysMa in ConvertTruncs() [all...] |
| H A D | ExpandLargeFpConvert.cpp | 37 cl::init(llvm::IntegerType::MAX_INT_BITS), 94 IntegerType *IntTy = cast<IntegerType>(FPToI->getType()); in expandFPToI() 313 IntegerType *IntTy = cast<IntegerType>(IntVal->getType()); in expandIToFP() 600 if (ExpandFpConvertBits != llvm::IntegerType::MAX_INT_BITS) in runImpl() 603 if (MaxLegalFpConvertBitWidth >= llvm::IntegerType::MAX_INT_BITS) in runImpl() 614 auto *IntTy = cast<IntegerType>(I.getType()->getScalarType()); in runImpl() 632 cast<IntegerType>(I.getOperand(0)->getType()->getScalarType());
|
| H A D | ExpandMemCmp.cpp | 431 IntegerType *const MaxLoadType = in getCompareLoadPairs() 433 : IntegerType::get(CI->getContext(), MaxLoadSize * 8); in getCompareLoadPairs() 438 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8), nullptr, in getCompareLoadPairs() 524 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8); in emitLoadCompareBlock() 527 ? IntegerType::get(CI->getContext(), in emitLoadCompareBlock() 530 Type *MaxLoadType = IntegerType::get( in emitLoadCompareBlock() 604 Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8); in setupResultBlockPHINodes() 647 Type *LoadSizeType = IntegerType::get(CI->getContext(), Size * 8); in getMemCmpOneBlock() 649 NeedsBSwap ? IntegerType::get(CI->getContext(), PowerOf2Ceil(Size * 8)) in getMemCmpOneBlock() 652 IntegerType in getMemCmpOneBlock() [all...] |
| H A D | IndirectBrExpandPass.cpp | 165 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runImpl() 201 IntegerType *CommonITy = nullptr; in runImpl() 204 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runImpl()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 396 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForAdd() 420 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd() 452 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul() 462 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForMul() 480 // Casting to IntegerType is safe because we skipped vector GEPs. in allocateCandidatesAndFindBasisForGEP() 481 IntegerType *PtrIdxTy = cast<IntegerType>(DL->getIndexType(I->getType())); in allocateCandidatesAndFindBasisForGEP() 493 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex() 593 IntegerType *DeltaType = in emitBump() 594 IntegerType in emitBump() [all...] |
| /freebsd-src/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | LoopConstrainer.cpp | 54 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeDecreasingBound() 101 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeIncreasingBound() 162 if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) { in parseLoopStructure() 179 IntegerType *IndVarTy = cast<IntegerType>(LeftValue->getType()); in parseLoopStructure() 200 IntegerType *Ty = cast<IntegerType>(AR->getType()); in parseLoopStructure() 201 IntegerType *WideTy = in parseLoopStructure() 202 IntegerType::get(Ty->getContext(), Ty->getBitWidth() * 2); in parseLoopStructure() 425 Result.ExitCountTy = cast<IntegerType>(MaxBETakenCoun in parseLoopStructure() [all...] |
| H A D | VNCoercion.cpp | 133 StoredValTy = IntegerType::get(StoredValTy->getContext(), StoredValSize); in coerceAvailableValueToLoadType() 147 Type *NewIntTy = IntegerType::get(StoredValTy->getContext(), LoadedValSize); in coerceAvailableValueToLoadType() 317 Builder.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper() 331 IntegerType::get(Ctx, LoadSize * 8)); in getStoreValueForLoadHelper() 375 Builder.CreateZExtOrBitCast(Val, IntegerType::get(Ctx, LoadSize * 8)); in getMemInstValueForLoad()
|
| H A D | BypassSlowDivision.cpp | 78 IntegerType *BypassType = nullptr; 125 IntegerType *SlowType = dyn_cast<IntegerType>(SlowDivOrRem->getType()); in FastDivInsertionTask() 135 IntegerType *BT = IntegerType::get(I->getContext(), BI->second); in FastDivInsertionTask()
|
| H A D | SanitizerStats.cpp | 46 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() 77 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext()); in finish()
|
| /freebsd-src/contrib/llvm-project/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 200 void addInt(llvm::IntegerType *intTy, uint64_t value, 228 void addRelativeOffset(llvm::IntegerType *type, llvm::Constant *target) { in addRelativeOffsetToPosition() 234 void addRelativeOffsetToPosition(llvm::IntegerType *type, 243 void addTaggedRelativeOffset(llvm::IntegerType *type, in addTaggedRelativeOffset() 293 llvm::IntegerType *type, uint64_t value, in fillPlaceholder() 337 llvm::Constant *getRelativeOffset(llvm::IntegerType *offsetType, 340 llvm::Constant *getRelativeOffsetToPosition(llvm::IntegerType *offsetType,
|
| H A D | SwiftCallingConv.h | 24 class IntegerType; variable 135 bool isLegalIntegerType(CodeGenModule &CGM, llvm::IntegerType *type);
|
| /freebsd-src/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
| H A D | Mips.cpp | 112 llvm::IntegerType *IntTy = in CoerceToIntArgs() 113 llvm::IntegerType::get(getVMContext(), MinABIStackAlignInBytes * 8); in CoerceToIntArgs() 123 ArgList.push_back(llvm::IntegerType::get(getVMContext(), R)); in CoerceToIntArgs() 153 llvm::IntegerType *I64 = llvm::IntegerType::get(getVMContext(), 64); in HandleAggregates() 189 return llvm::IntegerType::get(getVMContext(), (Offset - OrigOffset) * 8); in getPaddingType()
|
| H A D | BPF.cpp | 38 llvm::IntegerType::get(getVMContext(), llvm::alignTo(Bits, 8)); in classifyArgumentType() 40 llvm::Type *RegTy = llvm::IntegerType::get(getVMContext(), 64); in classifyArgumentType()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMParallelDSP.cpp | 226 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy); 697 ConstantInt::get(IntegerType::get(M->getContext(), 64), 0) : in InsertParallelMACs() 698 ConstantInt::get(IntegerType::get(M->getContext(), 32), 0); in InsertParallelMACs() 711 IntegerType *Ty = IntegerType::get(M->getContext(), 32); in InsertParallelMACs() 730 IntegerType *LoadTy) { in CreateWideLoad() 782 IntegerType *OffsetTy = cast<IntegerType>(Offset->getType()); in CreateWideLoad()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXCtorDtorLowering.cpp | 173 auto *BeginInt = IRB.CreatePtrToInt(BeginVal, IntegerType::getInt64Ty(C)); in createInitOrFiniCalls() 174 auto *EndInt = IRB.CreatePtrToInt(EndVal, IntegerType::getInt64Ty(C)); in createInitOrFiniCalls() 177 SubInst, ConstantInt::get(IntegerType::getInt64Ty(C), 3), "offset", in createInitOrFiniCalls() 184 ArrayRef<Value *>(ConstantInt::get(IntegerType::getInt64Ty(C), -1)), in createInitOrFiniCalls()
|
| /freebsd-src/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonLoopIdiomRecognition.cpp | 586 IntegerType *getPmpyType() const { in getPmpyType() 588 return IntegerType::get(Ctx, 32); in getPmpyType() 591 bool isPromotableTo(Value *V, IntegerType *Ty); 592 void promoteTo(Instruction *In, IntegerType *DestTy, BasicBlock *LoopB); 975 IntegerType *DestTy) { in scanSelect() 976 IntegerType *T = dyn_cast<IntegerType>(Val->getType()); in scanSelect() 1013 IntegerType *DestTy, BasicBlock *LoopB) { in isPromotableTo() 1030 IntegerType *Ty = cast<IntegerType>(In in promoteTo() [all...] |