/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 …]
|
D | WebAssemblyMCInstLower.cpp | 64 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 …]
|
/external/llvm-project/llvm/include/llvm/MC/ |
D | MCSymbolWasm.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() 47 bool isSection() const { return Type == wasm::WASM_SYMBOL_TYPE_SECTION; } in isSection() [all …]
|
/external/llvm-project/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyRuntimeLibcallSignatures.cpp | 518 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/include/llvm/Object/ |
D | 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; 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 …]
|
D | WasmTraits.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; 35 static unsigned getHashValue(const wasm::WasmSignature &Sig) { 43 static bool isEqual(const wasm::WasmSignature &LHS, 44 const wasm::WasmSignature &RHS) { [all …]
|
/external/llvm-project/llvm/include/llvm/Object/ |
D | 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; 48 const wasm::WasmSignature *Signature; 51 return Info.Kind == wasm::WASM_SYMBOL_TYPE_FUNCTION; in isTypeFunction() 54 bool isTypeTable() const { return Info.Kind == wasm::WASM_SYMBOL_TYPE_TABLE; } in isTypeTable() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MC/ |
D | MCSymbolWasm.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() 48 wasm::WasmSymbolType getType() const { return Type; } in getType() [all …]
|
/external/llvm-project/llvm/include/llvm/BinaryFormat/ |
D | WasmTraits.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; 35 static unsigned getHashValue(const wasm::WasmSignature &Sig) { 43 static bool isEqual(const wasm::WasmSignature &LHS, 44 const wasm::WasmSignature &RHS) { [all …]
|
/external/llvm-project/llvm/lib/MC/ |
D | WasmObjectWriter.cpp | 82 wasm::WasmGlobalType Type; 108 bool hasAddend() const { return wasm::relocTypeHasAddend(Type); } in hasAddend() 111 Out << wasm::relocTypetoString(Type) << " Off=" << Offset in print() 202 DenseMap<const MCSymbolWasm *, wasm::WasmDataReference> DataLocations; 216 DenseMap<wasm::WasmSignature, uint32_t> SignatureIndices; 217 SmallVector<wasm::WasmSignature, 4> Signatures; 283 void prepareImports(SmallVectorImpl<wasm::WasmImport> &Imports, 307 void writeValueType(wasm::ValType Ty) { W->OS << static_cast<char>(Ty); } in writeValueType() 309 void writeTypeSection(ArrayRef<wasm::WasmSignature> Signatures); 310 void writeImportSection(ArrayRef<wasm::WasmImport> Imports, uint64_t DataSize, [all …]
|
/external/llvm-project/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyWasmObjectWriter.cpp | 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() 95 return wasm::R_WASM_MEMORY_ADDR_SLEB; in getRelocType() 98 return wasm::R_WASM_TABLE_INDEX_SLEB64; in getRelocType() 99 return wasm::R_WASM_MEMORY_ADDR_SLEB64; in getRelocType() [all …]
|
/external/llvm-project/llvm/lib/Object/ |
D | WasmObjectFile.cpp | 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() 184 case wasm::WASM_OPCODE_GLOBAL_GET: in readInitExpr() 187 case wasm::WASM_OPCODE_REF_NULL: { in readInitExpr() 188 wasm::ValType Ty = static_cast<wasm::ValType>(readULEB128(Ctx)); in readInitExpr() 189 if (Ty != wasm::ValType::EXTERNREF) { in readInitExpr() [all …]
|
/external/skqp/modules/pathkit/ |
D | Makefile | 5 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 …]
|
/external/skia/modules/pathkit/ |
D | Makefile | 5 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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
D | WasmObjectFile.cpp | 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() 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 …]
|
/external/llvm-project/llvm/test/Transforms/InstSimplify/ConstProp/WebAssembly/ |
D | trunc.ll | 7 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 …]
|
D | trunc_saturate.ll | 7 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/skia/tools/run-wasm-gm-tests/ |
D | Makefile | 2 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 …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
D | WasmObjectWriter.cpp | 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() 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 …]
|
/external/llvm-project/lld/wasm/ |
D | WriterUtils.h | 17 namespace wasm { 34 void writeValueType(raw_ostream &os, llvm::wasm::ValType type, 37 void writeSig(raw_ostream &os, const llvm::wasm::WasmSignature &sig); 48 void writeInitExpr(raw_ostream &os, const llvm::wasm::WasmInitExpr &initExpr); 50 void writeLimits(raw_ostream &os, const llvm::wasm::WasmLimits &limits); 52 void writeGlobalType(raw_ostream &os, const llvm::wasm::WasmGlobalType &type); 54 void writeGlobal(raw_ostream &os, const llvm::wasm::WasmGlobal &global); 56 void writeEventType(raw_ostream &os, const llvm::wasm::WasmEventType &type); 58 void writeEvent(raw_ostream &os, const llvm::wasm::WasmEvent &event); 60 void writeTableType(raw_ostream &os, const llvm::wasm::WasmTableType &type); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/MCTargetDesc/ |
D | WebAssemblyWasmObjectWriter.cpp | 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() 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 …]
|
/external/llvm-project/lld/test/wasm/ |
D | whole-archive.test | 7 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 …]
|
D | compress-relocs.ll | 3 ; RUN: wasm-ld --export-dynamic -o %t.wasm %t2.o %t.o 4 ; RUN: obj2yaml %t.wasm | FileCheck %s 5 ; RUN: wasm-ld --export-dynamic -O2 -o %t-opt.wasm %t2.o %t.o 6 ; RUN: obj2yaml %t-opt.wasm | FileCheck %s 7 ; RUN: not wasm-ld --compress-relocations -o %t-compressed.wasm %t2.o %t.o 2>&1 | FileCheck %s -che… 8 ; RUN: wasm-ld --export-dynamic --strip-debug --compress-relocations -o %t-compressed.wasm %t2.o %t… 9 ; RUN: obj2yaml %t-compressed.wasm | FileCheck %s -check-prefix=COMPRESS 11 target triple = "wasm32-unknown-unknown-wasm" 23 ; ERROR: wasm-ld: error: --compress-relocations is incompatible with output debug information. Plea…
|
/external/llvm-project/llvm/lib/BinaryFormat/ |
D | Wasm.cpp | 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_TABLE: in toString() 19 case wasm::WASM_SYMBOL_TYPE_DATA: in toString() 21 case wasm::WASM_SYMBOL_TYPE_SECTION: in toString() 23 case wasm::WASM_SYMBOL_TYPE_EVENT: in toString() 29 std::string llvm::wasm::relocTypetoString(uint32_t Type) { in relocTypetoString() 41 bool llvm::wasm::relocTypeHasAddend(uint32_t Type) { in relocTypeHasAddend()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/BinaryFormat/ |
D | Wasm.cpp | 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()
|