Add CSV map file generation for compiler diagnostics (#43612)
authorSimon Nattress <nattress@gmail.com>
Tue, 20 Oct 2020 03:13:49 +0000 (20:13 -0700)
committerGitHub <noreply@github.com>
Tue, 20 Oct 2020 03:13:49 +0000 (20:13 -0700)
commit3cf8d43713c6ee188486459d988db0af0d7596c6
treebeedfe4192fb3fa463e20bdb87d5342f3739057e
parent50f82db26eaa743074fea538063abb4fec0adb02
Add CSV map file generation for compiler diagnostics (#43612)

Add `--csvmap` switch to Crossgen2 which causes it to generate node summary CSV files that are parsable by tests. The intent is to use this for size on disk perf tests so just the node type statistics and individual node map are implemented in CSV files.  We can add section and relocs easily if we think they'll be useful in future.
src/coreclr/src/tools/aot/ILCompiler.ReadyToRun/CodeGen/ReadyToRunObjectWriter.cs
src/coreclr/src/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilation.cs
src/coreclr/src/tools/aot/ILCompiler.ReadyToRun/Compiler/ReadyToRunCodegenCompilationBuilder.cs
src/coreclr/src/tools/aot/ILCompiler.ReadyToRun/ObjectWriter/MapFileBuilder.cs
src/coreclr/src/tools/aot/crossgen2/CommandLineOptions.cs
src/coreclr/src/tools/aot/crossgen2/Program.cs
src/coreclr/src/tools/aot/crossgen2/Properties/Resources.resx