#include "MIRVRegNamerUtils.h"
#include "llvm/CodeGen/MachineRegisterInfo.h"
#include "llvm/CodeGen/MachineStableHash.h"
#include "llvm/IR/Constants.h"
usingnamespacellvm;
#define DEBUG_TYPE …
static cl::opt<bool>
UseStableNamerHash("mir-vreg-namer-use-stable-hash", cl::init(false),
cl::Hidden,
cl::desc("Use Stable Hashing for MIR VReg Renaming"));
VRegRenameMap;
bool VRegRenamer::doVRegRenaming(const VRegRenameMap &VRM) { … }
VRegRenameMap
VRegRenamer::getVRegRenameMap(const std::vector<NamedVReg> &VRegs) { … }
std::string VRegRenamer::getInstructionOpcodeHash(MachineInstr &MI) { … }
unsigned VRegRenamer::createVirtualRegister(unsigned VReg) { … }
bool VRegRenamer::renameInstsInMBB(MachineBasicBlock *MBB) { … }
unsigned VRegRenamer::createVirtualRegisterWithLowerName(unsigned VReg,
StringRef Name) { … }