diff options
| author | Dan Gohman <gohman@apple.com> | 2008-11-12 22:55:05 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2008-11-12 22:55:05 +0000 |
| commit | 88ba5f0b96970496885e3b818744f295ea88c8c5 (patch) | |
| tree | e26d6786bfebd79902a9dbeba5efbb8de235239d /llvm/lib/Target/X86/X86.h | |
| parent | 3060634fba7f073eeed757c4e09365c0ec7fd8b7 (diff) | |
| download | bcm5719-llvm-88ba5f0b96970496885e3b818744f295ea88c8c5.tar.gz bcm5719-llvm-88ba5f0b96970496885e3b818744f295ea88c8c5.zip | |
Move the code that inserts X87 FP_REG_KILL instructions from a
special-purpose hook to a new pass. Also, add check to see if any
x87 virtual registers are used, to avoid doing any work in the
common case that no x87 code is needed.
llvm-svn: 59190
Diffstat (limited to 'llvm/lib/Target/X86/X86.h')
| -rw-r--r-- | llvm/lib/Target/X86/X86.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86.h b/llvm/lib/Target/X86/X86.h index a77542d5fe9..0c2d3b36a2f 100644 --- a/llvm/lib/Target/X86/X86.h +++ b/llvm/lib/Target/X86/X86.h @@ -35,6 +35,11 @@ FunctionPass *createX86ISelDag(X86TargetMachine &TM, bool Fast); /// FunctionPass *createX86FloatingPointStackifierPass(); +/// createX87FPRegKillInserterPass - This function returns a pass which +/// inserts FP_REG_KILL instructions where needed. +/// +FunctionPass *createX87FPRegKillInserterPass(); + /// createX86CodePrinterPass - Returns a pass that prints the X86 /// assembly code for a MachineFunction to the given output stream, /// using the given target machine description. |

