Add an InstructionFormat class to the meta language.
Define all known instruction formats in the cretonne.formats module.
This commit is contained in:
@@ -36,7 +36,9 @@ def gen_opcodes(groups, out_dir):
|
||||
if prefix:
|
||||
prefix = prefix + ' = '
|
||||
suffix = ', '.join(o.name for o in i.ins)
|
||||
fmt.doc_comment('`{}{} {}`.'.format(prefix, i.name, suffix))
|
||||
fmt.doc_comment(
|
||||
'`{}{} {}`. ({})'
|
||||
.format(prefix, i.name, suffix, i.format.name))
|
||||
# Enum variant itself.
|
||||
fmt.line(i.camel_name + ',')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user