From aa0ab6389ad10ff01462e31ce8baefe3e6cd4bfc Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Tue, 4 Mar 2014 12:09:19 +0000 Subject: [PATCH] [Modules] Move the PredIteratorCache into the IR library -- it is hardcoded to use IR BasicBlocks. llvm-svn: 202835 --- llvm/include/llvm/{Support => IR}/PredIteratorCache.h | 6 +++--- llvm/lib/Analysis/MemoryDependenceAnalysis.cpp | 2 +- llvm/lib/Transforms/Scalar/LICM.cpp | 2 +- llvm/lib/Transforms/Utils/LCSSA.cpp | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) rename llvm/include/llvm/{Support => IR}/PredIteratorCache.h (93%) diff --git a/llvm/include/llvm/Support/PredIteratorCache.h b/llvm/include/llvm/IR/PredIteratorCache.h similarity index 93% rename from llvm/include/llvm/Support/PredIteratorCache.h rename to llvm/include/llvm/IR/PredIteratorCache.h index 3fa056edb60c..bf18dfeb20b3 100644 --- a/llvm/include/llvm/Support/PredIteratorCache.h +++ b/llvm/include/llvm/IR/PredIteratorCache.h @@ -1,4 +1,4 @@ -//===- llvm/Support/PredIteratorCache.h - pred_iterator Cache ---*- C++ -*-===// +//===- PredIteratorCache.h - pred_iterator Cache ----------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -16,8 +16,8 @@ #include "llvm/IR/CFG.h" #include "llvm/Support/Allocator.h" -#ifndef LLVM_SUPPORT_PREDITERATORCACHE_H -#define LLVM_SUPPORT_PREDITERATORCACHE_H +#ifndef LLVM_IR_PREDITERATORCACHE_H +#define LLVM_IR_PREDITERATORCACHE_H namespace llvm { diff --git a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp index 5c481fb446fa..29c8513cab62 100644 --- a/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp +++ b/llvm/lib/Analysis/MemoryDependenceAnalysis.cpp @@ -29,8 +29,8 @@ #include "llvm/IR/Instructions.h" #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/LLVMContext.h" +#include "llvm/IR/PredIteratorCache.h" #include "llvm/Support/Debug.h" -#include "llvm/Support/PredIteratorCache.h" using namespace llvm; STATISTIC(NumCacheNonLocal, "Number of fully cached non-local responses"); diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 5f3a68222b44..c1b7ce7879a7 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -49,9 +49,9 @@ #include "llvm/IR/IntrinsicInst.h" #include "llvm/IR/LLVMContext.h" #include "llvm/IR/Metadata.h" +#include "llvm/IR/PredIteratorCache.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" -#include "llvm/Support/PredIteratorCache.h" #include "llvm/Support/raw_ostream.h" #include "llvm/Target/TargetLibraryInfo.h" #include "llvm/Transforms/Utils/Local.h" diff --git a/llvm/lib/Transforms/Utils/LCSSA.cpp b/llvm/lib/Transforms/Utils/LCSSA.cpp index ba3b46898d51..606700a1bbd1 100644 --- a/llvm/lib/Transforms/Utils/LCSSA.cpp +++ b/llvm/lib/Transforms/Utils/LCSSA.cpp @@ -38,8 +38,8 @@ #include "llvm/IR/Dominators.h" #include "llvm/IR/Function.h" #include "llvm/IR/Instructions.h" +#include "llvm/IR/PredIteratorCache.h" #include "llvm/Pass.h" -#include "llvm/Support/PredIteratorCache.h" #include "llvm/Transforms/Utils/LoopUtils.h" #include "llvm/Transforms/Utils/SSAUpdater.h" using namespace llvm; -- GitLab