[PATCH] D80361: [WebAssembly] Convert more lld and MC tests to assembly

Wouter van Oortmerssen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 21 14:38:53 PDT 2020


aardappel added inline comments.


================
Comment at: lld/test/wasm/Inputs/call-indirect.s:28
+
+  .functype foo () -> (i32)
----------------
tlively wrote:
> Do I understand correctly that the `.int32 foo` declares a symbol `foo` and `.functype foo () -> (i32)` makes it a function symbol with that type?
`.int32` doesn't declare anything, it simply adds static data to the current segment, in this case a relocatable index to `foo`.

`.functype` associates signature information with an existing (or new) symbol/label (since signatures are not traditionally part of asm).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80361/new/

https://reviews.llvm.org/D80361





More information about the llvm-commits mailing list