clang: Fix referring to __builtin_amdgcn_is_processor in diagnostic (#205725)

The builtin name is really __builtin_amdgcn_processor_is.
This commit is contained in:
Matt Arsenault 2026-06-25 09:10:58 +02:00 committed by GitHub
parent 2290eef65c
commit e5f8e65fb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -14267,7 +14267,7 @@ def warn_amdgcn_unguarded_asm_stmt
InGroup<UnguardedBuiltinUsageAMDGPU>, DefaultIgnore;
def note_amdgcn_unguarded_asm_silence
: Note<"enclose the '%0' ASM sequence in a scope controlled by a "
"__builtin_amdgcn_is_processor check to silence this warning">;
"__builtin_amdgcn_processor_is check to silence this warning">;
def err_amdgcn_incompatible_builtin
: Error<"%0 cannot be invoked in the current context, as it requires the "
"'%1' feature(s)%select{|, which '%3' does not provide}2">;

View file

@ -10,7 +10,7 @@ __device__ void g();
__device__ void f(int x, bool b) {
long v15_16;
__asm volatile("v_lshlrev_b64 v[15:16], 0, %0" : "={v[15:16]}"(v15_16) : "v"(x)); // expected-warning {{the 'v_lshlrev_b64 v[15:16], 0, $0' ASM sequence might be invalid for some AMDGPU targets}}
// expected-note@-1 {{enclose the 'v_lshlrev_b64 v[15:16], 0, $0' ASM sequence in a scope controlled by a __builtin_amdgcn_is_processor check to silence this warning}}
// expected-note@-1 {{enclose the 'v_lshlrev_b64 v[15:16], 0, $0' ASM sequence in a scope controlled by a __builtin_amdgcn_processor_is check to silence this warning}}
if (__builtin_amdgcn_processor_is("gfx90a")) {
long v15_16;
@ -20,7 +20,7 @@ __device__ void f(int x, bool b) {
if (!__builtin_amdgcn_processor_is("gfx90a")) {
long v15_16;
__asm volatile("v_lshlrev_b64 v[15:16], 0, %0" : "={v[15:16]}"(v15_16) : "v"(x)); // expected-warning {{the 'v_lshlrev_b64 v[15:16], 0, $0' ASM sequence might be invalid for some AMDGPU targets}}
// expected-note@-1 {{enclose the 'v_lshlrev_b64 v[15:16], 0, $0' ASM sequence in a scope controlled by a __builtin_amdgcn_is_processor check to silence this warning}}
// expected-note@-1 {{enclose the 'v_lshlrev_b64 v[15:16], 0, $0' ASM sequence in a scope controlled by a __builtin_amdgcn_processor_is check to silence this warning}}
}
__builtin_amdgcn_is_invocable(__builtin_amdgcn_s_sleep_var) ? __builtin_amdgcn_s_sleep_var(x) : __builtin_trap();