Skip to content

Commit 80e1ebe

Browse files
committed
[region-isolation] Add some MARK: to make the file a little easier to read. NFC.
1 parent 9764359 commit 80e1ebe

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

lib/SILOptimizer/Mandatory/TransferNonSendable.cpp

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static bool isProjectedFromAggregate(SILValue value) {
184184
}
185185

186186
//===----------------------------------------------------------------------===//
187-
// MARK: Main Computation
187+
// MARK: Instruction Level Model
188188
//===----------------------------------------------------------------------===//
189189

190190
namespace {
@@ -1342,6 +1342,14 @@ void PartitionOpBuilder::print(llvm::raw_ostream &os) const {
13421342
#endif
13431343
}
13441344

1345+
} // namespace
1346+
1347+
//===----------------------------------------------------------------------===//
1348+
// MARK: Block Level Model
1349+
//===----------------------------------------------------------------------===//
1350+
1351+
namespace {
1352+
13451353
/// Dataflow State associated with a specific SILBasicBlock.
13461354
class BlockPartitionState {
13471355
friend class PartitionAnalysis;
@@ -1463,6 +1471,14 @@ class BlockPartitionState {
14631471
}
14641472
};
14651473

1474+
} // namespace
1475+
1476+
//===----------------------------------------------------------------------===//
1477+
// MARK: Inferring Transferred Instruction from violating Require
1478+
//===----------------------------------------------------------------------===//
1479+
1480+
namespace {
1481+
14661482
/// Classified kind for a LocalTransferredReason.
14671483
enum class LocalTransferredReasonKind {
14681484
/// A transfer instruction was found in this block.
@@ -1949,6 +1965,14 @@ class RaceTracer {
19491965
const TransferRequireAccumulator &getAccumulator() { return accumulator; }
19501966
};
19511967

1968+
} // namespace
1969+
1970+
//===----------------------------------------------------------------------===//
1971+
// MARK: Dataflow
1972+
//===----------------------------------------------------------------------===//
1973+
1974+
namespace {
1975+
19521976
/// The top level datastructure that we use to perform our dataflow. It
19531977
/// contains:
19541978
///

0 commit comments

Comments
 (0)