annotate lib/CodeGen/LiveRangeCalc.h @ 121:803732b1fca8

LLVM 5.0
author kono
date Fri, 27 Oct 2017 17:07:41 +0900
parents 1172e4bd9c6f
children c2174574ed3a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
1 //===- LiveRangeCalc.h - Calculate live ranges ------------------*- C++ -*-===//
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 // The LLVM Compiler Infrastructure
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5 // This file is distributed under the University of Illinois Open Source
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
6 // License. See LICENSE.TXT for details.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
8 //===----------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
10 // The LiveRangeCalc class can be used to compute live ranges from scratch. It
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
11 // caches information about values in the CFG to speed up repeated operations
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
12 // on the same live range. The cache can be shared by non-overlapping live
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
13 // ranges. SplitKit uses that when computing the live range of split products.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
14 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
15 // A low-level interface is available to clients that know where a variable is
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16 // live, but don't know which value it has as every point. LiveRangeCalc will
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 // propagate values down the dominator tree, and even insert PHI-defs where
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
18 // needed. SplitKit uses this faster interface when possible.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
19 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
20 //===----------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
21
77
54457678186b LLVM 3.6
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
22 #ifndef LLVM_LIB_CODEGEN_LIVERANGECALC_H
54457678186b LLVM 3.6
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
23 #define LLVM_LIB_CODEGEN_LIVERANGECALC_H
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
24
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
25 #include "llvm/ADT/ArrayRef.h"
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
26 #include "llvm/ADT/BitVector.h"
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
27 #include "llvm/ADT/DenseMap.h"
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
28 #include "llvm/ADT/IndexedMap.h"
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
29 #include "llvm/ADT/SmallVector.h"
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
30 #include "llvm/CodeGen/LiveInterval.h"
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
31 #include "llvm/CodeGen/MachineBasicBlock.h"
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
32 #include "llvm/CodeGen/SlotIndexes.h"
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
33 #include "llvm/MC/LaneBitmask.h"
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
34 #include <utility>
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
35
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
36 namespace llvm {
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
37
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
38 template <class NodeT> class DomTreeNodeBase;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
39 class MachineDominatorTree;
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
40 class MachineFunction;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
41 class MachineRegisterInfo;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
42
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
43 using MachineDomTreeNode = DomTreeNodeBase<MachineBasicBlock>;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
44
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
45 class LiveRangeCalc {
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
46 const MachineFunction *MF = nullptr;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
47 const MachineRegisterInfo *MRI = nullptr;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
48 SlotIndexes *Indexes = nullptr;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
49 MachineDominatorTree *DomTree = nullptr;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
50 VNInfo::Allocator *Alloc = nullptr;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
51
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
52 /// LiveOutPair - A value and the block that defined it. The domtree node is
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
53 /// redundant, it can be computed as: MDT[Indexes.getMBBFromIndex(VNI->def)].
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
54 using LiveOutPair = std::pair<VNInfo *, MachineDomTreeNode *>;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
55
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
56 /// LiveOutMap - Map basic blocks to the value leaving the block.
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
57 using LiveOutMap = IndexedMap<LiveOutPair, MBB2NumberFunctor>;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
58
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
59 /// Bit vector of active entries in LiveOut, also used as a visited set by
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
60 /// findReachingDefs. One entry per basic block, indexed by block number.
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
61 /// This is kept as a separate bit vector because it can be cleared quickly
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
62 /// when switching live ranges.
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
63 BitVector Seen;
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
64
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
65 /// Map LiveRange to sets of blocks (represented by bit vectors) that
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
66 /// in the live range are defined on entry and undefined on entry.
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
67 /// A block is defined on entry if there is a path from at least one of
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
68 /// the defs in the live range to the entry of the block, and conversely,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
69 /// a block is undefined on entry, if there is no such path (i.e. no
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
70 /// definition reaches the entry of the block). A single LiveRangeCalc
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
71 /// object is used to track live-out information for multiple registers
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
72 /// in live range splitting (which is ok, since the live ranges of these
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
73 /// registers do not overlap), but the defined/undefined information must
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
74 /// be kept separate for each individual range.
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
75 /// By convention, EntryInfoMap[&LR] = { Defined, Undefined }.
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
76 using EntryInfoMap = DenseMap<LiveRange *, std::pair<BitVector, BitVector>>;
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
77 EntryInfoMap EntryInfos;
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
78
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
79 /// Map each basic block where a live range is live out to the live-out value
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
80 /// and its defining block.
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
81 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
82 /// For every basic block, MBB, one of these conditions shall be true:
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
83 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
84 /// 1. !Seen.count(MBB->getNumber())
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
85 /// Blocks without a Seen bit are ignored.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
86 /// 2. LiveOut[MBB].second.getNode() == MBB
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
87 /// The live-out value is defined in MBB.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
88 /// 3. forall P in preds(MBB): LiveOut[P] == LiveOut[MBB]
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
89 /// The live-out value passses through MBB. All predecessors must carry
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
90 /// the same value.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
91 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
92 /// The domtree node may be null, it can be computed.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
93 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
94 /// The map can be shared by multiple live ranges as long as no two are
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
95 /// live-out of the same block.
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
96 LiveOutMap Map;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
97
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
98 /// LiveInBlock - Information about a basic block where a live range is known
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
99 /// to be live-in, but the value has not yet been determined.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
100 struct LiveInBlock {
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
101 // The live range set that is live-in to this block. The algorithms can
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
102 // handle multiple non-overlapping live ranges simultaneously.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
103 LiveRange &LR;
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
104
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
105 // DomNode - Dominator tree node for the block.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
106 // Cleared when the final value has been determined and LI has been updated.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
107 MachineDomTreeNode *DomNode;
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
108
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
109 // Position in block where the live-in range ends, or SlotIndex() if the
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
110 // range passes through the block. When the final value has been
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
111 // determined, the range from the block start to Kill will be added to LI.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
112 SlotIndex Kill;
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
113
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
114 // Live-in value filled in by updateSSA once it is known.
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
115 VNInfo *Value = nullptr;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
116
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
117 LiveInBlock(LiveRange &LR, MachineDomTreeNode *node, SlotIndex kill)
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
118 : LR(LR), DomNode(node), Kill(kill) {}
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
119 };
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
120
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
121 /// LiveIn - Work list of blocks where the live-in value has yet to be
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
122 /// determined. This list is typically computed by findReachingDefs() and
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
123 /// used as a work list by updateSSA(). The low-level interface may also be
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
124 /// used to add entries directly.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
125 SmallVector<LiveInBlock, 16> LiveIn;
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
126
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
127 /// Check if the entry to block @p MBB can be reached by any of the defs
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
128 /// in @p LR. Return true if none of the defs reach the entry to @p MBB.
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
129 bool isDefOnEntry(LiveRange &LR, ArrayRef<SlotIndex> Undefs,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
130 MachineBasicBlock &MBB, BitVector &DefOnEntry,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
131 BitVector &UndefOnEntry);
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
132
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
133 /// Find the set of defs that can reach @p Kill. @p Kill must belong to
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
134 /// @p UseMBB.
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
135 ///
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
136 /// If exactly one def can reach @p UseMBB, and the def dominates @p Kill,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
137 /// all paths from the def to @p UseMBB are added to @p LR, and the function
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
138 /// returns true.
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
139 ///
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
140 /// If multiple values can reach @p UseMBB, the blocks that need @p LR to be
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
141 /// live in are added to the LiveIn array, and the function returns false.
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
142 ///
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
143 /// The array @p Undef provides the locations where the range @p LR becomes
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
144 /// undefined by <def,read-undef> operands on other subranges. If @p Undef
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
145 /// is non-empty and @p Kill is jointly dominated only by the entries of
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
146 /// @p Undef, the function returns false.
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
147 ///
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
148 /// PhysReg, when set, is used to verify live-in lists on basic blocks.
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
149 bool findReachingDefs(LiveRange &LR, MachineBasicBlock &UseMBB,
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
150 SlotIndex Kill, unsigned PhysReg,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
151 ArrayRef<SlotIndex> Undefs);
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
152
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
153 /// updateSSA - Compute the values that will be live in to all requested
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
154 /// blocks in LiveIn. Create PHI-def values as required to preserve SSA form.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
155 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
156 /// Every live-in block must be jointly dominated by the added live-out
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
157 /// blocks. No values are read from the live ranges.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
158 void updateSSA();
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
159
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
160 /// Transfer information from the LiveIn vector to the live ranges and update
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
161 /// the given @p LiveOuts.
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
162 void updateFromLiveIns();
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
163
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
164 /// Extend the live range of @p LR to reach all uses of Reg.
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
165 ///
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
166 /// If @p LR is a main range, or if @p LI is null, then all uses must be
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
167 /// jointly dominated by the definitions from @p LR. If @p LR is a subrange
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
168 /// of the live interval @p LI, corresponding to lane mask @p LaneMask,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
169 /// all uses must be jointly dominated by the definitions from @p LR
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
170 /// together with definitions of other lanes where @p LR becomes undefined
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
171 /// (via <def,read-undef> operands).
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
172 /// If @p LR is a main range, the @p LaneMask should be set to ~0, i.e.
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
173 /// LaneBitmask::getAll().
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
174 void extendToUses(LiveRange &LR, unsigned Reg, LaneBitmask LaneMask,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
175 LiveInterval *LI = nullptr);
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
176
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
177 /// Reset Map and Seen fields.
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
178 void resetLiveOutMap();
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
179
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
180 public:
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
181 LiveRangeCalc() = default;
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
182
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
183 //===--------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
184 // High-level interface.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
185 //===--------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
186 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
187 // Calculate live ranges from scratch.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
188 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
189
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
190 /// reset - Prepare caches for a new set of non-overlapping live ranges. The
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
191 /// caches must be reset before attempting calculations with a live range
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
192 /// that may overlap a previously computed live range, and before the first
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
193 /// live range in a function. If live ranges are not known to be
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
194 /// non-overlapping, call reset before each.
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
195 void reset(const MachineFunction *mf, SlotIndexes *SI,
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
196 MachineDominatorTree *MDT, VNInfo::Allocator *VNIA);
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
197
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
198 //===--------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
199 // Mid-level interface.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
200 //===--------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
201 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
202 // Modify existing live ranges.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
203 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
204
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
205 /// Extend the live range of @p LR to reach @p Use.
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
206 ///
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
207 /// The existing values in @p LR must be live so they jointly dominate @p Use.
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
208 /// If @p Use is not dominated by a single existing value, PHI-defs are
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
209 /// inserted as required to preserve SSA form.
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
210 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
211 /// PhysReg, when set, is used to verify live-in lists on basic blocks.
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
212 void extend(LiveRange &LR, SlotIndex Use, unsigned PhysReg,
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
213 ArrayRef<SlotIndex> Undefs);
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
214
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
215 /// createDeadDefs - Create a dead def in LI for every def operand of Reg.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
216 /// Each instruction defining Reg gets a new VNInfo with a corresponding
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
217 /// minimal live range.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
218 void createDeadDefs(LiveRange &LR, unsigned Reg);
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
219
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
220 /// Extend the live range of @p LR to reach all uses of Reg.
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
221 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
222 /// All uses must be jointly dominated by existing liveness. PHI-defs are
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
223 /// inserted as needed to preserve SSA form.
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
224 void extendToUses(LiveRange &LR, unsigned PhysReg) {
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
225 extendToUses(LR, PhysReg, LaneBitmask::getAll());
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
226 }
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
227
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
228 /// Calculates liveness for the register specified in live interval @p LI.
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
229 /// Creates subregister live ranges as needed if subreg liveness tracking is
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
230 /// enabled.
95
afa8332a0e37 LLVM 3.8
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents: 83
diff changeset
231 void calculate(LiveInterval &LI, bool TrackSubRegs);
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
232
120
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
233 /// For live interval \p LI with correct SubRanges construct matching
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
234 /// information for the main live range. Expects the main live range to not
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
235 /// have any segments or value numbers.
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
236 void constructMainRangeFromSubranges(LiveInterval &LI);
1172e4bd9c6f update 4.0.0
mir3636
parents: 95
diff changeset
237
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
238 //===--------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
239 // Low-level interface.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
240 //===--------------------------------------------------------------------===//
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
241 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
242 // These functions can be used to compute live ranges where the live-in and
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
243 // live-out blocks are already known, but the SSA value in each block is
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
244 // unknown.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
245 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
246 // After calling reset(), add known live-out values and known live-in blocks.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
247 // Then call calculateValues() to compute the actual value that is
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
248 // live-in to each block, and add liveness to the live ranges.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
249 //
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
250
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
251 /// setLiveOutValue - Indicate that VNI is live out from MBB. The
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
252 /// calculateValues() function will not add liveness for MBB, the caller
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
253 /// should take care of that.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
254 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
255 /// VNI may be null only if MBB is a live-through block also passed to
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
256 /// addLiveInBlock().
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
257 void setLiveOutValue(MachineBasicBlock *MBB, VNInfo *VNI) {
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
258 Seen.set(MBB->getNumber());
83
60c9769439b8 LLVM 3.7
Tatsuki IHA <e125716@ie.u-ryukyu.ac.jp>
parents: 77
diff changeset
259 Map[MBB] = LiveOutPair(VNI, nullptr);
0
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
260 }
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
261
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
262 /// addLiveInBlock - Add a block with an unknown live-in value. This
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
263 /// function can only be called once per basic block. Once the live-in value
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
264 /// has been determined, calculateValues() will add liveness to LI.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
265 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
266 /// @param LR The live range that is live-in to the block.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
267 /// @param DomNode The domtree node for the block.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
268 /// @param Kill Index in block where LI is killed. If the value is
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
269 /// live-through, set Kill = SLotIndex() and also call
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
270 /// setLiveOutValue(MBB, 0).
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
271 void addLiveInBlock(LiveRange &LR,
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
272 MachineDomTreeNode *DomNode,
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
273 SlotIndex Kill = SlotIndex()) {
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
274 LiveIn.push_back(LiveInBlock(LR, DomNode, Kill));
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
275 }
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
276
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
277 /// calculateValues - Calculate the value that will be live-in to each block
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
278 /// added with addLiveInBlock. Add PHI-def values as needed to preserve SSA
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
279 /// form. Add liveness to all live-in blocks up to the Kill point, or the
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
280 /// whole block for live-through blocks.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
281 ///
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
282 /// Every predecessor of a live-in block must have been given a value with
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
283 /// setLiveOutValue, the value may be null for live-trough blocks.
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
284 void calculateValues();
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
285 };
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
286
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
287 } // end namespace llvm
95c75e76d11b LLVM 3.4
Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
parents:
diff changeset
288
121
803732b1fca8 LLVM 5.0
kono
parents: 120
diff changeset
289 #endif // LLVM_LIB_CODEGEN_LIVERANGECALC_H