From 044eb2f6afba375a914ac9d8024f8f5142bb912e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Mon, 18 Dec 2017 20:10:56 +0000 Subject: Vendor import of llvm trunk r321017: https://llvm.org/svn/llvm-project/llvm/trunk@321017 --- include/llvm/CodeGen/LiveRegUnits.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/llvm/CodeGen/LiveRegUnits.h') diff --git a/include/llvm/CodeGen/LiveRegUnits.h b/include/llvm/CodeGen/LiveRegUnits.h index c28b1a06854fc..dc4956da9637c 100644 --- a/include/llvm/CodeGen/LiveRegUnits.h +++ b/include/llvm/CodeGen/LiveRegUnits.h @@ -16,9 +16,9 @@ #define LLVM_CODEGEN_LIVEREGUNITS_H #include "llvm/ADT/BitVector.h" +#include "llvm/CodeGen/TargetRegisterInfo.h" #include "llvm/MC/LaneBitmask.h" #include "llvm/MC/MCRegisterInfo.h" -#include "llvm/Target/TargetRegisterInfo.h" #include namespace llvm { @@ -51,7 +51,7 @@ public: void clear() { Units.reset(); } /// Returns true if the set is empty. - bool empty() const { return Units.empty(); } + bool empty() const { return Units.none(); } /// Adds register units covered by physical register \p Reg. void addReg(unsigned Reg) { @@ -123,6 +123,11 @@ public: const BitVector &getBitVector() const { return Units; } + +private: + /// Adds pristine registers. Pristine registers are callee saved registers + /// that are unused in the function. + void addPristines(const MachineFunction &MF); }; } // end namespace llvm -- cgit v1.2.3