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

Aaron Ballman via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 10 11:48:00 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``
----------------
AaronBallman wrote:

The docs aren't particularly clear to me -- why would the check at the current program location ever NOT be executed? What strings can be passed in? What compiler options impact it? Will it only accept string literals or are runtime values fine?

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


More information about the llvm-branch-commits mailing list