aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authoryonghong-song <yhs@fb.com>2025-10-07 16:34:06 -0700
committerGitHub <noreply@github.com>2025-10-07 16:34:06 -0700
commit94f290fffd80bd7c7d65db1df78cdacab633aab4 (patch)
tree60df8045306a9fe3a19338d08b2a511ecca82dfb /clang/lib/CodeGen/CodeGenModule.cpp
parent9715ccae1f98162f03ac0884a3dce5045b6b9a6e (diff)
downloadllvm-94f290fffd80bd7c7d65db1df78cdacab633aab4.zip
llvm-94f290fffd80bd7c7d65db1df78cdacab633aab4.tar.gz
llvm-94f290fffd80bd7c7d65db1df78cdacab633aab4.tar.bz2
[BPF] Handle certain mem intrinsic functions with addr-space arguments (#160025)
In linux kernel commit [1], we have a bpf selftest failure caused by llvm. In this particular case, the BPFCheckAndAdjustIR pass has a function insertASpaceCasts() which inserts proper addrspacecast insn at proper IR places. It does not handle __builtin_memset() and hance caused selftest failure. Add support in insertASpaceCasts() to handle __builtin_(memset,memcpy,memmove,memset_inline,memcpy_inline}() properly and this can fix the issue in [1] as well. [1] https://lore.kernel.org/all/20250920045805.3288551-1-yonghong.song@linux.dev/
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions