[PATCH] D71947: [MLIR][spirv] Allow specifying availability on enum attribute cases
Lei Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 27 13:33:37 PST 2019
antiagainst created this revision.
antiagainst added reviewers: mravishankar, denis13.
Herald added subscribers: llvm-commits, shauheen, burmako, jpienaar, rriddle, mehdi_amini, mgorny.
Herald added a project: LLVM.
Lots of SPIR-V ops take enum attributes and certain enum cases
need extra capabilities or extensions to be available. This commit
extends to allow specifying availability spec on enum cases.
Extra utility functions are generated for the corresponding enum
classes to return the availability requirement. The availability
interface implemention for a SPIR-V op now goes over all enum
attributes to collect the availability requirements.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71947
Files:
mlir/include/mlir/Dialect/SPIRV/CMakeLists.txt
mlir/include/mlir/Dialect/SPIRV/SPIRVBase.td
mlir/include/mlir/Dialect/SPIRV/SPIRVTypes.h
mlir/include/mlir/TableGen/Attribute.h
mlir/lib/Dialect/SPIRV/CMakeLists.txt
mlir/lib/Dialect/SPIRV/SPIRVTypes.cpp
mlir/lib/TableGen/Attribute.cpp
mlir/test/Dialect/SPIRV/TestAvailability.cpp
mlir/test/Dialect/SPIRV/availability.mlir
mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71947.235446.patch
Type: text/x-patch
Size: 20933 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191227/46a3cd7f/attachment.bin>
More information about the llvm-commits
mailing list