|
LLVM 24.0.0git
|
Some information in MC lowering / asm printing gets generated as instructions get emitted, but may be necessary at the start, such as for .globaltype declarations. More...
#include "WebAssembly.h"#include "WebAssemblyUtilities.h"#include "llvm/CodeGen/MachineFrameInfo.h"#include "llvm/CodeGen/MachineFunction.h"#include "llvm/CodeGen/MachineFunctionAnalysis.h"#include "llvm/CodeGen/MachineModuleInfo.h"#include "llvm/CodeGen/MachineModuleInfoImpls.h"#include "llvm/CodeGen/MachinePassManager.h"#include "llvm/CodeGen/Passes.h"#include "llvm/IR/Analysis.h"#include "llvm/IR/Module.h"#include "llvm/IR/PassManager.h"#include "llvm/Support/Debug.h"#include "llvm/Support/raw_ostream.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "wasm-mclower-prepass" |
Functions | |
| INITIALIZE_PASS (WebAssemblyMCLowerPreLegacy, DEBUG_TYPE, "Collects information ahead of time for MC lowering", false, false) ModulePass *llvm | |
| static void | mcLower (Module &M, MachineModuleInfo &MMI, llvm::function_ref< MachineFunction *(Function *)> GetMF) |
Some information in MC lowering / asm printing gets generated as instructions get emitted, but may be necessary at the start, such as for .globaltype declarations.
This pass collects this information.
Definition in file WebAssemblyMCLowerPrePass.cpp.
| #define DEBUG_TYPE "wasm-mclower-prepass" |
Definition at line 32 of file WebAssemblyMCLowerPrePass.cpp.
| INITIALIZE_PASS | ( | WebAssemblyMCLowerPreLegacy | , |
| DEBUG_TYPE | , | ||
| "Collects information ahead of time for MC lowering" | , | ||
| false | , | ||
| false | ) |
Definition at line 54 of file WebAssemblyMCLowerPrePass.cpp.
References llvm::createWebAssemblyMCLowerPreLegacyPass(), and DEBUG_TYPE.
|
static |
Definition at line 69 of file WebAssemblyMCLowerPrePass.cpp.
References llvm::dbgs(), F, llvm::MachineFunction::getName(), llvm::MachineModuleInfo::getObjFileInfo(), llvm::SetVector< T, Vector, Set, N >::insert(), LLVM_DEBUG, llvm::MachineModuleInfoWasm::MachineSymbolsUsed, MBB, and MI.
Referenced by llvm::WebAssemblyMCLowerPrePass::run().