LLVM API Documentation

XCoreAsmPrinter.cpp File Reference

#include "XCore.h"
#include "XCoreInstrInfo.h"
#include "XCoreSubtarget.h"
#include "XCoreTargetMachine.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/DwarfWriter.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/Target/TargetAsmInfo.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Support/Mangler.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/MathExtras.h"
#include "llvm/Support/raw_ostream.h"
#include <algorithm>
#include <cctype>
#include "XCoreGenAsmWriter.inc"

Include dependency graph for XCoreAsmPrinter.cpp:

Go to the source code of this file.

Defines

#define DEBUG_TYPE   "asm-printer"

Functions

 STATISTIC (EmittedInsts,"Number of machine instrs printed")
FunctionPass * llvm::createXCoreCodePrinterPass (raw_ostream &OS, XCoreTargetMachine &TM)
static void PrintEscapedString (const std::string &Str, raw_ostream &Out)

Variables

static cl::opt< std::string > FileDirective ("xcore-file-directive", cl::Optional, cl::desc("Output a file directive into the assembly file"), cl::Hidden, cl::value_desc("filename"), cl::init(""))
static cl::opt< unsigned > MaxThreads ("xcore-max-threads", cl::Optional, cl::desc("Maximum number of threads (for emulation thread-local storage)"), cl::Hidden, cl::value_desc("number"), cl::init(8))


Define Documentation

#define DEBUG_TYPE   "asm-printer"

Definition at line 15 of file XCoreAsmPrinter.cpp.


Function Documentation

static void PrintEscapedString ( const std::string &  Str,
raw_ostream &  Out 
) [static]

STATISTIC ( EmittedInsts  ,
"Number of machine instrs printed"   
)


Variable Documentation

Definition at line 62 of file XCoreAsmPrinter.cpp.

cl::opt<std::string> FileDirective("xcore-file-directive", cl::Optional, cl::desc("Output a file directive into the assembly file"), cl::Hidden, cl::value_desc("filename"), cl::init("")) [static]

cl::opt<unsigned> MaxThreads("xcore-max-threads", cl::Optional, cl::desc("Maximum number of threads (for emulation thread-local storage)"), cl::Hidden, cl::value_desc("number"), cl::init(8)) [static]

Definition at line 63 of file XCoreAsmPrinter.cpp.