|
LLVM 24.0.0git
|
This file sets the p2align operands on load and store instructions. More...
#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"#include "WebAssembly.h"#include "WebAssemblyInstrInfo.h"#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"#include "llvm/CodeGen/MachineFunctionAnalysisManager.h"#include "llvm/CodeGen/MachineMemOperand.h"#include "llvm/CodeGen/MachinePassManager.h"#include "llvm/CodeGen/Passes.h"#include "llvm/IR/Analysis.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-set-p2align-operands" |
Functions | |
| INITIALIZE_PASS (WebAssemblySetP2AlignOperandsLegacy, DEBUG_TYPE, "Set the p2align operands for WebAssembly loads and stores", false, false) FunctionPass *llvm | |
| static void | rewriteP2Align (MachineInstr &MI, unsigned OperandNo) |
| static bool | setP2AlignOperands (MachineFunction &MF) |
This file sets the p2align operands on load and store instructions.
Definition in file WebAssemblySetP2AlignOperands.cpp.
| #define DEBUG_TYPE "wasm-set-p2align-operands" |
Definition at line 27 of file WebAssemblySetP2AlignOperands.cpp.
| INITIALIZE_PASS | ( | WebAssemblySetP2AlignOperandsLegacy | , |
| DEBUG_TYPE | , | ||
| "Set the p2align operands for WebAssembly loads and stores" | , | ||
| false | , | ||
| false | ) |
Definition at line 51 of file WebAssemblySetP2AlignOperands.cpp.
References llvm::createWebAssemblySetP2AlignOperandsLegacyPass(), and DEBUG_TYPE.
|
static |
Definition at line 59 of file WebAssemblySetP2AlignOperands.cpp.
References assert(), llvm::WebAssembly::GetDefaultP2Align(), llvm::Log2(), MI, and llvm::WebAssembly::OPERAND_P2ALIGN.
Referenced by setP2AlignOperands().
|
static |
Definition at line 79 of file WebAssemblySetP2AlignOperands.cpp.
References Changed, llvm::dbgs(), llvm::MachineFunction::getName(), LLVM_DEBUG, MBB, MI, and rewriteP2Align().
Referenced by llvm::WebAssemblySetP2AlignOperandsPass::run().