From: Andrew Lenharth Date: Fri, 16 Jun 2006 14:33:53 +0000 (+0000) Subject: move header X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=73a38a9071332034349d5cb94ebc2ecae28e0e28;p=oota-llvm.git move header git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28818 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Analysis/CallTargets.h b/include/llvm/Analysis/CallTargets.h deleted file mode 100644 index d4f56e8c801..00000000000 --- a/include/llvm/Analysis/CallTargets.h +++ /dev/null @@ -1,54 +0,0 @@ -//=- llvm/Analysis/CallTargets.h - Resolve Indirect Call Targets --*- C++ -*-=// -// -// The LLVM Compiler Infrastructure -// -// This file was developed by the LLVM research group and is distributed under -// the University of Illinois Open Source License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -// -// This pass uses DSA to map targets of all calls, and reports on if it -// thinks it knows all targets of a given call. -// -//===----------------------------------------------------------------------===// - -#ifndef LLVM_ANALYSIS_CALLTARGETS_H -#define LLVM_ANALYSIS_CALLTARGETS_H - -#include "llvm/Pass.h" -#include "llvm/Support/CallSite.h" - -#include -#include - -namespace llvm { - - class CallTargetFinder : public ModulePass { - std::map > IndMap; - std::set CompleteSites; - std::list AllSites; - - void findIndTargets(Module &M); - public: - virtual bool runOnModule(Module &M); - - virtual void getAnalysisUsage(AnalysisUsage &AU) const; - - virtual void print(std::ostream &O, const Module *M) const; - - // Given a CallSite, get an iterator of callees - std::vector::iterator begin(CallSite cs); - std::vector::iterator end(CallSite cs); - - // Iterate over CallSites in program - std::list::iterator cs_begin(); - std::list::iterator cs_end(); - - // Do we think we have complete knowledge of this site? - // That is, do we think there are no missing callees - bool isComplete(CallSite cs) const; - }; - -} - -#endif diff --git a/include/llvm/Analysis/DataStructure/CallTargets.h b/include/llvm/Analysis/DataStructure/CallTargets.h new file mode 100644 index 00000000000..d4f56e8c801 --- /dev/null +++ b/include/llvm/Analysis/DataStructure/CallTargets.h @@ -0,0 +1,54 @@ +//=- llvm/Analysis/CallTargets.h - Resolve Indirect Call Targets --*- C++ -*-=// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by the LLVM research group and is distributed under +// the University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This pass uses DSA to map targets of all calls, and reports on if it +// thinks it knows all targets of a given call. +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_ANALYSIS_CALLTARGETS_H +#define LLVM_ANALYSIS_CALLTARGETS_H + +#include "llvm/Pass.h" +#include "llvm/Support/CallSite.h" + +#include +#include + +namespace llvm { + + class CallTargetFinder : public ModulePass { + std::map > IndMap; + std::set CompleteSites; + std::list AllSites; + + void findIndTargets(Module &M); + public: + virtual bool runOnModule(Module &M); + + virtual void getAnalysisUsage(AnalysisUsage &AU) const; + + virtual void print(std::ostream &O, const Module *M) const; + + // Given a CallSite, get an iterator of callees + std::vector::iterator begin(CallSite cs); + std::vector::iterator end(CallSite cs); + + // Iterate over CallSites in program + std::list::iterator cs_begin(); + std::list::iterator cs_end(); + + // Do we think we have complete knowledge of this site? + // That is, do we think there are no missing callees + bool isComplete(CallSite cs) const; + }; + +} + +#endif diff --git a/include/llvm/Analysis/LinkAllAnalyses.h b/include/llvm/Analysis/LinkAllAnalyses.h index 0be53648fbd..5914d62fa2f 100644 --- a/include/llvm/Analysis/LinkAllAnalyses.h +++ b/include/llvm/Analysis/LinkAllAnalyses.h @@ -22,7 +22,7 @@ #include "llvm/Analysis/Passes.h" #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/Analysis/DataStructure/DataStructure.h" -#include "llvm/Analysis/CallTargets.h" +#include "llvm/Analysis/DataStructure/CallTargets.h" #include "llvm/Function.h" #include diff --git a/lib/Analysis/DataStructure/CallTargets.cpp b/lib/Analysis/DataStructure/CallTargets.cpp index 10fe26e7063..30d7d48334d 100644 --- a/lib/Analysis/DataStructure/CallTargets.cpp +++ b/lib/Analysis/DataStructure/CallTargets.cpp @@ -21,7 +21,7 @@ #include "llvm/Instructions.h" #include "llvm/Analysis/DataStructure/DataStructure.h" #include "llvm/Analysis/DataStructure/DSGraph.h" -#include "llvm/Analysis/CallTargets.h" +#include "llvm/Analysis/DataStructure/CallTargets.h" #include "llvm/ADT/Statistic.h" #include #include "llvm/Constants.h"