Rename createGlobalBaseRegPass -> createX86GlobalBaseRegPass to make
authorEric Christopher <echristo@gmail.com>
Thu, 22 May 2014 01:45:57 +0000 (01:45 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 22 May 2014 01:45:57 +0000 (01:45 +0000)
it obvious that it's a target specific pass.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209380 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86TargetMachine.cpp

index 18e6845efec001dd4a8a280b7631fd5af63373fe..64e8ea834f47e39bd4f7b44a1eb53718c54e956f 100644 (file)
@@ -30,9 +30,9 @@ class X86TargetMachine;
 FunctionPass *createX86ISelDag(X86TargetMachine &TM,
                                CodeGenOpt::Level OptLevel);
 
-/// createGlobalBaseRegPass - This pass initializes a global base
+/// createX86GlobalBaseRegPass - This pass initializes a global base
 /// register for PIC on x86-32.
-FunctionPass* createGlobalBaseRegPass();
+FunctionPass* createX86GlobalBaseRegPass();
 
 /// createCleanupLocalDynamicTLSPass() - This pass combines multiple accesses
 /// to local-dynamic TLS variables so that the TLS base address for the module
index efb5c70c8108ad80cb5f107324a444f6e48018e0..8edce9fd46265181fc8c691d61d857f2795e6108 100644 (file)
@@ -5451,7 +5451,7 @@ namespace {
 
 char CGBR::ID = 0;
 FunctionPass*
-llvm::createGlobalBaseRegPass() { return new CGBR(); }
+llvm::createX86GlobalBaseRegPass() { return new CGBR(); }
 
 namespace {
   struct LDTLSCleanup : public MachineFunctionPass {
index dae6d4b2e15cf457069a13d6ce2766b8250f3742..1970ffa0bd15c545ea637f80816ec60319187c74 100644 (file)
@@ -180,7 +180,7 @@ bool X86PassConfig::addInstSelector() {
 
   // For 32-bit, prepend instructions to set the "global base reg" for PIC.
   if (!getX86Subtarget().is64Bit())
-    addPass(createGlobalBaseRegPass());
+    addPass(createX86GlobalBaseRegPass());
 
   return false;
 }