[llvm] r313148 - [MachineScheduler] Put SchedRegion in an anonymous namespace.
Mikael Holmen via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 13 07:07:47 PDT 2017
Author: uabelho
Date: Wed Sep 13 07:07:47 2017
New Revision: 313148
URL: http://llvm.org/viewvc/llvm-project?rev=313148&view=rev
Log:
[MachineScheduler] Put SchedRegion in an anonymous namespace.
Summary: It pollutes the global namespace otherwise.
Patch by: Bevin Hansson
Reviewers: jonpa
Reviewed By: jonpa
Subscribers: MatzeB, javed.absar, llvm-commits
Differential Revision: https://reviews.llvm.org/D37555
Modified:
llvm/trunk/lib/CodeGen/MachineScheduler.cpp
Modified: llvm/trunk/lib/CodeGen/MachineScheduler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineScheduler.cpp?rev=313148&r1=313147&r2=313148&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineScheduler.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineScheduler.cpp Wed Sep 13 07:07:47 2017
@@ -437,6 +437,7 @@ static bool isSchedBoundary(MachineBasic
}
/// A region of an MBB for scheduling.
+namespace {
struct SchedRegion {
/// RegionBegin is the first instruction in the scheduling region, and
/// RegionEnd is either MBB->end() or the scheduling boundary after the
@@ -451,6 +452,7 @@ struct SchedRegion {
unsigned N) :
RegionBegin(B), RegionEnd(E), NumRegionInstrs(N) {}
};
+} // end anonymous namespace
using MBBRegionsVector = SmallVector<SchedRegion, 16>;
More information about the llvm-commits
mailing list