LLVM API Documentation
#include "X86ATTAsmPrinter.h"#include "X86.h"#include "X86COFF.h"#include "X86MachineFunctionInfo.h"#include "X86TargetMachine.h"#include "X86TargetAsmInfo.h"#include "llvm/CallingConv.h"#include "llvm/DerivedTypes.h"#include "llvm/Module.h"#include "llvm/Type.h"#include "llvm/ADT/Statistic.h"#include "llvm/ADT/StringExtras.h"#include "llvm/CodeGen/MachineJumpTableInfo.h"#include "llvm/Support/Mangler.h"#include "llvm/Support/raw_ostream.h"#include "llvm/Target/TargetAsmInfo.h"#include "llvm/Target/TargetOptions.h"#include "X86GenAsmWriter.inc"

Go to the source code of this file.
Defines | |
| #define | DEBUG_TYPE "asm-printer" |
Functions | |
| STATISTIC (EmittedInsts,"Number of machine instrs printed") | |
| static std::string | getPICLabelString (unsigned FnNum, const TargetAsmInfo *TAI, const X86Subtarget *Subtarget) |
| static X86MachineFunctionInfo | calculateFunctionInfo (const Function *F, const TargetData *TD) |
| static void | PrintUnmangledNameSafely (const Value *V, raw_ostream &OS) |
| static bool | shouldPrintGOT (TargetMachine &TM, const X86Subtarget *ST) |
| static bool | shouldPrintPLT (TargetMachine &TM, const X86Subtarget *ST) |
| static bool | shouldPrintStub (TargetMachine &TM, const X86Subtarget *ST) |
| #define DEBUG_TYPE "asm-printer" |
Definition at line 16 of file X86ATTAsmPrinter.cpp.
| static X86MachineFunctionInfo calculateFunctionInfo | ( | const Function * | F, | |
| const TargetData * | TD | |||
| ) | [static] |
Definition at line 52 of file X86ATTAsmPrinter.cpp.
References AI, llvm::Function::arg_begin(), llvm::Function::arg_end(), llvm::Attribute::ByVal, llvm::FastCall, llvm::TargetData::getABITypeSize(), llvm::Function::getCallingConv(), llvm::AllocationInst::getType(), llvm::Function::paramHasAttr(), llvm::X86MachineFunctionInfo::setBytesToPopOnReturn(), llvm::X86MachineFunctionInfo::setDecorationStyle(), llvm::StdCall, Ty, llvm::CallingConv::X86_FastCall, and llvm::CallingConv::X86_StdCall.
Referenced by llvm::X86IntelAsmPrinter::decorateName(), and llvm::X86ATTAsmPrinter::decorateName().
| static std::string getPICLabelString | ( | unsigned | FnNum, | |
| const TargetAsmInfo * | TAI, | |||
| const X86Subtarget * | Subtarget | |||
| ) | [static] |
Definition at line 38 of file X86ATTAsmPrinter.cpp.
References llvm::X86Subtarget::isTargetDarwin(), llvm::X86Subtarget::isTargetELF(), and llvm::utostr_32().
Referenced by llvm::X86ATTAsmPrinter::printOperand(), llvm::X86ATTAsmPrinter::printPICJumpTableSetLabel(), and llvm::X86ATTAsmPrinter::printPICLabel().
| static void PrintUnmangledNameSafely | ( | const Value * | V, | |
| raw_ostream & | OS | |||
| ) | [static] |
PrintUnmangledNameSafely - Print out the printable characters in the name. Don't print things like
or .
Definition at line 88 of file X86ATTAsmPrinter.cpp.
References E, llvm::Value::getNameLen(), llvm::Value::getNameStart(), and Name.
| static bool shouldPrintGOT | ( | TargetMachine & | TM, | |
| const X86Subtarget * | ST | |||
| ) | [inline, static] |
Definition at line 274 of file X86ATTAsmPrinter.cpp.
References llvm::TargetMachine::getRelocationModel(), llvm::X86Subtarget::isPICStyleGOT(), and llvm::Reloc::PIC_.
Referenced by llvm::X86ATTAsmPrinter::printOperand().
| static bool shouldPrintPLT | ( | TargetMachine & | TM, | |
| const X86Subtarget * | ST | |||
| ) | [inline, static] |
Definition at line 278 of file X86ATTAsmPrinter.cpp.
References llvm::TargetMachine::getRelocationModel(), llvm::X86Subtarget::isPICStyleGOT(), llvm::X86Subtarget::isPICStyleRIPRel(), llvm::X86Subtarget::isTargetELF(), and llvm::Reloc::PIC_.
Referenced by llvm::X86ATTAsmPrinter::printOperand().
| static bool shouldPrintStub | ( | TargetMachine & | TM, | |
| const X86Subtarget * | ST | |||
| ) | [inline, static] |
Definition at line 283 of file X86ATTAsmPrinter.cpp.
References llvm::TargetMachine::getRelocationModel(), llvm::X86Subtarget::isPICStyleStub(), and llvm::Reloc::Static.
Referenced by llvm::X86ATTAsmPrinter::printOperand().
| STATISTIC | ( | EmittedInsts | , | |
| "Number of machine instrs printed" | ||||
| ) |
This web site is hosted by the Computer Science Department at the University of Illinois at Urbana-Champaign.