Mojo function
align_of
align_of[type: AnyType, target: __mlir_type.!kgen.target = _current_target()]() -> Int
Returns the align of (in bytes) of the type.
Parameters:
- βtype (
AnyType): The type in question. - βtarget (
__mlir_type.!kgen.target``): The target architecture.
Returns:
Int: The alignment of the type in bytes.
align_of[dtype: DType, target: __mlir_type.!kgen.target = _current_target()]() -> Int
Returns the align of (in bytes) of the dtype.
Parameters:
- βdtype (
DType): The DType in question. - βtarget (
__mlir_type.!kgen.target``): The target architecture.
Returns:
Int: The alignment of the dtype in bytes.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!