Skip to content

Commit 019be31

Browse files
committed
update names
1 parent c9ce878 commit 019be31

File tree

6 files changed

+24
-24
lines changed

6 files changed

+24
-24
lines changed

llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -466,9 +466,9 @@ static cl::opt<bool> EnableScalarIRPasses(
466466
cl::Hidden);
467467

468468
static cl::opt<bool>
469-
EnableLowerSpecialLDS("amdgpu-enable-lower-special-lds",
470-
cl::desc("Enable lowering of special lds pass."),
471-
cl::init(true), cl::Hidden);
469+
EnableLowerExecSync("amdgpu-enable-lower-exec-sync",
470+
cl::desc("Enable lowering of exec sync pass."),
471+
cl::init(true), cl::Hidden);
472472

473473
static cl::opt<bool>
474474
EnableSwLowerLDS("amdgpu-enable-sw-lower-lds",
@@ -968,8 +968,8 @@ void AMDGPUTargetMachine::registerPassBuilderCallbacks(PassBuilder &PB) {
968968
// We want to support the -lto-partitions=N option as "best effort".
969969
// For that, we need to lower LDS earlier in the pipeline before the
970970
// module is partitioned for codegen.
971-
if (EnableLowerSpecialLDS)
972-
PM.addPass(AMDGPULowerSpecialLDSPass());
971+
if (EnableLowerExecSync)
972+
PM.addPass(AMDGPULowerExecSyncPass());
973973
if (EnableSwLowerLDS)
974974
PM.addPass(AMDGPUSwLowerLDSPass(*this));
975975
if (EnableLowerModuleLDS)
@@ -1339,8 +1339,8 @@ void AMDGPUPassConfig::addIRPasses() {
13391339
addPass(createAMDGPUExportKernelRuntimeHandlesLegacyPass());
13401340

13411341
// Lower special LDS accesses.
1342-
if (EnableLowerSpecialLDS)
1343-
addPass(createAMDGPULowerSpecialLDSLegacyPass());
1342+
if (EnableLowerExecSync)
1343+
addPass(createAMDGPULowerExecSyncLegacyPass());
13441344

13451345
// Lower LDS accesses to global memory pass if address sanitizer is enabled.
13461346
if (EnableSwLowerLDS)
@@ -2087,8 +2087,8 @@ void AMDGPUCodeGenPassBuilder::addIRPasses(AddIRPass &addPass) const {
20872087

20882088
addPass(AMDGPUExportKernelRuntimeHandlesPass());
20892089

2090-
if (EnableLowerSpecialLDS)
2091-
addPass(AMDGPULowerSpecialLDSPass());
2090+
if (EnableLowerExecSync)
2091+
addPass(AMDGPULowerExecSyncPass());
20922092

20932093
if (EnableSwLowerLDS)
20942094
addPass(AMDGPUSwLowerLDSPass(TM));

llvm/test/CodeGen/AMDGPU/amdgpu-lower-special-lds-and-module-lds.ll renamed to llvm/test/CodeGen/AMDGPU/amdgpu-lower-exec-sync-and-module-lds.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 6
2-
; RUN: opt -S -mtriple=amdgcn-- -passes=amdgpu-lower-special-lds,amdgpu-lower-module-lds < %s 2>&1 | FileCheck %s
2+
; RUN: opt -S -mtriple=amdgcn-- -passes=amdgpu-lower-exec-sync,amdgpu-lower-module-lds < %s 2>&1 | FileCheck %s
33
; RUN: llc < %s -enable-new-pm -stop-after=amdgpu-lower-module-lds -mtriple=amdgcn-amd-amdhsa | FileCheck %s
44

5-
; Test to ensure that special LDS variables like named barriers are lowered correctly,
6-
; where amdgpu-lower-module-lds pass runs in pipeline after amdgpu-lower-special-lds pass.
5+
; Test to ensure that LDS variables like named barriers are lowered correctly,
6+
; where amdgpu-lower-module-lds pass runs in pipeline after amdgpu-lower-exec-sync pass.
77

88
%class.ExpAmdWorkgroupWaveBarrier = type { target("amdgcn.named.barrier", 0) }
99
@bar2 = internal addrspace(3) global [2 x target("amdgcn.named.barrier", 0)] poison

llvm/test/CodeGen/AMDGPU/amdgpu-lower-special-lds-and-sw-lds.ll renamed to llvm/test/CodeGen/AMDGPU/amdgpu-lower-exec-sync-and-sw-lds.ll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
; RUN: opt -S -mtriple=amdgcn-- -passes=amdgpu-lower-special-lds,amdgpu-sw-lower-lds -amdgpu-asan-instrument-lds=false < %s 2>&1 | FileCheck %s
1+
; RUN: opt -S -mtriple=amdgcn-- -passes=amdgpu-lower-exec-sync,amdgpu-sw-lower-lds -amdgpu-asan-instrument-lds=false < %s 2>&1 | FileCheck %s
22
; RUN: llc < %s -enable-new-pm -stop-after=amdgpu-sw-lower-lds -amdgpu-asan-instrument-lds=false -mtriple=amdgcn-amd-amdhsa | FileCheck %s
33

4-
; Test to ensure that special LDS variables like named barriers are lowered correctly in asan scenario,
5-
; where amdgpu-sw-lower-lds pass runs in pipeline after amdgpu-lower-special-lds pass.
4+
; Test to ensure that LDS variables like named barriers are lowered correctly in asan scenario,
5+
; where amdgpu-sw-lower-lds pass runs in pipeline after amdgpu-lower-exec-sync pass.
66
%class.ExpAmdWorkgroupWaveBarrier = type { target("amdgcn.named.barrier", 0) }
77
@bar2 = internal addrspace(3) global [2 x target("amdgcn.named.barrier", 0)] poison
88
@bar1 = internal addrspace(3) global [4 x %class.ExpAmdWorkgroupWaveBarrier] poison

0 commit comments

Comments
 (0)