diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-07-08 17:36:35 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-07-08 17:36:35 +0000 |
commit | 86f9adb8becf5da6962bd89301e96bccba26f72a (patch) | |
tree | eeb801e52b78e1dfe137c872e008a4371774194c /Makefile.rules | |
parent | 90b40414a092a5cbf35b80eb03e38787eea1a363 (diff) | |
download | llvm-86f9adb8becf5da6962bd89301e96bccba26f72a.tar.gz llvm-86f9adb8becf5da6962bd89301e96bccba26f72a.tar.bz2 llvm-86f9adb8becf5da6962bd89301e96bccba26f72a.tar.xz |
TableGen'erated MC lowering for simple pseudo-instructions.
This allows the (many) pseudo-instructions we have that map onto a single
real instruction to have their expansion during MC lowering handled
automatically instead of the current cumbersome manual expansion required.
These sorts of pseudos are common when an instruction is used in situations
that require different MachineInstr flags (isTerminator, isBranch, et. al.)
than the generic instruction description has. For example, using a move
to the PC to implement a branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 9dcb5ddd5f..228fd733e7 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -1750,6 +1750,11 @@ $(ObjDir)/%GenMCCodeEmitter.inc.tmp: %.td $(ObjDir)/.dir $(Echo) "Building $(<F) MC code emitter with tblgen" $(Verb) $(TableGen) -gen-emitter -mc-emitter -o $(call SYSPATH, $@) $< +$(TARGET:%=$(ObjDir)/%GenMCPseudoLowering.inc.tmp): \ +$(ObjDir)/%GenMCPseudoLowering.inc.tmp: %.td $(ObjDir)/.dir + $(Echo) "Building $(<F) MC Pseudo instruction expander with tblgen" + $(Verb) $(TableGen) -gen-pseudo-lowering -o $(call SYSPATH, $@) $< + $(TARGET:%=$(ObjDir)/%GenCodeEmitter.inc.tmp): \ $(ObjDir)/%GenCodeEmitter.inc.tmp: %.td $(ObjDir)/.dir $(Echo) "Building $(<F) code emitter with tblgen" |