Home
last modified time | relevance | path

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

123

/llvm-project-15.0.7/compiler-rt/lib/ubsan/
H A Dubsan_value.cpp74 sizeof(SIntMax) * 8 - getType().getIntegerBitWidth(); in getSIntValue()
77 if (getType().getIntegerBitWidth() == 64) in getSIntValue()
80 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
83 if (getType().getIntegerBitWidth() == 128) in getSIntValue()
93 if (getType().getIntegerBitWidth() == 64) in getUIntValue()
96 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
99 if (getType().getIntegerBitWidth() == 128) in getUIntValue()
H A Dubsan_value.h123 unsigned getIntegerBitWidth() const { in getIntegerBitWidth() function
157 const unsigned Bits = getType().getIntegerBitWidth(); in isInlineInt()
H A Dubsan_handlers.cpp339 RHSVal.getPositiveIntValue() >= Data->LHSType.getIntegerBitWidth()) in handleShiftOutOfBoundsImpl()
355 << RHSVal << Data->LHSType.getIntegerBitWidth() << Data->LHSType; in handleShiftOutOfBoundsImpl()
602 << SrcTy << Value(SrcTy, Src) << SrcTy.getIntegerBitWidth() in handleImplicitConversion()
604 << DstTy.getIntegerBitWidth() << (DstSigned ? "" : "un"); in handleImplicitConversion()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp34 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedRemainderCode()
106 unsigned BitWidth = Dividend->getType()->getIntegerBitWidth(); in generateSignedDivisionCode()
382 assert((Rem->getType()->getIntegerBitWidth() == 32 || in expandRemainder()
383 Rem->getType()->getIntegerBitWidth() == 64) && in expandRemainder()
440 assert((Div->getType()->getIntegerBitWidth() == 32 || in expandDivision()
441 Div->getType()->getIntegerBitWidth() == 64) && in expandDivision()
492 unsigned RemTyBitWidth = RemTy->getIntegerBitWidth(); in expandRemainderUpTo32Bits()
541 unsigned RemTyBitWidth = RemTy->getIntegerBitWidth(); in expandRemainderUpTo64Bits()
590 unsigned DivTyBitWidth = DivTy->getIntegerBitWidth(); in expandDivisionUpTo32Bits()
638 unsigned DivTyBitWidth = DivTy->getIntegerBitWidth(); in expandDivisionUpTo64Bits()
H A DBypassSlowDivision.cpp233 unsigned LongLen = V->getType()->getIntegerBitWidth(); in getValueRange()
/llvm-project-15.0.7/polly/lib/CodeGen/
H A DRuntimeDebugBuilder.cpp109 return Ty->getIntegerBitWidth() <= 64; in isPrintable()
129 if (Ty->getIntegerBitWidth() < 64) in prepareValuesForPrinting()
132 assert(Ty->getIntegerBitWidth() && in prepareValuesForPrinting()
202 if (Ty->getIntegerBitWidth() < 64) { in createGPUPrinterT()
205 assert(Ty->getIntegerBitWidth() == 64 && in createGPUPrinterT()
H A DLoopGeneratorsKMP.cpp558 return (LongType->getIntegerBitWidth() == 64); in is64BitArch()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DLowerExpectIntrinsic.cpp173 Result = Result.zext(Op->getType()->getIntegerBitWidth()); in handlePhiDef()
176 Result = Result.sext(Op->getType()->getIntegerBitWidth()); in handlePhiDef()
H A DCorrelatedValuePropagation.cpp730 unsigned OrigWidth = Instr->getType()->getIntegerBitWidth(); in narrowSDivOrSRem()
796 if (NewWidth >= Instr->getType()->getIntegerBitWidth()) in processUDivOrURem()
947 unsigned OrigWidth = SDI->getType()->getIntegerBitWidth(); in processAShr()
H A DStraightLineStrengthReduce.cpp551 if (ArrayIdx->getType()->getIntegerBitWidth() <= in allocateCandidatesAndFindBasisForGEP()
562 TruncatedArrayIdx->getType()->getIntegerBitWidth() <= in allocateCandidatesAndFindBasisForGEP()
H A DSeparateConstOffsetFromGEP.cpp874 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs()
935 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics()
H A DMemCpyOptimizer.cpp1255 if (DestSize->getType()->getIntegerBitWidth() > in processMemSetMemCpyDependence()
1256 SrcSize->getType()->getIntegerBitWidth()) in processMemSetMemCpyDependence()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/Utils/
H A DLocal.h40 unsigned IntPtrWidth = IntIdxTy->getScalarType()->getIntegerBitWidth();
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DLazyValueInfo.cpp926 const unsigned ResultBitWidth = CI->getType()->getIntegerBitWidth(); in solveBlockValueCast()
1061 ConstantRange RHSRange(RHS->getType()->getIntegerBitWidth(), in getValueFromSimpleICmpCondition()
1387 unsigned BitWidth = Val->getType()->getIntegerBitWidth(); in getEdgeValueLocal()
1613 unsigned Width = V->getType()->getIntegerBitWidth(); in getConstantRange()
1651 unsigned Width = V->getType()->getIntegerBitWidth(); in getConstantRangeOnEdge()
H A DIVDescriptors.cpp1085 APInt::getSignedMaxValue(Tp->getIntegerBitWidth())); in getRecurrenceIdentity()
1088 APInt::getSignedMinValue(Tp->getIntegerBitWidth())); in getRecurrenceIdentity()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DType.h358 inline unsigned getIntegerBitWidth() const;
H A DDataLayout.h690 return TypeSize::Fixed(Ty->getIntegerBitWidth()); in getTypeSizeInBits()
H A DDerivedTypes.h97 unsigned Type::getIntegerBitWidth() const { in getIntegerBitWidth() function
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVPrepareFunctions.cpp167 unsigned BitWidth = IntTy->getIntegerBitWidth(); in lowerFunnelShifts()
H A DSPIRVAsmPrinter.cpp341 switch (IntTy->getIntegerBitWidth()) { in encodeVecTypeHint()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4234 Cst->getValue().isIntN(Inst->getType()->getIntegerBitWidth())) in canGetThrough()
4249 OpndVal->getType()->getIntegerBitWidth() > in canGetThrough()
4250 ConsideredExtType->getIntegerBitWidth()) in canGetThrough()
4273 return Inst->getType()->getIntegerBitWidth() >= in canGetThrough()
4274 OpndType->getIntegerBitWidth(); in canGetThrough()
4415 unsigned BitWidth = Ext->getType()->getIntegerBitWidth(); in promoteOperandForOther()
5708 if (ExtTy->getScalarType()->getIntegerBitWidth() > in hasSameExtUse()
5709 CurTy->getScalarType()->getIntegerBitWidth()) { in hasSameExtUse()
7097 PHIType->getIntegerBitWidth() > ConditionType->getIntegerBitWidth() && in optimizeSwitchPhiConstants()
7111 CaseValue->getValue().zext(PHIType->getIntegerBitWidth())) in optimizeSwitchPhiConstants()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUHSAMetadataStreamer.cpp148 auto BitWidth = Ty->getIntegerBitWidth(); in getTypeName()
570 auto BitWidth = Ty->getIntegerBitWidth(); in getTypeName()
H A DAMDGPUCodeGenPrepare.cpp240 return T->getIntegerBitWidth(); in getBaseElementBitWidth()
241 return cast<VectorType>(T)->getElementType()->getIntegerBitWidth(); in getBaseElementBitWidth()
/llvm-project-15.0.7/llvm/lib/Frontend/OpenMP/
H A DOMPIRBuilder.cpp2018 unsigned Bitwidth = Ty->getIntegerBitWidth(); in getKmpcForStaticInitForType()
2125 assert(IVTy->getIntegerBitWidth() <= 64 && in applyStaticChunkedWorkshareLoop()
2127 Type *InternalIVTy = IVTy->getIntegerBitWidth() <= 32 ? Type::getInt32Ty(Ctx) in applyStaticChunkedWorkshareLoop()
2315 unsigned Bitwidth = Ty->getIntegerBitWidth(); in getKmpcForDynamicInitForType()
2331 unsigned Bitwidth = Ty->getIntegerBitWidth(); in getKmpcForDynamicNextForType()
2346 unsigned Bitwidth = Ty->getIntegerBitWidth(); in getKmpcForDynamicFiniForType()
3166 ConstantInt::get(IndVarTy, APInt(IndVarTy->getIntegerBitWidth(), Factor, in unrollLoopPartial()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp353 int BitWidth = SVT->getIntegerBitWidth(); in simplifyX86varShift()
947 unsigned BitWidth = II.getType()->getIntegerBitWidth(); in instCombineIntrinsic()
971 unsigned BitWidth = II.getType()->getIntegerBitWidth(); in instCombineIntrinsic()

123