Skip to content

Commit fddeb43

Browse files
committed
Address comments #1 from MatzeB
1 parent 48677b8 commit fddeb43

File tree

2 files changed

+17
-15
lines changed

2 files changed

+17
-15
lines changed

llvm/lib/CodeGen/RegAllocBasic.cpp

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,28 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
//
9-
// This file defines the RABasic function pass, which provides a minimal
10-
// implementation of the basic register allocator.
11-
//
8+
///
9+
/// \file
10+
/// This file defines the RABasic function pass, which provides a minimal
11+
/// implementation of the basic register allocator.
12+
///
1213
//===----------------------------------------------------------------------===//
1314

1415
#include "RegAllocBasic.h"
16+
#include "AllocationOrder.h"
1517
#include "llvm/Analysis/AliasAnalysis.h"
1618
#include "llvm/Analysis/ProfileSummaryInfo.h"
1719
#include "llvm/CodeGen/CalcSpillWeights.h"
1820
#include "llvm/CodeGen/LiveDebugVariables.h"
21+
#include "llvm/CodeGen/LiveIntervals.h"
22+
#include "llvm/CodeGen/LiveRegMatrix.h"
1923
#include "llvm/CodeGen/LiveStacks.h"
2024
#include "llvm/CodeGen/MachineBlockFrequencyInfo.h"
2125
#include "llvm/CodeGen/MachineDominators.h"
2226
#include "llvm/CodeGen/MachineLoopInfo.h"
2327
#include "llvm/CodeGen/Passes.h"
2428
#include "llvm/CodeGen/RegAllocRegistry.h"
29+
#include "llvm/CodeGen/VirtRegMap.h"
2530
#include "llvm/Pass.h"
2631
#include "llvm/Support/Debug.h"
2732
#include "llvm/Support/raw_ostream.h"

llvm/lib/CodeGen/RegAllocBasic.h

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,20 @@
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
8-
//
9-
// This file declares the RABasic class, which provides a minimal
10-
// implementation of the basic register allocator.
11-
//
8+
///
9+
/// \file
10+
/// This file declares the RABasic class, which provides a minimal
11+
/// implementation of the basic register allocator.
12+
///
1213
//===----------------------------------------------------------------------===//
1314

14-
#ifndef LLVM_CODEGEN_REGALLOCBAISC_H_
15-
#define LLVM_CODEGEN_REGALLOCBAISC_H_
15+
#ifndef LLVM_CODEGEN_REGALLOCBASIC_H
16+
#define LLVM_CODEGEN_REGALLOCBASIC_H
1617

17-
#include "AllocationOrder.h"
1818
#include "RegAllocBase.h"
19-
#include "llvm/CodeGen/LiveIntervals.h"
2019
#include "llvm/CodeGen/LiveRangeEdit.h"
21-
#include "llvm/CodeGen/LiveRegMatrix.h"
2220
#include "llvm/CodeGen/MachineFunctionPass.h"
2321
#include "llvm/CodeGen/Spiller.h"
24-
#include "llvm/CodeGen/VirtRegMap.h"
2522
#include <queue>
2623

2724
namespace llvm {
@@ -104,4 +101,4 @@ class LLVM_LIBRARY_VISIBILITY RABasic : public MachineFunctionPass,
104101
static char ID;
105102
};
106103
} // namespace llvm
107-
#endif // #ifndef LLVM_CODEGEN_REGALLOCBAISC_H_
104+
#endif

0 commit comments

Comments
 (0)