mu/031transforms.cc
Kartik Agaram d02aa9ac0b 5863
Just clarified for myself why `subx translate` and `subx run` need to share
code: emulation supports the tests first and foremost.

In the process we clean up our architecture for levels of layers. It's
a good idea but unused once we reconceive of "level 1" as just part of
the test harness.
2020-01-02 01:28:24 -08:00

13 lines
296 B
C++

:(before "End Types")
typedef void (*transform_fn)(program&);
:(before "End Globals")
vector<transform_fn> Transform;
:(before "End transform(program& p)")
for (int t = 0; t < SIZE(Transform); ++t)
(*Transform.at(t))(p);
:(before "End One-time Setup")
// Begin Transforms
// End Transforms