[llvm] [LangRef] Add hybrid_patchable attribute description (PR #219806)

via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 30 07:31:55 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: Jacek Caban (cjacek)

<details>
<summary>Changes</summary>



---
Full diff: https://github.com/llvm/llvm-project/pull/219806.diff


1 Files Affected:

- (modified) llvm/docs/LangRef.md (+7) 


``````````diff
diff --git a/llvm/docs/LangRef.md b/llvm/docs/LangRef.md
index ee1600b96f1dd..e228cccdb0ac6 100644
--- a/llvm/docs/LangRef.md
+++ b/llvm/docs/LangRef.md
@@ -2273,6 +2273,13 @@ define void @f() "no-sse" { ... }
     around the cases where the training input does not have good coverage
     on all the hot functions.
 
+`hybrid_patchable`
+:   This attribute indicates that an ARM64EC function may be patched at runtime.
+    In addition to the function's actual implementation, an x86-64 function
+    thunk is generated. Code referencing the function will use this thunk as its
+    address, and calls to the function perform an additional runtime check to
+    execute the call through the emulator if the thunk has been patched.
+
 `inlinehint`
 :   This attribute indicates that the source code contained a hint that
     inlining this function is desirable (such as the "inline" keyword in

``````````

</details>


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


More information about the llvm-commits mailing list