Skip to content

Commit 74b87b0

Browse files
committed
[AMDGPU] Fix and add namespace closing comments. NFC.
1 parent 2ee5586 commit 74b87b0

12 files changed

+15
-16
lines changed

llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
namespace llvm {
2626
void initializeCycleInfoWrapperPassPass(PassRegistry &);
27-
}
27+
} // namespace llvm
2828

2929
using namespace llvm;
3030

llvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ struct AMDGPUOutgoingArgHandler : public AMDGPUOutgoingValueHandler {
260260
assignValueToAddress(ValVReg, Addr, MemTy, MPO, VA);
261261
}
262262
};
263-
}
263+
} // anonymous namespace
264264

265265
AMDGPUCallLowering::AMDGPUCallLowering(const AMDGPUTargetLowering &TLI)
266266
: CallLowering(&TLI) {

llvm/lib/Target/AMDGPU/AMDGPULibCalls.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ class AMDGPULibCalls {
147147
bool useNative(CallInst *CI);
148148
};
149149

150-
} // end llvm namespace
150+
} // end namespace llvm
151151

152152
template <typename IRB>
153153
static CallInst *CreateCallEx(IRB &B, FunctionCallee Callee, Value *Arg,
@@ -899,7 +899,7 @@ static double log2(double V) {
899899
return log(V) / numbers::ln2;
900900
#endif
901901
}
902-
}
902+
} // namespace llvm
903903

904904
bool AMDGPULibCalls::fold_pow(FPMathOperator *FPOp, IRBuilder<> &B,
905905
const FuncInfo &FInfo) {

llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class ApplyRegBankMapping final : public GISelChangeObserver {
199199
}
200200
};
201201

202-
}
202+
} // anonymous namespace
203203

204204
AMDGPURegisterBankInfo::AMDGPURegisterBankInfo(const GCNSubtarget &ST)
205205
: Subtarget(ST), TRI(Subtarget.getRegisterInfo()),

llvm/lib/Target/AMDGPU/AMDGPURemoveIncompatibleFunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ using namespace llvm;
2828
namespace llvm {
2929
extern const SubtargetFeatureKV
3030
AMDGPUFeatureKV[AMDGPU::NumSubtargetFeatures - 1];
31-
}
31+
} // namespace llvm
3232

3333
namespace {
3434

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static VGPRRegisterRegAlloc greedyRegAllocVGPR(
177177

178178
static VGPRRegisterRegAlloc fastRegAllocVGPR(
179179
"fast", "fast register allocator", createFastVGPRRegisterAllocator);
180-
}
180+
} // anonymous namespace
181181

182182
static cl::opt<bool>
183183
EnableEarlyIfConversion("amdgpu-early-ifcvt", cl::Hidden,

llvm/lib/Target/AMDGPU/GCNILPSched.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,4 +359,4 @@ std::vector<const SUnit*> makeGCNILPScheduler(ArrayRef<const SUnit*> BotRoots,
359359
GCNILPScheduler S;
360360
return S.schedule(BotRoots, DAG);
361361
}
362-
}
362+
} // namespace llvm

llvm/lib/Target/AMDGPU/GCNIterativeScheduler.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ namespace llvm {
2424
std::vector<const SUnit *> makeMinRegSchedule(ArrayRef<const SUnit *> TopRoots,
2525
const ScheduleDAG &DAG);
2626

27-
std::vector<const SUnit*> makeGCNILPScheduler(ArrayRef<const SUnit*> BotRoots,
28-
const ScheduleDAG &DAG);
29-
}
27+
std::vector<const SUnit *> makeGCNILPScheduler(ArrayRef<const SUnit *> BotRoots,
28+
const ScheduleDAG &DAG);
29+
} // namespace llvm
3030

3131
// shim accessors for different order containers
3232
static inline MachineInstr *getMachineInstr(MachineInstr *MI) {

llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUELFStreamer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class AMDGPUELFStreamer : public MCELFStreamer {
2626
std::move(Emitter)) {}
2727
};
2828

29-
}
29+
} // anonymous namespace
3030

3131
MCELFStreamer *
3232
llvm::createAMDGPUELFStreamer(const Triple &T, MCContext &Context,

llvm/lib/Target/AMDGPU/SIInstrInfo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ namespace llvm::AMDGPU {
4545
#define GET_ImageDimIntrinsicTable_IMPL
4646
#define GET_RsrcIntrinsics_IMPL
4747
#include "AMDGPUGenSearchableTables.inc"
48-
}
49-
48+
} // namespace llvm::AMDGPU
5049

5150
// Must be at least 4 to be able to branch over minimum unconditional branch
5251
// code. This is only for making it possible to write reasonably small tests for

llvm/lib/Target/AMDGPU/SIMemoryLegalizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static SIAtomicAddrSpace getFenceAddrSpaceMMRA(const MachineInstr &MI,
748748
return (Result != SIAtomicAddrSpace::NONE) ? Result : Default;
749749
}
750750

751-
} // end namespace anonymous
751+
} // end anonymous namespace
752752

753753
void SIMemOpAccess::reportUnsupported(const MachineBasicBlock::iterator &MI,
754754
const char *Msg) const {

llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ inline unsigned getSaSdstBitWidth() { return 1; }
153153
/// \returns SaSdst bit shift
154154
inline unsigned getSaSdstBitShift() { return 0; }
155155

156-
} // end namespace anonymous
156+
} // end anonymous namespace
157157

158158
namespace llvm {
159159

0 commit comments

Comments
 (0)