[all-commits] [llvm/llvm-project] 8134a8: [mlir] use TypeSize and uint64_t in DataLayout (#7...

ftynse via All-commits all-commits at lists.llvm.org
Tue Nov 21 07:12:42 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8134a8fc3ff93db3a28a1ee1016c5024859dc1c6
      https://github.com/llvm/llvm-project/commit/8134a8fc3ff93db3a28a1ee1016c5024859dc1c6
  Author: Oleksandr "Alex" Zinenko <zinenko at google.com>
  Date:   2023-11-21 (Tue, 21 Nov 2023)

  Changed paths:
    M mlir/docs/DataLayout.md
    M mlir/include/mlir/Dialect/LLVMIR/LLVMTypes.h
    M mlir/include/mlir/Interfaces/DataLayoutInterfaces.h
    M mlir/include/mlir/Interfaces/DataLayoutInterfaces.td
    M mlir/lib/Dialect/LLVMIR/IR/LLVMTypes.cpp
    M mlir/lib/Dialect/Linalg/Transforms/Promotion.cpp
    M mlir/lib/Interfaces/DataLayoutInterfaces.cpp
    M mlir/lib/Target/LLVMIR/DataLayoutImporter.cpp
    M mlir/lib/Target/LLVMIR/DataLayoutImporter.h
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Conversion/MemRefToLLVM/convert-dynamic-memref-ops.mlir
    M mlir/test/Dialect/LLVMIR/dynamic-gep-index.mlir
    A mlir/test/Dialect/LLVMIR/inline-byval-huge.mlir
    M mlir/test/Dialect/LLVMIR/layout.mlir
    M mlir/test/Interfaces/DataLayoutInterfaces/query.mlir
    M mlir/test/Interfaces/DataLayoutInterfaces/types.mlir
    M mlir/test/Target/LLVMIR/Import/data-layout.ll
    M mlir/test/Target/LLVMIR/data-layout.mlir
    M mlir/test/lib/Dialect/Test/TestTypeDefs.td
    M mlir/test/lib/Dialect/Test/TestTypes.cpp
    M mlir/unittests/Interfaces/DataLayoutInterfacesTest.cpp

  Log Message:
  -----------
  [mlir] use TypeSize and uint64_t in DataLayout (#72874)

Data layout queries may be issued for types whose size exceeds the range
of 32-bit integer as well as for types that don't have a size known at
compile time, such as scalable vectors. Use best practices from LLVM IR
and adopt `llvm::TypeSize` for size-related queries and `uint64_t` for
alignment-related queries.

See #72678.




More information about the All-commits mailing list