LLVM 23.0.0git
WebAssemblyMCInstLower.cpp File Reference

This file contains code to lower WebAssembly MachineInstrs to their corresponding MCInst records. More...

Go to the source code of this file.

Functions

static std::optional< boolgetWasmGlobalMutable (const GlobalValue *Global, const Function &CurrentFunc, const DiagnosticLocation &DL)
static void removeRegisterOperands (const MachineInstr *MI, MCInst &OutMI)
static void getFunctionReturns (const MachineInstr *MI, SmallVectorImpl< wasm::ValType > &Returns)

Variables

static cl::opt< boolWasmKeepRegisters ("wasm-keep-registers", cl::Hidden, cl::desc("WebAssembly: output stack registers in" " instruction output for test purposes only."), cl::init(false))

Detailed Description

This file contains code to lower WebAssembly MachineInstrs to their corresponding MCInst records.

Definition in file WebAssemblyMCInstLower.cpp.

Function Documentation

◆ getFunctionReturns()

void getFunctionReturns ( const MachineInstr * MI,
SmallVectorImpl< wasm::ValType > & Returns )
static

◆ getWasmGlobalMutable()

std::optional< bool > getWasmGlobalMutable ( const GlobalValue * Global,
const Function & CurrentFunc,
const DiagnosticLocation & DL )
static

◆ removeRegisterOperands()

Variable Documentation

◆ WasmKeepRegisters

cl::opt< bool > WasmKeepRegisters("wasm-keep-registers", cl::Hidden, cl::desc("WebAssembly: output stack registers in" " instruction output for test purposes only."), cl::init(false)) ( "wasm-keep-registers" ,
cl::Hidden ,
cl::desc("WebAssembly: output stack registers in" " instruction output for test purposes only.") ,
cl::init(false)  )
static