Elaborate on some comments in generated source files.

Recipe names are fairly obscure, so the more context we can give
when using them the better.
This commit is contained in:
Dan Gohman
2018-03-13 20:56:53 -07:00
parent cc8d6400f4
commit d9712f5d7d
2 changed files with 3 additions and 3 deletions

View File

@@ -152,7 +152,7 @@ def gen_isa(isa, fmt):
fmt.line('let bits = encoding.bits();')
with fmt.indented('match func.encodings[inst].recipe() {', '}'):
for i, recipe in enumerate(isa.all_recipes):
fmt.comment(recipe.name)
fmt.comment('Recipe {}'.format(recipe.name))
with fmt.indented('{} => {{'.format(i), '}'):
gen_recipe(recipe, fmt)
fmt.line('_ => {},')