LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
llvm::TypePrinting Class Reference

#include <AsmWriter.h>

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

Public Member Functions

 TypePrinting ()
 
 ~TypePrinting ()
 
void incorporateTypes (const Module &M)
 
void print (Type *Ty, raw_ostream &OS)
 
void printStructBody (StructType *Ty, raw_ostream &OS)
 

Public Attributes

TypeFinder NamedTypes
 NamedTypes - The named types that are used by the current module. More...
 
DenseMap< StructType *, unsignedNumberedTypes
 NumberedTypes - The numbered types, along with their value. More...
 

Detailed Description

Definition at line 42 of file AsmWriter.h.

Constructor & Destructor Documentation

llvm::TypePrinting::TypePrinting ( )
inline

Definition at line 54 of file AsmWriter.h.

llvm::TypePrinting::~TypePrinting ( )
inline

Definition at line 55 of file AsmWriter.h.

Member Function Documentation

void llvm::TypePrinting::incorporateTypes ( const Module M)
void llvm::TypePrinting::print ( Type Ty,
raw_ostream OS 
)

CalcTypeName - Write the specified type to the specified raw_ostream, making use of type names or up references to shorten the type name where possible.

Definition at line 193 of file AsmWriter.cpp.

References llvm::Type::ArrayTyID, llvm::Type::DoubleTyID, llvm::StringRef::empty(), llvm::Type::FloatTyID, llvm::Type::FP128TyID, llvm::Type::FunctionTyID, llvm::PointerType::getAddressSpace(), getBitWidth(), llvm::SequentialType::getElementType(), llvm::StructType::getName(), llvm::ArrayType::getNumElements(), llvm::VectorType::getNumElements(), llvm::FunctionType::getNumParams(), llvm::FunctionType::getReturnType(), llvm::Type::getTypeID(), llvm::Type::HalfTyID, I, llvm::Type::IntegerTyID, llvm::StructType::isLiteral(), llvm::FunctionType::isVarArg(), llvm::Type::LabelTyID, LocalPrefix, llvm::Type::MetadataTyID, NumberedTypes, llvm::FunctionType::param_begin(), llvm::FunctionType::param_end(), llvm::Type::PointerTyID, llvm::Type::PPC_FP128TyID, PrintLLVMName(), printStructBody(), llvm::Type::StructTyID, llvm::Type::VectorTyID, llvm::Type::VoidTyID, llvm::Type::X86_FP80TyID, and llvm::Type::X86_MMXTyID.

Referenced by llvm::Value::print(), llvm::Type::print(), llvm::AssemblyWriter::printAlias(), llvm::AssemblyWriter::printArgument(), llvm::AssemblyWriter::printFunction(), llvm::AssemblyWriter::printGlobal(), llvm::AssemblyWriter::printInstruction(), llvm::WriteAsOperand(), llvm::WriteConstantInternal(), llvm::AssemblyWriter::writeOperand(), and llvm::AssemblyWriter::writeParamOperand().

void llvm::TypePrinting::printStructBody ( StructType Ty,
raw_ostream OS 
)

Member Data Documentation

TypeFinder llvm::TypePrinting::NamedTypes

NamedTypes - The named types that are used by the current module.

Definition at line 48 of file AsmWriter.h.

Referenced by incorporateTypes(), and llvm::AssemblyWriter::printTypeIdentities().

DenseMap<StructType*, unsigned> llvm::TypePrinting::NumberedTypes

NumberedTypes - The numbered types, along with their value.

Definition at line 51 of file AsmWriter.h.

Referenced by incorporateTypes(), print(), and llvm::AssemblyWriter::printTypeIdentities().


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