Improve LIR dumping (dotnet/coreclr#10140)
authorBruce Forstall <brucefo@microsoft.com>
Tue, 14 Mar 2017 01:33:06 +0000 (18:33 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2017 01:33:06 +0000 (18:33 -0700)
commit042b1ec0fb472b37e7c1b13336b3477ed4283b59
tree9c354f2526873e80c67e4a9f8483b7e3042debd8
parentf581589cdd678b338acfd172061cda156f53ddbc
Improve LIR dumping (dotnet/coreclr#10140)

1. Use the LIR node dumper to display nodes to be generated by
codegen, since we're in LIR form at that point. Add a new
"prefix message" argument to allow "Generating: " to prefix all
such lines.
2. Fix off-by-one error in LIR dump due to `#ifdef` versus `#if`.
3. Remove extra trailing line for each LIR node. This interfered
with dotnet/coreclr#1. But I always thought it was unnecessarily verbose; I don't
believe there is any ambiguity without that extra space.
4. Add dTreeLIR()/cTreeLIR() functions for use in the debugger.

Commit migrated from https://github.com/dotnet/coreclr/commit/8d749d34e8f028580d923d8514e4926e16234551
src/coreclr/src/jit/codegenarm.cpp
src/coreclr/src/jit/codegenarm64.cpp
src/coreclr/src/jit/codegenxarch.cpp
src/coreclr/src/jit/compiler.cpp
src/coreclr/src/jit/compiler.h
src/coreclr/src/jit/gentree.cpp