LLVM 20.0.0git
|
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< bool > | WasmKeepRegisters |
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.
#define DEBUG_TYPE "asm-printer" |
Definition at line 52 of file WebAssemblyAsmPrinter.cpp.
|
static |
Definition at line 136 of file WebAssemblyAsmPrinter.cpp.
References assert(), llvm::SmallVectorBase< Size_T >::empty(), getInvokeSig(), I, llvm::wasm::WasmSignature::Params, llvm::wasm::WasmSignature::Returns, and llvm::SmallVectorBase< Size_T >::size().
Referenced by llvm::WebAssemblyAsmPrinter::getMCSymbolForFunction().
|
static |
Definition at line 111 of file WebAssemblyAsmPrinter.cpp.
References llvm::wasm::EXNREF, llvm::wasm::EXTERNREF, llvm::wasm::F32, llvm::wasm::F64, llvm::wasm::FUNCREF, llvm::wasm::I32, llvm::wasm::I64, llvm_unreachable, and llvm::wasm::V128.
Referenced by getEmscriptenInvokeSymbolName().
Definition at line 103 of file WebAssemblyAsmPrinter.cpp.
References Name.
Referenced by llvm::WebAssemblyAsmPrinter::getMCSymbolForFunction().
LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyAsmPrinter | ( | ) |
Definition at line 756 of file WebAssemblyAsmPrinter.cpp.
References llvm::getTheWebAssemblyTarget32(), llvm::getTheWebAssemblyTarget64(), X, and Y.
Referenced by llvm::WebAssemblyMCInstLower::lower().