[llvm] [WebAssembly] Print type signature and table for call_indirect (PR #179120)

via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 14 07:56:43 PST 2026


================

----------------
ParkHanbum wrote:

```
; CHECK-LABEL: .section .custom_section.target_features
; CHECK: .int8   43
; CHECK: .int8   9
; CHECK-NEXT: .ascii  "tail-call"
```
Is it acceptable to proceed this way? There are numerous instances of `.int8 43`, so it seems we cannot use it as is. 

Alternatively, we could add the -mcpu=mvp option to the current test, but since our objective is to output the __indirect_function_table, we believe we should at least verify the Preference-type.

The following is the result with the -mcpu=mvp option added.

```
        .section        .custom_section.target_features,"",@
        .int8   3
        .int8   43
        .int8   22
        .ascii  "call-indirect-overlong"
        .int8   43
        .int8   15
        .ascii  "reference-types"
        .int8   43
        .int8   9
        .ascii  "tail-call"
        .section        .text.unique_caller,"",@
```

Which do you think is better?


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


More information about the llvm-commits mailing list