LLVM 23.0.0git
WebAssemblyCallLowering.cpp File Reference

This file implements the lowering of LLVM calls to machine code calls for GlobalISel. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "wasm-call-lowering"

Functions

static bool callingConvSupported (CallingConv::ID CallConv)
static unsigned extendOpFromFlags (ISD::ArgFlagsTy Flags)
static LLT getLLTForWasmMVT (MVT Ty, const DataLayout &DL)
static unsigned getWasmArgumentOpcode (MVT ArgType)
static Register buildWasmArgument (unsigned Idx, MVT ArgVT, LLT ArgLLT, MachineIRBuilder &MIRBuilder, Register Def=Register())

Detailed Description

This file implements the lowering of LLVM calls to machine code calls for GlobalISel.

Definition in file WebAssemblyCallLowering.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "wasm-call-lowering"

Definition at line 34 of file WebAssemblyCallLowering.cpp.

Function Documentation

◆ buildWasmArgument()

◆ callingConvSupported()

◆ extendOpFromFlags()

unsigned extendOpFromFlags ( ISD::ArgFlagsTy Flags)
static

Definition at line 53 of file WebAssemblyCallLowering.cpp.

◆ getLLTForWasmMVT()

◆ getWasmArgumentOpcode()

unsigned getWasmArgumentOpcode ( MVT ArgType)
static

Definition at line 198 of file WebAssemblyCallLowering.cpp.

References llvm_unreachable, and llvm::MVT::SimpleTy.

Referenced by buildWasmArgument().