LLVM: lib/Target/WebAssembly/MCTargetDesc/WebAssemblyInstPrinter.cpp File Reference (original) (raw)

Print MCInst instructions to wasm format. More...

#include "[MCTargetDesc/WebAssemblyInstPrinter.h](WebAssemblyInstPrinter%5F8h%5Fsource.html)"
#include "[MCTargetDesc/WebAssemblyMCAsmInfo.h](WebAssemblyMCAsmInfo%5F8h%5Fsource.html)"
#include "[MCTargetDesc/WebAssemblyMCTargetDesc.h](WebAssemblyMCTargetDesc%5F8h%5Fsource.html)"
#include "[MCTargetDesc/WebAssemblyMCTypeUtilities.h](WebAssemblyMCTypeUtilities%5F8h%5Fsource.html)"
#include "[llvm/ADT/APFloat.h](APFloat%5F8h%5Fsource.html)"
#include "[llvm/ADT/SmallSet.h](SmallSet%5F8h%5Fsource.html)"
#include "[llvm/ADT/StringExtras.h](StringExtras%5F8h%5Fsource.html)"
#include "[llvm/MC/MCAsmInfo.h](MCAsmInfo%5F8h%5Fsource.html)"
#include "[llvm/MC/MCExpr.h](MCExpr%5F8h%5Fsource.html)"
#include "[llvm/MC/MCInst.h](MCInst%5F8h%5Fsource.html)"
#include "[llvm/MC/MCInstrInfo.h](MCInstrInfo%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSubtargetInfo.h](MCSubtargetInfo%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSymbol.h](MCSymbol%5F8h%5Fsource.html)"
#include "[llvm/MC/MCSymbolWasm.h](MCSymbolWasm%5F8h%5Fsource.html)"
#include "[llvm/Support/Casting.h](Casting%5F8h%5Fsource.html)"
#include "[llvm/Support/ErrorHandling.h](llvm%5F2Support%5F2ErrorHandling%5F8h%5Fsource.html)"
#include "WebAssemblyGenAsmWriter.inc"

Go to the source code of this file.

Macros
#define DEBUG_TYPE "asm-printer"
Functions
static std::string toString (const APFloat &FP)

Detailed Description

Print MCInst instructions to wasm format.

Definition in file WebAssemblyInstPrinter.cpp.

Macro Definition Documentation

DEBUG_TYPE

#define DEBUG_TYPE "asm-printer"

Definition at line 32 of file WebAssemblyInstPrinter.cpp.

Function Documentation

toString()

std::string toString ( const APFloat & FP) static

Definition at line 291 of file WebAssemblyInstPrinter.cpp.

References assert(), FP, llvm::APInt::getBitWidth(), llvm::APFloat::getQNaN(), llvm::APInt::getZExtValue(), llvm::APInt::isNegative(), llvm::APFloatBase::rmNearestTiesToEven, and llvm::utohexstr().