LLVM
8.0.1
|
This file sets the p2align operands on load and store instructions. More...
#include "MCTargetDesc/WebAssemblyMCTargetDesc.h"
#include "WebAssembly.h"
#include "WebAssemblyMachineFunctionInfo.h"
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
#include "llvm/CodeGen/MachineMemOperand.h"
#include "llvm/CodeGen/Passes.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 (WebAssemblySetP2AlignOperands, DEBUG_TYPE, "Set the p2align operands for WebAssembly loads and stores", false, false) FunctionPass *llvm | |
static void | RewriteP2Align (MachineInstr &MI, unsigned OperandNo) |
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 25 of file WebAssemblySetP2AlignOperands.cpp.
INITIALIZE_PASS | ( | WebAssemblySetP2AlignOperands | , |
DEBUG_TYPE | , | ||
"Set the p2align operands for WebAssembly loads and stores" | , | ||
false | , | ||
false | |||
) |
Definition at line 49 of file WebAssemblySetP2AlignOperands.cpp.
|
static |
Definition at line 57 of file WebAssemblySetP2AlignOperands.cpp.
References assert(), llvm::dbgs(), getAlignment(), llvm::WebAssembly::GetDefaultP2Align(), llvm::MachineInstr::getDesc(), llvm::MachineOperand::getImm(), llvm::MachineFunction::getName(), llvm::MachineInstr::getOpcode(), llvm::MachineInstr::getOperand(), llvm::MachineInstr::hasOneMemOperand(), LLVM_DEBUG, llvm::WebAssembly::LoadP2AlignOperandNo, llvm::Log2_64(), llvm::MachineInstr::memoperands_begin(), MI, llvm::WebAssembly::OPERAND_P2ALIGN, llvm::MCOperandInfo::OperandType, llvm::MCInstrDesc::OpInfo, llvm::MachineOperand::setImm(), and llvm::WebAssembly::StoreP2AlignOperandNo.