diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2006-09-19 15:49:25 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2006-09-19 15:49:25 +0000 |
commit | 71f3b94fa846114a2ce45645ef262e230737e65e (patch) | |
tree | 676e649f423f75cd8af53112cf4c24bf371ba7ae /lib/Target/ARM/ARMTargetMachine.cpp | |
parent | d0b9983d27d1b6c4ca9996b69a9161773d39dfeb (diff) |
Implement a MachineFunctionPass to fix the mul instruction
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index ccf0fb7ed6..7506ea8c29 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -54,10 +54,15 @@ bool ARMTargetMachine::addInstSelector(FunctionPassManager &PM, bool Fast) { PM.add(createARMISelDag(*this)); return false; } + +bool ARMTargetMachine::addPostRegAlloc(FunctionPassManager &PM, bool Fast) { + PM.add(createARMFixMulPass()); + return true; +} + bool ARMTargetMachine::addAssemblyEmitter(FunctionPassManager &PM, bool Fast, std::ostream &Out) { // Output assembly language. PM.add(createARMCodePrinterPass(Out, *this)); return false; } - |