mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-09 10:55:03 +00:00
[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:
parent
cfd6ba89fd
commit
01c0b4d51c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user