[all-commits] [llvm/llvm-project] bbffec: [mlir][spirv] Remove layout decoration on unneeded...
Lei Zhang via All-commits
all-commits at lists.llvm.org
Thu Apr 28 05:22:08 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bbffece3835d57ec09a1b62071ee8f4b17dd3c27
https://github.com/llvm/llvm-project/commit/bbffece3835d57ec09a1b62071ee8f4b17dd3c27
Author: Lei Zhang <antiagainst at google.com>
Date: 2022-04-28 (Thu, 28 Apr 2022)
Changed paths:
M mlir/lib/Dialect/SPIRV/Transforms/SPIRVConversion.cpp
M mlir/test/Conversion/ArithmeticToSPIRV/arithmetic-to-spirv.mlir
M mlir/test/Conversion/FuncToSPIRV/types-to-spirv.mlir
M mlir/test/Conversion/GPUToSPIRV/module-structure-opencl.mlir
M mlir/test/Conversion/MemRefToSPIRV/alloc.mlir
M mlir/test/Conversion/MemRefToSPIRV/alloca.mlir
M mlir/test/Conversion/TensorToSPIRV/tensor-ops-to-spirv.mlir
Log Message:
-----------
[mlir][spirv] Remove layout decoration on unneeded storage classes
Per SPIR-V validation rules, explict layout decorations are only
needed for StorageBuffer, PhysicalStorageBuffer, Uniform, and
PushConstant storage classes. (And even that is for Shader
capabilities). So we don't need such decorations on the rest.
Reviewed By: hanchung
Differential Revision: https://reviews.llvm.org/D124543
More information about the All-commits
mailing list