[llvm] [Transforms] Introduce BuildBuiltins.h atomic helpers (PR #134455)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 9 07:37:08 PDT 2025
================
@@ -462,11 +462,91 @@ TLI_DEFINE_ENUM_INTERNAL(atomic_load)
TLI_DEFINE_STRING_INTERNAL("__atomic_load")
TLI_DEFINE_SIG_INTERNAL(Void, SizeT, Ptr, Ptr, Int)
+/// int8_t __atomic_load_1(void *ptr, int memorder);
----------------
NimishMishra wrote:
Is the choice to let `__atomic_load_N` return a sized integer, while `__atomic_load` return void based on maintaining proximity with GCC's definitions of these builtins? Or is there any other reason which I am missing?
https://github.com/llvm/llvm-project/pull/134455
More information about the llvm-commits
mailing list