[all-commits] [llvm/llvm-project] 4df954: [mlir][spirv] Make EntryPointABIAttr.local_size op...

Ivan Butygin via All-commits all-commits at lists.llvm.org
Fri Mar 11 11:26:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4df95441089a8b294b44fc2876e9ef448d4adf12
      https://github.com/llvm/llvm-project/commit/4df95441089a8b294b44fc2876e9ef448d4adf12
  Author: Ivan Butygin <ivan.butygin at gmail.com>
  Date:   2022-03-11 (Fri, 11 Mar 2022)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/IR/TargetAndABI.td
    M mlir/lib/Conversion/GPUToSPIRV/GPUToSPIRV.cpp
    M mlir/lib/Dialect/SPIRV/IR/TargetAndABI.cpp
    M mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp
    M mlir/test/Conversion/GPUToSPIRV/builtins.mlir

  Log Message:
  -----------
  [mlir][spirv] Make EntryPointABIAttr.local_size optional

* It doesn't required by OpenCL/Intel Level Zero and can be set programmatically.
* Add GPU to spirv lowering in case when attribute is not present.
* Set higher benefit to WorkGroupSizeConversion pattern so it will always try to lower first from the attribute.

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




More information about the All-commits mailing list