Home
last modified time | relevance | path

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

12345678910>>...53

/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyRuntimeLibcallSignatures.cpp518 SmallVectorImpl<wasm::ValType> &Rets, in getLibcallSignature()
519 SmallVectorImpl<wasm::ValType> &Params) { in getLibcallSignature()
523 wasm::ValType PtrTy = in getLibcallSignature()
524 Subtarget.hasAddr64() ? wasm::ValType::I64 : wasm::ValType::I32; in getLibcallSignature()
531 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
532 Params.push_back(wasm::ValType::F32); in getLibcallSignature()
535 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
536 Params.push_back(wasm::ValType::F64); in getLibcallSignature()
539 Rets.push_back(wasm::ValType::F32); in getLibcallSignature()
540 Params.push_back(wasm::ValType::I32); in getLibcallSignature()
[all …]
/external/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 …]
/external/swiftshader/third_party/llvm-10.0/configs/common/include/llvm/IR/
DIntrinsicsWebAssembly.h16 wasm_alltrue = 6285, // llvm.wasm.alltrue
17 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/llvm-project/llvm/test/tools/llvm-readobj/wasm/
Drelocations.test3 # RUN: llvm-readobj -r --expand-relocs %p/Inputs/trivial.obj.wasm \
4 # RUN: | FileCheck %s --check-prefix WASM
6 # WASM: Relocations [
7 # WASM-NEXT: Section (4) CODE {
8 # WASM-NEXT: Relocation {
9 # WASM-NEXT: Type: R_WASM_MEMORY_ADDR_SLEB (4)
10 # WASM-NEXT: Offset: 0x4
11 # WASM-NEXT: Symbol: .L.str
12 # WASM-NEXT: Addend: 0
13 # WASM-NEXT: }
[all …]
/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/WebAssembly/
Dtrunc.ll7 declare i32 @llvm.wasm.trunc.signed.i32.f32(float)
8 declare i32 @llvm.wasm.trunc.unsigned.i32.f32(float)
9 declare i32 @llvm.wasm.trunc.signed.i32.f64(double)
10 declare i32 @llvm.wasm.trunc.unsigned.i32.f64(double)
11 declare i64 @llvm.wasm.trunc.signed.i64.f32(float)
12 declare i64 @llvm.wasm.trunc.unsigned.i64.f32(float)
13 declare i64 @llvm.wasm.trunc.signed.i64.f64(double)
14 declare i64 @llvm.wasm.trunc.unsigned.i64.f64(double)
32 ; CHECK-NEXT: [[T14:%.*]] = call i32 @llvm.wasm.trunc.signed.i32.f32(float 0x41E0000000000000)
34 ; CHECK-NEXT: [[T15:%.*]] = call i32 @llvm.wasm.trunc.signed.i32.f32(float 0xC1E0000020000000)
[all …]
Dtrunc_saturate.ll7 declare i32 @llvm.wasm.trunc.saturate.signed.i32.f32(float)
8 declare i32 @llvm.wasm.trunc.saturate.unsigned.i32.f32(float)
9 declare i32 @llvm.wasm.trunc.saturate.signed.i32.f64(double)
10 declare i32 @llvm.wasm.trunc.saturate.unsigned.i32.f64(double)
11 declare i64 @llvm.wasm.trunc.saturate.signed.i64.f32(float)
12 declare i64 @llvm.wasm.trunc.saturate.unsigned.i64.f32(float)
13 declare i64 @llvm.wasm.trunc.saturate.signed.i64.f64(double)
14 declare i64 @llvm.wasm.trunc.saturate.unsigned.i64.f64(double)
42 %t0 = call i32 @llvm.wasm.trunc.saturate.signed.i32.f32(float +0.0)
44 %t1 = call i32 @llvm.wasm.trunc.saturate.signed.i32.f32(float -0.0)
[all …]
/external/llvm-project/llvm/include/llvm/Object/
DWasm.h1 //===- Wasm.h - Wasm object file implementation -----------------*- C++ -*-===//
10 // interface for Wasm files.
21 #include "llvm/BinaryFormat/Wasm.h"
37 WasmSymbol(const wasm::WasmSymbolInfo &Info, in WasmSymbol()
38 const wasm::WasmGlobalType *GlobalType, const uint8_t TableType, in WasmSymbol()
39 const wasm::WasmEventType *EventType, in WasmSymbol()
40 const wasm::WasmSignature *Signature) in WasmSymbol()
44 const wasm::WasmSymbolInfo &Info;
45 const wasm::WasmGlobalType *GlobalType;
47 const wasm::WasmEventType *EventType;
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DWasm.h1 //===- 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 …]
DWasmTraits.h1 //===- 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/llvm-project/llvm/lib/Object/
DWasmObjectFile.cpp1 //===- WasmObjectFile.cpp - Wasm object file implementation ---------------===//
17 #include "llvm/BinaryFormat/Wasm.h"
23 #include "llvm/Object/Wasm.h"
35 #define DEBUG_TYPE "wasm-object"
42 << ", Kind=" << toString(wasm::WasmSymbolType(Info.Kind)) in print()
167 static Error readInitExpr(wasm::WasmInitExpr &Expr, in readInitExpr()
172 case wasm::WASM_OPCODE_I32_CONST: in readInitExpr()
175 case wasm::WASM_OPCODE_I64_CONST: in readInitExpr()
178 case wasm::WASM_OPCODE_F32_CONST: in readInitExpr()
181 case wasm::WASM_OPCODE_F64_CONST: in readInitExpr()
[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/llvm-project/llvm/lib/MC/
DWasmObjectWriter.cpp1 //===- lib/MC/WasmObjectWriter.cpp - Wasm File Writer ---------------------===//
9 // This file implements Wasm object file writer information.
15 #include "llvm/BinaryFormat/Wasm.h"
60 // A wasm data segment. A wasm binary contains only a single data section
63 // wasm data segment.
74 // A wasm function to be written into the function section.
80 // A wasm global to be written into the global section.
82 wasm::WasmGlobalType Type;
108 bool hasAddend() const { return wasm::relocTypeHasAddend(Type); } in hasAddend()
111 Out << wasm::relocTypetoString(Type) << " Off=" << Offset in print()
[all …]
/external/llvm-project/llvm/include/llvm/MC/
DMCSymbolWasm.h11 #include "llvm/BinaryFormat/Wasm.h"
17 wasm::WasmSymbolType Type = wasm::WASM_SYMBOL_TYPE_DATA;
26 wasm::WasmSignature *Signature = nullptr;
27 Optional<wasm::WasmGlobalType> GlobalType;
28 Optional<wasm::ValType> TableType;
29 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 isTable() const { return Type == wasm::WASM_SYMBOL_TYPE_TABLE; } in isTable()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DWasmObjectFile.cpp1 //===- 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/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/
DWebAssemblyWasmObjectWriter.cpp1 //===-- 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()
80 return wasm::R_WASM_MEMORY_ADDR_TLS_SLEB; in getRelocType()
83 return is64Bit() ? wasm::R_WASM_MEMORY_ADDR_REL_SLEB64 in getRelocType()
84 : wasm::R_WASM_MEMORY_ADDR_REL_SLEB; in getRelocType()
86 return wasm::R_WASM_TYPE_INDEX_LEB; in getRelocType()
94 return wasm::R_WASM_TABLE_INDEX_SLEB; in getRelocType()
[all …]
/external/llvm-project/llvm/include/llvm/BinaryFormat/
DWasmTraits.h1 //===- 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/skia/modules/canvaskit/wasm_tools/SIMD/
Dsimd_int_capabilities.cpp11 // - Lines with "//GOOD" are compatible with WASM SIMD and are automatically compiled
12 // 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/include/private/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 …]
Dsimd_float_capabilities.cpp11 // - Lines with "//GOOD" are compatible with WASM SIMD and are automatically compiled
12 // 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/include/private/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/
DMCSymbolWasm.h11 #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/swiftshader/third_party/llvm-10.0/llvm/lib/MC/
DWasmObjectWriter.cpp1 //===- 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/XNNPACK/scripts/
Dgenerate-f32-vbinary.sh9 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/llvm-project/lld/test/wasm/
Dwhole-archive.test7 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o %t.a
8 RUN: obj2yaml %t.wasm | FileCheck --check-prefix=NOTADDED %s
14 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o --whole-archive %t.a
15 RUN: obj2yaml %t.wasm | FileCheck --check-prefix=ADDED %s
21 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o --whole-archive --no-whole-archive %t.a
22 RUN: obj2yaml %t.wasm | FileCheck --check-prefix=NOTADDED %s
25 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o %t.a --whole-archive --no-whole-archive
26 RUN: obj2yaml %t.wasm | FileCheck --check-prefix=NOTADDED %s
27 RUN: wasm-ld --no-gc-sections -o %t.wasm %t.o --whole-archive %t.a --no-whole-archive
28 RUN: obj2yaml %t.wasm | FileCheck --check-prefix=ADDED %s
[all …]
/external/llvm-project/clang/test/CodeGen/
Dbuiltins-wasm.c19 // WEBASSEMBLY32: call {{i.*}} @llvm.wasm.memory.size.i32(i32 0) in memory_size()
20 // WEBASSEMBLY64: call {{i.*}} @llvm.wasm.memory.size.i64(i32 0) in memory_size()
25 // WEBASSEMBLY32: call i32 @llvm.wasm.memory.grow.i32(i32 0, i32 %{{.*}}) in memory_grow()
26 // WEBASSEMBLY64: call i64 @llvm.wasm.memory.grow.i64(i32 0, i64 %{{.*}}) in memory_grow()
31 // WEBASSEMBLY32: call i32 @llvm.wasm.tls.size.i32() in tls_size()
32 // WEBASSEMBLY64: call i64 @llvm.wasm.tls.size.i64() in tls_size()
37 // WEBASSEMBLY32: call i32 @llvm.wasm.tls.align.i32() in tls_align()
38 // WEBASSEMBLY64: call i64 @llvm.wasm.tls.align.i64() in tls_align()
43 // WEBASSEMBLY: call i8* @llvm.wasm.tls.base() in tls_base()
48 // WEBASSEMBLY32: call void @llvm.wasm.throw(i32 0, i8* %{{.*}}) in throw()
[all …]
/external/llvm-project/llvm/test/CodeGen/WebAssembly/
Dwasmehprepare.ll12 ; A wasm.catch() call, wasm.lsda() call, and personality call to generate a
33 %2 = call i8* @llvm.wasm.get.exception(token %1)
34 %3 = call i32 @llvm.wasm.get.ehselector(token %1)
40 ; CHECK-NEXT: %[[EXN:.*]] = call i8* @llvm.wasm.extract.exception()
41 ; CHECK-NEXT: call void @llvm.wasm.landingpad.index(token %[[CATCHPAD]], i32 0)
43 ; CHECK-NEXT: %[[LSDA:.*]] = call i8* @llvm.wasm.lsda()
57 call void @llvm.wasm.rethrow.in.catch() [ "funclet"(token %1) ]
65 ; For the catchpad with a single 'catch (...)', only a wasm.catch() call should
66 ; be generated after the catchpad; wasm.landingpad.index() and personality call
68 ; wasm.landingpad.index() should be not 1 but 0.
[all …]

12345678910>>...53