diff options
| author | Mahesh Ravishankar <ravishankarm@google.com> | 2019-10-04 15:59:54 -0700 |
|---|---|---|
| committer | A. Unique TensorFlower <gardener@tensorflow.org> | 2019-10-04 16:00:22 -0700 |
| commit | 3f8bde40cb267f1f6b168ea7bbdd918dfda650a4 (patch) | |
| tree | 921c201af32fc1d9e3a30fff9533cbff0684176a /mlir/utils/spirv | |
| parent | 77a809d7a12bf83096a670dc3c611d9c1f95eb0d (diff) | |
| download | bcm5719-llvm-3f8bde40cb267f1f6b168ea7bbdd918dfda650a4.tar.gz bcm5719-llvm-3f8bde40cb267f1f6b168ea7bbdd918dfda650a4.zip | |
Add spv.Undef op to support OpUndef instruction in SPIR-V.
Adding support for OpUndef instruction. Updating the dialect
generation script to fix a few bugs in the instruction spec
generation.
PiperOrigin-RevId: 272975685
Diffstat (limited to 'mlir/utils/spirv')
| -rwxr-xr-x | mlir/utils/spirv/gen_spirv_dialect.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mlir/utils/spirv/gen_spirv_dialect.py b/mlir/utils/spirv/gen_spirv_dialect.py index 1e317e08c2b..59d38319de4 100755 --- a/mlir/utils/spirv/gen_spirv_dialect.py +++ b/mlir/utils/spirv/gen_spirv_dialect.py @@ -385,7 +385,7 @@ def get_description(text, assembly): Returns: - A string that corresponds to the description of the Tablegen op. """ - fmt_str = ('{text}\n\n ### Custom assembly ' 'form\n{assembly}}}];\n') + fmt_str = ('{text}\n\n ### Custom assembly ' 'form\n{assembly}\n ') return fmt_str.format( text=text, assembly=assembly) @@ -466,8 +466,8 @@ def get_op_definition(instruction, doc, existing_info): ' ```\n\n'\ ' For example:\n\n'\ ' ```\n'\ - ' [TODO]\n'\ - ' ```\n ' + ' [TODO]\n' \ + ' ```' description = get_description(text, assembly) return fmt_str.format( |

