| /openbsd-src/gnu/llvm/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()
|
| H A D | CGOpenCLRuntime.cpp | 106 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemSize() 116 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemAlign() 125 return llvm::IntegerType::getInt8PtrTy( in getGenericVoidPointerType()
|
| /openbsd-src/gnu/llvm/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 …]
|
| /openbsd-src/gnu/llvm/llvm/examples/BrainF/ |
| H A D | BrainF.cpp | 76 module->getOrInsertFunction("getchar", IntegerType::getInt32Ty(C)); in header() 80 "putchar", IntegerType::getInt32Ty(C), IntegerType::getInt32Ty(C)); in header() 93 Type* IntPtrTy = IntegerType::getInt32Ty(C); in header() 94 Type* Int8Ty = IntegerType::getInt8Ty(C); in header() 154 "puts", IntegerType::getInt32Ty(C), in header() 155 PointerType::getUnqual(IntegerType::getInt8Ty(C))); in header() 162 Constant *zero_32 = Constant::getNullValue(IntegerType::getInt32Ty(C)); in header() 197 Type *Int8Ty = IntegerType::getInt8Ty(C); in readloop() 216 CreateTrunc(tape_0, IntegerType::getInt8Ty(C), tapereg); in readloop() 230 CreateSExt(tape_0, IntegerType::getInt32Ty(C), tapereg); in readloop()
|
| /openbsd-src/gnu/llvm/llvm/lib/IR/ |
| H A D | Type.cpp | 57 return isIntegerTy() && cast<IntegerType>(this)->getBitWidth() == Bitwidth; in isIntegerTy() 175 return TypeSize::Fixed(cast<IntegerType>(this)->getBitWidth()); in getPrimitiveSizeInBits() 238 IntegerType *Type::getInt1Ty(LLVMContext &C) { return &C.pImpl->Int1Ty; } in getInt1Ty() 239 IntegerType *Type::getInt8Ty(LLVMContext &C) { return &C.pImpl->Int8Ty; } in getInt8Ty() 240 IntegerType *Type::getInt16Ty(LLVMContext &C) { return &C.pImpl->Int16Ty; } in getInt16Ty() 241 IntegerType *Type::getInt32Ty(LLVMContext &C) { return &C.pImpl->Int32Ty; } in getInt32Ty() 242 IntegerType *Type::getInt64Ty(LLVMContext &C) { return &C.pImpl->Int64Ty; } in getInt64Ty() 243 IntegerType *Type::getInt128Ty(LLVMContext &C) { return &C.pImpl->Int128Ty; } in getInt128Ty() 245 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy() 246 return IntegerType::get(C, N); in getIntNTy() [all …]
|
| H A D | ConstantFold.cpp | 68 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector() 102 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair() 216 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 && in ExtractConstantBytes() 218 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8; in ExtractConstantBytes() 281 IntegerType::get(CE->getContext(), ByteSize * 8)); in ExtractConstantBytes() 304 IntegerType::get(CE->getContext(), ByteSize * 8)); in ExtractConstantBytes() 316 cast<IntegerType>(CE->getOperand(0)->getType())->getBitWidth(); in ExtractConstantBytes() 320 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes() 340 return ConstantExpr::getTrunc(Res, IntegerType::get(C->getContext(), in ExtractConstantBytes() 417 Type *Ty = IntegerType::get(V->getContext(), 32); in ConstantFoldCastInstruction() [all …]
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/IR/ |
| H A D | Type.h | 29 class IntegerType; variable 463 static IntegerType *getIntNTy(LLVMContext &C, unsigned N); 464 static IntegerType *getInt1Ty(LLVMContext &C); 465 static IntegerType *getInt8Ty(LLVMContext &C); 466 static IntegerType *getInt16Ty(LLVMContext &C); 467 static IntegerType *getInt32Ty(LLVMContext &C); 468 static IntegerType *getInt64Ty(LLVMContext &C); 469 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 64 static IntegerType *get(LLVMContext &C, unsigned NumBits); 67 IntegerType *getExtendedType() const { in getExtendedType() 98 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth() 443 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger() 451 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() 475 EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType() 713 return cast<IntegerType>(this)->getExtendedType(); in getExtendedType()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | ExpandLargeDivRem.cpp | 37 cl::init(llvm::IntegerType::MAX_INT_BITS), 61 if (ExpandDivRemBits != llvm::IntegerType::MAX_INT_BITS) in runImpl() 64 if (MaxLegalDivRemBitWidth >= llvm::IntegerType::MAX_INT_BITS) in runImpl() 74 auto *IntTy = dyn_cast<IntegerType>(I.getType()); in runImpl()
|
| H A D | TypePromotion.cpp | 112 IntegerType *ExtTy = nullptr; 131 ExtTy = IntegerType::get(Ctx, PromotedWidth); in IRPromoter() 230 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() 521 if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType())) in TruncateSinks() 631 IntegerType *SrcTy = cast<IntegerType>(Trunc->getOperand(0)->getType()); in ConvertTruncs() 632 IntegerType *DestTy = cast<IntegerType>(TruncTysMap[Trunc][0]); in ConvertTruncs() 700 if (!isa<IntegerType>(Ty) || cast<IntegerType>(Ty)->getBitWidth() == 1 || in isSupportedType() 701 cast<IntegerType>(Ty)->getBitWidth() > RegisterBitWidth) in isSupportedType() [all …]
|
| H A D | ExpandLargeFpConvert.cpp | 36 cl::init(llvm::IntegerType::MAX_INT_BITS), 93 IntegerType *IntTy = cast<IntegerType>(FPToI->getType()); in expandFPToI() 310 IntegerType *IntTy = cast<IntegerType>(IntVal->getType()); in expandIToFP() 575 if (ExpandFpConvertBits != llvm::IntegerType::MAX_INT_BITS) in runImpl() 578 if (MaxLegalFpConvertBitWidth >= llvm::IntegerType::MAX_INT_BITS) in runImpl() 589 auto *IntTy = dyn_cast<IntegerType>(I.getType()); in runImpl() 603 auto *IntTy = dyn_cast<IntegerType>(I.getOperand(0)->getType()); in runImpl()
|
| H A D | IndirectBrExpandPass.cpp | 158 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction() 194 IntegerType *CommonITy = nullptr; in runOnFunction() 197 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runOnFunction()
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceOperands.cpp | 92 if (auto *IntTy = dyn_cast<IntegerType>(Ty)) { in reduceOperandsOneDeltaPass() 111 } else if (IntegerType *IntTy = dyn_cast<IntegerType>(ElementType)) { in reduceOperandsOneDeltaPass() 134 if (auto *IntTy = dyn_cast<IntegerType>(Op->getType())) in reduceOperandsZeroDeltaPass()
|
| /openbsd-src/gnu/llvm/clang/include/clang/CodeGen/ |
| H A D | ConstantInitBuilder.h | 197 void addInt(llvm::IntegerType *intTy, uint64_t value, 225 void addRelativeOffset(llvm::IntegerType *type, llvm::Constant *target) { in addRelativeOffset() 231 void addRelativeOffsetToPosition(llvm::IntegerType *type, in addRelativeOffsetToPosition() 240 void addTaggedRelativeOffset(llvm::IntegerType *type, in addTaggedRelativeOffset() 290 llvm::IntegerType *type, uint64_t value, 334 llvm::Constant *getRelativeOffset(llvm::IntegerType *offsetType, 337 llvm::Constant *getRelativeOffsetToPosition(llvm::IntegerType *offsetType,
|
| H A D | SwiftCallingConv.h | 24 class IntegerType; variable 135 bool isLegalIntegerType(CodeGenModule &CGM, llvm::IntegerType *type);
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/ |
| H A D | StraightLineStrengthReduce.cpp | 400 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForAdd() 424 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd() 458 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul() 468 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForMul() 487 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP() 499 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex() 614 IntegerType *DeltaType = in emitBump() 615 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
|
| H A D | InductiveRangeCheckElimination.cpp | 393 unsigned BitWidth = cast<IntegerType>(IndexAddRec->getType())->getBitWidth(); in extractRangeChecksFromCond() 691 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeDecreasingBound() 739 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeIncreasingBound() 786 if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) { in parseLoopStructure() 800 IntegerType *IndVarTy = cast<IntegerType>(LeftValue->getType()); in parseLoopStructure() 821 IntegerType *Ty = cast<IntegerType>(AR->getType()); in parseLoopStructure() 822 IntegerType *WideTy = in parseLoopStructure() 823 IntegerType::get(Ty->getContext(), Ty->getBitWidth() * 2); in parseLoopStructure() 1065 IntegerType *Ty = cast<IntegerType>(LatchTakenCount->getType()); in calculateSubRanges() 1067 auto *RTy = cast<IntegerType>(Range.getType()); in calculateSubRanges() [all …]
|
| H A D | SROA.cpp | 1226 static std::pair<Type *, IntegerType *> 1231 IntegerType *ITy = nullptr; in findCommonType() 1249 if (IntegerType *UserITy = dyn_cast_or_null<IntegerType>(UserTy)) { in findCommonType() 1911 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue() 1912 assert(cast<IntegerType>(OldTy)->getBitWidth() != in canConvertValue() 1913 cast<IntegerType>(NewTy)->getBitWidth() && in canConvertValue() 1974 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) && in convertValue() 2194 VTy = cast<VectorType>(VTy->getWithNewType(IntegerType::getIntNTy( in isVectorPromotionViable() 2289 if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) { in isIntegerWideningViableForSlice() 2314 if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) { in isIntegerWideningViableForSlice() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | VNCoercion.cpp | 133 StoredValTy = IntegerType::get(StoredValTy->getContext(), StoredValSize); in coerceAvailableValueToLoadType() 147 Type *NewIntTy = IntegerType::get(StoredValTy->getContext(), LoadedValSize); in coerceAvailableValueToLoadType() 241 if (!isa<IntegerType>(LI->getType()) || !LI->isSimple()) in getLoadLoadClobberFullWidthSize() 423 Builder.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper() 437 IntegerType::get(Ctx, LoadSize * 8)); in getStoreValueForLoadHelper() 484 Type *DestTy = IntegerType::get(LoadTy->getContext(), NewLoadSize * 8); in getLoadValueForLoad() 537 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 | 45 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create() 77 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext()); in finish()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/ARM/ |
| H A D | ARMParallelDSP.cpp | 229 LoadInst* CreateWideLoad(MemInstList &Loads, IntegerType *LoadTy); 700 ConstantInt::get(IntegerType::get(M->getContext(), 64), 0) : in InsertParallelMACs() 701 ConstantInt::get(IntegerType::get(M->getContext(), 32), 0); in InsertParallelMACs() 714 IntegerType *Ty = IntegerType::get(M->getContext(), 32); in InsertParallelMACs() 733 IntegerType *LoadTy) { in CreateWideLoad() 787 IntegerType *OffsetTy = cast<IntegerType>(Offset->getType()); in CreateWideLoad()
|
| /openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVGlobalRegistry.cpp | 123 const IntegerType *LLVMIntTy; in getOrCreateConstIntReg() 125 LLVMIntTy = cast<IntegerType>(getTypeForSPIRVType(SpvType)); in getOrCreateConstIntReg() 127 LLVMIntTy = IntegerType::getInt32Ty(CurMF->getFunction().getContext()); in getOrCreateConstIntReg() 130 ConstantInt *CI = ConstantInt::get(const_cast<IntegerType *>(LLVMIntTy), Val); in getOrCreateConstIntReg() 182 const IntegerType *LLVMIntTy; in buildConstantInt() 184 LLVMIntTy = cast<IntegerType>(getTypeForSPIRVType(SpvType)); in buildConstantInt() 186 LLVMIntTy = IntegerType::getInt32Ty(MF.getFunction().getContext()); in buildConstantInt() 189 ConstantInt::get(const_cast<IntegerType *>(LLVMIntTy), Val); in buildConstantInt() 232 LLVMFPTy = IntegerType::getFloatTy(MF.getFunction().getContext()); in buildConstantFP() 652 if (auto IType = dyn_cast<IntegerType>(Ty)) { in createSPIRVType() [all …]
|
| /openbsd-src/gnu/llvm/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); 981 IntegerType *DestTy) { in isPromotableTo() 982 IntegerType *T = dyn_cast<IntegerType>(Val->getType()); in isPromotableTo() 1019 IntegerType *DestTy, BasicBlock *LoopB) { in promoteTo() 1036 IntegerType *Ty = cast<IntegerType>(InV->getType()); in promoteTo() 1054 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo() 1079 IntegerType *DestTy = getPmpyType(); in promoteTypes() [all …]
|