Lines Matching refs:output

163 def output(*args):  function
170 output('/* This file is autogenerated by scripts/decodetree.py. */\n\n')
459 output('typedef struct {\n')
461 output(f' {t} {n};\n')
462 output('} ', self.struct_name(), ';\n\n')
521 output(indent, lvalue_formatter(n), ' = ',
542 output('static void ', self.extract_name(), '(DisasContext *ctx, ',
545 output('}\n\n')
555 output('typedef ', self.base.base.struct_name(),
557 output(translate_scope, 'bool ', translate_prefix, '_', self.name,
564 output(ind, '/* ', self.file, ':', str(self.lineno), ' */\n')
589 output(ind, self.base.extract_name(),
595 output(ind, 'if (', translate_prefix, '_', self.name,
697 output(ind, f'if ((insn & {whexC(innermask)}) == {whexC(innerbits)}) {{\n')
698 output(ind, f' /* {str_match_bits(p.fixedbits, p.fixedmask)} */\n')
700 output(ind, '}\n')
744 output(ind, self.base.extract_name(),
765 output(ind, 'switch (', str_switch(self.thismask), ') {\n')
770 output(ind, 'case ', str_case(b), ':\n')
771 output(ind, ' /* ',
774 output(ind, ' break;\n')
775 output(ind, '}\n')
1368 output(ind, f'insn = {decode_function}_load_bytes',
1389 output(ind, 'switch (', str_switch(self.mask), ') {\n')
1393 output(ind, 'case ', str_case(b), ':\n')
1394 output(ind, ' /* ',
1397 output(ind, '}\n')
1398 output(ind, 'return insn;\n')
1420 output(ind, f'insn = {decode_function}_load_bytes',
1423 output(ind, 'return insn;\n')
1603 output("#pragma GCC diagnostic push\n",
1618 output('\n')
1621 output("#pragma GCC diagnostic pop\n\n")
1627 output(decode_scope, 'bool ', decode_function,
1633 output(i4, 'union {\n')
1636 output(i4, i4, f.struct_name(), ' f_', f.name, ';\n')
1637 output(i4, '} u;\n\n')
1640 output(i4, 'return false;\n')
1641 output('}\n')
1644 output('\n', decode_scope, insntype, ' ', decode_function,
1648 output('}\n')