Add string conversions for predicates and encodings.

This is just used for printing better comments in generated code.
This commit is contained in:
Jakob Stoklund Olesen
2016-08-26 08:50:47 -07:00
parent 0c6e0e9cb7
commit 7cb975ce63
3 changed files with 20 additions and 0 deletions

View File

@@ -203,6 +203,8 @@ def gen_isa(cpumodes, fmt):
for level2 in level1:
for enclist in level2:
fmt.comment(enclist.name())
for enc in enclist.encodings:
fmt.comment('{} when {}'.format(enc, enc.instp))
def generate(isas, out_dir):