comparison lib/CodeGen/LiveInterval.cpp @ 134:3a76565eade5 LLVM5.0.1

update 5.0.1
author mir3636
date Sat, 17 Feb 2018 09:57:20 +0900
parents 803732b1fca8
children c2174574ed3a
comparison
equal deleted inserted replaced
133:c60214abe0e8 134:3a76565eade5
24 #include "llvm/ADT/ArrayRef.h" 24 #include "llvm/ADT/ArrayRef.h"
25 #include "llvm/ADT/STLExtras.h" 25 #include "llvm/ADT/STLExtras.h"
26 #include "llvm/ADT/SmallPtrSet.h" 26 #include "llvm/ADT/SmallPtrSet.h"
27 #include "llvm/ADT/SmallVector.h" 27 #include "llvm/ADT/SmallVector.h"
28 #include "llvm/ADT/iterator_range.h" 28 #include "llvm/ADT/iterator_range.h"
29 #include "llvm/CodeGen/LiveIntervalAnalysis.h" 29 #include "llvm/CodeGen/LiveIntervals.h"
30 #include "llvm/CodeGen/MachineBasicBlock.h" 30 #include "llvm/CodeGen/MachineBasicBlock.h"
31 #include "llvm/CodeGen/MachineInstr.h" 31 #include "llvm/CodeGen/MachineInstr.h"
32 #include "llvm/CodeGen/MachineOperand.h" 32 #include "llvm/CodeGen/MachineOperand.h"
33 #include "llvm/CodeGen/MachineRegisterInfo.h" 33 #include "llvm/CodeGen/MachineRegisterInfo.h"
34 #include "llvm/CodeGen/SlotIndexes.h" 34 #include "llvm/CodeGen/SlotIndexes.h"
35 #include "llvm/CodeGen/TargetRegisterInfo.h"
35 #include "llvm/MC/LaneBitmask.h" 36 #include "llvm/MC/LaneBitmask.h"
36 #include "llvm/Support/Compiler.h" 37 #include "llvm/Support/Compiler.h"
37 #include "llvm/Support/Debug.h" 38 #include "llvm/Support/Debug.h"
38 #include "llvm/Support/raw_ostream.h" 39 #include "llvm/Support/raw_ostream.h"
39 #include "llvm/Target/TargetRegisterInfo.h"
40 #include <algorithm> 40 #include <algorithm>
41 #include <cassert> 41 #include <cassert>
42 #include <cstddef> 42 #include <cstddef>
43 #include <iterator> 43 #include <iterator>
44 #include <utility> 44 #include <utility>
984 OS << " L" << PrintLaneMask(LaneMask) << ' ' 984 OS << " L" << PrintLaneMask(LaneMask) << ' '
985 << static_cast<const LiveRange&>(*this); 985 << static_cast<const LiveRange&>(*this);
986 } 986 }
987 987
988 void LiveInterval::print(raw_ostream &OS) const { 988 void LiveInterval::print(raw_ostream &OS) const {
989 OS << PrintReg(reg) << ' '; 989 OS << printReg(reg) << ' ';
990 super::print(OS); 990 super::print(OS);
991 // Print subranges 991 // Print subranges
992 for (const SubRange &SR : subranges()) 992 for (const SubRange &SR : subranges())
993 OS << SR; 993 OS << SR;
994 OS << " weight:" << weight;
994 } 995 }
995 996
996 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) 997 #if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
997 LLVM_DUMP_METHOD void LiveRange::dump() const { 998 LLVM_DUMP_METHOD void LiveRange::dump() const {
998 dbgs() << *this << '\n'; 999 dbgs() << *this << '\n';