LLVM API Documentation

llvm::CPPTargetMachine Struct Reference

#include <CPPTargetMachine.h>

Inheritance diagram for llvm::CPPTargetMachine:
[legend]
Collaboration diagram for llvm::CPPTargetMachine:
[legend]

List of all members.

Public Member Functions

 CPPTargetMachine (const Module &M, const std::string &FS)
virtual bool WantsWholeFile () const
virtual bool addPassesToEmitWholeFile (PassManager &PM, raw_ostream &Out, CodeGenFileType FileType, bool Fast)
virtual const TargetData * getTargetData () const

Static Public Member Functions

static unsigned getModuleMatchQuality (const Module &M)

Public Attributes

const TargetData DataLayout


Detailed Description

Definition at line 24 of file CPPTargetMachine.h.


Constructor & Destructor Documentation

llvm::CPPTargetMachine::CPPTargetMachine ( const Module &  M,
const std::string &  FS 
) [inline]

Definition at line 27 of file CPPTargetMachine.h.


Member Function Documentation

virtual bool llvm::CPPTargetMachine::WantsWholeFile (  )  const [inline, virtual]

addPassesToEmitWholeFile - This method can be implemented by targets that require having the entire module at once. This is not recommended, do not use this.

Reimplemented from llvm::TargetMachine.

Definition at line 30 of file CPPTargetMachine.h.

bool CPPTargetMachine::addPassesToEmitWholeFile ( PassManager &  PM,
raw_ostream &  Out,
CodeGenFileType  FileType,
bool  Fast 
) [virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 1990 of file CPPBackend.cpp.

References llvm::PassManager::add(), and llvm::TargetMachine::AssemblyFile.

static unsigned llvm::CPPTargetMachine::getModuleMatchQuality ( const Module &   )  [inline, static]

getModuleMatchQuality - This static method should be implemented by targets to indicate how closely they match the specified module. This is used by the LLC tool to determine which target to use when an explicit -march option is not specified. If a target returns zero, it will never be chosen without an explicit -march option.

Reimplemented from llvm::TargetMachine.

Definition at line 35 of file CPPTargetMachine.h.

virtual const TargetData* llvm::CPPTargetMachine::getTargetData (  )  const [inline, virtual]

Reimplemented from llvm::TargetMachine.

Definition at line 37 of file CPPTargetMachine.h.

References DataLayout.


Member Data Documentation

Definition at line 25 of file CPPTargetMachine.h.

Referenced by getTargetData().


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