[clang] [CIR] Add inline function attributes (PR #162866)

Morris Hafner via cfe-commits cfe-commits at lists.llvm.org
Sat Oct 11 15:20:46 PDT 2025


================
@@ -123,7 +123,7 @@ void func() {
 // CIR: %[[TMP:.*]] = cir.load{{.*}} %[[ELE_PTR]] : !cir.ptr<!s32i>, !s32i
 // CIR" cir.store %[[TMP]], %[[INIT_2]] : !s32i, !cir.ptr<!s32i>
 
-// LLVM: define{{.*}} void @_Z4funcv()
+// LLVM: define{{.*}} void @_Z4funcv(){{.*}}
----------------
mmha wrote:

These tests do in fact need that change because these functions now get `noinline` attached when no optimizations are enabled. Typically the `{{.*}}` matches a `#0` that contains a `noinline`.

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


More information about the cfe-commits mailing list