[llvm] [CodeGen][AMDGPU] Fixed FileCheck patterns in #212201 regression test (PR #219683)
Nikhil Kotikalapudi via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 31 09:14:30 PDT 2026
nkotikal wrote:
> > > I cannot reproduce the test failure locally. For me, the output has the "llvm::" prefix.
> >
> >
> > I see the test failure when I compile with gcc and not clang.
>
> This looks like a difference in the `__PRETTY_FUNCTION__` output between different compilers/compiler versions.
That's what I found too in TypeName.h:
```cpp
// Versions of GCC prior to GCC 9 don't declare __PRETTY_FUNCTION__ as constexpr
#if defined(__clang__) || defined(_MSC_VER) || \
(defined(__GNUC__) && __GNUC__ >= 9)
#define LLVM_GET_TYPE_NAME_CONSTEXPR constexpr
#define LLVM_GET_TYPE_NAME_STATIC_ASSERT 1
#else
#define LLVM_GET_TYPE_NAME_CONSTEXPR
#define LLVM_GET_TYPE_NAME_STATIC_ASSERT 0
#include <cassert>
#endif
```
I guess based on this output, ubuntu build implies that gcc was defaulted to? https://lab.llvm.org/buildbot/#/builders/33/builds/43374
Is there an issue/PR here that should be raised? The comment says older versions of GCC don't declare __PRETTY_FUNCTION__, but it could be added in here for later versions.
https://github.com/llvm/llvm-project/pull/219683
More information about the llvm-commits
mailing list