summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-25 19:21:35 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2011-09-25 19:21:35 +0000
commitc291e2f5780c3a8470113a2a58c1fa680cd54b20 (patch)
tree616b34f57b194d1781beae1b1c6a650888cdda96 /utils
parent0eba4fe292a0bb343da5fb2667850a39459cef0b (diff)
downloadllvm-c291e2f5780c3a8470113a2a58c1fa680cd54b20.tar.gz
llvm-c291e2f5780c3a8470113a2a58c1fa680cd54b20.tar.bz2
llvm-c291e2f5780c3a8470113a2a58c1fa680cd54b20.tar.xz
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
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/InstrInfoEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/utils/TableGen/InstrInfoEmitter.cpp b/utils/TableGen/InstrInfoEmitter.cpp
index 1cf7c90496..35fe728f9e 100644
--- a/utils/TableGen/InstrInfoEmitter.cpp
+++ b/utils/TableGen/InstrInfoEmitter.cpp
@@ -268,6 +268,7 @@ void InstrInfoEmitter::emitRecord(const CodeGenInstruction &Inst, unsigned Num,
<< Inst.TheDef->getName() << "\", 0";
// Emit all of the target indepedent flags...
+ if (Inst.isPseudo) OS << "|(1<<MCID::Pseudo)";
if (Inst.isReturn) OS << "|(1<<MCID::Return)";
if (Inst.isBranch) OS << "|(1<<MCID::Branch)";
if (Inst.isIndirectBranch) OS << "|(1<<MCID::IndirectBranch)";