reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/DataLayout.h
  445   TypeSize getTypeSizeInBits(Type *Ty) const;

References

include/llvm/Analysis/TargetTransformInfoImpl.h
   98       if (DL.isLegalInteger(DL.getTypeSizeInBits(Ty)))
include/llvm/IR/DataLayout.h
  455     TypeSize BaseSize = getTypeSizeInBits(Ty);
  475     return getTypeSizeInBits(Ty) == getTypeStoreSizeInBits(Ty);
  660                         getTypeSizeInBits(VTy->getElementType()).getFixedSize();
lib/Analysis/ConstantFolding.cpp
   68   unsigned BitShift = DL.getTypeSizeInBits(SrcEltTy);
  122       APInt Result(DL.getTypeSizeInBits(DestTy), 0);
  240   unsigned DstBitSize = DL.getTypeSizeInBits(DstEltTy);
  333     if (DL.getTypeSizeInBits(DestTy) == DL.getTypeSizeInBits(SrcTy)) {
  333     if (DL.getTypeSizeInBits(DestTy) == DL.getTypeSizeInBits(SrcTy)) {
  362       } while (ElemC && DL.getTypeSizeInBits(ElemC->getType()) == 0);
  522                                      DL.getTypeSizeInBits(LoadTy));
  749         unsigned OpSize = DL.getTypeSizeInBits(Op0->getType());
  866   unsigned BitWidth = DL.getTypeSizeInBits(IntPtrTy);
lib/Analysis/DemandedBits.cpp
  428       DL.getTypeSizeInBits(I->getType()->getScalarType()));
lib/Analysis/IVDescriptors.cpp
  118   uint64_t MaxBitWidth = DL.getTypeSizeInBits(Exit->getType());
  130   if (MaxBitWidth == DL.getTypeSizeInBits(Exit->getType()) && AC && DT) {
  135     auto NumTypeBits = DL.getTypeSizeInBits(Exit->getType());
lib/Analysis/InlineCost.cpp
 1977       unsigned TypeSize = DL.getTypeSizeInBits(PTy->getElementType());
lib/Analysis/InstructionSimplify.cpp
 3253         Q.DL.getTypeSizeInBits(SrcTy) == DstTy->getPrimitiveSizeInBits()) {
 3422       if (Q.DL.getTypeSizeInBits(CLHS->getPointerOperandType()) ==
 3423               Q.DL.getTypeSizeInBits(CLHS->getType()) &&
 3424           Q.DL.getTypeSizeInBits(CRHS->getPointerOperandType()) ==
 3425               Q.DL.getTypeSizeInBits(CRHS->getType()))
 4068     if (Q.DL.getTypeSizeInBits(Ops.back()->getType()) == IdxWidth) {
lib/Analysis/LazyValueInfo.cpp
 1004     DL.getTypeSizeInBits(I->getOperand(Op)->getType());
lib/Analysis/ScalarEvolution.cpp
 3777   return getDataLayout().getTypeSizeInBits(Ty);
lib/Analysis/ValueTracking.cpp
 1139       Q.DL.getTypeSizeInBits(ScalarTy);
 1646     Q.DL.getIndexTypeSizeInBits(ScalarTy) : Q.DL.getTypeSizeInBits(ScalarTy);
 2012         if (Q.DL.getTypeSizeInBits(CE->getOperand(0)->getType()) <=
 2013             Q.DL.getTypeSizeInBits(CE->getType()))
 2102       if (Q.DL.getTypeSizeInBits(I2P->getSrcTy()) <=
 2103           Q.DL.getTypeSizeInBits(I2P->getDestTy()))
 2110     if (Q.DL.getTypeSizeInBits(P2I->getSrcTy()) <=
 2111         Q.DL.getTypeSizeInBits(P2I->getDestTy()))
 2384     Q.DL.getTypeSizeInBits(ScalarTy);
lib/CodeGen/CodeGenPrepare.cpp
 6679       DL.getTypeSizeInBits(StoreType) == 0)
 6682   unsigned HalfValBitSize = DL.getTypeSizeInBits(StoreType) / 2;
 6708       DL.getTypeSizeInBits(LValue->getType()) > HalfValBitSize ||
 6710       DL.getTypeSizeInBits(HValue->getType()) > HalfValBitSize)
lib/CodeGen/GlobalISel/IRTranslator.cpp
  539   const LLT PtrScalarTy = LLT::scalar(DL->getTypeSizeInBits(PtrIRTy));
 2119     unsigned NullSize = DL->getTypeSizeInBits(C.getType());
