LLVM API Documentation

Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PowerPCAsmPrinter.cpp File Reference

#include "PowerPC.h"
#include "PowerPCTargetMachine.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/Assembly/Writer.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/ValueTypes.h"
#include "llvm/Support/Mangler.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/Debug.h"
#include "llvm/Target/MRegisterInfo.h"
#include "llvm/Target/TargetInstrInfo.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringExtras.h"
#include <set>
#include "PowerPCGenAsmWriter.inc"

Include dependency graph for PowerPCAsmPrinter.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "asmprinter"

Functions

static void SwitchSection (std::ostream &OS, std::string &CurSection, const char *NewSection)
static bool isStringCompatible (const ConstantArray *CVA)
static char toOctal (int X)
static void SwitchStringSection (std::ostream &O, StringSection NewSect, StringSection &Current)
static void printAsCString (std::ostream &O, const ConstantArray *CVA)
FunctionPassllvm::createDarwinAsmPrinter (std::ostream &o, TargetMachine &tm)
FunctionPassllvm::createAIXAsmPrinter (std::ostream &o, TargetMachine &tm)


Define Documentation

#define DEBUG_TYPE   "asmprinter"
 

Definition at line 19 of file PowerPCAsmPrinter.cpp.


Function Documentation

static bool isStringCompatible const ConstantArray CVA  )  [static]
 

isStringCompatible - Can we treat the specified array as a string? Only if it is an array of ubytes or non-negative sbytes.

Definition at line 212 of file PowerPCAsmPrinter.cpp.

References llvm::Constant::getOperand(), and llvm::ConstantArray::getType().

Referenced by printAsCString().

static void printAsCString std::ostream &  O,
const ConstantArray CVA
[static]
 

getAsCString - Return the specified array as a C compatible string, only if the predicate isStringCompatible is true.

Definition at line 269 of file PowerPCAsmPrinter.cpp.

References C, llvm::User::getNumOperands(), llvm::Constant::getOperand(), isStringCompatible(), llvm::PPCII::None, SwitchStringSection(), and llvm::utostr().

static void SwitchSection std::ostream &  OS,
std::string &  CurSection,
const char *  NewSection
[static]
 

Definition at line 200 of file PowerPCAsmPrinter.cpp.

static void SwitchStringSection std::ostream &  O,
StringSection  NewSect,
StringSection &  Current
[inline, static]
 

SwitchStringSection - manage the changes required to output bytes as characters in a string vs. numeric decimal values

Definition at line 242 of file PowerPCAsmPrinter.cpp.

References llvm::PPCII::None.

Referenced by printAsCString().

static char toOctal int  X  )  [inline, static]
 

toOctal - Convert the low order bits of X into an octal digit.

Definition at line 226 of file PowerPCAsmPrinter.cpp.


Variable Documentation

Statistic EmittedInsts("asm-printer","Number of machine instrs printed") [static]