[globalisel] Improve Legalizer debug output
authorDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 29 Apr 2019 18:45:59 +0000 (18:45 +0000)
committerDaniel Sanders <daniel_l_sanders@apple.com>
Mon, 29 Apr 2019 18:45:59 +0000 (18:45 +0000)
commit8f079844d01246dd638675635e8aa5755f0401d5
tree94a1c301a8aa9f8fdb2e4903fc026b26326ea7b9
parent89e583b843b5d2cefee8a486caa4849f3d742e82
[globalisel] Improve Legalizer debug output

* LegalizeAction should be printed by name rather than number
* Newly created instructions are incomplete at the point the observer first sees
  them. They are therefore recorded in a small vector and printed just before
  the legalizer moves on to another instruction. By this point, the instruction
  must be complete.

llvm-svn: 359481
llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
llvm/lib/CodeGen/GlobalISel/Legalizer.cpp
llvm/lib/CodeGen/GlobalISel/LegalizerInfo.cpp