Skip to content

Commit 0b43d57

Browse files
committed
[AMDGPU] clang-tidy: replace macro with enum. NFC.
1 parent 8ba9ed6 commit 0b43d57

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

llvm/lib/Target/AMDGPU/AMDGPUPrintfRuntimeBinding.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
using namespace llvm;
3535

3636
#define DEBUG_TYPE "printfToRuntime"
37-
#define DWORD_ALIGN 4
37+
enum { DWORD_ALIGN = 4 };
3838

3939
namespace {
4040
class AMDGPUPrintfRuntimeBinding final : public ModulePass {

llvm/lib/Target/AMDGPU/R600MachineCFGStructurizer.cpp

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

2525
#define DEBUG_TYPE "structcfg"
2626

27-
#define DEFAULT_VEC_SLOTS 8
27+
enum { DEFAULT_VEC_SLOTS = 8 };
2828

2929
// TODO: move-begin.
3030

llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#include <optional>
2727
#include <vector>
2828

29-
#define MAX_LANES 64
29+
enum { MAX_LANES = 64 };
3030

3131
using namespace llvm;
3232

0 commit comments

Comments
 (0)