summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_visualizer.cc
diff options
context:
space:
mode:
authorDavid Srbecky <dsrbecky@google.com>2018-09-06 11:30:36 +0100
committerDavid Srbecky <dsrbecky@google.com>2018-09-12 12:58:57 +0100
commitff74a74a7c0535a51d677c36fd6a37c34d30ea38 (patch)
tree156c0e1cf4334f05e7bcea05b5e8e1ff5efce7bf /compiler/optimizing/graph_visualizer.cc
parentee6ad006e25eb07f4866935255d13b3d87cd46e5 (diff)
Rewrite the mterp code generator and the template snippets.
This changes the code generation, but the generated assembly files are unchanged (except for some whitespace differences). This replaces the custom template meta-language with python. All the architecture-specific template files are concatenated to create one big python script. This generated python script is then executed to produced the final assembly file. The template syntax is: * Lines starting with % are python code. They will be copied as-is to the script (without the %) and thus executed during the generation. * Other lines are text, and they are essentially syntax sugar for out.write('''(line text)''') and thus they write the main output. * Within a text line, $ can be used insert variables from code. This makes the code generation simpler and it will make it possible to use full power of python within the snippets to simplify code. Test: test-art-host-gtest Change-Id: I8325ca406b328f82163241b3d698f94de5e38bff
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
0 files changed, 0 insertions, 0 deletions