LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

llvm::AssemblyWriter Class Reference

Collaboration diagram for llvm::AssemblyWriter:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 AssemblyWriter (std::ostream &o, SlotMachine &Mac, const Module *M, AssemblyAnnotationWriter *AAW)
void write (const Module *M)
void write (const GlobalVariable *G)
void write (const Function *F)
void write (const BasicBlock *BB)
void write (const Instruction *I)
void write (const Constant *CPV)
void write (const Type *Ty)
void writeOperand (const Value *Op, bool PrintType, bool PrintName=true)
const Module * getModule ()

Detailed Description

Definition at line 645 of file AsmWriter.cpp.


Constructor & Destructor Documentation

llvm::AssemblyWriter::AssemblyWriter (  std::ostream &  o,
SlotMachine &  Mac,
const Module *  M,
AssemblyAnnotationWriter *  AAW
)  [inline]
 

Definition at line 652 of file AsmWriter.cpp.

References fillTypeNameTable().


Member Function Documentation

const Module* llvm::AssemblyWriter::getModule (   )  [inline]
 

Definition at line 672 of file AsmWriter.cpp.

Referenced by llvm::CachedWriter::operator<<().

void llvm::AssemblyWriter::write (  const Type *  Ty  )  [inline]
 

Definition at line 668 of file AsmWriter.cpp.

void llvm::AssemblyWriter::write (  const Constant *  CPV  )  [inline]
 

Definition at line 667 of file AsmWriter.cpp.

void llvm::AssemblyWriter::write (  const Instruction *  I  )  [inline]
 

Definition at line 666 of file AsmWriter.cpp.

void llvm::AssemblyWriter::write (  const BasicBlock *  BB  )  [inline]
 

Definition at line 665 of file AsmWriter.cpp.

void llvm::AssemblyWriter::write (  const Function *  F  )  [inline]
 

Definition at line 664 of file AsmWriter.cpp.

void llvm::AssemblyWriter::write (  const GlobalVariable *  G  )  [inline]
 

Definition at line 663 of file AsmWriter.cpp.

void llvm::AssemblyWriter::write (  const Module *  M  )  [inline]
 

Definition at line 662 of file AsmWriter.cpp.

Referenced by llvm::CachedWriter::operator<<(), llvm::Instruction::print(), llvm::BasicBlock::print(), llvm::Function::print(), llvm::GlobalVariable::print(), and llvm::Module::print().

void AssemblyWriter::writeOperand (  const Value *  Op,
bool  PrintType,
bool  PrintName = true
) 
 

Definition at line 748 of file AsmWriter.cpp.

References llvm::Value::getType(), and WriteAsOperandInternal().

Referenced by llvm::CachedWriter::operator<<().


The documentation for this class was generated from the following file: