mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Implement support for writing VCG format output
llvm-svn: 28
This commit is contained in:
parent
4309ac0cb1
commit
ecf2e5ecf3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user