]> granicus.if.org Git - clang/commit
[WebAssembly] Initial WebAssembly support in clang
authorDan Gohman <dan433584@gmail.com>
Thu, 3 Sep 2015 22:51:53 +0000 (22:51 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 3 Sep 2015 22:51:53 +0000 (22:51 +0000)
commitff7b95746431d69b88402ef1dd27279d1e3606c3
tree4fd15375eae14fdd78359aabf0dee042112712d4
parentd40851784c38246462105689e66db48448817cb7
[WebAssembly] Initial WebAssembly support in clang

This implements basic support for compiling (though not yet assembling
or linking) for a WebAssembly target. Note that ABI details are not yet
finalized, and may change.

Differential Revision: http://reviews.llvm.org/D12002

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246814 91177308-0d34-0410-b5e6-96231b3b80d8
32 files changed:
include/clang/Basic/BuiltinsWebAssembly.def [new file with mode: 0644]
include/clang/Basic/TargetBuiltins.h
include/clang/Basic/TargetCXXABI.h
include/clang/Driver/Options.td
include/clang/module.modulemap
lib/AST/ASTContext.cpp
lib/Basic/Targets.cpp
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CodeGenFunction.h
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/ItaniumCXXABI.cpp
lib/CodeGen/TargetInfo.cpp
lib/Driver/Driver.cpp
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
lib/Driver/Tools.cpp
test/CodeGen/align-wasm.c [new file with mode: 0644]
test/CodeGen/builtins-wasm.c [new file with mode: 0644]
test/CodeGen/target-data.c
test/CodeGen/wasm-arguments.c [new file with mode: 0644]
test/CodeGen/wasm-regparm.c [new file with mode: 0644]
test/CodeGenCXX/constructor-destructor-return-this.cpp
test/CodeGenCXX/member-alignment.cpp
test/CodeGenCXX/member-function-pointers.cpp
test/CodeGenCXX/static-init-wasm.cpp [new file with mode: 0644]
test/CodeGenCXX/wasm-args-returns.cpp [new file with mode: 0644]
test/Driver/thread-model.c
test/Driver/wasm32-unknown-unknown.cpp [new file with mode: 0644]
test/Driver/wasm64-unknown-unknown.cpp [new file with mode: 0644]
test/Preprocessor/init.c
test/Preprocessor/wasm-target-features.c [new file with mode: 0644]