[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
This commit is contained in:
Alexander Batashev 2022-02-22 14:04:21 +03:00
parent cfd6ba89fd
commit 01c0b4d51c

View File

@ -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