forked from OSchip/llvm-project
Add support for bottom up closure of ds analysis
llvm-svn: 2963
This commit is contained in:
parent
f2fbd00804
commit
93dc95fc7d
|
@ -57,6 +57,10 @@ template<>
|
||||||
static void printPass(LocalDataStructures &P, ostream &O, Module &M) {
|
static void printPass(LocalDataStructures &P, ostream &O, Module &M) {
|
||||||
P.print(O, &M);
|
P.print(O, &M);
|
||||||
}
|
}
|
||||||
|
template<>
|
||||||
|
static void printPass(BUDataStructures &P, ostream &O, Module &M) {
|
||||||
|
P.print(O, &M);
|
||||||
|
}
|
||||||
|
|
||||||
template<>
|
template<>
|
||||||
static void printPass(FindUsedTypes &FUT, ostream &O, Module &M) {
|
static void printPass(FindUsedTypes &FUT, ostream &O, Module &M) {
|
||||||
|
@ -227,7 +231,8 @@ enum Ans {
|
||||||
print, intervals, exprs, instforest, loops, indvars,
|
print, intervals, exprs, instforest, loops, indvars,
|
||||||
|
|
||||||
// ip analyses
|
// ip analyses
|
||||||
printmodule, callgraph, datastructure, printusedtypes, unsafepointertypes,
|
printmodule, callgraph, datastructure, budatastructure,
|
||||||
|
printusedtypes, unsafepointertypes,
|
||||||
|
|
||||||
domset, idom, domtree, domfrontier,
|
domset, idom, domtree, domfrontier,
|
||||||
postdomset, postidom, postdomtree, postdomfrontier,
|
postdomset, postidom, postdomtree, postdomfrontier,
|
||||||
|
@ -247,6 +252,7 @@ cl::EnumList<enum Ans> AnalysesList(cl::NoFlags,
|
||||||
clEnumVal(printmodule , "Print entire module"),
|
clEnumVal(printmodule , "Print entire module"),
|
||||||
clEnumVal(callgraph , "Print Call Graph"),
|
clEnumVal(callgraph , "Print Call Graph"),
|
||||||
clEnumVal(datastructure , "Print data structure information"),
|
clEnumVal(datastructure , "Print data structure information"),
|
||||||
|
clEnumVal(budatastructure, "Print bottom-up data structure information"),
|
||||||
clEnumVal(printusedtypes , "Print types used by module"),
|
clEnumVal(printusedtypes , "Print types used by module"),
|
||||||
clEnumVal(unsafepointertypes, "Print unsafe pointer types"),
|
clEnumVal(unsafepointertypes, "Print unsafe pointer types"),
|
||||||
|
|
||||||
|
@ -279,6 +285,7 @@ struct {
|
||||||
{ printusedtypes , New<Pass, FindUsedTypes> },
|
{ printusedtypes , New<Pass, FindUsedTypes> },
|
||||||
{ callgraph , New<Pass, CallGraph> },
|
{ callgraph , New<Pass, CallGraph> },
|
||||||
{ datastructure , New<Pass, LocalDataStructures> },
|
{ datastructure , New<Pass, LocalDataStructures> },
|
||||||
|
{ budatastructure , New<Pass, BUDataStructures> },
|
||||||
{ unsafepointertypes, New<Pass, FindUnsafePointerTypes> },
|
{ unsafepointertypes, New<Pass, FindUnsafePointerTypes> },
|
||||||
|
|
||||||
// Dominator analyses
|
// Dominator analyses
|
||||||
|
|
Loading…
Reference in New Issue