LLVM API Documentation
#include "PPC.h"#include "InstPrinter/PPCInstPrinter.h"#include "PPCMachineFunctionInfo.h"#include "MCTargetDesc/PPCMCExpr.h"#include "MCTargetDesc/PPCPredicates.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/CodeGen/AsmPrinter.h"#include "llvm/CodeGen/MachineConstantPool.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstr.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineModuleInfoImpls.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/CodeGen/TargetLoweringObjectFileImpl.h"#include "llvm/IR/Constants.h"#include "llvm/IR/DebugInfo.h"#include "llvm/IR/DerivedTypes.h"#include "llvm/IR/Mangler.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/TargetInstrInfo.h"#include "llvm/Target/TargetOptions.h"#include "llvm/Target/TargetRegisterInfo.h"
Go to the source code of this file.
Defines | |
| #define | DEBUG_TYPE "asmprinter" |
Functions | |
| static const char * | stripRegisterPrefix (const char *RegName) |
| static MCSymbol * | GetLazyPtr (MCSymbol *Sym, MCContext &Ctx) |
| static MCSymbol * | GetAnonSym (MCSymbol *Sym, MCContext &Ctx) |
| static AsmPrinter * | createPPCAsmPrinterPass (TargetMachine &tm, MCStreamer &Streamer) |
| void | LLVMInitializePowerPCAsmPrinter () |
| #define DEBUG_TYPE "asmprinter" |
Definition at line 64 of file PPCAsmPrinter.cpp.
| 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 1397 of file PPCAsmPrinter.cpp.
References llvm::TargetMachine::getSubtarget(), and llvm::PPCSubtarget::isDarwin().
Referenced by LLVMInitializePowerPCAsmPrinter().
| static MCSymbol* GetAnonSym | ( | MCSymbol * | Sym, |
| MCContext & | Ctx | ||
| ) | [static] |
Definition at line 1157 of file PPCAsmPrinter.cpp.
References llvm::MCSymbol::getName(), and llvm::MCContext::GetOrCreateSymbol().
| static MCSymbol* GetLazyPtr | ( | MCSymbol * | Sym, |
| MCContext & | Ctx | ||
| ) | [static] |
Definition at line 1151 of file PPCAsmPrinter.cpp.
References llvm::MCSymbol::getName(), llvm::MCContext::GetOrCreateSymbol(), llvm::StringRef::size(), and llvm::StringRef::substr().
| void LLVMInitializePowerPCAsmPrinter | ( | ) |
Definition at line 1407 of file PPCAsmPrinter.cpp.
References createPPCAsmPrinterPass(), llvm::TargetRegistry::RegisterAsmPrinter(), llvm::ThePPC32Target, llvm::ThePPC64LETarget, and llvm::ThePPC64Target.
| 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 134 of file PPCAsmPrinter.cpp.