diff options
author | Nate Begeman <natebegeman@mac.com> | 2005-03-24 04:41:43 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2005-03-24 04:41:43 +0000 |
commit | a9795f81e91c02d8824c70533c2ab944b13c14e6 (patch) | |
tree | 1d03e4f00d1862462cbc8b5380392aefcebe206f /lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 85fdeb233ec445808ba72ecd980df9718b587e4a (diff) |
Addition of the PPC32 Pattern ISel. While it is far from complete, it will
be brought up to parity with the current simple ISel in the coming days.
Currently, -pattern-isel is required to trigger it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20805 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index dd40e1333c..75f1fc3637 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -37,6 +37,8 @@ namespace llvm { cl::opt<bool> EnablePPCLSR("enable-lsr-for-ppc", cl::desc("Enable LSR for PPC (beta option!)"), cl::Hidden); + cl::opt<bool> EnablePatternISel("pattern-isel", cl::Hidden, + cl::desc("Enable the pattern isel XXX FIXME")); } namespace { @@ -96,6 +98,8 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM, if (LP64) PM.add(createPPC64ISelSimple(*this)); + else if (EnablePatternISel) + PM.add(createPPC32ISelPattern(*this)); else PM.add(createPPC32ISelSimple(*this)); |