[all-commits] [llvm/llvm-project] ef5be2: [mlir] Implement `DataLayoutTypeInterface` for `LL...

zero9178 via All-commits all-commits at lists.llvm.org
Tue Dec 14 00:38:09 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef5be2bb16e51c2f6fff622a43cc71268acc6ddc
      https://github.com/llvm/llvm-project/commit/ef5be2bb16e51c2f6fff622a43cc71268acc6ddc
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2021-12-14 (Tue, 14 Dec 2021)

  Changed paths:
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
    M mlir/test/Dialect/LLVMIR/layout.mlir

  Log Message:
  -----------
  [mlir] Implement `DataLayoutTypeInterface` for `LLVMArrayType`

Implementation of the interface allows querying the size and alignments of an LLVMArrayType as well as query the size and alignment of a struct containing an LLVMArrayType.
The implementation should yield the same results as llvm::DataLayout, including support for over aligned element types.
There is no customization point for adjusting an arrays alignment; it is simply taken from the element type.

Differential Revision: https://reviews.llvm.org/D115704




More information about the All-commits mailing list