LLVM API Documentation

Public Member Functions | Public Attributes
llvm::TypePrinting Class Reference

#include <AsmWriter.h>

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

List of all members.

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.
DenseMap< StructType *, unsignedNumberedTypes
 NumberedTypes - The numbered types, along with their value.

Detailed Description

Definition at line 44 of file AsmWriter.h.


Constructor & Destructor Documentation

llvm::TypePrinting::TypePrinting ( ) [inline]

Definition at line 56 of file AsmWriter.h.

Definition at line 57 of file AsmWriter.h.


Member Function Documentation

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 403 of file AsmWriter.cpp.

References llvm::Type::ArrayTyID, llvm::Type::DoubleTyID, llvm::StringRef::empty(), llvm::DenseMapBase< DenseMap< KeyT, ValueT, KeyInfoT >, KeyT, ValueT, KeyInfoT >::end(), 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, llvm::FunctionType::param_begin(), llvm::FunctionType::param_end(), llvm::Type::PointerTyID, llvm::Type::PPC_FP128TyID, PrintLLVMName(), llvm::Type::StructTyID, llvm::Type::VectorTyID, llvm::Type::VoidTyID, llvm::Type::X86_FP80TyID, and llvm::Type::X86_MMXTyID.

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

Definition at line 478 of file AsmWriter.cpp.

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


Member Data Documentation

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

Definition at line 50 of file AsmWriter.h.

Referenced by llvm::AssemblyWriter::printTypeIdentities().

NumberedTypes - The numbered types, along with their value.

Definition at line 53 of file AsmWriter.h.

Referenced by llvm::AssemblyWriter::printTypeIdentities().


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