mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
Move the getAnalysisUsage method from the header file
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8264 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a04e51f4c0
commit
95008bca9e
@ -41,8 +41,7 @@
|
||||
/// not copied over from one table to another since it is no longer useful.
|
||||
///--------------------------------------------------------------------------
|
||||
|
||||
struct ModRefTable
|
||||
{
|
||||
struct ModRefTable {
|
||||
typedef hash_map<Instruction*, ModRefInfo> ModRefMap;
|
||||
typedef ModRefMap::const_iterator const_map_iterator;
|
||||
typedef ModRefMap:: iterator map_iterator;
|
||||
@ -198,6 +197,17 @@ public:
|
||||
// class MemoryDepAnalysis: A dep. graph for load/store/call instructions
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// getAnalysisUsage - This does not modify anything. It uses the Top-Down DS
|
||||
/// Graph and IPModRef.
|
||||
///
|
||||
void MemoryDepAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<TDDataStructures>();
|
||||
AU.addRequired<IPModRef>();
|
||||
}
|
||||
|
||||
|
||||
/// Basic dependence gathering algorithm, using TarjanSCCIterator on CFG:
|
||||
///
|
||||
/// for every SCC S in the CFG in PostOrder on the SCC DAG
|
||||
|
@ -41,8 +41,7 @@
|
||||
/// not copied over from one table to another since it is no longer useful.
|
||||
///--------------------------------------------------------------------------
|
||||
|
||||
struct ModRefTable
|
||||
{
|
||||
struct ModRefTable {
|
||||
typedef hash_map<Instruction*, ModRefInfo> ModRefMap;
|
||||
typedef ModRefMap::const_iterator const_map_iterator;
|
||||
typedef ModRefMap:: iterator map_iterator;
|
||||
@ -198,6 +197,17 @@ public:
|
||||
// class MemoryDepAnalysis: A dep. graph for load/store/call instructions
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
|
||||
/// getAnalysisUsage - This does not modify anything. It uses the Top-Down DS
|
||||
/// Graph and IPModRef.
|
||||
///
|
||||
void MemoryDepAnalysis::getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
AU.setPreservesAll();
|
||||
AU.addRequired<TDDataStructures>();
|
||||
AU.addRequired<IPModRef>();
|
||||
}
|
||||
|
||||
|
||||
/// Basic dependence gathering algorithm, using TarjanSCCIterator on CFG:
|
||||
///
|
||||
/// for every SCC S in the CFG in PostOrder on the SCC DAG
|
||||
|
Loading…
Reference in New Issue
Block a user