Add target hook for pseudo instruction expansion.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 25 Sep 2011 19:21:35 +0000 (19:21 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 25 Sep 2011 19:21:35 +0000 (19:21 +0000)
commitc291e2f5780c3a8470113a2a58c1fa680cd54b20
tree616b34f57b194d1781beae1b1c6a650888cdda96
parent0eba4fe292a0bb343da5fb2667850a39459cef0b
Add target hook for pseudo instruction expansion.

Many targets use pseudo instructions to help register allocation.  Like
the COPY instruction, these pseudos can be expanded after register
allocation.  The early expansion can make life easier for PEI and the
post-ra scheduler.

This patch adds a hook that is called for all remaining pseudo
instructions from the ExpandPostRAPseudos pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140472 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCInstrDesc.h
include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/ExpandPostRAPseudos.cpp
utils/TableGen/InstrInfoEmitter.cpp