|
LLVM
4.0.0
|
This file implements a virtual register coloring pass. More...
#include "WebAssembly.h"#include "WebAssemblyMachineFunctionInfo.h"#include "llvm/CodeGen/LiveIntervalAnalysis.h"#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"#include "llvm/CodeGen/MachineRegisterInfo.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-reg-coloring" |
Functions | |
| static float | computeWeight (const MachineRegisterInfo *MRI, const MachineBlockFrequencyInfo *MBFI, unsigned VReg) |
This file implements a virtual register coloring pass.
WebAssembly doesn't have a fixed number of registers, but it is still desirable to minimize the total number of registers used in each function.
This code is modeled after lib/CodeGen/StackSlotColoring.cpp.
Definition in file WebAssemblyRegColoring.cpp.
| #define DEBUG_TYPE "wasm-reg-coloring" |
Definition at line 30 of file WebAssemblyRegColoring.cpp.
|
static |
Definition at line 63 of file WebAssemblyRegColoring.cpp.
References llvm::LiveIntervals::getSpillWeight(), and llvm::MachineRegisterInfo::reg_nodbg_operands().
1.8.6