[Mlir-commits] [mlir] 01c0b4d - [mlir][spirv] Fix SPIR-V spec parser
Alexander Batashev
llvmlistbot at llvm.org
Tue Feb 22 03:16:23 PST 2022
Author: Alexander Batashev
Date: 2022-02-22T14:07:46+03:00
New Revision: 01c0b4d51c50f2dc51e0dec96174939e52df87f2
URL: https://github.com/llvm/llvm-project/commit/01c0b4d51c50f2dc51e0dec96174939e52df87f2
DIFF: https://github.com/llvm/llvm-project/commit/01c0b4d51c50f2dc51e0dec96174939e52df87f2.diff
LOG: [mlir][spirv] Fix SPIR-V spec parser
Header class in SPIR-V HTML spec has changed. Update script to reflect that.
Reviewed By: antiagainst
Differential Revision: https://reviews.llvm.org/D120179
Added:
Modified:
mlir/utils/spirv/gen_spirv_dialect.py
Removed:
################################################################################
diff --git a/mlir/utils/spirv/gen_spirv_dialect.py b/mlir/utils/spirv/gen_spirv_dialect.py
index 72db3493c126c..0fc6f2f9d910e 100755
--- a/mlir/utils/spirv/gen_spirv_dialect.py
+++ b/mlir/utils/spirv/gen_spirv_dialect.py
@@ -59,7 +59,7 @@ def get_spirv_doc_from_html_spec(url, settings):
# Ignore the first line, which is just the opname.
doc[opname] = inst_html.text.split('\n', 1)[1].strip()
else:
- section_anchor = spirv.find('h3', {'id': '_a_id_instructions_a_instructions'})
+ section_anchor = spirv.find('h3', {'id': '_instructions_3'})
for section in section_anchor.parent.find_all('div', {'class': 'sect3'}):
for table in section.find_all('table'):
inst_html = table.tbody.tr.td.p
More information about the Mlir-commits
mailing list