Home
last modified time | relevance | path

Searched full:wasm (Results 1 – 25 of 751) sorted by relevance

12345678910>>...31

/external/swiftshader/third_party/subzero/pydir/
Dwasm-run-torture-tests.py3 #===- subzero/wasm-run-torture-tests.py - Subzero WASM Torture Test Driver ===//
26 '20010122-1.c.wasm',
27 '20031003-1.c.wasm',
28 '20071018-1.c.wasm',
29 '20071120-1.c.wasm',
30 '20071220-1.c.wasm',
31 '20071220-2.c.wasm',
32 '20101011-1.c.wasm',
33 'alloca-1.c.wasm',
34 'bitfld-3.c.wasm',
[all …]
/external/v8/src/compiler/
Dwasm-compiler.h13 #include "src/wasm/function-body-decoder.h"
14 #include "src/wasm/function-compiler.h"
15 #include "src/wasm/wasm-module.h"
16 #include "src/wasm/wasm-opcodes.h"
17 #include "src/wasm/wasm-result.h"
37 namespace wasm {
39 // Expose {Node} and {Graph} opaquely as {wasm::TFNode} and {wasm::TFGraph}.
44 } // namespace wasm
50 explicit TurbofanWasmCompilationUnit(wasm::WasmCompilationUnit* wasm_unit);
53 SourcePositionTable* BuildGraphForWasmFunction(wasm::WasmFeatures* detected,
[all …]
Dwasm-compiler.cc5 #include "src/compiler/wasm-compiler.h"
42 #include "src/wasm/function-body-decoder.h"
43 #include "src/wasm/function-compiler.h"
44 #include "src/wasm/jump-table-assembler.h"
45 #include "src/wasm/memory-tracing.h"
46 #include "src/wasm/wasm-code-manager.h"
47 #include "src/wasm/wasm-limits.h"
48 #include "src/wasm/wasm-linkage.h"
49 #include "src/wasm/wasm-module.h"
50 #include "src/wasm/wasm-objects-inl.h"
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/WebAssembly/
DWebAssemblyRuntimeLibcallSignatures.cpp492 RTLIB::Libcall LC, SmallVectorImpl<wasm::ValType> &Rets, in GetSignature()
493 SmallVectorImpl<wasm::ValType> &Params) { in GetSignature()
497 wasm::ValType iPTR = in GetSignature()
498 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in GetSignature()
505 Rets.push_back(wasm::ValType::F32); in GetSignature()
506 Params.push_back(wasm::ValType::F32); in GetSignature()
509 Rets.push_back(wasm::ValType::F32); in GetSignature()
510 Params.push_back(wasm::ValType::F64); in GetSignature()
513 Rets.push_back(wasm::ValType::F32); in GetSignature()
514 Params.push_back(wasm::ValType::I32); in GetSignature()
[all …]
/external/skqp/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
34 # suited for that, although if you make changes to the C++/WASM code, you will need
52 # test-docker-continuous is better, although if you make changes to the C++/WASM code,
55 mkdir -p ./npm-wasm/bin/test
[all …]
/external/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
34 # suited for that, although if you make changes to the C++/WASM code, you will need
52 # test-docker-continuous is better, although if you make changes to the C++/WASM code,
55 mkdir -p ./npm-wasm/bin/test
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Object/
DWasm.h1 //===- WasmObjectFile.h - Wasm object file implementation -------*- C++ -*-===//
11 // interface for Wasm files.
23 #include "llvm/BinaryFormat/Wasm.h"
38 WasmSymbol(const wasm::WasmSymbolInfo &Info, in WasmSymbol()
39 const wasm::WasmSignature *FunctionType, in WasmSymbol()
40 const wasm::WasmGlobalType *GlobalType) in WasmSymbol()
43 const wasm::WasmSymbolInfo &Info;
44 const wasm::WasmSignature *FunctionType;
45 const wasm::WasmGlobalType *GlobalType;
48 return Info.Kind == wasm::WASM_SYMBOL_TYPE_FUNCTION; in isTypeFunction()
[all …]
DWasmTraits.h1 //===- WasmTraits.h - DenseMap traits for the Wasm structures ---*- C++ -*-===//
10 // This file provides llvm::DenseMapInfo traits for the Wasm structures.
18 #include "llvm/BinaryFormat/Wasm.h"
25 template <> struct DenseMapInfo<wasm::WasmSignature> {
26 static wasm::WasmSignature getEmptyKey() {
27 return wasm::WasmSignature{{}, 1};
29 static wasm::WasmSignature getTombstoneKey() {
30 return wasm::WasmSignature{{}, 2};
32 static unsigned getHashValue(const wasm::WasmSignature &Sig) {
38 static bool isEqual(const wasm::WasmSignature &LHS,
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Object/
DWasmObjectFile.cpp1 //===- WasmObjectFile.cpp - Wasm object file implementation ---------------===//
16 #include "llvm/BinaryFormat/Wasm.h"
22 #include "llvm/Object/Wasm.h"
33 #define DEBUG_TYPE "wasm-object"
40 << ", Kind=" << toString(wasm::WasmSymbolType(Info.Kind)) in print()
157 static Error readInitExpr(wasm::WasmInitExpr &Expr, in readInitExpr()
162 case wasm::WASM_OPCODE_I32_CONST: in readInitExpr()
165 case wasm::WASM_OPCODE_I64_CONST: in readInitExpr()
168 case wasm::WASM_OPCODE_F32_CONST: in readInitExpr()
171 case wasm::WASM_OPCODE_F64_CONST: in readInitExpr()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/tools/llvm-readobj/
Dsymbols.test5 RUN: llvm-readobj -t %p/Inputs/trivial.obj.wasm \
6 RUN: | FileCheck %s -check-prefix WASM
74 WASM: Symbols [
75 WASM-NEXT: Symbol {
76 WASM-NEXT: Name: main
77 WASM-NEXT: Type: FUNCTION (0x0)
78 WASM-NEXT: Flags: 0x0
79 WASM-NEXT: }
80 WASM-NEXT: Symbol {
81 WASM-NEXT: Name: .L.str
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/MC/
DWasmObjectWriter.cpp1 //===- lib/MC/WasmObjectWriter.cpp - Wasm File Writer ---------------------===//
10 // This file implements Wasm object file writer information.
16 #include "llvm/BinaryFormat/Wasm.h"
59 // The signature of a wasm function, in a struct capable of being used as a
66 SmallVector<wasm::ValType, 1> Returns;
69 SmallVector<wasm::ValType, 4> Params;
93 for (wasm::ValType Ret : FuncTy.Returns) in getHashValue()
95 for (wasm::ValType Param : FuncTy.Params) in getHashValue()
105 // A wasm data segment. A wasm binary contains only a single data section
108 // wasm data segment.
[all …]
/external/swiftshader/third_party/subzero/
DREADME-wasm.md1 # Wasm Prototype Experiment Notes
7 -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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DMCSymbolWasm.h12 #include "llvm/BinaryFormat/Wasm.h"
18 wasm::WasmSymbolType Type = wasm::WASM_SYMBOL_TYPE_DATA;
23 SmallVector<wasm::ValType, 1> Returns;
24 SmallVector<wasm::ValType, 4> Params;
25 wasm::WasmGlobalType GlobalType;
45 bool isFunction() const { return Type == wasm::WASM_SYMBOL_TYPE_FUNCTION; } in isFunction()
46 bool isData() const { return Type == wasm::WASM_SYMBOL_TYPE_DATA; } in isData()
47 bool isGlobal() const { return Type == wasm::WASM_SYMBOL_TYPE_GLOBAL; } in isGlobal()
48 bool isSection() const { return Type == wasm::WASM_SYMBOL_TYPE_SECTION; } in isSection()
49 wasm::WasmSymbolType getType() const { return Type; } in getType()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/WebAssembly/
Dwasmehprepare.ll12 ; A wasm.catch() call, wasm.lsda() call, and personality call to generate a
25 %2 = call i8* @llvm.wasm.get.exception(token %1)
26 %3 = call i32 @llvm.wasm.get.ehselector(token %1)
32 ; CHECK-NEXT: %[[EXN:.*]] = call i8* @llvm.wasm.catch(i32 0)
33 ; CHECK-NEXT: call void @llvm.wasm.landingpad.index(i32 0)
35 ; CHECK-NEXT: %[[LSDA:.*]] = call i8* @llvm.wasm.lsda()
57 ; For the catchpad with a single 'catch (...)', only a wasm.catch() call should
58 ; be generated after the catchpad; wasm.landingpad.index() and personality call
60 ; wasm.landingpad.index() should be not 1 but 0.
72 %2 = call i8* @llvm.wasm.get.exception(token %1)
[all …]
Dmemory-addr32.ll1 ; RUN: llc < %s -asm-verbose=false -disable-wasm-fallthrough-return-opt -disable-wasm-explicit-loca…
8 declare i32 @llvm.wasm.memory.size.i32(i32) nounwind readonly
9 declare i32 @llvm.wasm.memory.grow.i32(i32, i32) nounwind
10 declare i32 @llvm.wasm.mem.size.i32(i32) nounwind readonly
11 declare i32 @llvm.wasm.mem.grow.i32(i32, i32) nounwind
12 declare i32 @llvm.wasm.current.memory.i32() nounwind readonly
13 declare i32 @llvm.wasm.grow.memory.i32(i32) nounwind
20 %a = call i32 @llvm.wasm.memory.size.i32(i32 0)
30 %a = call i32 @llvm.wasm.memory.grow.i32(i32 0, i32 %n)
39 %a = call i32 @llvm.wasm.mem.size.i32(i32 0)
[all …]
/external/skia/modules/pathkit/npm-wasm/
DREADME.md1 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/master/modules/pathkit/npm-wasm/example.html)
26 WebPack's support for WASM is still somewhat experimental, but PathKit can be
[all …]
/external/skqp/modules/pathkit/npm-wasm/
DREADME.md1 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/master/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-7.0/llvm/include/llvm/ObjectYAML/
DWasmYAML.h1 //===- WasmYAML.h - Wasm YAMLIO implementation ------------------*- C++ -*-===//
12 /// of wasm binaries.
20 #include "llvm/BinaryFormat/Wasm.h"
66 wasm::WasmInitExpr Offset;
74 wasm::WasmInitExpr InitExpr;
110 wasm::WasmInitExpr Offset;
128 SignatureForm Form = wasm::WASM_TYPE_FUNC;
140 wasm::WasmDataReference DataRef;
169 : Section(wasm::WASM_SEC_CUSTOM), Name(Name) {} in CustomSection()
172 return S->Type == wasm::WASM_SEC_CUSTOM; in classof()
[all …]
/external/v8/tools/wasm/
Dupdate-wasm-fuzzers.sh18 # wasm
20 --mode=release --no-presubmit --extra-flags="--dump-wasm-module \
21 --dump-wasm-module-path=./test/fuzzer/wasm_corpus/" unittests
23 --mode=release --no-presubmit --extra-flags="--dump-wasm-module \
24 --dump-wasm-module-path=./test/fuzzer/wasm_corpus/" wasm-spec-tests/*
26 --mode=release --no-presubmit --extra-flags="--dump-wasm-module \
27 --dump-wasm-module-path=./test/fuzzer/wasm_corpus/" mjsunit/wasm/*
29 --mode=release --no-presubmit --extra-flags="--dump-wasm-module \
30 --dump-wasm-module-path=./test/fuzzer/wasm_corpus/" \
31 $(cd test/; ls cctest/wasm/test-*.cc | \
[all …]
/external/v8/src/
Dexternal-reference.h143 "wasm::call_trap_callback_for_testing") \
144 V(wasm_f32_ceil, "wasm::f32_ceil_wrapper") \
145 V(wasm_f32_floor, "wasm::f32_floor_wrapper") \
146 V(wasm_f32_nearest_int, "wasm::f32_nearest_int_wrapper") \
147 V(wasm_f32_trunc, "wasm::f32_trunc_wrapper") \
148 V(wasm_f64_ceil, "wasm::f64_ceil_wrapper") \
149 V(wasm_f64_floor, "wasm::f64_floor_wrapper") \
150 V(wasm_f64_nearest_int, "wasm::f64_nearest_int_wrapper") \
151 V(wasm_f64_trunc, "wasm::f64_trunc_wrapper") \
152 V(wasm_float32_to_int64, "wasm::float32_to_int64_wrapper") \
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/obj2yaml/
Dwasm2yaml.cpp35 static WasmYAML::Table make_table(const wasm::WasmTable &Table) { in make_table()
44 static WasmYAML::Limits make_limits(const wasm::WasmLimits &Limits) { in make_limits()
56 for (const llvm::wasm::WasmFunctionName &Func: Obj.debugNames()) { in dumpCustomSection()
73 WasmYAML::ComdatEntry{wasm::WASM_COMDAT_FUNCTION, Func.Index}); in dumpCustomSection()
89 WasmYAML::ComdatEntry{wasm::WASM_COMDAT_DATA, SegmentIndex}); in dumpCustomSection()
95 for (const wasm::WasmSymbolInfo &Symbol : Obj.linkingData().SymbolTable) { in dumpCustomSection()
102 case wasm::WASM_SYMBOL_TYPE_DATA: in dumpCustomSection()
105 case wasm::WASM_SYMBOL_TYPE_FUNCTION: in dumpCustomSection()
106 case wasm::WASM_SYMBOL_TYPE_GLOBAL: in dumpCustomSection()
109 case wasm::WASM_SYMBOL_TYPE_SECTION: in dumpCustomSection()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ObjectYAML/
DWasmYAML.cpp1 //===- WasmYAML.cpp - Wasm YAMLIO implementation --------------------------===//
10 // This file defines classes for handling the YAML representation of wasm.
40 IO.mapTag("!WASM", true); in mapping()
137 case wasm::WASM_SEC_CUSTOM: { in mapping()
160 case wasm::WASM_SEC_TYPE: in mapping()
165 case wasm::WASM_SEC_IMPORT: in mapping()
170 case wasm::WASM_SEC_FUNCTION: in mapping()
175 case wasm::WASM_SEC_TABLE: in mapping()
180 case wasm::WASM_SEC_MEMORY: in mapping()
185 case wasm::WASM_SEC_GLOBAL: in mapping()
[all …]
/external/v8/src/asmjs/
Dasm-js.cc24 #include "src/wasm/wasm-engine.h"
25 #include "src/wasm/wasm-js.h"
26 #include "src/wasm/wasm-limits.h"
27 #include "src/wasm/wasm-module-builder.h"
28 #include "src/wasm/wasm-objects-inl.h"
29 #include "src/wasm/wasm-result.h"
55 wasm::AsmJsParser::StdlibSet members, in AreStdlibMembersValid()
57 if (members.Contains(wasm::AsmJsParser::StandardMember::kInfinity)) { in AreStdlibMembersValid()
58 members.Remove(wasm::AsmJsParser::StandardMember::kInfinity); in AreStdlibMembersValid()
63 if (members.Contains(wasm::AsmJsParser::StandardMember::kNaN)) { in AreStdlibMembersValid()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-readobj/
DWasmDumper.cpp1 //===-- WasmDumper.cpp - Wasm-specific object file dumper -----------------===//
10 // This file implements the Wasm-specific dumper for llvm-readobj.
17 #include "llvm/Object/Wasm.h"
26 #define ENUM_ENTRY(X) { #X, wasm::WASM_SYMBOL_TYPE_##X }
35 #define ENUM_ENTRY(X) { #X, wasm::WASM_SEC_##X }
81 const wasm::WasmRelocation &WasmReloc = Obj->getWasmRelocation(Reloc); in printRelocation()
90 case wasm::R_WEBASSEMBLY_MEMORY_ADDR_LEB: in printRelocation()
91 case wasm::R_WEBASSEMBLY_MEMORY_ADDR_SLEB: in printRelocation()
92 case wasm::R_WEBASSEMBLY_MEMORY_ADDR_I32: in printRelocation()
93 case wasm::R_WEBASSEMBLY_FUNCTION_OFFSET_I32: in printRelocation()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/yaml2obj/
Dyaml2wasm.cpp1 //===- yaml2wasm - Convert YAML to a Wasm object file --------------------===//
11 /// The Wasm component of yaml2obj.
22 /// This parses a yaml stream that represents a Wasm object file.
84 if (Lim.Flags & wasm::WASM_LIMITS_FLAG_HAS_MAX) in writeLimits()
89 static int writeInitExpr(const wasm::WasmInitExpr &InitExpr, raw_ostream &OS) { in writeInitExpr()
92 case wasm::WASM_OPCODE_I32_CONST: in writeInitExpr()
95 case wasm::WASM_OPCODE_I64_CONST: in writeInitExpr()
98 case wasm::WASM_OPCODE_F32_CONST: in writeInitExpr()
101 case wasm::WASM_OPCODE_F64_CONST: in writeInitExpr()
104 case wasm::WASM_OPCODE_GET_GLOBAL: in writeInitExpr()
[all …]

12345678910>>...31