llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc
Dan Gohman db1916a646 [WebAssembly] Add mechanisms for specifying an explicit import module name.
This adds a wasm-import-module function attribute and a .import_module
assembler directive, for specifying module import names for WebAssembly.
Currently these may only be used for function symbols; global variables
may be considered in the future.

WebAssembly has a two-level namespace scheme for symbols, and it's
normally the linker's job to assign the module name, which is the
first-level name. The attributes here allow users to specify their
own module names explicitly, which is useful for tools generating
bindings to modules defined in other languages.

This feature is not fully usable yet. It will evolve along with the
ongoing symbol table and lld changes.

Differential Revision: https://reviews.llvm.org/D42520

llvm-svn: 324778
2018-02-09 23:13:22 +00:00
..
CMakeLists.txt [WebAssembly] Add skeleton MC support for the Wasm container format 2017-02-22 01:23:18 +00:00
LLVMBuild.txt
WebAssemblyAsmBackend.cpp [WebAssembly] Update MCObjectWriter and associated interfaces after r315327 2017-10-10 17:31:43 +00:00
WebAssemblyELFObjectWriter.cpp [WebAssembly] Update MCObjectWriter and associated interfaces after r315327 2017-10-10 17:31:43 +00:00
WebAssemblyFixupKinds.h [WebAssembly] Basic support for Wasm object file encoding. 2017-02-24 23:18:00 +00:00
WebAssemblyMCAsmInfo.cpp Unbreak build of the wasm backend after r300463. 2017-04-17 19:08:41 +00:00
WebAssemblyMCAsmInfo.h [WebAssembly] Add skeleton MC support for the Wasm container format 2017-02-22 01:23:18 +00:00
WebAssemblyMCCodeEmitter.cpp [WebAssembly] Fix trapping behavior in fptosi/fptoui. 2017-11-28 01:13:40 +00:00
WebAssemblyMCTargetDesc.cpp Fix build of WebAssembly and AVR backends after r321692 2018-01-03 09:30:39 +00:00
WebAssemblyMCTargetDesc.h [WebAssembly] Update MCObjectWriter and associated interfaces after r315327 2017-10-10 17:31:43 +00:00
WebAssemblyTargetStreamer.cpp [WebAssembly] Add mechanisms for specifying an explicit import module name. 2018-02-09 23:13:22 +00:00
WebAssemblyTargetStreamer.h [WebAssembly] Add mechanisms for specifying an explicit import module name. 2018-02-09 23:13:22 +00:00
WebAssemblyWasmObjectWriter.cpp [WebAssembly] Update MCObjectWriter and associated interfaces after r315327 2017-10-10 17:31:43 +00:00