//===------------ MIRVRegNamerUtils.h - MIR VReg Renaming Utilities -------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // The purpose of these utilities is to abstract out parts of the MIRCanon pass // that are responsible for renaming virtual registers with the purpose of // sharing code with a MIRVRegNamer pass that could be the analog of the // opt -instnamer pass. // //===----------------------------------------------------------------------===// #ifndef LLVM_LIB_CODEGEN_MIRVREGNAMERUTILS_H #define LLVM_LIB_CODEGEN_MIRVREGNAMERUTILS_H #include "llvm/CodeGen/Register.h" #include <map> #include <vector> #include <string> namespace llvm { class MachineBasicBlock; class MachineInstr; class MachineRegisterInfo; class StringRef; /// VRegRenamer - This class is used for renaming vregs in a machine basic /// block according to semantics of the instruction. class VRegRenamer { … }; } // namespace llvm #endif