[PATCH] [WebAssembly] Skeleton WebAssembly target

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Jun 19 11:34:43 PDT 2015


I am really happy to see this!

I just tried to build it with cmake and got some errors:

WebAssemblyInstPrinter.cpp:28:10: fatal error:
'WebAssemblyGenAsmWriter.inc' file not found
WebAssemblyISelDAGToDAG.cpp:60:10: fatal error:
'WebAssemblyGenDAGISel.inc' file not found

Do code models and relocation models have any meaning in webassembly?

Is SIMD an optional feature?

Atomics? Is there a memory model? You mentioned that there is nothing
like C's undefined behavior...

It is a bit funny that webassembly is an OS. Targeting web assembly
always implies the same apis, no?

Cheers,
Rafael


On 19 June 2015 at 10:28, Dan Gohman <dan433584 at gmail.com> wrote:
> This patch introduces the WebAssembly target triples and a skeleton WebAssembly target in lib/Target/WebAssembly, per discussion in [0].
>
> [0] http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-June/086890.html
>
> http://reviews.llvm.org/D10569
>
> Files:
>   CODE_OWNERS.TXT
>   CREDITS.TXT
>   autoconf/configure.ac
>   cmake/config-ix.cmake
>   configure
>   include/llvm/ADT/Triple.h
>   lib/Support/Triple.cpp
>   lib/Target/LLVMBuild.txt
>   lib/Target/WebAssembly/CMakeLists.txt
>   lib/Target/WebAssembly/InstPrinter/CMakeLists.txt
>   lib/Target/WebAssembly/InstPrinter/LLVMBuild.txt
>   lib/Target/WebAssembly/InstPrinter/Makefile
>   lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.cpp
>   lib/Target/WebAssembly/InstPrinter/WebAssemblyInstPrinter.h
>   lib/Target/WebAssembly/LLVMBuild.txt
>   lib/Target/WebAssembly/MCTargetDesc/CMakeLists.txt
>   lib/Target/WebAssembly/MCTargetDesc/LLVMBuild.txt
>   lib/Target/WebAssembly/MCTargetDesc/Makefile
>   lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.cpp
>   lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCAsmInfo.h
>   lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.cpp
>   lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
>   lib/Target/WebAssembly/Makefile
>   lib/Target/WebAssembly/README.txt
>   lib/Target/WebAssembly/TargetInfo/CMakeLists.txt
>   lib/Target/WebAssembly/TargetInfo/LLVMBuild.txt
>   lib/Target/WebAssembly/TargetInfo/Makefile
>   lib/Target/WebAssembly/TargetInfo/WebAssemblyTargetInfo.cpp
>   lib/Target/WebAssembly/WebAssembly.h
>   lib/Target/WebAssembly/WebAssembly.td
>   lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
>   lib/Target/WebAssembly/WebAssemblyFrameLowering.h
>   lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
>   lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
>   lib/Target/WebAssembly/WebAssemblyISelLowering.h
>   lib/Target/WebAssembly/WebAssemblyInstrAtomics.td
>   lib/Target/WebAssembly/WebAssemblyInstrFormats.td
>   lib/Target/WebAssembly/WebAssemblyInstrInfo.cpp
>   lib/Target/WebAssembly/WebAssemblyInstrInfo.h
>   lib/Target/WebAssembly/WebAssemblyInstrInfo.td
>   lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
>   lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.cpp
>   lib/Target/WebAssembly/WebAssemblyMachineFunctionInfo.h
>   lib/Target/WebAssembly/WebAssemblyRegisterInfo.cpp
>   lib/Target/WebAssembly/WebAssemblyRegisterInfo.h
>   lib/Target/WebAssembly/WebAssemblyRegisterInfo.td
>   lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.cpp
>   lib/Target/WebAssembly/WebAssemblySelectionDAGInfo.h
>   lib/Target/WebAssembly/WebAssemblySubtarget.cpp
>   lib/Target/WebAssembly/WebAssemblySubtarget.h
>   lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
>   lib/Target/WebAssembly/WebAssemblyTargetMachine.h
>   lib/Target/WebAssembly/WebAssemblyTargetObjectFile.h
>   lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
>   lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
>   unittests/ADT/TripleTest.cpp
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>



More information about the llvm-commits mailing list