From f7ccb70604282fb7ce77edb8ed7423e2c8f6dcda Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Jul 2002 06:40:56 +0000 Subject: [PATCH] Add support for bottom up closure of ds analysis git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2963 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/analyze/analyze.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tools/analyze/analyze.cpp b/tools/analyze/analyze.cpp index 02ee6457196..f22f7346c3c 100644 --- a/tools/analyze/analyze.cpp +++ b/tools/analyze/analyze.cpp @@ -57,6 +57,10 @@ template<> static void printPass(LocalDataStructures &P, ostream &O, Module &M) { P.print(O, &M); } +template<> +static void printPass(BUDataStructures &P, ostream &O, Module &M) { + P.print(O, &M); +} template<> static void printPass(FindUsedTypes &FUT, ostream &O, Module &M) { @@ -227,7 +231,8 @@ enum Ans { print, intervals, exprs, instforest, loops, indvars, // ip analyses - printmodule, callgraph, datastructure, printusedtypes, unsafepointertypes, + printmodule, callgraph, datastructure, budatastructure, + printusedtypes, unsafepointertypes, domset, idom, domtree, domfrontier, postdomset, postidom, postdomtree, postdomfrontier, @@ -247,6 +252,7 @@ cl::EnumList AnalysesList(cl::NoFlags, clEnumVal(printmodule , "Print entire module"), clEnumVal(callgraph , "Print Call Graph"), clEnumVal(datastructure , "Print data structure information"), + clEnumVal(budatastructure, "Print bottom-up data structure information"), clEnumVal(printusedtypes , "Print types used by module"), clEnumVal(unsafepointertypes, "Print unsafe pointer types"), @@ -279,6 +285,7 @@ struct { { printusedtypes , New }, { callgraph , New }, { datastructure , New }, + { budatastructure , New }, { unsafepointertypes, New }, // Dominator analyses