LLVM API Documentation

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

X86AsmPrinter.cpp File Reference

#include "X86.h"
#include "X86TargetMachine.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/ValueTypes.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Support/Mangler.h"
#include "llvm/ADT/Statistic.h"
#include "llvm/Support/CommandLine.h"
#include "X86GenIntelAsmWriter.inc"
#include "X86GenATTAsmWriter.inc"

Include dependency graph for X86AsmPrinter.cpp:

Go to the source code of this file.

Functions

static bool isScale (const MachineOperand &MO)
static bool isMem (const MachineInstr *MI, unsigned Op)
static void SwitchSection (std::ostream &OS, std::string &CurSection, const char *NewSection)
FunctionPassllvm::createX86CodePrinterPass (std::ostream &o, TargetMachine &tm)


Function Documentation

static bool isMem const MachineInstr MI,
unsigned  Op
[static]
 

Definition at line 59 of file X86AsmPrinter.cpp.

References llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineOperand::isConstantPoolIndex(), llvm::MachineOperand::isFrameIndex(), llvm::MachineOperand::isGlobalAddress(), llvm::MachineOperand::isImmediate(), llvm::MachineOperand::isRegister(), and isScale().

static bool isScale const MachineOperand MO  )  [static]
 

Definition at line 53 of file X86AsmPrinter.cpp.

References llvm::MachineOperand::getImmedValue(), and llvm::MachineOperand::isImmediate().

Referenced by isMem().

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

Definition at line 71 of file X86AsmPrinter.cpp.


Variable Documentation

cl::opt<AsmWriterFlavor> AsmWriterFlavor("x86-asm-syntax", cl::desc("Choose style of code to emit from X86 backend:"), cl::values(clEnumVal(att," Emit AT&T-style assembly"),clEnumVal(intel," Emit Intel-style assembly"),clEnumValEnd), cl::init(att)) [static]
 

Referenced by llvm::createX86CodePrinterPass().

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