Home
last modified time | relevance | path

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

1234567

/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCodeGenTypeCache.h23 class IntegerType; variable
38 llvm::IntegerType *Int8Ty, *Int16Ty, *Int32Ty, *Int64Ty;
43 llvm::IntegerType *IntTy;
47 llvm::IntegerType *IntPtrTy;
48 llvm::IntegerType *SizeTy;
49 llvm::IntegerType *PtrDiffTy;
H A DCGOpenCLRuntime.cpp102 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemSize()
112 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemAlign()
121 return llvm::IntegerType::getInt8PtrTy( in getGenericVoidPointerType()
/freebsd-12.1/contrib/llvm/lib/IR/
H A DType.cpp180 IntegerType *Type::getIntNTy(LLVMContext &C, unsigned N) { in getIntNTy()
181 return IntegerType::get(C, N); in getIntNTy()
240 IntegerType *IntegerType::get(LLVMContext &C, unsigned NumBits) { in get()
246 case 1: return cast<IntegerType>(Type::getInt1Ty(C)); in get()
247 case 8: return cast<IntegerType>(Type::getInt8Ty(C)); in get()
248 case 16: return cast<IntegerType>(Type::getInt16Ty(C)); in get()
249 case 32: return cast<IntegerType>(Type::getInt32Ty(C)); in get()
250 case 64: return cast<IntegerType>(Type::getInt64Ty(C)); in get()
256 IntegerType *&Entry = C.pImpl->IntegerTypes[NumBits]; in get()
264 bool IntegerType::isPowerOf2ByteWidth() const { in isPowerOf2ByteWidth()
[all …]
H A DFunction.cpp619 Result += "i" + utostr(cast<IntegerType>(Ty)->getBitWidth()); in getMangledTypeStr()
916 return IntegerType::get(Context, D.Integer_Width); in DecodeFixedType()
935 return IntegerType::get(Context, 2 * cast<IntegerType>(Ty)->getBitWidth()); in DecodeFixedType()
942 IntegerType *ITy = cast<IntegerType>(Ty); in DecodeFixedType()
944 return IntegerType::get(Context, ITy->getBitWidth() / 2); in DecodeFixedType()
1108 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
1109 NewTy = IntegerType::get(ITy->getContext(), 2 * ITy->getBitWidth()); in matchIntrinsicType()
1123 else if (IntegerType *ITy = dyn_cast<IntegerType>(NewTy)) in matchIntrinsicType()
1124 NewTy = IntegerType::get(ITy->getContext(), ITy->getBitWidth() / 2); in matchIntrinsicType()
H A DConstantFold.cpp60 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector()
94 IntegerType *FakeIntPtrTy = Type::getInt64Ty(DstTy->getContext()); in foldConstantCastPair()
215 (cast<IntegerType>(C->getType())->getBitWidth() & 7) == 0 && in ExtractConstantBytes()
217 unsigned CSize = cast<IntegerType>(C->getType())->getBitWidth()/8; in ExtractConstantBytes()
576 Type *Ty = IntegerType::get(V->getContext(), 32); in ConstantFoldCastInstruction()
718 (cast<IntegerType>(V->getType())->getBitWidth() & 7) == 0) in ConstantFoldCastInstruction()
740 Type *Ty = IntegerType::get(CondV->getContext(), 32); in ConstantFoldSelectInstruction()
862 Type *Ty = IntegerType::get(V2->getContext(), 32); in ConstantFoldShuffleVectorInstruction()
867 Type *Ty = IntegerType::get(V1->getContext(), 32); in ConstantFoldShuffleVectorInstruction()
1223 Type *Ty = IntegerType::get(VTy->getContext(), 32); in ConstantFoldBinaryInstruction()
[all …]
H A DDataLayout.cpp750 IntegerType *DataLayout::getIntPtrType(LLVMContext &C, in getIntPtrType()
752 return IntegerType::get(C, getIndexSizeInBits(AddressSpace)); in getIntPtrType()
759 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIntPtrType()
781 IntegerType *IntTy = IntegerType::get(Ty->getContext(), NumBits); in getIndexType()
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DType.h32 class IntegerType; variable
406 static IntegerType *getIntNTy(LLVMContext &C, unsigned N);
407 static IntegerType *getInt1Ty(LLVMContext &C);
408 static IntegerType *getInt8Ty(LLVMContext &C);
409 static IntegerType *getInt16Ty(LLVMContext &C);
410 static IntegerType *getInt32Ty(LLVMContext &C);
411 static IntegerType *getInt64Ty(LLVMContext &C);
412 static IntegerType *getInt128Ty(LLVMContext &C);
H A DDerivedTypes.h40 class IntegerType : public Type {
44 explicit IntegerType(LLVMContext &C, unsigned NumBits) : Type(C, IntegerTyID){ in IntegerType() function
63 static IntegerType *get(LLVMContext &C, unsigned NumBits);
98 return cast<IntegerType>(this)->getBitWidth(); in getIntegerBitWidth()
409 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits); in getInteger()
417 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits * 2); in getExtendedElementVectorType()
427 Type *EltTy = IntegerType::get(VTy->getContext(), EltBits / 2); in getTruncatedElementVectorType()
H A DConstants.h46 class IntegerType; variable
89 ConstantInt(IntegerType *Ty, const APInt& V);
111 static ConstantInt *get(IntegerType *Ty, uint64_t V,
119 static ConstantInt *getSigned(IntegerType *Ty, int64_t V);
128 static ConstantInt *get(IntegerType *Ty, StringRef Str,
172 inline IntegerType *getType() const { in getType()
173 return cast<IntegerType>(Value::getType()); in getType()
/freebsd-12.1/contrib/llvm/lib/Target/ARM/
H A DARMCodeGenPrepare.cpp117 IntegerType *ExtTy = nullptr;
118 IntegerType *OrigTy = nullptr;
214 if (!isa<IntegerType>(Ty) || in isSupportedType()
215 cast<IntegerType>(V->getType())->getBitWidth() == 1) in isSupportedType()
229 if (!isa<IntegerType>(V->getType())) in isSource()
392 if (!isa<IntegerType>(V->getType()) || isSink(V)) in shouldPromote()
580 if ((Op->getType() == ExtTy) || !isa<IntegerType>(Op->getType())) in PromoteTree()
631 if (!isa<Instruction>(V) || !isa<IntegerType>(V->getType())) in TruncateSinks()
738 cast<IntegerType>(Trunc->getType())->getScalarSizeInBits(); in ConvertTruncs()
757 assert(isa<IntegerType>(OrigTy) && "expected integer type"); in Mutate()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DStraightLineStrengthReduce.cpp390 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForAdd()
414 ConstantInt *One = ConstantInt::get(cast<IntegerType>(I->getType()), 1); in allocateCandidatesAndFindBasisForAdd()
448 ConstantInt *Zero = ConstantInt::get(cast<IntegerType>(I->getType()), 0); in allocateCandidatesAndFindBasisForMul()
458 if (!isa<IntegerType>(I->getType())) in allocateCandidatesAndFindBasisForMul()
477 IntegerType *IntPtrTy = cast<IntegerType>(DL->getIntPtrType(I->getType())); in allocateCandidatesAndFindBasisForGEP()
489 Base, ConstantInt::get(cast<IntegerType>(ArrayIdx->getType()), 1), in factorArrayIndex()
604 IntegerType *DeltaType = in emitBump()
605 IntegerType::get(Basis.Ins->getContext(), IndexOffset.getBitWidth()); in emitBump()
H A DSROA.cpp1131 if (IntegerType *UserITy = dyn_cast_or_null<IntegerType>(UserTy)) { in findCommonType()
1681 if (isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) { in canConvertValue()
1733 assert(!(isa<IntegerType>(OldTy) && isa<IntegerType>(NewTy)) && in convertValue()
1990 if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType())) { in isIntegerWideningViableForSlice()
2015 if (IntegerType *ITy = dyn_cast<IntegerType>(ValueTy)) { in isIntegerWideningViableForSlice()
2091 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger()
2112 IntegerType *IntTy = cast<IntegerType>(Old->getType()); in insertInteger()
2113 IntegerType *Ty = cast<IntegerType>(V->getType()); in insertInteger()
2687 IntegerType *VTy = cast<IntegerType>(V->getType()); in getIntegerSplat()
3775 IntegerType *Ty = cast<IntegerType>(LI->getType()); in presplitLoadsAndStores()
[all …]
H A DInductiveRangeCheckElimination.cpp686 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeDecreasingBound()
734 unsigned BitWidth = cast<IntegerType>(BoundSCEV->getType())->getBitWidth(); in isSafeIncreasingBound()
792 if (!ICI || !isa<IntegerType>(ICI->getOperand(0)->getType())) { in parseLoopStructure()
806 IntegerType *IndVarTy = cast<IntegerType>(LeftValue->getType()); in parseLoopStructure()
827 IntegerType *Ty = cast<IntegerType>(AR->getType()); in parseLoopStructure()
828 IntegerType *WideTy = in parseLoopStructure()
829 IntegerType::get(Ty->getContext(), Ty->getBitWidth() * 2); in parseLoopStructure()
1050 IntegerType *Ty = cast<IntegerType>(LatchTakenCount->getType()); in calculateSubRanges()
1395 IntegerType *IVTy = in run()
1396 cast<IntegerType>(MainLoopStructure.IndVarBase->getType()); in run()
[all …]
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DIndirectBrExpandPass.cpp148 auto *ITy = cast<IntegerType>(DL.getIntPtrType(BA->getType())); in runOnFunction()
174 IntegerType *CommonITy = nullptr; in runOnFunction()
177 cast<IntegerType>(DL.getIntPtrType(IBr->getAddress()->getType())); in runOnFunction()
H A DValueTypes.cpp30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
107 if (IntegerType *ITy = dyn_cast<IntegerType>(LLVMTy)) in getExtendedSizeInBits()
213 case MVT::i128: return IntegerType::get(Context, 128); in getTypeForEVT()
289 return getIntegerVT(cast<IntegerType>(Ty)->getBitWidth()); in getVT()
314 return getIntegerVT(Ty->getContext(), cast<IntegerType>(Ty)->getBitWidth()); in getEVT()
H A DExpandMemCmp.cpp334 IntegerType *const MaxLoadType = in getCompareLoadPairs()
336 : IntegerType::get(CI->getContext(), MaxLoadSize * 8); in getCompareLoadPairs()
340 IntegerType *LoadSizeType = in getCompareLoadPairs()
341 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8); in getCompareLoadPairs()
442 IntegerType::get(CI->getContext(), CurLoadEntry.LoadSize * 8); in emitLoadCompareBlock()
443 Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8); in emitLoadCompareBlock()
525 Type *MaxLoadType = IntegerType::get(CI->getContext(), MaxLoadSize * 8); in setupResultBlockPHINodes()
564 Type *LoadSizeType = IntegerType::get(CI->getContext(), Size * 8); in getMemCmpOneBlock()
/freebsd-12.1/contrib/llvm/lib/Transforms/Coroutines/
H A DCoroInternal.h88 IntegerType *getIndexType() const { in getIndexType()
90 return cast<IntegerType>(FrameTy->getElementType(IndexField)); in getIndexType()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DVNCoercion.cpp101 StoredValTy = IntegerType::get(StoredValTy->getContext(), StoredValSize); in coerceAvailableValueToLoadTypeHelper()
115 Type *NewIntTy = IntegerType::get(StoredValTy->getContext(), LoadedValSize); in coerceAvailableValueToLoadTypeHelper()
327 SrcVal = Helper.CreateBitCast(SrcVal, IntegerType::get(Ctx, StoreSize * 8)); in getStoreValueForLoadHelper()
341 IntegerType::get(Ctx, LoadSize * 8)); in getStoreValueForLoadHelper()
389 Type *DestPTy = IntegerType::get(LoadTy->getContext(), NewLoadSize * 8); in getLoadValueForLoad()
439 Helper.CreateZExtOrBitCast(Val, IntegerType::get(Ctx, LoadSize * 8)); in getMemInstValueForLoadHelper()
H A DBypassSlowDivision.cpp81 IntegerType *BypassType = nullptr;
128 IntegerType *SlowType = dyn_cast<IntegerType>(SlowDivOrRem->getType()); in FastDivInsertionTask()
138 IntegerType *BT = IntegerType::get(I->getContext(), BI->second); in FastDivInsertionTask()
H A DSanitizerStats.cpp47 IntegerType *IntPtrTy = B.getIntPtrTy(M->getDataLayout()); in create()
79 IntegerType *Int32Ty = Type::getInt32Ty(M->getContext()); in finish()
/freebsd-12.1/contrib/llvm/tools/clang/include/clang/CodeGen/
H A DConstantInitBuilder.h198 void addInt(llvm::IntegerType *intTy, uint64_t value,
226 void addRelativeOffset(llvm::IntegerType *type, llvm::Constant *target) { in addRelativeOffset()
234 void addTaggedRelativeOffset(llvm::IntegerType *type, in addTaggedRelativeOffset()
284 llvm::IntegerType *type, uint64_t value,
320 llvm::Constant *getRelativeOffset(llvm::IntegerType *offsetType,
H A DSwiftCallingConv.h24 class IntegerType; variable
136 bool isLegalIntegerType(CodeGenModule &CGM, llvm::IntegerType *type);
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonLoopIdiomRecognition.cpp569 IntegerType *getPmpyType() const { in getPmpyType()
571 return IntegerType::get(Ctx, 32); in getPmpyType()
964 IntegerType *DestTy) { in isPromotableTo()
965 IntegerType *T = dyn_cast<IntegerType>(Val->getType()); in isPromotableTo()
1002 IntegerType *DestTy, BasicBlock *LoopB) { in promoteTo()
1018 IntegerType *Ty = cast<IntegerType>(InV->getType()); in promoteTo()
1036 IntegerType *TruncTy = cast<IntegerType>(OrigTy); in promoteTo()
1061 IntegerType *DestTy = getPmpyType(); in promoteTypes()
1069 IntegerType *T = dyn_cast<IntegerType>(P.getType()); in promoteTypes()
1326 if (!isa<IntegerType>(V->getType())) in convertShiftsToLeft()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DPtrUseVisitor.h226 IntegerType *IntPtrTy = cast<IntegerType>(DL.getIntPtrType(I.getType())); in visitPtr()
/freebsd-12.1/contrib/llvm/tools/lldb/source/Plugins/ExpressionParser/Clang/
H A DIRForTarget.h34 class IntegerType; variable
572 llvm::IntegerType

1234567