name change requested by review of previous patch
authorDale Johannesen <dalej@apple.com>
Tue, 22 May 2007 18:31:04 +0000 (18:31 +0000)
committerDale Johannesen <dalej@apple.com>
Tue, 22 May 2007 18:31:04 +0000 (18:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37289 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetMachine.h
lib/CodeGen/LLVMTargetMachine.cpp
lib/Target/PowerPC/PPCTargetMachine.cpp
lib/Target/PowerPC/PPCTargetMachine.h

index faf3c35c4925e6f0cbb85e9f7a93b365dec8b9da..e7f211bf15136208a285106dda0f9ec678ffb8d9 100644 (file)
@@ -185,9 +185,9 @@ public:
     AssemblyFile, ObjectFile, DynamicLibrary
   };
 
-  /// DoTailMergeDefault - Whether it is generally a good idea to do this
+  /// getEnableTailMergeDefault - the default setting for -enable-tail-merge
   /// on this target.  User flag overrides.
-  virtual const bool DoTailMergeDefault() const { return true; }
+  virtual const bool getEnableTailMergeDefault() const { return true; }
 
   /// addPassesToEmitFile - Add passes to the specified pass manager to get the
   /// specified file emitted.  Typically this will involve several steps of code
@@ -320,9 +320,9 @@ public:
     return true;
   }
 
-  /// DoTailMergeDefault - Whether it is generally a good idea to do this
+  /// getEnableTailMergeDefault - the default setting for -enable-tail-merge
   /// on this target.  User flag overrides.
-  virtual const bool DoTailMergeDefault() const { return true; }
+  virtual const bool getEnableTailMergeDefault() const { return true; }
 };
 
 } // End llvm namespace
index 41f7e199a0a9c384ef07b712d59cf98d72abc631..3371b7948b6468357fcf130d95ddb35cc836e6ae 100644 (file)
@@ -78,7 +78,7 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
   
   // Branch folding must be run after regalloc and prolog/epilog insertion.
   if (!Fast)
-    PM.add(createBranchFoldingPass(DoTailMergeDefault()));
+    PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
     
   // Fold redundant debug labels.
   PM.add(createDebugLabelFoldingPass());
@@ -181,7 +181,7 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
   
   // Branch folding must be run after regalloc and prolog/epilog insertion.
   if (!Fast)
-    PM.add(createBranchFoldingPass(DoTailMergeDefault()));
+    PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
   
   if (addPreEmitPass(PM, Fast) && PrintMachineCode)
     PM.add(createMachineFunctionPrinterPass(cerr));
index 6d5e05077379e0980f923dc22b79d3ed2a6415f7..acb6191f9e204183011527b62c56f427e0064ce2 100644 (file)
@@ -98,7 +98,7 @@ PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS,
 
 /// Override this for PowerPC.  Tail merging happily breaks up instruction issue
 /// groups, which typically degrades performance.
-const bool PPCTargetMachine::DoTailMergeDefault() const { return false; }
+const bool PPCTargetMachine::getEnableTailMergeDefault() const { return false; }
 
 PPC32TargetMachine::PPC32TargetMachine(const Module &M, const std::string &FS) 
   : PPCTargetMachine(M, FS, false) {
index fdf9d35e5716d309e74e924ce40ba1cfdc4b3e75..10c5b7b091193626333b49e3dce3dd58acdde1c8 100644 (file)
@@ -73,7 +73,7 @@ public:
                               MachineCodeEmitter &MCE);
   virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast,
                                     MachineCodeEmitter &MCE);
-  virtual const bool DoTailMergeDefault() const;
+  virtual const bool getEnableTailMergeDefault() const;
 };
 
 /// PPC32TargetMachine - PowerPC 32-bit target machine.