Description[Courgette] Refactor: Add CourgetteFlow; improve courgette_tool.cc help text.
High level flows in Courgette has messy error-handling code that's
hard to read. This CL adds CourgetteFlow to absorb commonly used data
and error-handling code, and improve readability of high-level logic.
Additional changes:
- Fix Courgette-disadj (debugging flow), which likely was broken by
http://crrev.com/2793153003; Adjust() is called but AssemblyProgram
did not annotate Labels.
- Add BasicBuffer interface, implemented by RegionBuffer and (existing)
BufferedFileReader.
- PatchGeneratorX86_32::Transform(): Implemented TODO to instantiate
"new" AssemblyProgram to reduce Courgette-gen peak memory.
- courgette_tools.cc: Make help text more uniform.
BUG=660980
Review-Url: https://codereview.chromium.org/2827103002
Cr-Commit-Position: refs/heads/master@{#467157}
Committed: https://chromium.googlesource.com/chromium/src/+/8b91a4c9f1d554685ee98468c96ee3c374b6633c
Patch Set 1 #Patch Set 2 : Fix lint warnings. #Patch Set 3 : Add missing check(); rename and arrange CourgetteFlow commands. #Patch Set 4 : More renames, for consistency. #
Total comments: 18
Patch Set 5 : Code cleanup; get fuzz test to use CourgetteFlow. #Patch Set 6 : Add virtual destructor to BasicBuffer and its implementations. #
Messages
Total messages: 21 (14 generated)
|