lib/CodeGen/LowLevelType.cpp
   28     return LLT::pointer(PTy->getAddressSpace(), DL.getTypeSizeInBits(&Ty));
   32     auto SizeInBits = DL.getTypeSizeInBits(&Ty);
lib/CodeGen/SelectionDAG/FastISel.cpp
 2377   if (DL.getTypeSizeInBits(GEP->getType()) !=
 2378       DL.getTypeSizeInBits(Add->getType()))
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
 7781       unsigned BitSize = DL.getTypeSizeInBits(OpTy);
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 1310       APInt Offset(DL.getTypeSizeInBits(Address->getType()), 0);
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 4249         unsigned BitSize = DL.getTypeSizeInBits(OpTy);
lib/ExecutionEngine/ExecutionEngine.cpp
  737       uint32_t PtrWidth = DL.getTypeSizeInBits(Op0->getType());
  740       uint32_t IntWidth = DL.getTypeSizeInBits(CE->getType());
  746       uint32_t PtrWidth = DL.getTypeSizeInBits(CE->getType());
lib/IR/DataLayout.cpp
  751   return getAlignmentInfo(AlignType, getTypeSizeInBits(Ty).getKnownMinSize(),
  865       if (getTypeSizeInBits(ElemType) > 128)
lib/IR/Verifier.cpp
 3370   unsigned Size = DL.getTypeSizeInBits(Ty);
lib/Target/AArch64/AArch64FastISel.cpp
  725       uint64_t NumBits = DL.getTypeSizeInBits(Ty);
  809       uint64_t NumBits = DL.getTypeSizeInBits(Ty);
  851     if (!Ty || DL.getTypeSizeInBits(Ty) != 8)
lib/Target/AArch64/AArch64ISelLowering.cpp
 8380     uint64_t NumElts = DL.getTypeSizeInBits(I.getType()) / 64;
 8405       NumElts += DL.getTypeSizeInBits(ArgTy) / 64;
 8742   return (DL.getTypeSizeInBits(VecTy) + 127) / 128;
 8756   unsigned VecSize = DL.getTypeSizeInBits(VecTy);
 8757   unsigned ElSize = DL.getTypeSizeInBits(VecTy->getElementType());
 9139     uint64_t NumBits = DL.getTypeSizeInBits(Ty);
12202   IntegerType *IntEltTy = Builder.getIntNTy(DL.getTypeSizeInBits(EltTy));
12241   IntegerType *IntValTy = Builder.getIntNTy(DL.getTypeSizeInBits(Val->getType()));
lib/Target/AArch64/AArch64StackTagging.cpp
  257         uint32_t EltSize = DL->getTypeSizeInBits(EltTy);
lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
  149       (!ST->hasDPP() || DL->getTypeSizeInBits(I.getType()) != 32)) {
  223       (!ST->hasDPP() || DL->getTypeSizeInBits(I.getType()) != 32)) {
  439   const unsigned TyBitWidth = DL->getTypeSizeInBits(Ty);
lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
  276   int TySize = DL.getTypeSizeInBits(Ty);
  966     int TySize = Mod->getDataLayout().getTypeSizeInBits(I.getType());
lib/Target/AMDGPU/AMDGPULowerKernelArguments.cpp
   98     unsigned Size = DL.getTypeSizeInBits(ArgTy);
lib/Target/AMDGPU/AMDGPURewriteOutArguments.cpp
  219   return DL->getTypeSizeInBits(VT0->getElementType()) ==
  220          DL->getTypeSizeInBits(VT1->getElementType());
  407         if (DL->getTypeSizeInBits(EffectiveEltTy) !=
  408             DL->getTypeSizeInBits(Val->getType())) {
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
  498       = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
  653         DL.getTypeSizeInBits(VT->getElementType()) == 16) {
  810       = DL.getTypeSizeInBits(cast<VectorType>(ValTy)->getElementType());
lib/Target/ARM/ARMISelLowering.cpp
16258     uint64_t NumElts = DL.getTypeSizeInBits(I.getType()) / 64;
16274     uint64_t NumElts = DL.getTypeSizeInBits(I.getType()) / 64;
16298       NumElts += DL.getTypeSizeInBits(ArgTy) / 64;
16320       NumElts += DL.getTypeSizeInBits(ArgTy) / 64;
16693   return (DL.getTypeSizeInBits(VecTy) + 127) / 128;
16699   unsigned VecSize = DL.getTypeSizeInBits(VecTy);
16700   unsigned ElSize = DL.getTypeSizeInBits(VecTy->getElementType());
lib/Target/ARM/ARMTargetTransformInfo.cpp
  767   bool EltIs64Bits = DL.getTypeSizeInBits(VecTy->getScalarType()) == 64;
lib/Target/Hexagon/HexagonLoopIdiomRecognition.cpp
 1922   uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType());
 2053     if (StoreSize != 4 || DL->getTypeSizeInBits(BECountTy) > 32) {
lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
  302     unsigned SBW = DL.getTypeSizeInBits(CI->getSrcTy());
  303     unsigned DBW = DL.getTypeSizeInBits(CI->getDestTy());
lib/Target/RISCV/RISCVTargetTransformInfo.cpp
   28   return RISCVMatInt::getIntMatCost(Imm, DL.getTypeSizeInBits(Ty),
lib/Target/Target.cpp
  102   return unwrap(TD)->getTypeSizeInBits(unwrap(Ty));
lib/Target/X86/X86ISelLowering.cpp
24461             InRegCount += (DL.getTypeSizeInBits(*I) + 31) / 32;
lib/Target/X86/X86InterleavedAccess.cpp
  131   unsigned ShuffleElemSize = DL.getTypeSizeInBits(ShuffleEltTy);
  144     WideInstSize = DL.getTypeSizeInBits(Inst->getType());
  148     WideInstSize = DL.getTypeSizeInBits(Shuffles[0]->getType());
  176          DL.getTypeSizeInBits(VecWidth) >=
  177              DL.getTypeSizeInBits(SubVecTy) * NumSubVectors &&
  202   unsigned VecLength = DL.getTypeSizeInBits(VecWidth);
lib/Transforms/IPO/ArgumentPromotion.cpp
  784   if (DL.getTypeSizeInBits(type) != DL.getTypeAllocSizeInBits(type))
lib/Transforms/InstCombine/InstCombinePHI.cpp
  127       DL.getTypeSizeInBits(IntToPtr->getOperand(0)->getType()))
lib/Transforms/InstCombine/InstCombineSelect.cpp
 1428         DL.getTypeSizeInBits(TrueVal->getType()->getScalarType());
lib/Transforms/InstCombine/InstCombineVectorOps.cpp
 2001     unsigned SrcElemBitWidth = DL.getTypeSizeInBits(SrcTy->getElementType());
 2014       unsigned TgtElemBitWidth = DL.getTypeSizeInBits(TgtTy);
lib/Transforms/InstCombine/InstructionCombining.cpp
 1121     if (uint64_t(Offset * 8) >= DL.getTypeSizeInBits(Ty))
lib/Transforms/Instrumentation/MemorySanitizer.cpp
 1138           DL.getTypeSizeInBits(ConvertedShadow->getType());
 1220     unsigned TypeSizeInBits = DL.getTypeSizeInBits(ConvertedShadow->getType());
 1347       uint32_t EltSize = DL.getTypeSizeInBits(VT->getElementType());
 1363     uint32_t TypeSize = DL.getTypeSizeInBits(OrigTy);
lib/Transforms/Scalar/ConstantHoisting.cpp
  406   APInt Offset(DL->getTypeSizeInBits(PtrIntTy), /*val*/0, /*isSigned*/true);
lib/Transforms/Scalar/LICM.cpp
  985   const uint32_t LocSizeInBits = DL.getTypeSizeInBits(LI->getType());
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  445   uint64_t Size = DL->getTypeSizeInBits(V->getType());
  493   uint64_t SizeInBits = DL->getTypeSizeInBits(StoredVal->getType());
  917   if (DL->getTypeSizeInBits(BECount->getType()) <
  918           DL->getTypeSizeInBits(IntPtr) &&
 2157   uint64_t BCmpTyBits = DL->getTypeSizeInBits(BCmpValTy);
 2627                DL->getTypeSizeInBits(CmpFuncSizeTy) &&
lib/Transforms/Scalar/LoopPredication.cpp
  431   assert(DL.getTypeSizeInBits(LatchCheck.IV->getType()) >
  432              DL.getTypeSizeInBits(RangeCheckType) &&
  452   auto RangeCheckTypeBitSize = DL.getTypeSizeInBits(RangeCheckType);
  469   if (DL.getTypeSizeInBits(LatchType) < DL.getTypeSizeInBits(RangeCheckType))
  469   if (DL.getTypeSizeInBits(LatchType) < DL.getTypeSizeInBits(RangeCheckType))
lib/Transforms/Scalar/MergeICmps.cpp
  347                      DL.getTypeSizeInBits(CmpI->getOperand(0)->getType()));
lib/Transforms/Scalar/NaryReassociate.cpp
  377       DL->getTypeSizeInBits(LHS->getType()) <
  378           DL->getTypeSizeInBits(GEP->getOperand(I)->getType())) {
lib/Transforms/Scalar/SROA.cpp
 1481     unsigned ElementSizeInBits = DL.getTypeSizeInBits(VecTy->getScalarType());
 1723   if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy))
 1723   if (DL.getTypeSizeInBits(NewTy) != DL.getTypeSizeInBits(OldTy))
 1896         if (DL.getTypeSizeInBits(VTy) != DL.getTypeSizeInBits(V)) {
 1896         if (DL.getTypeSizeInBits(VTy) != DL.getTypeSizeInBits(V)) {
 1942       assert(DL.getTypeSizeInBits(RHSTy) == DL.getTypeSizeInBits(LHSTy) &&
 1942       assert(DL.getTypeSizeInBits(RHSTy) == DL.getTypeSizeInBits(LHSTy) &&
 1970     uint64_t ElementSize = DL.getTypeSizeInBits(VTy->getElementType());
 1976     assert((DL.getTypeSizeInBits(VTy) % 8) == 0 &&
 2090   uint64_t SizeInBits = DL.getTypeSizeInBits(AllocaTy);
 2334                         DL.getTypeSizeInBits(NewAI.getAllocatedType()))
 2338         ElementSize(VecTy ? DL.getTypeSizeInBits(ElementTy) / 8 : 0),
 2342       assert((DL.getTypeSizeInBits(ElementTy) % 8) == 0 &&
 2629     if (DL.getTypeSizeInBits(V->getType()) != IntTy->getBitWidth()) {
 2793         DL.isLegalInteger(DL.getTypeSizeInBits(ScalarTy));
 2828           getIntegerSplat(II.getValue(), DL.getTypeSizeInBits(ElementTy) / 8);
 2861       V = getIntegerSplat(II.getValue(), DL.getTypeSizeInBits(ScalarTy) / 8);
 3472   uint64_t TypeSize = DL.getTypeSizeInBits(Ty);
 3486       TypeSize > DL.getTypeSizeInBits(InnerTy))
 4338         uint64_t AllocaSize = DL.getTypeSizeInBits(NewAI->getAllocatedType());
 4358     uint64_t AllocaSize = DL.getTypeSizeInBits(AI.getAllocatedType());
lib/Transforms/Utils/Evaluator.cpp
   94     if (DL.getTypeSizeInBits(CE->getType()) !=
   95         DL.getTypeSizeInBits(CE->getOperand(0)->getType()))
lib/Transforms/Utils/Local.cpp
 1811     bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy);
 1811     bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy);
lib/Transforms/Utils/VNCoercion.cpp
   27   uint64_t StoreSize = DL.getTypeSizeInBits(StoredTy);
   34   if (StoreSize < DL.getTypeSizeInBits(LoadTy))
   64   uint64_t StoredValSize = DL.getTypeSizeInBits(StoredValTy);
   65   uint64_t LoadedValSize = DL.getTypeSizeInBits(LoadedTy);
  187   uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy);
  238       DL.getTypeSizeInBits(DepSI->getValueOperand()->getType());
  258   uint64_t DepSize = DL.getTypeSizeInBits(DepLI->getType());
  358   uint64_t StoreSize = (DL.getTypeSizeInBits(SrcVal->getType()) + 7) / 8;
  359   uint64_t LoadSize = (DL.getTypeSizeInBits(LoadTy) + 7) / 8;
  467   uint64_t LoadSize = DL.getTypeSizeInBits(LoadTy) / 8;
lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
  763       unsigned TySize = DL.getTypeSizeInBits(Ty);
  817       unsigned TySize = DL.getTypeSizeInBits(Ty);
  952                                 DL.getTypeSizeInBits(StoreTy));
  958   unsigned Sz = DL.getTypeSizeInBits(StoreTy);
 1103                                DL.getTypeSizeInBits(LoadTy));
 1109   unsigned Sz = DL.getTypeSizeInBits(LoadTy);
lib/Transforms/Vectorize/LoopVectorize.cpp
  328   return DL.getTypeAllocSizeInBits(Ty) != DL.getTypeSizeInBits(Ty);
 2655   assert((DL.getTypeSizeInBits(SrcElemTy) == DL.getTypeSizeInBits(DstElemTy)) &&
 2655   assert((DL.getTypeSizeInBits(SrcElemTy) == DL.getTypeSizeInBits(DstElemTy)) &&
 2671       IntegerType::getIntNTy(V->getContext(), DL.getTypeSizeInBits(SrcElemTy));
 5115                           (unsigned)DL.getTypeSizeInBits(T->getScalarType()));
 5117                           (unsigned)DL.getTypeSizeInBits(T->getScalarType()));
 5387     unsigned TypeSize = DL.getTypeSizeInBits(Ty->getScalarType());
lib/Transforms/Vectorize/SLPVectorizer.cpp
 2407       if (DL->getTypeSizeInBits(ScalarTy) !=
 4927     return DL->getTypeSizeInBits(Store->getValueOperand()->getType());
 4955       MaxWidth = std::max<unsigned>(MaxWidth, DL->getTypeSizeInBits(Ty));
 4976     return DL->getTypeSizeInBits(V->getType());
 5126   if (MaxBitWidth == DL->getTypeSizeInBits(TreeRoot[0]->getType()) &&
 5144       auto NumTypeBits = DL->getTypeSizeInBits(Scalar->getType());
tools/clang/lib/CodeGen/CGAtomic.cpp
 1340   uint64_t SourceSizeInBits = CGF.CGM.getDataLayout().getTypeSizeInBits(Ty);
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1266         CGM.getDataLayout().getTypeSizeInBits(ArgVal->getType());
 6202           getLLVMContext(), CGM.getDataLayout().getTypeSizeInBits(RealResTy));
 6245           CGM.getDataLayout().getTypeSizeInBits(StoreVal->getType()));
 7193         getLLVMContext(), CGM.getDataLayout().getTypeSizeInBits(RealResTy));
 7234           CGM.getDataLayout().getTypeSizeInBits(StoreVal->getType()));
