LLVM 20.0.0git
Macros | Functions | Variables
WebAssemblyAsmPrinter.cpp File Reference

This file contains a printer that converts from our internal representation of machine-dependent LLVM code to the WebAssembly assembly language. More...

#include "WebAssemblyAsmPrinter.h"
#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
#include "MCTargetDesc/WebAssemblyTargetStreamer.h"
#include "TargetInfo/WebAssemblyTargetInfo.h"
#include "Utils/WebAssemblyTypeUtilities.h"
#include "WebAssemblyMCInstLower.h"
#include "WebAssemblyMachineFunctionInfo.h"
#include "WebAssemblyRegisterInfo.h"
#include "WebAssemblyRuntimeLibcallSignatures.h"
#include "WebAssemblyUtilities.h"
#include "llvm/ADT/MapVector.h"
#include "llvm/ADT/SmallSet.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/Analysis/ValueTracking.h"
#include "llvm/BinaryFormat/Wasm.h"
#include "llvm/CodeGen/Analysis.h"
#include "llvm/CodeGen/AsmPrinter.h"
#include "llvm/CodeGen/MachineConstantPool.h"
#include "llvm/CodeGen/MachineInstr.h"
#include "llvm/CodeGen/MachineModuleInfoImpls.h"
#include "llvm/IR/DataLayout.h"
#include "llvm/IR/DebugInfoMetadata.h"
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/Metadata.h"
#include "llvm/IR/Module.h"
#include "llvm/MC/MCContext.h"
#include "llvm/MC/MCSectionWasm.h"
#include "llvm/MC/MCStreamer.h"
#include "llvm/MC/MCSymbol.h"
#include "llvm/MC/MCSymbolWasm.h"
#include "llvm/MC/TargetRegistry.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/raw_ostream.h"

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "asm-printer"
 

Functions

static bool isEmscriptenInvokeName (StringRef Name)
 
static char getInvokeSig (wasm::ValType VT)
 
static std::string getEmscriptenInvokeSymbolName (wasm::WasmSignature *Sig)
 
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyAsmPrinter ()
 

Variables

cl::opt< boolWasmKeepRegisters
 

Detailed Description

This file contains a printer that converts from our internal representation of machine-dependent LLVM code to the WebAssembly assembly language.

Definition in file WebAssemblyAsmPrinter.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "asm-printer"

Definition at line 52 of file WebAssemblyAsmPrinter.cpp.

Function Documentation

◆ getEmscriptenInvokeSymbolName()

static std::string getEmscriptenInvokeSymbolName ( wasm::WasmSignature Sig)
static

◆ getInvokeSig()

static char getInvokeSig ( wasm::ValType  VT)
static

◆ isEmscriptenInvokeName()

static bool isEmscriptenInvokeName ( StringRef  Name)
static

Definition at line 103 of file WebAssemblyAsmPrinter.cpp.

References Name.

Referenced by llvm::WebAssemblyAsmPrinter::getMCSymbolForFunction().

◆ LLVMInitializeWebAssemblyAsmPrinter()

LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyAsmPrinter ( )

Variable Documentation

◆ WasmKeepRegisters

cl::opt<bool> WasmKeepRegisters
extern