summaryrefslogtreecommitdiffstats
path: root/mlir/utils
diff options
context:
space:
mode:
authorLei Zhang <antiagainst@google.com>2019-06-12 17:39:33 -0700
committerMehdi Amini <joker.eph@gmail.com>2019-06-19 23:00:33 -0700
commitd13f670311c2caa21a9aa6842e112d57a368723f (patch)
tree09d12eddb90c41d98d165ccb607dc41454f20199 /mlir/utils
parentb5a34406a8b8e73bb5b61bb881eddf94ef51c5e8 (diff)
downloadbcm5719-llvm-d13f670311c2caa21a9aa6842e112d57a368723f.tar.gz
bcm5719-llvm-d13f670311c2caa21a9aa6842e112d57a368723f.zip
[spirv] Add SPV_StorageClassAttr and PointerType
Pointer types need to specify the storage class. We use the utility functions generated from SPV_StorageClassAttr to parse and print the storage classes. Also improved the case that no element type is provided for (runtime) array. PiperOrigin-RevId: 252935599
Diffstat (limited to 'mlir/utils')
-rwxr-xr-xmlir/utils/spirv/gen_spirv_dialect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/utils/spirv/gen_spirv_dialect.py b/mlir/utils/spirv/gen_spirv_dialect.py
index f815ae37397..f76d163050a 100755
--- a/mlir/utils/spirv/gen_spirv_dialect.py
+++ b/mlir/utils/spirv/gen_spirv_dialect.py
@@ -124,7 +124,7 @@ def gen_operand_kind_enum_attr(operand_kind):
' let cppNamespace = "::mlir::spirv";\n'\
' let underlyingType = "uint32_t";\n}}'.format(
name=kind_name, cases=case_names)
- return kind_name, case_defs + '\n' + enum_attr
+ return kind_name, case_defs + '\n\n' + enum_attr
def update_td_enum_attrs(path, operand_kinds, filter_list):
OpenPOWER on IntegriCloud