MCPcopy Index your code
hub / github.com/python/cpython / generate_uop_metadata

Function generate_uop_metadata

Tools/cases_generator/uop_metadata_generator.py:138–146  ·  view source on GitHub ↗
(
    filenames: list[str], analysis: Analysis, outfile: TextIO
)

Source from the content-addressed store, hash-verified

136 out.emit("#endif // NEED_OPCODE_METADATA\n\n")
137
138def generate_uop_metadata(
139 filenames: list[str], analysis: Analysis, outfile: TextIO
140) -> None:
141 write_header(__file__, filenames, outfile)
142 out = CWriter(outfile, 0, False)
143 with out.header_guard("Py_CORE_UOP_METADATA_H"):
144 out.emit("#include <stdint.h>\n")
145 out.emit('#include "pycore_uop_ids.h"\n')
146 generate_names_and_flags(analysis, out)
147
148
149arg_parser = argparse.ArgumentParser(

Callers 1

Calls 5

header_guardMethod · 0.95
emitMethod · 0.95
write_headerFunction · 0.90
CWriterClass · 0.90
generate_names_and_flagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…