Home
last modified time | relevance | path

Searched refs:wasm (Results 1 – 25 of 181) sorted by relevance

12345678

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyRuntimeLibcallSignatures.cpp514 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 …]
DWebAssemblyMCInstLower.cpp64 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_FUNCTION); in GetGlobalAddressSymbol()
85 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_GLOBAL); in GetExternalSymbolSymbol()
86 WasmSym->setGlobalType(wasm::WasmGlobalType{ in GetExternalSymbolSymbol()
87 uint8_t(Subtarget.hasAddr64() ? wasm::WASM_TYPE_I64 in GetExternalSymbolSymbol()
88 : wasm::WASM_TYPE_I32), in GetExternalSymbolSymbol()
93 SmallVector<wasm::ValType, 4> Returns; in GetExternalSymbolSymbol()
94 SmallVector<wasm::ValType, 4> Params; in GetExternalSymbolSymbol()
96 WasmSym->setType(wasm::WASM_SYMBOL_TYPE_EVENT); in GetExternalSymbolSymbol()
100 {wasm::WASM_EVENT_ATTRIBUTE_EXCEPTION, /* SigIndex */ 0}); in GetExternalSymbolSymbol()
111 Params.push_back(Subtarget.hasAddr64() ? wasm::ValType::I64 in GetExternalSymbolSymbol()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DWasm.h38 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;
48 const wasm::WasmSignature *Signature;
51 return Info.Kind == wasm::WASM_SYMBOL_TYPE_FUNCTION; in isTypeFunction()
54 bool isTypeData() const { return Info.Kind == wasm::WASM_SYMBOL_TYPE_DATA; } in isTypeData()
[all …]
DWasmTraits.h24 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;
35 static unsigned getHashValue(const wasm::WasmSignature &Sig) {
43 static bool isEqual(const wasm::WasmSignature &LHS,
44 const wasm::WasmSignature &RHS) {
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/
DMCSymbolWasm.h17 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()
48 wasm::WasmSymbolType getType() const { return Type; } in getType()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DWasmObjectFile.cpp41 << ", 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()
179 case wasm::WASM_OPCODE_GLOBAL_GET: in readInitExpr()
188 if (EndOpcode != wasm::WASM_OPCODE_END) { in readInitExpr()
195 static wasm::WasmLimits readLimits(WasmObjectFile::ReadContext &Ctx) { in readLimits()
196 wasm::WasmLimits Result; in readLimits()
[all …]
/third_party/flutter/skia/modules/pathkit/
DMakefile5 mkdir -p ./npm-wasm/bin
8 cp ../../out/pathkit/pathkit.js ./npm-wasm/bin
9 cp ../../out/pathkit/pathkit.wasm ./npm-wasm/bin
15 cd npm-wasm; npm publish
19 cd npm-wasm; npm version major
24 cd npm-wasm; npm version minor
29 cd npm-wasm; npm version patch
55 mkdir -p ./npm-wasm/bin/test
61 cp ../../out/dockerbuild/pathkit.js ./npm-wasm/bin/test/pathkit.js
62 cp ../../out/dockerbuild/pathkit.wasm ./npm-wasm/bin/test/pathkit.wasm
[all …]
/third_party/skia/modules/pathkit/
DMakefile5 mkdir -p ./npm-wasm/bin
8 cp ../../out/pathkit/pathkit.js ./npm-wasm/bin
9 cp ../../out/pathkit/pathkit.wasm ./npm-wasm/bin
15 cd npm-wasm; npm publish
19 cd npm-wasm; npm version major
24 cd npm-wasm; npm version minor
29 cd npm-wasm; npm version patch
55 mkdir -p ./npm-wasm/bin/test
61 cp ../../out/dockerbuild/pathkit.js ./npm-wasm/bin/test/pathkit.js
62 cp ../../out/dockerbuild/pathkit.wasm ./npm-wasm/bin/test/pathkit.wasm
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DWasmObjectWriter.cpp66 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()
124 wasm::WasmGlobalType Type;
150 bool hasAddend() const { return wasm::relocTypeHasAddend(Type); } in hasAddend()
153 Out << wasm::relocTypetoString(Type) << " Off=" << Offset in print()
237 DenseMap<const MCSymbolWasm *, wasm::WasmDataReference> DataLocations;
310 void writeValueType(wasm::ValType Ty) { W.OS << static_cast<char>(Ty); } in writeValueType()
313 void writeImportSection(ArrayRef<wasm::WasmImport> Imports, uint32_t DataSize,
[all …]
/third_party/skia/tools/run-wasm-gm-tests/
DMakefile2 rm -rf /tmp/wasm-gmtests/
3 mkdir /tmp/wasm-gmtests/
4 touch /tmp/wasm-gmtests/empty.txt
5 node run-wasm-gm-tests --js_file ../../out/wasm_gm_tests_debug/wasm_gm_tests.js \
6 --wasm_file ../../out/wasm_gm_tests_debug/wasm_gm_tests.wasm \
8 --known_hashes /tmp/wasm-gmtests/empty.txt \
9 --output /tmp/wasm-gmtests/ \
14 rm -rf /tmp/wasm-gmtests/
15 mkdir /tmp/wasm-gmtests/
16 touch /tmp/wasm-gmtests/empty.txt
[all …]
/third_party/skia/modules/canvaskit/
DMakefile13 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_debug/canvaskit.wasm ./build/
45 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/
53 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./build/
60 cp ../../out/canvaskit_wasm_profile/canvaskit.wasm ./build/
70 cp ../../out/canvaskit_wasm/canvaskit.wasm ./npm_build/bin/full
76 cp ../../out/canvaskit_wasm/canvaskit.wasm ./npm_build/bin
81 cp ../../out/canvaskit_wasm_profile/canvaskit.wasm ./npm_build/bin/profiling
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyWasmObjectWriter.cpp75 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()
99 return wasm::R_WASM_FUNCTION_INDEX_LEB; in getRelocType()
101 return wasm::R_WASM_EVENT_INDEX_LEB; in getRelocType()
102 return wasm::R_WASM_MEMORY_ADDR_LEB; in getRelocType()
[all …]
/third_party/node/test/wasi/
Dtest-wasi-start-validation.js29 const wasm = await WebAssembly.compile(bufferSource); constant
30 const instance = await WebAssembly.instantiate(wasm);
45 const wasm = await WebAssembly.compile(bufferSource); constant
46 const instance = await WebAssembly.instantiate(wasm);
65 const wasm = await WebAssembly.compile(bufferSource); constant
66 const instance = await WebAssembly.instantiate(wasm);
89 const wasm = await WebAssembly.compile(bufferSource); constant
90 const instance = await WebAssembly.instantiate(wasm);
107 const wasm = await WebAssembly.compile(bufferSource); constant
108 const instance = await WebAssembly.instantiate(wasm);
[all …]
Dtest-wasi-initialize-validation.js29 const wasm = await WebAssembly.compile(bufferSource); constant
30 const instance = await WebAssembly.instantiate(wasm);
45 const wasm = await WebAssembly.compile(bufferSource); constant
46 const instance = await WebAssembly.instantiate(wasm);
65 const wasm = await WebAssembly.compile(bufferSource); constant
66 const instance = await WebAssembly.instantiate(wasm);
89 const wasm = await WebAssembly.compile(bufferSource); constant
90 const instance = await WebAssembly.instantiate(wasm);
107 const wasm = await WebAssembly.compile(bufferSource); constant
108 const instance = await WebAssembly.instantiate(wasm);
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
DWasmYAML.cpp170 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()
235 case wasm::WASM_SEC_EVENT: in mapping()
240 case wasm::WASM_SEC_EXPORT: in mapping()
245 case wasm::WASM_SEC_START: in mapping()
[all …]
DWasmEmitter.cpp36 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()
143 case wasm::WASM_OPCODE_F64_CONST: in writeInitExpr()
146 case wasm::WASM_OPCODE_GLOBAL_GET: in writeInitExpr()
153 writeUint8(OS, wasm::WASM_OPCODE_END); in writeInitExpr()
177 writeUint8(OS, wasm::WASM_SYMBOL_TABLE); in writeSectionContent()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ObjectYAML/
DWasmYAML.h66 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()
263 TypeSection() : Section(wasm::WASM_SEC_TYPE) {} in TypeSection()
266 return S->Type == wasm::WASM_SEC_TYPE; in classof()
273 ImportSection() : Section(wasm::WASM_SEC_IMPORT) {} in ImportSection()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/
DWasm.cpp11 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()
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/
DREADME-wasm.md9 -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
Dc2wasm-exe.sh6 ./wasm-install/bin/emscripten/emcc "$1" -s BINARYEN=1 \
8 --em-config wasm-install/emscripten_config_vanilla -O2 && \
9 ./wasm-install/bin/sexpr-wasm a.out.wast -o a.out.wasm && \
10 ./pnacl-sz a.out.wasm -o a.out.o -filetype=obj -O2 && \
12 ./runtime/wasm-runtime.cpp -lm -g -lstdc++
Dfetch-torture-tests.sh4 BUILD_PATH=https://storage.googleapis.com/wasm-llvm/builds/git
6 wget -O - $BUILD_PATH/wasm-torture-s-$BUILDID.tbz2 \
9 wget -O - $BUILD_PATH/wasm-torture-s2wasm-sexpr-wasm-$BUILDID.tbz2 \
12 wget -O - $BUILD_PATH/wasm-binaries-$BUILDID.tbz2 \
16 …$BUILD_PATH/wasm-torture-/b/build/slave/linux/build/src/src/work/wasm-install/emscripten_config_va…
/third_party/skia/experimental/webgpu-bazel/
DMakefile2 bazel build //experimental/webgpu-bazel/src:hello-world-wasm --compilation_mode opt
5 …cp ../../bazel-bin/experimental/webgpu-bazel/src/hello-world-wasm/hello-world.js build/hello-world…
6 …../bazel-bin/experimental/webgpu-bazel/src/hello-world-wasm/hello-world.wasm build/hello-world.wasm
9 bazel build //experimental/webgpu-bazel/src:hello-world-wasm --compilation_mode dbg
12 …cp ../../bazel-bin/experimental/webgpu-bazel/src/hello-world-wasm/hello-world.js build/hello-world…
13 …../bazel-bin/experimental/webgpu-bazel/src/hello-world-wasm/hello-world.wasm build/hello-world.wasm
/third_party/flutter/skia/modules/canvaskit/
DMakefile11 cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
18 cp ../../out/canvaskit_wasm/canvaskit.wasm ./canvaskit/bin
25 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./canvaskit/bin
26 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm.map ./canvaskit/bin
33 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm ./canvaskit/bin
34 cp ../../out/canvaskit_wasm_debug/canvaskit.wasm.map ./canvaskit/bin
40 cp ../../out/canvaskit_wasm_profile/canvaskit.wasm ./canvaskit/bin
41 cp ../../out/canvaskit_wasm_profile/canvaskit.wasm.map ./canvaskit/bin
47 cp ../../out/canvaskit_wasm_profile/canvaskit.wasm ./canvaskit/bin
48 cp ../../out/canvaskit_wasm_profile/canvaskit.wasm.map ./canvaskit/bin
[all …]
/third_party/flutter/skia/modules/pathkit/npm-wasm/
DREADME.md3 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,
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/master/modules/pathkit/npm-wasm/example.html)
31 const PathKitInit = require('pathkit-wasm/bin/pathkit.js')
37 packages only the needed pieces, we have to copy pathkit.wasm into the build directory.
43 { from: 'node_modules/pathkit-wasm/bin/pathkit.wasm' }
49 ERROR in ./node_modules/pathkit-wasm/bin/pathkit.js
/third_party/skia/modules/pathkit/npm-wasm/
DREADME.md3 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,
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)
31 const PathKitInit = require('pathkit-wasm/bin/pathkit.js')
37 packages only the needed pieces, we have to copy pathkit.wasm into the build directory.
43 { from: 'node_modules/pathkit-wasm/bin/pathkit.wasm' }
49 ERROR in ./node_modules/pathkit-wasm/bin/pathkit.js

12345678