| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Descriptor.cpp | 59 const unsigned ElemSize = in ctorArrayDesc() local 63 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in ctorArrayDesc() 83 const unsigned ElemSize = in dtorArrayDesc() local 87 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in dtorArrayDesc() 98 const unsigned ElemSize = in moveArrayDesc() local 102 for (unsigned I = 0; I < NumElems; ++I, ElemOffset += ElemSize) { in moveArrayDesc() 190 : Source(D), ElemSize(primSize(Type)), Size(ElemSize), AllocSize(Size), in Descriptor() 199 : Source(D), ElemSize(primSize(Type)), Size(ElemSize * NumElems), in Descriptor() 209 : Source(D), ElemSize(primSize(Type)), Size(UnknownSizeMark), in Descriptor() 219 Size(ElemSize * NumElems), in Descriptor() [all …]
|
| H A D | Descriptor.h | 56 const InterpSize ElemSize; member 136 unsigned getElemSize() const { return ElemSize; } in getElemSize()
|
| H A D | Program.cpp | 328 unsigned ElemSize = primSize(*T); in createDescriptor() local 329 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) { in createDescriptor() 341 InterpSize ElemSize = Desc->getAllocSize() + sizeof(InlineDescriptor); in createDescriptor() local 342 if (std::numeric_limits<unsigned>::max() / ElemSize <= NumElems) in createDescriptor()
|
| H A D | Pointer.h | 263 if (auto ElemSize = elemSize()) in getIndex() local 264 return getOffset() / ElemSize; in getIndex()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | LoopCacheAnalysis.cpp | 81 static bool isOneDimensionalArray(const SCEV &AccessFn, const SCEV &ElemSize, in isOneDimensionalArray() argument 103 return StepRec == &ElemSize; in isOneDimensionalArray() 109 static const SCEV *computeTripCount(const Loop &L, const SCEV &ElemSize, in computeTripCount() argument 120 TripCount = SE.getConstant(ElemSize.getType(), DefaultTripCount); in computeTripCount() 373 const SCEV *ElemSize = SE.getElementSize(&StoreOrLoadInst); in delinearize() local 393 Sizes.push_back(ElemSize); in delinearize() 412 if (!isOneDimensionalArray(*AccessFn, *ElemSize, *L, SE)) { in delinearize() 433 const SCEV *Div = SE.getUDivExactExpr(AccessFn, ElemSize); in delinearize() 435 Sizes.push_back(ElemSize); in delinearize() 477 const SCEV *ElemSize = Sizes.back(); in isConsecutive() local [all …]
|
| H A D | TypeMetadataUtils.cpp | 152 uint64_t ElemSize = DL.getTypeAllocSize(VTableTy->getElementType()); in getPointerAtOffset() local 154 unsigned Op = Offset / ElemSize; in getPointerAtOffset() 159 Offset % ElemSize, M, TopLevelGlobal); in getPointerAtOffset()
|
| H A D | LoopUnrollAnalyzer.cpp | 127 unsigned ElemSize = CDS->getElementType()->getPrimitiveSizeInBits() / 8U; in visitLoad() local 136 uint64_t Index = static_cast<uint64_t>(SimplifiedAddrOpV) / ElemSize; in visitLoad()
|
| H A D | MemoryBuiltins.cpp | 783 TypeSize ElemSize = DL.getTypeAllocSize(I.getAllocatedType()); in visitAllocaInst() local 784 if (ElemSize.isScalable() && Options.EvalMode != ObjectSizeOpts::Mode::Min) in visitAllocaInst() 786 APInt Size(IntTyBits, ElemSize.getKnownMinSize()); in visitAllocaInst()
|
| H A D | ScalarEvolution.cpp | 7983 auto *ElemSize = dyn_cast<SCEVConstant>(getElementSize(&Inst)); in getConstantMaxTripCountFromArray() local 7985 if (!ElemSize) in getConstantMaxTripCountFromArray() 8008 ElemSize->getAPInt().getZExtValue() || in getConstantMaxTripCountFromArray()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | DataLayout.cpp | 907 static APInt getElementIndex(TypeSize ElemSize, APInt &Offset) { in getElementIndex() argument 912 if (ElemSize.isScalable() || ElemSize == 0 || in getElementIndex() 913 !isUIntN(BitWidth - 1, ElemSize)) { in getElementIndex() 917 APInt Index = Offset.sdiv(ElemSize); in getElementIndex() 918 Offset -= Index * ElemSize; in getElementIndex() 922 Offset += ElemSize; in getElementIndex()
|
| H A D | Attributes.cpp | 426 unsigned ElemSize; in getAsString() local 428 std::tie(ElemSize, NumElems) = getAllocSizeArgs(); in getAsString() 431 ? "allocsize(" + Twine(ElemSize) + "," + Twine(*NumElems) + ")" in getAsString() 432 : "allocsize(" + Twine(ElemSize) + ")") in getAsString() 1694 AttrBuilder &AttrBuilder::addAllocSizeAttr(unsigned ElemSize, in addAllocSizeAttr() argument 1696 return addAllocSizeAttrFromRawRepr(packAllocSizeArgs(ElemSize, NumElems)); in addAllocSizeAttr()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | MVEGatherScatterLowering.cpp | 82 bool isLegalTypeAndAlignment(unsigned NumElements, unsigned ElemSize, 172 unsigned ElemSize, in isLegalTypeAndAlignment() argument 175 (ElemSize == 32 || ElemSize == 16 || ElemSize == 8)) || in isLegalTypeAndAlignment() 176 (NumElements == 8 && (ElemSize == 16 || ElemSize == 8)) || in isLegalTypeAndAlignment() 177 (NumElements == 16 && ElemSize == 8)) && in isLegalTypeAndAlignment() 178 Alignment >= ElemSize / 8) in isLegalTypeAndAlignment()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprConstant.cpp | 331 CharUnits ElemSize = getSize(ElemTy); in split() local 355 CharUnits ElemSize = getSize(CDS->getElementType()); in split() local 364 [&](unsigned Elem) { return Offset + Elem * ElemSize; })); in split() 370 CharUnits ElemSize = getSize(C); in split() local 371 assert(Hint > Offset && Hint < Offset + ElemSize && "nothing to split"); in split() 373 {getZeroes(Hint - Offset), getZeroes(Offset + ElemSize - Hint)}); in split() 417 CharUnits ElemSize = Utils.getSize(ATy->getElementType()); in buildFrom() local 426 Offset(I) % ElemSize != 0) { in buildFrom() 430 ArrayElements.resize(Offset(I) / ElemSize + 1, Filler); in buildFrom() 644 CharUnits ElemSize = Emitter.CGM.getContext().getTypeSizeInChars(ElemType); in EmitDesignatedInitUpdater() local [all …]
|
| H A D | CGOpenMPRuntime.cpp | 7430 llvm::Value *ElemSize; in getExprTypeSize() local 7432 ElemSize = CGF.getTypeSize(PTy->getPointeeType().getCanonicalType()); in getExprTypeSize() 7436 ElemSize = CGF.getTypeSize(ATy->getElementType().getCanonicalType()); in getExprTypeSize() 7442 return ElemSize; in getExprTypeSize() 7449 return CGF.Builder.CreateNUWMul(LengthVal, ElemSize); in getExprTypeSize() 7459 LBVal = CGF.Builder.CreateNUWMul(LBVal, ElemSize); in getExprTypeSize()
|
| H A D | CGExprScalar.cpp | 2905 llvm::Value* ElemSize = llvm::ConstantInt::get(ResultType, in VisitOffsetOfExpr() local 2909 Offset = Builder.CreateMul(Idx, ElemSize); in VisitOffsetOfExpr()
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelLoweringHVX.cpp | 586 unsigned ElemSize = ElemTy.getSizeInBits() / 8; in getByteShuffle() local 591 for (unsigned I = 0; I != ElemSize; ++I) in getByteShuffle() 594 int NewM = M*ElemSize; in getByteShuffle() 595 for (unsigned I = 0; I != ElemSize; ++I) in getByteShuffle() 614 unsigned ElemSize = ElemWidth / 8; in buildHvxVectorReg() local 615 assert(ElemSize*VecLen == HwLen); in buildHvxVectorReg() 621 assert((ElemSize == 1 || ElemSize == 2) && "Invalid element size"); in buildHvxVectorReg() 622 unsigned OpsPerWord = (ElemSize == 1) ? 4 : 2; in buildHvxVectorReg() 1916 unsigned ElemSize = HwLen / VecLen; in LowerHvxSelect() local 1918 MVT VecTy = MVT::getVectorVT(MVT::getIntegerVT(ElemSize * 8), VecLen); in LowerHvxSelect()
|
| H A D | HexagonVectorCombine.cpp | 449 int ElemSize = HVC.getAllocSizeOf(ElemTy); in createAdjustedPointer() local 450 if (Adjust % ElemSize == 0 && Adjust != 0) { in createAdjustedPointer() 452 Builder.CreateGEP(ElemTy, Ptr, HVC.getConstInt(Adjust / ElemSize)); in createAdjustedPointer()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | Scalarizer.cpp | 173 return commonAlignment(VecAlign, I * ElemSize); in getElemAlign() 186 uint64_t ElemSize = 0; member 498 Layout.ElemSize = DL.getTypeStoreSize(Layout.ElemTy); in getVectorLayout()
|
| /llvm-project-15.0.7/llvm/test/Analysis/LoopCacheAnalysis/PowerPC/ |
| H A D | compute-cost.ll | 37 ; Coeff and ElemSize.
|
| /llvm-project-15.0.7/llvm/test/Analysis/LoopCacheAnalysis/ |
| H A D | compute-cost.ll | 39 ; Coeff and ElemSize.
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | RegionStore.cpp | 1174 uint64_t ElemSize = Ctx.getTypeSize(ElementTy); in VisitCluster() local 1186 uint64_t UpperOffset = LowerOffset + *NumElements * ElemSize; in VisitCluster()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprConstant.cpp | 6682 CharUnits ElemSize; in HandleOperatorNewCall() local 6683 if (!HandleSizeof(Info, E->getExprLoc(), ElemType, ElemSize)) in HandleOperatorNewCall() 6686 APInt ElemSizeAP(ByteSize.getBitWidth(), ElemSize.getQuantity()); in HandleOperatorNewCall() 13226 APSInt ElemSize(llvm::APInt(65, (int64_t)ElementSize.getQuantity(), true), in VisitBinaryOperator() local 13228 APSInt TrueResult = (LHS - RHS) / ElemSize; in VisitBinaryOperator()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAGBuilder.cpp | 4366 uint64_t ElemSize) { in getUniformBase() argument 4411 if (ScaleVal != ElemSize && ScaleVal != 1) in getUniformBase()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCISelLowering.cpp | 14107 unsigned ElemSize = N->getValueType(0).getScalarType().getStoreSize(); in combineBVOfConsecutiveLoads() local 14140 if (!isConsecutiveLS(LD2, LD1, ElemSize, 1, DAG)) in combineBVOfConsecutiveLoads() 14142 if (!isConsecutiveLS(LD1, LD2, ElemSize, 1, DAG)) in combineBVOfConsecutiveLoads()
|
| /llvm-project-15.0.7/llvm/lib/Target/AArch64/ |
| H A D | AArch64ISelLowering.cpp | 16225 unsigned ElemSize = VT.getVectorElementType().getSizeInBits() / 8; in LowerSVEIntrinsicEXT() local 16234 DAG.getConstant(ElemSize, dl, MVT::i32)); in LowerSVEIntrinsicEXT()
|