|
LLVM 23.0.0git
|
This file implements the lowering of LLVM calls to machine code calls for GlobalISel. More...
#include "WebAssemblyCallLowering.h"#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"#include "Utils/WasmAddressSpaces.h"#include "WebAssemblyISelLowering.h"#include "WebAssemblyMachineFunctionInfo.h"#include "WebAssemblyRegisterInfo.h"#include "WebAssemblySubtarget.h"#include "WebAssemblyUtilities.h"#include "llvm/CodeGen/Analysis.h"#include "llvm/CodeGen/FunctionLoweringInfo.h"#include "llvm/CodeGen/GlobalISel/MachineIRBuilder.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/RegisterBankInfo.h"#include "llvm/IR/DataLayout.h"#include "llvm/IR/DebugLoc.h"#include "llvm/IR/Value.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "wasm-call-lowering" |
Functions | |
| static bool | callingConvSupported (CallingConv::ID CallConv) |
| static unsigned | getWASMArgumentOpcode (MVT ArgType) |
| static LLT | getLLTForWasmMVT (MVT Ty, const DataLayout &DL) |
This file implements the lowering of LLVM calls to machine code calls for GlobalISel.
Definition in file WebAssemblyCallLowering.cpp.
| #define DEBUG_TYPE "wasm-call-lowering" |
Definition at line 32 of file WebAssemblyCallLowering.cpp.
|
static |
Definition at line 37 of file WebAssemblyCallLowering.cpp.
References llvm::CallingConv::C, llvm::CallingConv::Cold, llvm::CallingConv::CXX_FAST_TLS, llvm::CallingConv::Fast, llvm::CallingConv::PreserveAll, llvm::CallingConv::PreserveMost, llvm::CallingConv::Swift, and llvm::CallingConv::WASM_EmscriptenInvoke.
Referenced by llvm::WebAssemblyCallLowering::lowerFormalArguments().
|
static |
Definition at line 112 of file WebAssemblyCallLowering.cpp.
References DL, llvm::getLLTForMVT(), llvm::LLT::pointer(), llvm::WebAssembly::WASM_ADDRESS_SPACE_EXTERNREF, and llvm::WebAssembly::WASM_ADDRESS_SPACE_FUNCREF.
Referenced by llvm::WebAssemblyCallLowering::lowerFormalArguments().
Definition at line 74 of file WebAssemblyCallLowering.cpp.
References llvm_unreachable, and llvm::MVT::SimpleTy.
Referenced by llvm::WebAssemblyCallLowering::lowerFormalArguments().