aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-01-30 13:05:29 -0600
committerGitHub <noreply@github.com>2024-01-30 13:05:29 -0600
commitf2a78e68eee53646327f71c475c7f18a28b7f576 (patch)
tree60f321165a8b831de2647c1e4537ee5df7e009e6 /clang/lib/Basic/FileManager.cpp
parent97d72839301e6fd005fb258322b96bd46086daa1 (diff)
downloadllvm-f2a78e68eee53646327f71c475c7f18a28b7f576.zip
llvm-f2a78e68eee53646327f71c475c7f18a28b7f576.tar.gz
llvm-f2a78e68eee53646327f71c475c7f18a28b7f576.tar.bz2
[AMDGPU] Do not emit arch dependent macros with unspecified cpu (#80035)
Summary: Currently, the AMDGPU toolchain accepts not passing `-mcpu` as a means to create a sort of "generic" IR. The resulting IR will not contain any target dependent attributes and can then be inserted into another program via `-mlink-builtin-bitcode` to inherit its attributes. However, there are a handful of macros that can leak incorrect information when compiling for an unspecified architecture. Currently, things like the wavefront size will default to 64, which is actually variable. We should not expose these macros unless it is known.
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
0 files changed, 0 insertions, 0 deletions