diff options
author | Nick Sarnie <nick.sarnie@intel.com> | 2025-05-21 10:28:52 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-05-21 14:28:52 +0000 |
commit | 95bd9eef42679f3d13e3279204c75372e2c062f0 (patch) | |
tree | 25d30f100d74dd6cd8aa9a0699b4d9e03df125e0 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp | |
parent | cb575785b96ead29d699201b2d1e1d1203fdb494 (diff) | |
download | llvm-95bd9eef42679f3d13e3279204c75372e2c062f0.zip llvm-95bd9eef42679f3d13e3279204c75372e2c062f0.tar.gz llvm-95bd9eef42679f3d13e3279204c75372e2c062f0.tar.bz2 |
[clang][Sema] Declare builtins used in #pragma intrinsic (#138205)
When trying to remove the usage of `__has_builtin` on MSVC CUDA ARM for
some builtins, the recommended direction was to universally declare the
MSVC builtins on all platforms and require the header providing
declarations to be included. This was done
[here](https://github.com/llvm/llvm-project/pull/128222).
However, some MSVC headers already use the MSVC builtins without
including the header, so we introduce a warning for anyone compiling
with MSVC for this target, so the above change had to be reverted.
The MSVC headers use `#pragma intrinsic` before the intrinsic uses and
that seems to be enough for MSVC, so declare builtins when used in
`#pragma intrinsic` in Clang to prevent the warning.
---------
Signed-off-by: Sarnie, Nick <nick.sarnie@intel.com>
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions