LLVM API Documentation

Defines | Functions
AsmPrinterInlineAsm.cpp File Reference
#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"
Include dependency graph for AsmPrinterInlineAsm.cpp:

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 Documentation

#define DEBUG_TYPE   "asm-printer"

Definition at line 40 of file AsmPrinterInlineAsm.cpp.


Function Documentation

static void EmitGCCInlineAsmStr ( const char *  AsmStr,
const MachineInstr MI,
MachineModuleInfo MMI,
int  InlineAsmVariant,
int  AsmPrinterVariant,
AsmPrinter AP,
unsigned  LocCookie,
raw_ostream OS 
) [static]
static void EmitMSInlineAsmStr ( const char *  AsmStr,
const MachineInstr MI,
MachineModuleInfo MMI,
int  InlineAsmVariant,
AsmPrinter AP,
unsigned  LocCookie,
raw_ostream OS 
) [static]
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().