LLVM API Documentation
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/ADT/SmallString.h"
#include "llvm/ADT/Twine.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineModuleInfo.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/InlineAsm.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSubtargetInfo.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCTargetAsmParser.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/MemoryBuffer.h"
#include "llvm/Support/SourceMgr.h"
#include "llvm/Support/TargetRegistry.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
#include "llvm/Target/TargetRegisterInfo.h"
#include "llvm/Target/TargetSubtargetInfo.h"
Go to the source code of this file.
Defines | |
#define | DEBUG_TYPE "asm-printer" |
Functions | |
static void | srcMgrDiagHandler (const SMDiagnostic &Diag, void *diagInfo) |
static void | EmitMSInlineAsmStr (const char *AsmStr, const MachineInstr *MI, MachineModuleInfo *MMI, int InlineAsmVariant, AsmPrinter *AP, unsigned LocCookie, raw_ostream &OS) |
static void | EmitGCCInlineAsmStr (const char *AsmStr, const MachineInstr *MI, MachineModuleInfo *MMI, int InlineAsmVariant, int AsmPrinterVariant, AsmPrinter *AP, unsigned LocCookie, raw_ostream &OS) |
#define DEBUG_TYPE "asm-printer" |
Definition at line 40 of file AsmPrinterInlineAsm.cpp.
static void EmitGCCInlineAsmStr | ( | const char * | AsmStr, |
const MachineInstr * | MI, | ||
MachineModuleInfo * | MMI, | ||
int | InlineAsmVariant, | ||
int | AsmPrinterVariant, | ||
AsmPrinter * | AP, | ||
unsigned | LocCookie, | ||
raw_ostream & | OS | ||
) | [static] |
Definition at line 261 of file AsmPrinterInlineAsm.cpp.
References llvm::LLVMContext::emitError(), llvm::lltok::Error, llvm::StringRef::getAsInteger(), llvm::Module::getContext(), llvm::MachineOperand::getImm(), llvm::MachineOperand::getMBB(), llvm::MachineModuleInfo::getModule(), llvm::InlineAsm::getNumOperandRegisters(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::MachineBasicBlock::getSymbol(), llvm::InlineAsm::isMemKind(), llvm::MachineOperand::isMetadata(), llvm::InlineAsm::MIOp_FirstOperand, llvm::AsmPrinter::PrintAsmMemoryOperand(), llvm::AsmPrinter::PrintAsmOperand(), llvm::AsmPrinter::PrintSpecial(), llvm::report_fatal_error(), llvm::raw_string_ostream::str(), llvm::LibFunc::strchr, and llvm::raw_ostream::write().
static void EmitMSInlineAsmStr | ( | const char * | AsmStr, |
const MachineInstr * | MI, | ||
MachineModuleInfo * | MMI, | ||
int | InlineAsmVariant, | ||
AsmPrinter * | AP, | ||
unsigned | LocCookie, | ||
raw_ostream & | OS | ||
) | [static] |
Definition at line 163 of file AsmPrinterInlineAsm.cpp.
References llvm::LLVMContext::emitError(), llvm::lltok::Error, llvm::Module::getContext(), llvm::MachineOperand::getImm(), llvm::MachineModuleInfo::getModule(), llvm::InlineAsm::getNumOperandRegisters(), llvm::MachineInstr::getNumOperands(), llvm::MachineInstr::getOperand(), llvm::InlineAsm::isMemKind(), llvm::MachineOperand::isMetadata(), llvm::InlineAsm::MIOp_FirstOperand, llvm::AsmPrinter::PrintAsmMemoryOperand(), llvm::AsmPrinter::PrintAsmOperand(), llvm::report_fatal_error(), llvm::raw_string_ostream::str(), and llvm::raw_ostream::write().
static void srcMgrDiagHandler | ( | const SMDiagnostic & | Diag, |
void * | diagInfo | ||
) | [static] |
srcMgrDiagHandler - This callback is invoked when the SourceMgr for an inline asm has an error in it. diagInfo is a pointer to the SrcMgrDiagInfo struct above.
Definition at line 53 of file AsmPrinterInlineAsm.cpp.
References llvm::SMDiagnostic::getLineNo().