LLVM API Documentation

Public Member Functions | Protected Attributes
llvm::AssemblyWriter Class Reference

#include <AsmWriter.h>

Collaboration diagram for llvm::AssemblyWriter:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 AssemblyWriter (formatted_raw_ostream &o, SlotTracker &Mac, const Module *M, AssemblyAnnotationWriter *AAW)
 Construct an AssemblyWriter with an external SlotTracker.
 AssemblyWriter (formatted_raw_ostream &o, const Module *M, AssemblyAnnotationWriter *AAW)
 Construct an AssemblyWriter with an internally allocated SlotTracker.
virtual ~AssemblyWriter ()
void printMDNodeBody (const MDNode *MD)
void printNamedMDNode (const NamedMDNode *NMD)
void printModule (const Module *M)
void writeOperand (const Value *Op, bool PrintType)
void writeParamOperand (const Value *Operand, AttributeSet Attrs, unsigned Idx)
void writeAtomic (AtomicOrdering Ordering, SynchronizationScope SynchScope)
void writeAtomicCmpXchg (AtomicOrdering SuccessOrdering, AtomicOrdering FailureOrdering, SynchronizationScope SynchScope)
void writeAllMDNodes ()
void writeMDNode (unsigned Slot, const MDNode *Node)
void writeAllAttributeGroups ()
void printTypeIdentities ()
void printGlobal (const GlobalVariable *GV)
void printAlias (const GlobalAlias *GV)
void printComdat (const Comdat *C)
void printFunction (const Function *F)
void printArgument (const Argument *FA, AttributeSet Attrs, unsigned Idx)
void printBasicBlock (const BasicBlock *BB)
void printInstructionLine (const Instruction &I)
 printInstructionLine - Print an instruction and a newline character.
void printInstruction (const Instruction &I)
void printUseListOrder (const UseListOrder &Order)
void printUseLists (const Function *F)

Protected Attributes

formatted_raw_ostreamOut
const ModuleTheModule

Detailed Description

Definition at line 66 of file AsmWriter.h.


Constructor & Destructor Documentation

Construct an AssemblyWriter with an external SlotTracker.

Definition at line 1391 of file AsmWriter.cpp.

Construct an AssemblyWriter with an internally allocated SlotTracker.

Definition at line 1398 of file AsmWriter.cpp.

Definition at line 1405 of file AsmWriter.cpp.


Member Function Documentation

printArgument - This member is called for every argument that is passed into the function. Simply print it out

Definition at line 1923 of file AsmWriter.cpp.

References llvm::AttributeSet::getAsString(), llvm::Value::getType(), llvm::AttributeSet::hasAttributes(), llvm::Value::hasName(), Out, llvm::TypePrinting::print(), and PrintLLVMName().

Referenced by printFunction().

Definition at line 1750 of file AsmWriter.cpp.

References llvm::Comdat::print().

Referenced by printModule().

printFunction - Print all aspects of a function.

Definition at line 1794 of file AsmWriter.cpp.

References llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::AttributeSet::begin(), llvm::Function::begin(), llvm::CallingConv::C, ComdatPrefix, llvm::AssemblyAnnotationWriter::emitFunctionAnnot(), llvm::AttributeSet::end(), llvm::Function::end(), llvm::AttributeSet::FunctionIndex, llvm::GlobalObject::getAlignment(), llvm::Attribute::getAsString(), llvm::AttributeSet::getAsString(), llvm::Function::getAttributes(), llvm::Function::getCallingConv(), llvm::GlobalObject::getComdat(), llvm::GlobalValue::getDLLStorageClass(), llvm::AttributeSet::getFnAttributes(), llvm::Function::getFunctionType(), llvm::Function::getGC(), llvm::GlobalValue::getLinkage(), llvm::Comdat::getName(), llvm::FunctionType::getNumParams(), llvm::AttributeSet::getNumSlots(), llvm::FunctionType::getParamType(), llvm::GlobalValue::getParent(), llvm::Function::getPrefixData(), llvm::Function::getReturnType(), llvm::GlobalObject::getSection(), llvm::AttributeSet::getSlotIndex(), llvm::GlobalValue::getVisibility(), llvm::AttributeSet::hasAttributes(), llvm::GlobalObject::hasComdat(), llvm::Function::hasGC(), llvm::Function::hasPrefixData(), llvm::GlobalObject::hasSection(), llvm::GlobalValue::hasUnnamedAddr(), I, llvm::GlobalValue::isDeclaration(), llvm::GlobalValue::isMaterializable(), llvm::Attribute::isStringAttribute(), llvm::FunctionType::isVarArg(), Out, llvm::TypePrinting::print(), printArgument(), printBasicBlock(), PrintCallingConv(), llvm::PrintDLLStorageClass(), PrintEscapedString(), llvm::PrintLinkage(), PrintLLVMName(), printUseLists(), llvm::PrintVisibility(), llvm::AttributeSet::ReturnIndex, llvm::WriteAsOperandInternal(), and writeOperand().

Referenced by printModule().

printInstructionLine - Print an instruction and a newline character.

Definition at line 1989 of file AsmWriter.cpp.

References printInstruction().

Referenced by printBasicBlock().

Definition at line 2377 of file AsmWriter.cpp.

References llvm::WriteMDNodeBodyInternal(), and llvm::WriteMDNodeComment().

Referenced by llvm::Value::print(), and writeMDNode().

Definition at line 2399 of file AsmWriter.cpp.

References I, llvm::UseListOrder::Shuffle, llvm::UseListOrder::V, and writeOperand().

Referenced by printUseLists().

Definition at line 2424 of file AsmWriter.cpp.

References F(), and printUseListOrder().

Referenced by printFunction(), and printModule().

Definition at line 2383 of file AsmWriter.cpp.

References llvm::AttributeSet::FunctionIndex, and I.

Referenced by printModule().

void llvm::AssemblyWriter::writeAtomicCmpXchg ( AtomicOrdering  SuccessOrdering,
AtomicOrdering  FailureOrdering,
SynchronizationScope  SynchScope 
)

Definition at line 2360 of file AsmWriter.cpp.

References printMDNodeBody().

Referenced by writeAllMDNodes().

void llvm::AssemblyWriter::writeOperand ( const Value Op,
bool  PrintType 
)

Member Data Documentation

Definition at line 69 of file AsmWriter.h.


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