LLVM API Documentation

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

#include <CPPTargetMachine.h>

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

Public Member Functions

 CPPTargetMachine (const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL)
 
virtual bool addPassesToEmitFile (PassManagerBase &PM, formatted_raw_ostream &Out, CodeGenFileType FileType, bool DisableVerify, AnalysisID StartAfter, AnalysisID StopAfter)
 
virtual const DataLayoutgetDataLayout () const
 
- Public Member Functions inherited from llvm::TargetMachine
virtual ~TargetMachine ()
 
const TargetgetTarget () const
 
const StringRef getTargetTriple () const
 
const StringRef getTargetCPU () const
 
const StringRef getTargetFeatureString () const
 
virtual const TargetSubtargetInfogetSubtargetImpl () const
 
void resetTargetOptions (const MachineFunction *MF) const
 Reset the target options based on the function's attributes. More...
 
virtual const TargetInstrInfogetInstrInfo () const
 
virtual const TargetFrameLoweringgetFrameLowering () const
 
virtual const TargetLoweringgetTargetLowering () const
 
virtual const
TargetSelectionDAGInfo
getSelectionDAGInfo () const
 
const MCAsmInfogetMCAsmInfo () const
 
template<typename STC >
const STC & getSubtarget () const
 
virtual const TargetRegisterInfogetRegisterInfo () const
 
virtual const TargetIntrinsicInfogetIntrinsicInfo () const
 
virtual TargetJITInfogetJITInfo ()
 
virtual const InstrItineraryDatagetInstrItineraryData () const
 
bool hasMCRelaxAll () const
 
void setMCRelaxAll (bool Value)
 
bool hasMCSaveTempLabels () const
 
void setMCSaveTempLabels (bool Value)
 
bool hasMCNoExecStack () const
 hasMCNoExecStack - Check whether an executable stack is not needed. More...
 
void setMCNoExecStack (bool Value)
 setMCNoExecStack - Set whether an executabel stack is not needed. More...
 
bool hasMCUseLoc () const
 hasMCUseLoc - Check whether we should use dwarf's .loc directive. More...
 
void setMCUseLoc (bool Value)
 setMCUseLoc - Set whether all we should use dwarf's .loc directive. More...
 
bool hasMCUseCFI () const
 hasMCUseCFI - Check whether we should use dwarf's .cfi_* directives. More...
 
void setMCUseCFI (bool Value)
 setMCUseCFI - Set whether all we should use dwarf's .cfi_* directives. More...
 
bool hasMCUseDwarfDirectory () const
 
void setMCUseDwarfDirectory (bool Value)
 
Reloc::Model getRelocationModel () const
 
CodeModel::Model getCodeModel () const
 
TLSModel::Model getTLSModel (const GlobalValue *GV) const
 
CodeGenOpt::Level getOptLevel () const
 
void setOptLevel (CodeGenOpt::Level Level) const
 Overrides the optimization level. More...
 
void setFastISel (bool Enable)
 
bool shouldPrintMachineCode () const
 
virtual void addAnalysisPasses (PassManagerBase &)
 Register analysis passes for this target with a pass manager. More...
 
virtual bool addPassesToEmitMachineCode (PassManagerBase &, JITCodeEmitter &, bool=true)
 
virtual bool addPassesToEmitMC (PassManagerBase &, MCContext *&, raw_ostream &, bool=true)
 

Additional Inherited Members

- Public Types inherited from llvm::TargetMachine
enum  CodeGenFileType { CGFT_AssemblyFile, CGFT_ObjectFile, CGFT_Null }
 
- Static Public Member Functions inherited from llvm::TargetMachine
static bool getAsmVerbosityDefault ()
 
static void setAsmVerbosityDefault (bool)
 
static bool getDataSections ()
 
static bool getFunctionSections ()
 
static void setDataSections (bool)
 setDataSections - Set if the data are emit into separate sections. More...
 
static void setFunctionSections (bool)
 
- Public Attributes inherited from llvm::TargetMachine
TargetOptions Options
 
- Protected Member Functions inherited from llvm::TargetMachine
 TargetMachine (const Target &T, StringRef TargetTriple, StringRef CPU, StringRef FS, const TargetOptions &Options)
 
- Protected Attributes inherited from llvm::TargetMachine
const TargetTheTarget
 TheTarget - The Target that this machine was created for. More...
 
std::string TargetTriple
 
std::string TargetCPU
 
std::string TargetFS
 
MCCodeGenInfoCodeGenInfo
 
const MCAsmInfoAsmInfo
 
unsigned MCRelaxAll: 1
 
unsigned MCNoExecStack: 1
 
unsigned MCSaveTempLabels: 1
 
unsigned MCUseLoc: 1
 
unsigned MCUseCFI: 1
 
unsigned MCUseDwarfDirectory: 1
 

Detailed Description

Definition at line 24 of file CPPTargetMachine.h.

Constructor & Destructor Documentation

llvm::CPPTargetMachine::CPPTargetMachine ( const Target T,
StringRef  TT,
StringRef  CPU,
StringRef  FS,
const TargetOptions Options,
Reloc::Model  RM,
CodeModel::Model  CM,
CodeGenOpt::Level  OL 
)
inline

Definition at line 25 of file CPPTargetMachine.h.

Member Function Documentation

bool CPPTargetMachine::addPassesToEmitFile ( PassManagerBase &  ,
formatted_raw_ostream ,
CodeGenFileType  ,
bool  ,
AnalysisID  ,
AnalysisID   
)
virtual

addPassesToEmitFile - Add passes to the specified pass manager to get the specified file emitted. Typically this will involve several steps of code generation. This method should return true if emission of this file type is not supported, or false on success.

Reimplemented from llvm::TargetMachine.

Definition at line 2118 of file CPPBackend.cpp.

References llvm::TargetMachine::CGFT_AssemblyFile.

virtual const DataLayout* llvm::CPPTargetMachine::getDataLayout ( ) const
inlinevirtual

Reimplemented from llvm::TargetMachine.

Definition at line 38 of file CPPTargetMachine.h.


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