LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros | Functions
PPCAsmPrinter.cpp File Reference
#include "PPC.h"
#include "InstPrinter/PPCInstPrinter.h"
#include "MCTargetDesc/PPCPredicates.h"
#include "MCTargetDesc/PPCMCExpr.h"
#include "PPCSubtarget.h"
#include "PPCTargetMachine.h"
#include "PPCTargetStreamer.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"
#include "llvm/DebugInfo.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DerivedTypes.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCExpr.h"
#include "llvm/MC/MCInst.h"
#include "llvm/MC/MCInstBuilder.h"
#include "llvm/MC/MCSectionELF.h"
#include "llvm/MC/MCSectionMachO.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ELF.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/Mangler.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/Target/TargetOptions.h"
#include "llvm/Target/TargetRegisterInfo.h"
Include dependency graph for PPCAsmPrinter.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "asmprinter"
 

Functions

static const char * stripRegisterPrefix (const char *RegName)
 
static MCSymbolGetLazyPtr (MCSymbol *Sym, MCContext &Ctx)
 
static MCSymbolGetAnonSym (MCSymbol *Sym, MCContext &Ctx)
 
static AsmPrintercreatePPCAsmPrinterPass (TargetMachine &tm, MCStreamer &Streamer)
 
void LLVMInitializePowerPCAsmPrinter ()
 

Macro Definition Documentation

#define DEBUG_TYPE   "asmprinter"

Definition at line 19 of file PPCAsmPrinter.cpp.

Function Documentation

static AsmPrinter* createPPCAsmPrinterPass ( TargetMachine tm,
MCStreamer Streamer 
)
static

createPPCAsmPrinterPass - Returns a pass that prints the PPC assembly code for a MachineFunction to the given output stream, in a format that the Darwin assembler can deal with.

Definition at line 1137 of file PPCAsmPrinter.cpp.

References llvm::TargetMachine::getSubtarget(), and llvm::PPCSubtarget::isDarwin().

Referenced by LLVMInitializePowerPCAsmPrinter().

static MCSymbol* GetAnonSym ( MCSymbol Sym,
MCContext Ctx 
)
static
static MCSymbol* GetLazyPtr ( MCSymbol Sym,
MCContext Ctx 
)
static
void LLVMInitializePowerPCAsmPrinter ( )
static const char* stripRegisterPrefix ( const char *  RegName)
static

stripRegisterPrefix - This method strips the character prefix from a register name so that only the number is left. Used by for linux asm.

Definition at line 129 of file PPCAsmPrinter.cpp.