LLVM API Documentation

Public Types | Public Member Functions
llvm::PPCTargetMachine Class Reference

#include <PPCTargetMachine.h>

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

List of all members.

Public Types

enum  PPCABI { PPC_ABI_UNKNOWN, PPC_ABI_ELFv1, PPC_ABI_ELFv2 }

Public Member Functions

 PPCTargetMachine (const Target &T, StringRef TT, StringRef CPU, StringRef FS, const TargetOptions &Options, Reloc::Model RM, CodeModel::Model CM, CodeGenOpt::Level OL)
 ~PPCTargetMachine () override
const DataLayoutgetDataLayout () const override
const PPCSubtargetgetSubtargetImpl () const override
const PPCSubtargetgetSubtargetImpl (const Function &F) const override
TargetPassConfigcreatePassConfig (PassManagerBase &PM) override
TargetIRAnalysis getTargetIRAnalysis () override
 Get a TargetIRAnalysis implementation for the target.
TargetLoweringObjectFilegetObjFileLowering () const override
bool isELFv2ABI () const
bool isPPC64 () const

Detailed Description

PPCTargetMachine - Common code between 32-bit and 64-bit PowerPC targets.

Definition at line 26 of file PPCTargetMachine.h.


Member Enumeration Documentation

Enumerator:
PPC_ABI_UNKNOWN 
PPC_ABI_ELFv1 
PPC_ABI_ELFv2 

Definition at line 28 of file PPCTargetMachine.h.


Constructor & Destructor Documentation

Definition at line 159 of file PPCTargetMachine.cpp.

References llvm::LLVMTargetMachine::initAsmInfo().

Definition at line 171 of file PPCTargetMachine.cpp.


Member Function Documentation

TargetPassConfig * PPCTargetMachine::createPassConfig ( PassManagerBase &  PM) [override, virtual]

createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.

createPassConfig - Create a pass configuration object to be used by addPassToEmitX methods for generating a pipeline of CodeGen passes.

Targets may override this to extend TargetPassConfig.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 241 of file PPCTargetMachine.cpp.

const DataLayout* llvm::PPCTargetMachine::getDataLayout ( ) const [inline, override, virtual]

getDataLayout - This method returns a pointer to the DataLayout for the target. It should be unchanging for every subtarget.

Reimplemented from llvm::TargetMachine.

Definition at line 45 of file PPCTargetMachine.h.

Reimplemented from llvm::TargetMachine.

Definition at line 54 of file PPCTargetMachine.h.

const PPCSubtarget* llvm::PPCTargetMachine::getSubtargetImpl ( ) const [inline, override, virtual]

getSubtargetImpl - virtual method implemented by subclasses that returns a reference to that target's TargetSubtargetInfo-derived member variable.

Reimplemented from llvm::TargetMachine.

Definition at line 46 of file PPCTargetMachine.h.

const PPCSubtarget * PPCTargetMachine::getSubtargetImpl ( const Function F) const [override, virtual]

Get a TargetIRAnalysis implementation for the target.

This analysis will produce a TTI result which uses the common code generator to answer queries about the IR.

Reimplemented from llvm::LLVMTargetMachine.

Definition at line 322 of file PPCTargetMachine.cpp.

References F().

Definition at line 57 of file PPCTargetMachine.h.

References PPC_ABI_ELFv2.

Referenced by llvm::PPCSubtarget::isELFv2ABI().


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