Skip to content

Commit 532c866

Browse files
address review: remove subtarget integration
1 parent beb4047 commit 532c866

File tree

5 files changed

+1
-23
lines changed

5 files changed

+1
-23
lines changed

clang/include/clang/Driver/Options.td

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5497,10 +5497,7 @@ defm wavefrontsize64 : SimpleMFlag<"wavefrontsize64",
54975497
" mode (AMDGPU only)">;
54985498
defm amdgpu_precise_memory_op
54995499
: SimpleMFlag<"amdgpu-precise-memory-op", "Enable", "Disable",
5500-
" precise memory mode (AMDGPU only)", m_amdgpu_Features_Group>;
5501-
defm amdgpu_expand_waitcnt_profiling
5502-
: SimpleMFlag<"amdgpu-expand-waitcnt-profiling", "Enable", "Disable",
5503-
" waitcnt expansion for profiling (AMDGPU only)", m_amdgpu_Features_Group>;
5500+
" precise memory mode (AMDGPU only)">;
55045501

55055502
def munsafe_fp_atomics : Flag<["-"], "munsafe-fp-atomics">,
55065503
Visibility<[ClangOption, CC1Option, FlangOption, FC1Option]>, Alias<fatomic_ignore_denormal_mode>;

clang/lib/Driver/ToolChains/AMDGPU.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -700,10 +700,6 @@ void amdgpu::getAMDGPUTargetFeatures(const Driver &D,
700700
options::OPT_mno_amdgpu_precise_memory_op, false))
701701
Features.push_back("+precise-memory");
702702

703-
if (Args.hasFlag(options::OPT_mamdgpu_expand_waitcnt_profiling,
704-
options::OPT_mno_amdgpu_expand_waitcnt_profiling, false))
705-
Features.push_back("+expand-waitcnt-profiling");
706-
707703
handleTargetFeaturesGroup(D, Triple, Args, Features,
708704
options::OPT_m_amdgpu_Features_Group);
709705
}

clang/test/Driver/amdgpu-features.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,3 @@
3838

3939
// RUN: %clang -### -target amdgcn -mcpu=gfx1010 -mno-amdgpu-precise-memory-op %s 2>&1 | FileCheck --check-prefix=NO-PREC-MEM %s
4040
// NO-PREC-MEM-NOT: {{".*precise-memory"}}
41-
42-
// RUN: %clang -### -target amdgcn -mcpu=gfx900 -mamdgpu-expand-waitcnt-profiling %s 2>&1 | FileCheck --check-prefix=EXPAND-WAITCNT %s
43-
// EXPAND-WAITCNT: "-target-feature" "+expand-waitcnt-profiling"
44-
45-
// RUN: %clang -### -target amdgcn -mcpu=gfx900 -mno-amdgpu-expand-waitcnt-profiling %s 2>&1 | FileCheck --check-prefix=NO-EXPAND-WAITCNT %s
46-
// NO-EXPAND-WAITCNT-NOT: "{{[+]}}expand-waitcnt-profiling"

llvm/lib/Target/AMDGPU/AMDGPU.td

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,10 +223,6 @@ def FeaturePreciseMemory
223223
: SubtargetFeature<"precise-memory", "EnablePreciseMemory",
224224
"true", "Enable precise memory mode">;
225225

226-
def FeatureExpandWaitcntProfiling
227-
: SubtargetFeature<"expand-waitcnt-profiling", "EnableExpandWaitcntProfiling",
228-
"true", "Expand waitcnt instructions for profiling">;
229-
230226
def FeatureSGPRInitBug : SubtargetFeature<"sgpr-init-bug",
231227
"SGPRInitBug",
232228
"true",

llvm/lib/Target/AMDGPU/GCNSubtarget.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
9090
bool EnableCuMode = false;
9191
bool TrapHandler = false;
9292
bool EnablePreciseMemory = false;
93-
bool EnableExpandWaitcntProfiling = false;
9493

9594
// Used as options.
9695
bool EnableLoadStoreOpt = false;
@@ -675,10 +674,6 @@ class GCNSubtarget final : public AMDGPUGenSubtargetInfo,
675674

676675
bool isPreciseMemoryEnabled() const { return EnablePreciseMemory; }
677676

678-
bool isExpandWaitcntProfilingEnabled() const {
679-
return EnableExpandWaitcntProfiling;
680-
}
681-
682677
bool hasFlatAddressSpace() const {
683678
return FlatAddressSpace;
684679
}

0 commit comments

Comments
 (0)