Skip to content

Commit 01c0b4d

Browse files
author
Alexander Batashev
committed
[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
1 parent cfd6ba8 commit 01c0b4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/utils/spirv/gen_spirv_dialect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def get_spirv_doc_from_html_spec(url, settings):
5959
# Ignore the first line, which is just the opname.
6060
doc[opname] = inst_html.text.split('\n', 1)[1].strip()
6161
else:
62-
section_anchor = spirv.find('h3', {'id': '_a_id_instructions_a_instructions'})
62+
section_anchor = spirv.find('h3', {'id': '_instructions_3'})
6363
for section in section_anchor.parent.find_all('div', {'class': 'sect3'}):
6464
for table in section.find_all('table'):
6565
inst_html = table.tbody.tr.td.p

0 commit comments

Comments
 (0)