LLVM  9.0.0svn
Functions
PPCMCInstLower.cpp File Reference
#include "MCTargetDesc/PPCMCExpr.h"
#include "PPC.h"
#include "PPCSubtarget.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
#include "llvm/CodeGen/TargetLowering.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/GlobalValue.h"
#include "llvm/IR/Mangler.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/Target/TargetLoweringObjectFile.h"
Include dependency graph for PPCMCInstLower.cpp:

Go to the source code of this file.

Functions

static MachineModuleInfoMachOgetMachOMMI (AsmPrinter &AP)
 
static MCSymbolGetSymbolFromOperand (const MachineOperand &MO, AsmPrinter &AP)
 
static MCOperand GetSymbolRef (const MachineOperand &MO, const MCSymbol *Symbol, AsmPrinter &Printer, bool isDarwin)
 

Function Documentation

◆ getMachOMMI()

static MachineModuleInfoMachO& getMachOMMI ( AsmPrinter AP)
static

◆ GetSymbolFromOperand()

static MCSymbol* GetSymbolFromOperand ( const MachineOperand MO,
AsmPrinter AP 
)
static

◆ GetSymbolRef()

static MCOperand GetSymbolRef ( const MachineOperand MO,
const MCSymbol Symbol,
AsmPrinter Printer,
bool  isDarwin 
)
static

Definition at line 81 of file PPCMCInstLower.cpp.

References llvm::sys::fs::access(), llvm::PICLevel::BigPIC, llvm::MCConstantExpr::create(), llvm::MCSymbolRefExpr::create(), llvm::MCBinaryExpr::createAdd(), llvm::MCOperand::createExpr(), llvm::PPCMCExpr::createHa(), llvm::PPCMCExpr::createLo(), llvm::MCBinaryExpr::createSub(), llvm::MachineFunction::getFunction(), llvm::MachineOperand::getOffset(), llvm::MachineBasicBlock::getParent(), llvm::MachineOperand::getParent(), llvm::MachineInstr::getParent(), llvm::GlobalValue::getParent(), llvm::MachineFunction::getPICBaseSymbol(), llvm::Module::getPICLevel(), llvm::MachineFunction::getSubtarget(), llvm::MachineOperand::getTargetFlags(), llvm::MachineOperand::isJTI(), llvm::TargetMachine::isPositionIndependent(), llvm::PPCSubtarget::isSecurePlt(), llvm::PPCII::MO_ACCESS_MASK, llvm::PPCII::MO_DTPREL_LO, llvm::PPCII::MO_HA, llvm::PPCII::MO_LO, llvm::PPCII::MO_PIC_FLAG, llvm::PPCII::MO_PLT, llvm::PPCII::MO_TLS, llvm::PPCII::MO_TLSLD_LO, llvm::PPCII::MO_TOC_LO, llvm::PPCII::MO_TPREL_HA, llvm::PPCII::MO_TPREL_LO, llvm::AsmPrinter::OutContext, llvm::SystemZISD::TM, llvm::AsmPrinter::TM, llvm::MCSymbolRefExpr::VK_None, llvm::MCSymbolRefExpr::VK_PLT, llvm::MCSymbolRefExpr::VK_PPC_DTPREL_LO, llvm::MCSymbolRefExpr::VK_PPC_GOT_TLSLD_LO, llvm::MCSymbolRefExpr::VK_PPC_TLS, llvm::MCSymbolRefExpr::VK_PPC_TOC_LO, llvm::MCSymbolRefExpr::VK_PPC_TPREL_HA, and llvm::MCSymbolRefExpr::VK_PPC_TPREL_LO.

Referenced by llvm::LowerPPCMachineOperandToMCOperand().