mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
Add BBTrace accessor method and data member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13351 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -32,6 +32,7 @@ class ProfileInfoLoader {
|
|||||||
std::vector<unsigned> FunctionCounts;
|
std::vector<unsigned> FunctionCounts;
|
||||||
std::vector<unsigned> BlockCounts;
|
std::vector<unsigned> BlockCounts;
|
||||||
std::vector<unsigned> EdgeCounts;
|
std::vector<unsigned> EdgeCounts;
|
||||||
|
std::vector<unsigned> BBTrace;
|
||||||
public:
|
public:
|
||||||
// ProfileInfoLoader ctor - Read the specified profiling data file, exiting
|
// ProfileInfoLoader ctor - Read the specified profiling data file, exiting
|
||||||
// the program if the file is invalid or broken.
|
// the program if the file is invalid or broken.
|
||||||
@@ -76,6 +77,11 @@ public:
|
|||||||
//
|
//
|
||||||
typedef std::pair<BasicBlock*, unsigned> Edge;
|
typedef std::pair<BasicBlock*, unsigned> Edge;
|
||||||
void getEdgeCounts(std::vector<std::pair<Edge, unsigned> > &Counts);
|
void getEdgeCounts(std::vector<std::pair<Edge, unsigned> > &Counts);
|
||||||
|
|
||||||
|
// getBBTrace - This method is used by consumers of basic-block trace
|
||||||
|
// information.
|
||||||
|
//
|
||||||
|
void getBBTrace(std::vector<BasicBlock *> &Trace);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // End llvm namespace
|
} // End llvm namespace
|
||||||
|
Reference in New Issue
Block a user