tools/clang/lib/CodeGen/CGCall.cpp
 1187       uint64_t SrcSize = DL.getTypeSizeInBits(Val->getType());
 1188       uint64_t DstSize = DL.getTypeSizeInBits(DestIntTy);
tools/clang/lib/CodeGen/CGExprScalar.cpp
 3204   if (width != DL.getTypeSizeInBits(PtrTy)) {
tools/clang/lib/CodeGen/CGObjC.cpp
 1074     uint64_t retTySize = CGM.getDataLayout().getTypeSizeInBits(retTy);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  288         Fields.addInt(IntTy, td.getTypeSizeInBits(PropertyMetadataTy) /
 1172     MethodList.addInt(IntTy, td.getTypeSizeInBits(ObjCMethodDescTy) /
 1818       ivarListBuilder.addInt(SizeTy, td.getTypeSizeInBits(ObjCIvarTy) /
 2790     MethodList.addInt(SizeTy, td.getTypeSizeInBits(ObjCMethodTy) /
 2935                     td.getTypeSizeInBits(ClassTy) /
tools/clang/lib/CodeGen/CGStmt.cpp
 1828       uint64_t Size = CGM.getDataLayout().getTypeSizeInBits(Ty);
 2312         uint64_t ResSize = CGM.getDataLayout().getTypeSizeInBits(TruncTy);
 2317         uint64_t TmpSize =CGM.getDataLayout().getTypeSizeInBits(Tmp->getType());
tools/clang/lib/CodeGen/TargetInfo.cpp
 8340   CB.pad(llvm::alignTo(CB.DL.getTypeSizeInBits(StrTy), 64));
tools/polly/lib/Support/SCEVAffinator.cpp
  155   unsigned Width = TD.getTypeSizeInBits(ExprType);
  182   unsigned Width = TD.getTypeSizeInBits(Expr->getType());
  272   unsigned Width = TD.getTypeSizeInBits(Expr->getType());
  353   unsigned Width = TD.getTypeSizeInBits(Op->getType());
  478     unsigned Width = TD.getTypeSizeInBits(Expr->getType());
tools/polly/lib/Transform/ScheduleOptimizer.cpp
  879   auto ElementSizeA = DL.getTypeSizeInBits(MMI.A->getElementType());
  880   auto ElementSizeB = DL.getTypeSizeInBits(MMI.B->getElementType());
  881   auto ElementSizeC = DL.getTypeSizeInBits(MMI.WriteToC->getElementType());
unittests/IR/VectorTypesTest.cpp
  195   EXPECT_EQ(DL.getTypeSizeInBits(V2Int64Ty),
  196             DL.getTypeSizeInBits(V4Int32Ty));
  197   EXPECT_EQ(DL.getTypeSizeInBits(V2Int32Ty), 64U);
  198   EXPECT_EQ(DL.getTypeSizeInBits(V2Int64Ty), 128U);
  240   EXPECT_EQ(DL.getTypeSizeInBits(ScV2Int64Ty),
  241             DL.getTypeSizeInBits(ScV4Int32Ty));
  242   EXPECT_EQ(DL.getTypeSizeInBits(ScV2Int32Ty).getKnownMinSize(), 64U);