| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.cpp | 106 Size elementSize = 0; in decorateType() local 109 auto memberType = decorateType(elementType, elementSize, elementAlignment); in decorateType() 115 size = elementSize * numElements; in decorateType() 125 Size elementSize = 0; in decorateType() local 128 auto memberType = decorateType(elementType, elementSize, elementAlignment); in decorateType() 132 size = elementSize * numElements; in decorateType() 134 return spirv::ArrayType::get(memberType, numElements, elementSize); in decorateType() 140 Size elementSize = 0; in decorateType() local 142 auto memberType = decorateType(elementType, elementSize, alignment); in decorateType() 143 return spirv::RuntimeArrayType::get(memberType, elementSize); in decorateType()
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | ragged.cpp | 23 std::int64_t rank, std::int64_t elementSize, std::int64_t *extentVector) { in RaggedArrayAllocate() argument 38 static_cast<void *>(std::calloc(elementSize, size)); in RaggedArrayAllocate() 70 std::int64_t rank, std::int64_t elementSize, std::int64_t *extentVector) { in RTNAME() 72 isHeader, rank, elementSize, extentVector); in RTNAME()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | SPIRVConversion.cpp | 207 auto elementSize = getTypeNumBytes(options, vecType.getElementType()); in getTypeNumBytes() local 208 if (!elementSize) in getTypeNumBytes() 210 return vecType.getNumElements() * *elementSize; in getTypeNumBytes() 225 auto elementSize = getTypeNumBytes(options, memRefType.getElementType()); in getTypeNumBytes() local 226 if (!elementSize) in getTypeNumBytes() 230 return elementSize; in getTypeNumBytes() 242 return (offset + memrefSize) * *elementSize; in getTypeNumBytes() 249 auto elementSize = getTypeNumBytes(options, tensorType.getElementType()); in getTypeNumBytes() local 250 if (!elementSize) in getTypeNumBytes() 253 int64_t size = *elementSize; in getTypeNumBytes()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | CharUnits.h | 207 CharUnits alignmentOfArrayElement(CharUnits elementSize) const { in alignmentOfArrayElement() argument 211 return alignmentAtOffset(elementSize); in alignmentOfArrayElement()
|
| /llvm-project-15.0.7/flang/include/flang/Runtime/ |
| H A D | ragged.h | 57 std::int64_t rank, std::int64_t elementSize, std::int64_t *extentVector);
|
| /llvm-project-15.0.7/flang/lib/Evaluate/ |
| H A D | fold-designator.cpp | 376 std::size_t elementSize{0}; in From() local 383 elementSize = folded->size(); in From() 386 CHECK(elementSize == folded->size()); in From() 409 DEREF(symbol), elementSize, std::move(dimensions)}; in From()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMTypes.cpp | 980 llvm::TypeSize elementSize = in getPrimitiveTypeSizeInBits() local 982 return llvm::TypeSize(elementSize.getFixedSize() * t.getNumElements(), in getPrimitiveTypeSizeInBits() 983 elementSize.isScalable()); in getPrimitiveTypeSizeInBits() 988 llvm::TypeSize elementSize = in getPrimitiveTypeSizeInBits() local 990 return llvm::TypeSize(elementSize.getFixedSize() * t.getNumElements(), in getPrimitiveTypeSizeInBits() 991 elementSize.isScalable()); in getPrimitiveTypeSizeInBits()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 186 Optional<int64_t> elementSize = in getSizeInBytes() local 188 if (!elementSize) in getSizeInBytes() 190 return *elementSize * vectorType.getNumElements(); in getSizeInBytes()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprAgg.cpp | 493 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayInit() local 495 DestPtr.getAlignment().alignmentOfArrayElement(elementSize); in EmitArrayInit() 501 if (NumInitElements * elementSize.getQuantity() > 16 && in EmitArrayInit() 1801 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in VisitArrayInitLoopExpr() local 1803 destPtr.getAlignment().alignmentOfArrayElement(elementSize); in VisitArrayInitLoopExpr()
|
| H A D | CGExprCXX.cpp | 2035 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete() local 2037 deletedPtr.getAlignment().alignmentOfArrayElement(elementSize); in EmitArrayDelete()
|
| H A D | CGExprScalar.cpp | 3873 CharUnits elementSize; in EmitSub() local 3877 elementSize = CharUnits::One(); in EmitSub() 3879 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub() 3882 if (elementSize.isOne()) in EmitSub() 3885 divisor = CGF.CGM.getSize(elementSize); in EmitSub()
|
| H A D | ItaniumCXXABI.cpp | 2262 llvm::Value *elementSize = llvm::ConstantInt::get(CGF.SizeTy, in InitializeArrayCookie() local 2264 CGF.Builder.CreateStore(elementSize, cookie); in InitializeArrayCookie()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUToLLVMConversion.cpp | 434 auto elementSize = getSizeInBytes(loc, elementType, rewriter); in matchAndRewrite() local 438 arguments.push_back(elementSize); in matchAndRewrite()
|