| /external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ | 
| D | WebAssemblyRuntimeLibcallSignatures.cpp | 514                                SmallVectorImpl<wasm::ValType> &Rets,  in getLibcallSignature()515                                SmallVectorImpl<wasm::ValType> &Params) {  in getLibcallSignature()
 519   wasm::ValType PtrTy =  in getLibcallSignature()
 520       Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32;  in getLibcallSignature()
 527     Rets.push_back(wasm::ValType::F32);  in getLibcallSignature()
 528     Params.push_back(wasm::ValType::F32);  in getLibcallSignature()
 531     Rets.push_back(wasm::ValType::F32);  in getLibcallSignature()
 532     Params.push_back(wasm::ValType::F64);  in getLibcallSignature()
 535     Rets.push_back(wasm::ValType::F32);  in getLibcallSignature()
 536     Params.push_back(wasm::ValType::I32);  in getLibcallSignature()
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/ | 
| D | IntrinsicsWebAssembly.h | 16     wasm_alltrue = 6285,                              // llvm.wasm.alltrue17     wasm_anytrue,                              // llvm.wasm.anytrue
 18     wasm_atomic_notify,                        // llvm.wasm.atomic.notify
 19     wasm_atomic_wait_i32,                      // llvm.wasm.atomic.wait.i32
 20     wasm_atomic_wait_i64,                      // llvm.wasm.atomic.wait.i64
 21     wasm_avgr_unsigned,                        // llvm.wasm.avgr.unsigned
 22     wasm_bitselect,                            // llvm.wasm.bitselect
 23     wasm_data_drop,                            // llvm.wasm.data.drop
 24     wasm_dot,                                  // llvm.wasm.dot
 25     wasm_extract_exception,                    // llvm.wasm.extract.exception
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/ | 
| D | Wasm.h | 1 //===- Wasm.h - Wasm object file implementation -----------------*- C++ -*-===//10 // interface for Wasm files.
 22 #include "llvm/BinaryFormat/Wasm.h"
 38   WasmSymbol(const wasm::WasmSymbolInfo &Info,  in WasmSymbol()
 39              const wasm::WasmGlobalType *GlobalType,  in WasmSymbol()
 40              const wasm::WasmEventType *EventType,  in WasmSymbol()
 41              const wasm::WasmSignature *Signature)  in WasmSymbol()
 45   const wasm::WasmSymbolInfo &Info;
 46   const wasm::WasmGlobalType *GlobalType;
 47   const wasm::WasmEventType *EventType;
 [all …]
 
 | 
| D | WasmTraits.h | 1 //===- WasmTraits.h - DenseMap traits for the Wasm structures ---*- C++ -*-===//9 // This file provides llvm::DenseMapInfo traits for the Wasm structures.
 17 #include "llvm/BinaryFormat/Wasm.h"
 24 template <> struct DenseMapInfo<wasm::WasmSignature> {
 25   static wasm::WasmSignature getEmptyKey() {
 26     wasm::WasmSignature Sig;
 27     Sig.State = wasm::WasmSignature::Empty;
 30   static wasm::WasmSignature getTombstoneKey() {
 31     wasm::WasmSignature Sig;
 32     Sig.State = wasm::WasmSignature::Tombstone;
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ | 
| D | WasmObjectFile.cpp | 1 //===- WasmObjectFile.cpp - Wasm object file implementation ---------------===//16 #include "llvm/BinaryFormat/Wasm.h"
 22 #include "llvm/Object/Wasm.h"
 34 #define DEBUG_TYPE "wasm-object"
 41       << ", Kind=" << toString(wasm::WasmSymbolType(Info.Kind))  in print()
 162 static Error readInitExpr(wasm::WasmInitExpr &Expr,  in readInitExpr()
 167   case wasm::WASM_OPCODE_I32_CONST:  in readInitExpr()
 170   case wasm::WASM_OPCODE_I64_CONST:  in readInitExpr()
 173   case wasm::WASM_OPCODE_F32_CONST:  in readInitExpr()
 176   case wasm::WASM_OPCODE_F64_CONST:  in readInitExpr()
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ | 
| D | WasmObjectWriter.cpp | 1 //===- lib/MC/WasmObjectWriter.cpp - Wasm File Writer ---------------------===//9 // This file implements Wasm object file writer information.
 15 #include "llvm/BinaryFormat/Wasm.h"
 58 // The signature of a wasm function or event, in a struct capable of being used
 60 // TODO: Consider using wasm::WasmSignature directly instead.
 66   SmallVector<wasm::ValType, 1> Returns;
 69   SmallVector<wasm::ValType, 4> Params;
 91     for (wasm::ValType Ret : Sig.Returns)  in getHashValue()
 93     for (wasm::ValType Param : Sig.Params)  in getHashValue()
 102 // A wasm data segment.  A wasm binary contains only a single data section
 [all …]
 
 | 
| /external/skia/modules/canvaskit/wasm_tools/SIMD/ | 
| D | simd_int_capabilities.cpp | 11 // - Lines with "//GOOD" are compatible with WASM SIMD and are automatically compiled12 //   into WASM SIMD operations by emscripten.
 14 // - Lines with "GOOD (FIXED)" are compatible with WASM SIMD but are NOT automatically
 15 //   compiled into WASM SIMD operations by emscripten. Special WASM SIMD intrinsics have been
 16 //   specified in skia/src/base/SkVx.h to tell emscripten how to compile them to WASM SIMD
 18 // - Lines with "//not available in wasm" do not have compatible WASM SIMD operations. Emscripten
 19 //   compiles these operations into non-SIMD WASM.
 20 // - Lines with "//???" may be more complex and it is not clear if they have compatible WASM SIMD
 23 // How to use this file for testing WASM SIMDification of operations:
 26 //   to check if a WASM SIMD operation exists which correspond to any given line of code.
 [all …]
 
 | 
| D | simd_float_capabilities.cpp | 11 // - Lines with "//GOOD" are compatible with WASM SIMD and are automatically compiled12 //   into WASM SIMD operations by emscripten.
 14 // - Lines with "GOOD (FIXED)" are compatible with WASM SIMD but are NOT automatically
 15 //   compiled into WASM SIMD operations by emscripten. Special WASM SIMD intrinsics have been
 16 //   specified in skia/src/base/SkVx.h to tell emscripten how to compile them to WASM SIMD
 18 // - Lines with "//not available in wasm" do not have compatible WASM SIMD operations. Emscripten
 19 //   compiles these operations into non-SIMD WASM.
 20 // - Lines with "//???" may be more complex and it is not clear if they have compatible WASM SIMD
 23 // How to use this file for testing WASM SIMDification of operations:
 26 //   to check if a WASM SIMD operation exists which correspond to any given line of code.
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ | 
| D | MCSymbolWasm.h | 11 #include "llvm/BinaryFormat/Wasm.h"17   wasm::WasmSymbolType Type = wasm::WASM_SYMBOL_TYPE_DATA;
 25   wasm::WasmSignature *Signature = nullptr;
 26   Optional<wasm::WasmGlobalType> GlobalType;
 27   Optional<wasm::WasmEventType> EventType;
 43   bool isFunction() const { return Type == wasm::WASM_SYMBOL_TYPE_FUNCTION; }  in isFunction()
 44   bool isData() const { return Type == wasm::WASM_SYMBOL_TYPE_DATA; }  in isData()
 45   bool isGlobal() const { return Type == wasm::WASM_SYMBOL_TYPE_GLOBAL; }  in isGlobal()
 46   bool isSection() const { return Type == wasm::WASM_SYMBOL_TYPE_SECTION; }  in isSection()
 47   bool isEvent() const { return Type == wasm::WASM_SYMBOL_TYPE_EVENT; }  in isEvent()
 [all …]
 
 | 
| /external/XNNPACK/scripts/ | 
| D | generate-f32-vbinary.sh | 9 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=ADD     -D BATCH_TILE=1 -D WASM=0 -D ACTIVATION=M…10 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=ADD     -D BATCH_TILE=2 -D WASM=0 -D ACTIVATION=M…
 11 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=ADD     -D BATCH_TILE=4 -D WASM=0 -D ACTIVATION=M…
 12 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=ADD     -D BATCH_TILE=8 -D WASM=0 -D ACTIVATION=M…
 13 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=DIV     -D BATCH_TILE=1 -D WASM=0 -D ACTIVATION=M…
 14 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=DIV     -D BATCH_TILE=2 -D WASM=0 -D ACTIVATION=M…
 15 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=DIV     -D BATCH_TILE=4 -D WASM=0 -D ACTIVATION=M…
 16 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=DIV     -D BATCH_TILE=8 -D WASM=0 -D ACTIVATION=M…
 17 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=MUL     -D BATCH_TILE=1 -D WASM=0 -D ACTIVATION=M…
 18 tools/xngen src/f32-vbinary/vop-scalar.c.in -D OP=MUL     -D BATCH_TILE=2 -D WASM=0 -D ACTIVATION=M…
 [all …]
 
 | 
| /external/skia/modules/pathkit/ | 
| D | Makefile | 4 	mkdir  -p ./build/wasm ./build/asmjs5 	cp ../../out/pathkit/pathkit.js     ./build/wasm/pathkit.js
 6 	cp ../../out/pathkit/pathkit.wasm   ./build/wasm/pathkit.wasm
 14 	mkdir  -p ./build/wasm ./build/asmjs
 15 	cp ../../out/pathkit/pathkit.js     ./build/wasm/pathkit.js
 16 	cp ../../out/pathkit/pathkit.wasm   ./build/wasm/pathkit.wasm
 23 	rm -rf ./npm-wasm/bin ./npm-asmjs/bin
 24 	mkdir -p ./npm-wasm/bin ./npm-asmjs/bin
 26 	cp ../../out/pathkit/pathkit.js   ./npm-wasm/bin
 27 	cp ../../out/pathkit/pathkit.wasm ./npm-wasm/bin
 [all …]
 
 | 
| /external/swiftshader/third_party/subzero/ | 
| D | README-wasm.md | 1 # Wasm Prototype Experiment Notes7     -f Makefile.standalone WASM=1 && \
 9     -target=arm32 ./torture-s2wasm-sexpr-wasm/20000112-1.c.s.wast.wasm
 21 `wasm-run-torture-tests.py` can be used to run all the tests, or some
 23 torture tests from the [WebAssembly waterfall](https://wasm-stat.us/console) or
 30 ./pnacl-sz -filetype=obj -o foo.o foo.wasm
 31 clang -m32 foo.o src/wasm-runtime.c
 37 Compile a C file to a .wasm
 39 ./wasm-install/bin/emscripten/emcc hello-wasm.c -s BINARYEN=1
 40 ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm
 
 | 
| /external/skia/modules/pathkit/npm-wasm/ | 
| D | README.md | 1 A WASM version of Skia's PathOps toolkit.3 To use the library, run `npm install pathkit-wasm` and then simply include it:
 5     <script src="/node_modules/pathkit-wasm/bin/pathkit.js"></script>
 7         locateFile: (file) => '/node_modules/pathkit-wasm/bin/'+file,
 12 PathKit comes in two parts, a JS loader and the actual WASM code. The JS loader creates
 13 a global `PathKitInit` that can be called to load the WASM code. The `locateFile` function
 14 is used to tell the JS loader where to find the .wasm file. By default, it will
 15 look for /pathkit.wasm, so if this is not the case, use `locateFile` to configure
 20 [example.html](https://github.com/google/skia/blob/main/modules/pathkit/npm-wasm/example.html)
 26 WebPack's support for WASM is still somewhat experimental, but PathKit can be
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ObjectYAML/ | 
| D | WasmYAML.h | 1 //===- WasmYAML.h - Wasm YAMLIO implementation ------------------*- C++ -*-===//11 /// of wasm binaries.
 19 #include "llvm/BinaryFormat/Wasm.h"
 66   wasm::WasmInitExpr Offset;
 74   wasm::WasmInitExpr InitExpr;
 118   wasm::WasmInitExpr Offset;
 146   SignatureForm Form = wasm::WASM_TYPE_FUNC;
 158     wasm::WasmDataReference DataRef;
 187       : Section(wasm::WASM_SEC_CUSTOM), Name(Name) {}  in CustomSection()
 190     return S->Type == wasm::WASM_SEC_CUSTOM;  in classof()
 [all …]
 
 | 
| /external/rust/crates/instant/ | 
| D | README.md | 3 If you call `std::time::Instant::now()` on a WASM platform, it will panic. This crate provides a pa…4 replacement for `std::time::Instant` that works on WASM too. This defines the type `instant::Instan…
 7 **and** you enabled either the `stdweb` or the `wasm-bindgen` feature. This emulation is based on t…
 12 Note that even if the **stdweb** or **wasm-bindgen** feature is enabled, this crate will continue t…
 13 …t targeting wasm32. This allows for portable code that will work on both native and WASM platforms.
 17 * Call `performance.now()` when compiling for a WASM platform with the features **stdweb** or **was…
 18 * Return the time elapsed since the *Unix Epoch* on *native*, *non-WASM* platforms.
 40 ### Using `instant` for a WASM platform.
 41 This example shows the use of the `stdweb` feature. It would be similar with `wasm-bindgen`.
 59 ### Using `instant` for a WASM platform where `performance.now()` is not available.
 [all …]
 
 | 
| D | Cargo.toml.orig | 5 description = "A partial replacement for std::time::Instant that works on WASM too."9 keywords = [ "time", "wasm" ]
 13 wasm-bindgen = ["js-sys", "wasm-bindgen_rs", "web-sys"]
 23 wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true }
 29 wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true }
 35 wasm-bindgen_rs = { package = "wasm-bindgen", version = "0.2", optional = true }
 39 wasm-bindgen-test = "0.3"
 
 | 
| /external/skia/modules/canvaskit/ | 
| D | Makefile | 13 	cp ../../out/canvaskit_wasm/canvaskit.wasm ./build/21 	cp ../../out/canvaskit_wasm/canvaskit.wasm ./build/
 29 	cp ../../out/canvaskit_wasm/canvaskit.wasm ./build/
 37 	cp ../../out/canvaskit_wasm/canvaskit.wasm ./build/
 45 	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/
 53 	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/
 61 	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/
 69 	cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/
 76 	cp ../../out/canvaskit_wasm_profile/canvaskit.wasm ./build/
 86 	cp ../../out/canvaskit_wasm/canvaskit.wasm     ./npm_build/bin/full
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ | 
| D | WasmYAML.cpp | 1 //===- WasmYAML.cpp - Wasm YAMLIO implementation --------------------------===//9 // This file defines classes for handling the YAML representation of wasm.
 39   IO.mapTag("!WASM", true);  in mapping()
 170   case wasm::WASM_SEC_CUSTOM: {  in mapping()
 205   case wasm::WASM_SEC_TYPE:  in mapping()
 210   case wasm::WASM_SEC_IMPORT:  in mapping()
 215   case wasm::WASM_SEC_FUNCTION:  in mapping()
 220   case wasm::WASM_SEC_TABLE:  in mapping()
 225   case wasm::WASM_SEC_MEMORY:  in mapping()
 230   case wasm::WASM_SEC_GLOBAL:  in mapping()
 [all …]
 
 | 
| D | WasmEmitter.cpp | 1 //===- yaml2wasm - Convert YAML to a Wasm object file --------------------===//10 /// The Wasm component of yaml2obj.
 15 #include "llvm/Object/Wasm.h"
 24 /// This parses a yaml stream that represents a Wasm object file.
 36   void writeInitExpr(raw_ostream &OS, const wasm::WasmInitExpr &InitExpr);
 120   if (Lim.Flags & wasm::WASM_LIMITS_FLAG_HAS_MAX)  in writeLimits()
 131                                const wasm::WasmInitExpr &InitExpr) {  in writeInitExpr()
 134   case wasm::WASM_OPCODE_I32_CONST:  in writeInitExpr()
 137   case wasm::WASM_OPCODE_I64_CONST:  in writeInitExpr()
 140   case wasm::WASM_OPCODE_F32_CONST:  in writeInitExpr()
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/ | 
| D | WebAssemblyWasmObjectWriter.cpp | 1 //===-- WebAssemblyWasmObjectWriter.cpp - WebAssembly Wasm Writer ---------===//10 /// This file handles Wasm-specific object emission, converting LLVM's
 17 #include "llvm/BinaryFormat/Wasm.h"
 75       return wasm::R_WASM_GLOBAL_INDEX_LEB;  in getRelocType()
 78       return wasm::R_WASM_TABLE_INDEX_REL_SLEB;  in getRelocType()
 81       return wasm::R_WASM_MEMORY_ADDR_REL_SLEB;  in getRelocType()
 83       return wasm::R_WASM_TYPE_INDEX_LEB;  in getRelocType()
 91       return wasm::R_WASM_TABLE_INDEX_SLEB;  in getRelocType()
 92     return wasm::R_WASM_MEMORY_ADDR_SLEB;  in getRelocType()
 97       return wasm::R_WASM_GLOBAL_INDEX_LEB;  in getRelocType()
 [all …]
 
 | 
| /external/skia/infra/bots/recipes/test_pathkit.expected/ | 
| D | pathkit_trybot.json | 83       "[START_DIR]/skia/modules/pathkit/build/wasm"86     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/build/wasm",
 100       "[START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js"
 103 …cker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js",
 112       "[START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js"
 115     "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js",
 130       "[START_DIR]/skia/modules/pathkit/build/wasm"
 133     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/build/wasm (2)",
 146       "[START_DIR]/build/pathkit.wasm",
 147       "[START_DIR]/skia/modules/pathkit/build/wasm/pathkit.wasm"
 [all …]
 
 | 
| D | Test-Debian10-EMCC-GCE-CPU-AVX2-wasm-Debug-All-PathKit.json | 83       "[START_DIR]/skia/modules/pathkit/build/wasm"86     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/build/wasm",
 100       "[START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js"
 103 …cker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js",
 112       "[START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js"
 115     "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/build/wasm/pathkit.js",
 130       "[START_DIR]/skia/modules/pathkit/build/wasm"
 133     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/build/wasm (2)",
 146       "[START_DIR]/build/pathkit.wasm",
 147       "[START_DIR]/skia/modules/pathkit/build/wasm/pathkit.wasm"
 [all …]
 
 | 
| /external/skia/infra/bots/recipes/perf_pathkit.expected/ | 
| D | Perf-Debian10-EMCC-GCE-CPU-AVX2-wasm-Release-All-PathKit.json | 122       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin"125     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin",
 139       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js"
 142 …"name": "Docker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/npm-wasm/bi…
 151       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js"
 154     "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js",
 169       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin"
 172     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin (2)",
 185       "[START_DIR]/build/pathkit.wasm",
 186       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm"
 [all …]
 
 | 
| D | pathkit_trybot.json | 122       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin"125     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin",
 139       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js"
 142 …"name": "Docker setup.cp [START_DIR]/build/pathkit.js [START_DIR]/skia/modules/pathkit/npm-wasm/bi…
 151       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js"
 154     "name": "Docker setup.chmod 644 [START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.js",
 169       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin"
 172     "name": "Docker setup.mkdirs [START_DIR]/skia/modules/pathkit/npm-wasm/bin (2)",
 185       "[START_DIR]/build/pathkit.wasm",
 186       "[START_DIR]/skia/modules/pathkit/npm-wasm/bin/pathkit.wasm"
 [all …]
 
 | 
| /external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/ | 
| D | Wasm.cpp | 1 //===-- llvm/BinaryFormat/Wasm.cpp -------------------------------*- C++-*-===//9 #include "llvm/BinaryFormat/Wasm.h"
 11 std::string llvm::wasm::toString(wasm::WasmSymbolType Type) {  in toString()
 13   case wasm::WASM_SYMBOL_TYPE_FUNCTION:  in toString()
 15   case wasm::WASM_SYMBOL_TYPE_GLOBAL:  in toString()
 17   case wasm::WASM_SYMBOL_TYPE_DATA:  in toString()
 19   case wasm::WASM_SYMBOL_TYPE_SECTION:  in toString()
 21   case wasm::WASM_SYMBOL_TYPE_EVENT:  in toString()
 27 std::string llvm::wasm::relocTypetoString(uint32_t Type) {  in relocTypetoString()
 39 bool llvm::wasm::relocTypeHasAddend(uint32_t Type) {  in relocTypeHasAddend()
 
 |