[llvm] [IR] Support hybrid_patchable attribute in bitcode reader (PR #219804)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 30 09:08:28 PDT 2026


================
@@ -335,3 +335,9 @@ define dso_local void @caller() nounwind {
 ; SYM-NEXT: AUX indx 68 srch 3
 ; SYM-NEXT: [137](sec  0)(fl 0x00)(ty   0)(scl  69) (nx 1) 0x00000000 #exp
 ; SYM-NEXT: AUX indx 78 srch 3
+
+; Check bitcode weader and writer.
+; RUN: llvm-as %s -o %t.bc
+; RUN: llvm-dis %t.bc -o - | FileCheck --check-prefix DIS %s
+; DIS: define dso_local ptr @func() #0 {
+; DIS: attributes #0 = { hybrid_patchable nounwind }
----------------
efriedma-quic wrote:

Most attributes have tests in llvm/test/Bitcode/attributes.ll .

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


More information about the llvm-commits mailing list