1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

New function: WriteAsOperand.

llvm-svn: 210
This commit is contained in:
Chris Lattner 2001-07-20 19:14:01 +00:00
parent 9a45a59ddd
commit 6e921febad

View File

@ -23,6 +23,7 @@ class Module;
class Method;
class BasicBlock;
class Instruction;
class SlotCalculator;
// The only interface defined by this file... convert the internal
// representation of an object into an ascii bytestream that the parser can
@ -34,6 +35,14 @@ void WriteToAssembly(const BasicBlock *BB, ostream &o);
void WriteToAssembly(const Instruction *In, ostream &o);
void WriteToAssembly(const ConstPoolVal *V, ostream &o);
// WriteAsOperand - Write the name of the specified value out to the specified
// ostream. This can be useful when you just want to print int %reg126, not the
// whole instruction that generated it.
//
ostream &WriteAsOperand(ostream &o, const Value *V, bool PrintType = true,
bool PrintName = true, SlotCalculator *Table = 0);
// 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