Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [mlir][spirv] Properly support SPIR-V conversion target | Lei Zhang | 2020-01-14 | 1 | -14/+31 |
| | | | | | | | | | | | | | | | | This commit defines a new SPIR-V dialect attribute for specifying a SPIR-V target environment. It is a dictionary attribute containing the SPIR-V version, supported extension list, and allowed capability list. A SPIRVConversionTarget subclass is created to take in the target environment and sets proper dynmaically legal ops by querying the op availability interface of SPIR-V ops to make sure they are available in the specified target environment. All existing conversions targeting SPIR-V is changed to use this SPIRVConversionTarget. It probes whether the input IR has a `spv.target_env` attribute, otherwise, it uses the default target environment: SPIR-V 1.0 with Shader capability and no extra extensions. Differential Revision: https://reviews.llvm.org/D72256 | ||||
* | [mlir][spirv] Fix shader ABI attribute prefix and add verification | Lei Zhang | 2020-01-03 | 1 | -2/+2 |
| | | | | | | | | | | This commit fixes shader ABI attributes to use `spv.` as the prefix so that they match the dialect's namespace. This enables us to add verification hooks in the SPIR-V dialect to verify them. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D72062 | ||||
* | [mlir][spirv] NFC: Move shader ABI attributes to a new file | Lei Zhang | 2020-01-01 | 1 | -0/+47 |
This allows us to include the definitions of these attributes in other files without pulling in all dependencies for lowering. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D72054 |