diff options
author | Mahesh Ravishankar <ravishankarm@google.com> | 2019-09-15 19:39:28 -0700 |
---|---|---|
committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-09-15 19:40:07 -0700 |
commit | 9814b3fa0ddc497f215813ca261dc97214e53295 (patch) | |
tree | a389105b633e50cecb25ab93c20b1b92f73cf015 /mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp | |
parent | faaa1ced1002acef661cfd352c32c1cb86c22726 (diff) | |
download | bcm5719-llvm-9814b3fa0ddc497f215813ca261dc97214e53295.tar.gz bcm5719-llvm-9814b3fa0ddc497f215813ca261dc97214e53295.zip |
Add mechanism to specify extended instruction sets in SPIR-V.
Add support for specifying extended instructions sets. The operations
in SPIR-V dialect are named as 'spv.<extension-name>.<op-name>'. Use
this mechanism to define a 'Exp' operation from GLSL(450)
instructions.
Later CLs will add support for (de)serialization of these operations,
and update the dialect generation scripts to auto-generate the
specification using the spec directly.
Additional changes:
Add a Type Constraint to OpBase.td to check for vector of specified
lengths. This is used to check that the vector type used in SPIR-V
dialect are of lengths 2, 3 or 4.
Update SPIRVBase.td to use this Type constraints for vectors.
PiperOrigin-RevId: 269234377
Diffstat (limited to 'mlir/examples/Linalg/Linalg3/lib/ConvertToLLVMDialect.cpp')
0 files changed, 0 insertions, 0 deletions