Changeset View
Changeset View
Standalone View
Standalone View
mlir/docs/Dialects/SPIR-V.md
Show First 20 Lines • Show All 1,066 Lines • ▼ Show 20 Lines | |||||
returns an SSA value generated from an `spv._address_of` operation. | returns an SSA value generated from an `spv._address_of` operation. | ||||
### Current conversions to SPIR-V | ### Current conversions to SPIR-V | ||||
Using the above infrastructure, conversions are implemented from | Using the above infrastructure, conversions are implemented from | ||||
* [Standard Dialect][MlirStandardDialect] : Only arithmetic and logical | * [Standard Dialect][MlirStandardDialect] : Only arithmetic and logical | ||||
operations conversions are implemented. | operations conversions are implemented. | ||||
* [GPU Dialect][MlirGpuDialect] : A module with the attribute | * [GPU Dialect][MlirGpuDialect] : A gpu.module is converted to a `spv.module`. | ||||
`gpu.kernel_module` is converted to a `spv.module`. A function within this | A gpu.function within this module is lowered as an entry function. | ||||
module with the attribute `gpu.kernel` is lowered as an entry function. | |||||
## Code organization | ## Code organization | ||||
We aim to provide multiple libraries with clear dependencies for SPIR-V related | We aim to provide multiple libraries with clear dependencies for SPIR-V related | ||||
functionalities in MLIR so developers can just choose the needed components | functionalities in MLIR so developers can just choose the needed components | ||||
without pulling in the whole world. | without pulling in the whole world. | ||||
### The dialect | ### The dialect | ||||
▲ Show 20 Lines • Show All 267 Lines • Show Last 20 Lines |