summaryrefslogtreecommitdiff
path: root/include/llvm/Assembly/Writer.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-06-13 19:55:13 +0000
committerChris Lattner <sabre@nondot.org>2001-06-13 19:55:13 +0000
commit966644628de104ac4974c209f02ede57f8a107a5 (patch)
treef5ef907bcef444f0c8979dcff1122421967cb423 /include/llvm/Assembly/Writer.h
parenta5a83b4fa57136d2469c64a416af925c8aa4d7a4 (diff)
downloadllvm-966644628de104ac4974c209f02ede57f8a107a5.tar.gz
llvm-966644628de104ac4974c209f02ede57f8a107a5.tar.bz2
llvm-966644628de104ac4974c209f02ede57f8a107a5.tar.xz
Implement support for writing VCG format output
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Assembly/Writer.h')
-rw-r--r--include/llvm/Assembly/Writer.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/llvm/Assembly/Writer.h b/include/llvm/Assembly/Writer.h
index 71e2f4e054..fd13f779cb 100644
--- a/include/llvm/Assembly/Writer.h
+++ b/include/llvm/Assembly/Writer.h
@@ -5,6 +5,9 @@
// can print VM code at a variety of granularities, ranging from a whole class
// down to an individual instruction. This makes it useful for debugging.
//
+// This file also defines functions that allow it to output files that a program
+// called VCG can read.
+//
// This library uses the Analysis library to figure out offsets for
// variables in the method tables...
//
@@ -31,6 +34,15 @@ void WriteToAssembly(const BasicBlock *BB, ostream &o);
void WriteToAssembly(const Instruction *In, ostream &o);
void WriteToAssembly(const ConstPoolVal *V, ostream &o);
+// WriteToVCG - Dump the specified structure to a VCG file. If method is
+// dumped, then the file named is created. If a module is to be written, a
+// family of files with a common base name is created, with a method name
+// suffix.
+//
+void WriteToVCG(const Module *Module, const string &Filename);
+void WriteToVCG(const Method *Method, const string &Filename);
+
+
// Define operator<< to work on the various classes that we can send to an