Issue 172907
Summary [WebAssembly] set table address type
Labels new issue
Assignees
Reporter daxpedda
    It is currently not possible to create `i64` tables through `llvm-mc` (AFAIK).
```gas
foo:
	.tabletype foo, externref
```
always creates:
```wat
(table $foo 0 externref)
```
even when compiled with `wasm64`:
`llvm-mc --arch=wasm64 -mattr=+reference-types -filetype=obj test.s -o test.wasm`

This behavior seems to differ to inline assembly, where through additional target information, which can't be passed in the CLI, changes the default address type of tables to `i64`.

I'm not sure if we want to change anything about the default here, but I would propose simply adding another parameter to `.tabletype` accepting an address type. This would also allow the creation of `i32` address type tables in inline assembly even when targeting `wasm64-unknown-unknown`.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to