[all-commits] [llvm/llvm-project] 50aeee: [mlir][spirv] Use spv.entry_point_abi in GPU to SP...
Lei Zhang via All-commits
all-commits at lists.llvm.org
Mon Feb 10 13:25:01 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 50aeeed8a2dd68d2ead2a5337260e21e3d098764
https://github.com/llvm/llvm-project/commit/50aeeed8a2dd68d2ead2a5337260e21e3d098764
Author: Lei Zhang <antiagainst at google.com>
Date: 2020-02-10 (Mon, 10 Feb 2020)
Changed paths:
M mlir/include/mlir/Conversion/GPUToSPIRV/ConvertGPUToSPIRV.h
M mlir/include/mlir/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.h
M mlir/include/mlir/Dialect/SPIRV/TargetAndABI.h
M mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRV.cpp
M mlir/lib/Conversion/GPUToSPIRV/ConvertGPUToSPIRVPass.cpp
M mlir/lib/Dialect/SPIRV/TargetAndABI.cpp
M mlir/test/Conversion/GPUToSPIRV/builtins.mlir
M mlir/test/Conversion/GPUToSPIRV/if.mlir
M mlir/test/Conversion/GPUToSPIRV/load-store.mlir
M mlir/test/Conversion/GPUToSPIRV/loop.mlir
M mlir/test/Conversion/GPUToSPIRV/simple.mlir
Log Message:
-----------
[mlir][spirv] Use spv.entry_point_abi in GPU to SPIR-V conversions
We have spv.entry_point_abi for specifying the local workgroup size.
It should be decorated onto input gpu.func ops to drive the SPIR-V
CodeGen to generate the proper SPIR-V module execution mode. Compared
to using command-line options for specifying the configuration, using
attributes also has the benefits that 1) we are now able to use
different local workgroup for different entry points and 2) the
tests contains the configuration directly.
Differential Revision: https://reviews.llvm.org/D74012
More information about the All-commits
mailing list