Home
last modified time | relevance | path

Searched refs:elementSize (Results 1 – 13 of 13) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp106 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 Dragged.cpp23 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 DSPIRVConversion.cpp207 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 DCharUnits.h207 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 Dragged.h57 std::int64_t rank, std::int64_t elementSize, std::int64_t *extentVector);
/llvm-project-15.0.7/flang/lib/Evaluate/
H A Dfold-designator.cpp376 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 DLLVMTypes.cpp980 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 DSPIRVTypes.cpp186 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 DCGExprAgg.cpp493 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 DCGExprCXX.cpp2035 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete() local
2037 deletedPtr.getAlignment().alignmentOfArrayElement(elementSize); in EmitArrayDelete()
H A DCGExprScalar.cpp3873 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 DItaniumCXXABI.cpp2262 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 DGPUToLLVMConversion.cpp434 auto elementSize = getSizeInBytes(loc, elementType, rewriter); in matchAndRewrite() local
438 arguments.push_back(elementSize); in matchAndRewrite()