[all-commits] [llvm/llvm-project] 9414a7: [mlir][spirv] Add correct handling of Kernel and A...

Konrad Dobros via All-commits all-commits at lists.llvm.org
Fri Aug 7 12:30:04 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9414a71aaab8f04316ee4daba2a27086e3736fff
      https://github.com/llvm/llvm-project/commit/9414a71aaab8f04316ee4daba2a27086e3736fff
  Author: Konrad Dobros <konrad.dobros at intel.com>
  Date:   2020-08-07 (Fri, 07 Aug 2020)

  Changed paths:
    M mlir/include/mlir/Dialect/SPIRV/TargetAndABI.h
    M mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRV.cpp
    M mlir/lib/Dialect/SPIRV/SPIRVLowering.cpp
    M mlir/lib/Dialect/SPIRV/TargetAndABI.cpp
    M mlir/lib/Dialect/SPIRV/Transforms/LowerABIAttributesPass.cpp
    A mlir/test/Conversion/GPUToSPIRV/module-structure-opencl.mlir
    A mlir/test/Dialect/SPIRV/Transforms/abi-interface-opencl.mlir

  Log Message:
  -----------
  [mlir][spirv] Add correct handling of Kernel and Addresses capabilities

This change adds initial support needed to generate OpenCL compliant SPIRV.
If Kernel capability is declared then memory model becomes OpenCL.
If Addresses capability is declared then addressing model becomes Physical64.
Additionally for Kernel capability interface variable ABI attributes are not
generated as entry point function is expected to have normal arguments.

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




More information about the All-commits mailing list