[llvm-branch-commits] [clang] [clang][builtin] Implement __builtin_allow_runtime_check (PR #87568)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 10 14:22:15 PDT 2024


================
@@ -3464,6 +3464,34 @@ Query for this feature with ``__has_builtin(__builtin_trap)``.
 
 ``__builtin_arm_trap`` is lowered to the ``llvm.aarch64.break`` builtin, and then to ``brk #payload``.
 
+``__builtin_allow_runtime_check``
----------------
vitalybuka wrote:

I've started RFC, as @efriedma-quic suggested
https://discourse.llvm.org/t/rfc-introduce-new-clang-builtin-builtin-allow-runtime-check/78281

It needs to be compiler time lowered, so I think it should literals. 



https://github.com/llvm/llvm-project/pull/87568


More information about the llvm-branch-commits mailing list