summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2016-02-18 21:37:12 +0000
committerAdam Nemet <anemet@apple.com>2016-02-18 21:37:12 +0000
commit7cf9b1bf0515dd630012f9f667dba84bf2b966b5 (patch)
treec693d177c850f98fcbb681d2140b21a92fbb07c9 /llvm
parent973dacf69110bbfa51fbedbf4dc836c4181423e3 (diff)
downloadbcm5719-llvm-7cf9b1bf0515dd630012f9f667dba84bf2b966b5.tar.gz
bcm5719-llvm-7cf9b1bf0515dd630012f9f667dba84bf2b966b5.zip
[PPCLoopDataPrefetch] Remove PPC from some of the names. NFC
This is done only to make the next patch that move the pass out PPC to Transforms easier to read. After this most line should show up as moved lines in that patch. This patch is part of the work to make PPCLoopDataPrefetch target-independent (http://thread.gmane.org/gmane.comp.compilers.llvm.devel/92758). llvm-svn: 261264
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/PowerPC/PPCLoopDataPrefetch.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCLoopDataPrefetch.cpp b/llvm/lib/Target/PowerPC/PPCLoopDataPrefetch.cpp
index 14553ab9d57..e687a6d3d57 100644
--- a/llvm/lib/Target/PowerPC/PPCLoopDataPrefetch.cpp
+++ b/llvm/lib/Target/PowerPC/PPCLoopDataPrefetch.cpp
@@ -11,7 +11,7 @@
//
//===----------------------------------------------------------------------===//
-#define DEBUG_TYPE "ppc-loop-data-prefetch"
+#define DEBUG_TYPE "loop-data-prefetch"
#include "PPC.h"
#include "llvm/Transforms/Scalar.h"
#include "llvm/ADT/DepthFirstIterator.h"
@@ -41,20 +41,20 @@ using namespace llvm;
// By default, we limit this to creating 16 PHIs (which is a little over half
// of the allocatable register set).
static cl::opt<bool>
-PrefetchWrites("ppc-loop-prefetch-writes", cl::Hidden, cl::init(false),
+PrefetchWrites("loop-prefetch-writes", cl::Hidden, cl::init(false),
cl::desc("Prefetch write addresses"));
namespace llvm {
- void initializePPCLoopDataPrefetchPass(PassRegistry&);
+ void initializeLoopDataPrefetchPass(PassRegistry&);
}
namespace {
- class PPCLoopDataPrefetch : public FunctionPass {
+ class LoopDataPrefetch : public FunctionPass {
public:
static char ID; // Pass ID, replacement for typeid
- PPCLoopDataPrefetch() : FunctionPass(ID) {
- initializePPCLoopDataPrefetchPass(*PassRegistry::getPassRegistry());
+ LoopDataPrefetch() : FunctionPass(ID) {
+ initializeLoopDataPrefetchPass(*PassRegistry::getPassRegistry());
}
void getAnalysisUsage(AnalysisUsage &AU) const override {
@@ -81,19 +81,19 @@ namespace {
};
}
-char PPCLoopDataPrefetch::ID = 0;
-INITIALIZE_PASS_BEGIN(PPCLoopDataPrefetch, "ppc-loop-data-prefetch",
- "PPC Loop Data Prefetch", false, false)
+char LoopDataPrefetch::ID = 0;
+INITIALIZE_PASS_BEGIN(LoopDataPrefetch, "loop-data-prefetch",
+ "Loop Data Prefetch", false, false)
INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
INITIALIZE_PASS_DEPENDENCY(TargetTransformInfoWrapperPass)
INITIALIZE_PASS_DEPENDENCY(LoopInfoWrapperPass)
INITIALIZE_PASS_DEPENDENCY(ScalarEvolutionWrapperPass)
-INITIALIZE_PASS_END(PPCLoopDataPrefetch, "ppc-loop-data-prefetch",
- "PPC Loop Data Prefetch", false, false)
+INITIALIZE_PASS_END(LoopDataPrefetch, "loop-data-prefetch",
+ "Loop Data Prefetch", false, false)
-FunctionPass *llvm::createPPCLoopDataPrefetchPass() { return new PPCLoopDataPrefetch(); }
+FunctionPass *llvm::createPPCLoopDataPrefetchPass() { return new LoopDataPrefetch(); }
-bool PPCLoopDataPrefetch::runOnFunction(Function &F) {
+bool LoopDataPrefetch::runOnFunction(Function &F) {
LI = &getAnalysis<LoopInfoWrapperPass>().getLoopInfo();
SE = &getAnalysis<ScalarEvolutionWrapperPass>().getSE();
DL = &F.getParent()->getDataLayout();
@@ -113,7 +113,7 @@ bool PPCLoopDataPrefetch::runOnFunction(Function &F) {
return MadeChange;
}
-bool PPCLoopDataPrefetch::runOnLoop(Loop *L) {
+bool LoopDataPrefetch::runOnLoop(Loop *L) {
bool MadeChange = false;
// Only prefetch in the inner-most loop
OpenPOWER on IntegriCloud