Displaying 1 result from an estimated 1 matches for "sourceinterleave".
2017 Feb 03
3
RFC: Add a way to interleave source code in assembler output
...r and cc1 will be added as well.
Other FE's can provide other specific mechanisms to enable source interleave.
-- llvm changes
For llvm I suggest creating a new AsmPrinterHandler called, tentatively, SourceInterlave that would be responsible of printing the lines related to the instructions. SourceInterleave would take care of loading the files and making sure the source code lines are emitted as comments.
This handler would be enabled through MCOptions (similar to what happens with AsmVerbose). The current option is tentatively called AsmSource.
Currently AsmPrinterHandler mechanism looks slightly g...