[PATCH] D13119: [WebAssembly] Switch to a more traditional assembly syntax

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 23 15:07:06 PDT 2015


sunfish created this revision.
sunfish added a reviewer: jfb.
sunfish added a subscriber: llvm-commits.
sunfish set the repository for this revision to rL LLVM.
Herald added subscribers: dschuff, jfb.

The s-expression syntax is problematic for MC because it requires nested instructions, nested control flow, and entirely custom handling of static initializers. Instead of using s-expressions as the immediate output of the compiler, use a more traditional-looking assembly syntax using a stack-machine-like mechanism to represent nesting.


Repository:
  rL LLVM

http://reviews.llvm.org/D13119

Files:
  lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
  lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  test/CodeGen/WebAssembly/call.ll
  test/CodeGen/WebAssembly/cfg-stackify.ll
  test/CodeGen/WebAssembly/comparisons_f32.ll
  test/CodeGen/WebAssembly/comparisons_f64.ll
  test/CodeGen/WebAssembly/comparisons_i32.ll
  test/CodeGen/WebAssembly/comparisons_i64.ll
  test/CodeGen/WebAssembly/conv.ll
  test/CodeGen/WebAssembly/fast-isel.ll
  test/CodeGen/WebAssembly/fp32.ll
  test/CodeGen/WebAssembly/fp64.ll
  test/CodeGen/WebAssembly/func.ll
  test/CodeGen/WebAssembly/global.ll
  test/CodeGen/WebAssembly/globl.ll
  test/CodeGen/WebAssembly/immediates.ll
  test/CodeGen/WebAssembly/integer32.ll
  test/CodeGen/WebAssembly/integer64.ll
  test/CodeGen/WebAssembly/load-ext.ll
  test/CodeGen/WebAssembly/load-store-i1.ll
  test/CodeGen/WebAssembly/load.ll
  test/CodeGen/WebAssembly/memory-addr32.ll
  test/CodeGen/WebAssembly/memory-addr64.ll
  test/CodeGen/WebAssembly/phi.ll
  test/CodeGen/WebAssembly/return-void.ll
  test/CodeGen/WebAssembly/store-trunc.ll
  test/CodeGen/WebAssembly/store.ll
  test/CodeGen/WebAssembly/switch.ll
  test/CodeGen/WebAssembly/unused-argument.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13119.35558.patch
Type: text/x-patch
Size: 106830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150923/ab268d03/attachment-0001.bin>


More information about the llvm-commits mailing list