mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-23 14:25:07 +00:00
Add support for printing EQ graphs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20581 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -58,6 +58,10 @@ namespace llvm {
|
|||||||
///
|
///
|
||||||
virtual bool runOnModule(Module &M);
|
virtual bool runOnModule(Module &M);
|
||||||
|
|
||||||
|
/// print - Print out the analysis results...
|
||||||
|
///
|
||||||
|
void print(std::ostream &O, const Module *M) const;
|
||||||
|
|
||||||
/// getDSGraph - Return the data structure graph for the specified function.
|
/// getDSGraph - Return the data structure graph for the specified function.
|
||||||
/// This returns the folded graph. The folded graph is the same as the CBU
|
/// This returns the folded graph. The folded graph is the same as the CBU
|
||||||
/// graph iff the function is in a singleton equivalence class AND all its
|
/// graph iff the function is in a singleton equivalence class AND all its
|
||||||
@@ -69,6 +73,10 @@ namespace llvm {
|
|||||||
return *I->second;
|
return *I->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool hasGraph(const Function &F) const {
|
||||||
|
return DSInfo.find(&F) != DSInfo.end();
|
||||||
|
}
|
||||||
|
|
||||||
/// ContainsDSGraphFor - Return true if we have a graph for the specified
|
/// ContainsDSGraphFor - Return true if we have a graph for the specified
|
||||||
/// function.
|
/// function.
|
||||||
bool ContainsDSGraphFor(const Function &F) const {
|
bool ContainsDSGraphFor(const Function &F) const {
|
||||||
|
Reference in New Issue
Block a user