Home
last modified time | relevance | path

Searched refs:vector (Results 1 – 25 of 50) sorted by relevance

12

/wasmtime-44.0.1/crates/c-api/include/wasmtime/
H A Dwasi.hh31 void argv(const std::vector<std::string> &args) { in argv()
32 std::vector<const char *> ptrs; in argv()
47 void env(const std::vector<std::pair<std::string, std::string>> &env) { in env()
48 std::vector<const char *> names; in env()
49 std::vector<const char *> values; in env()
H A Dwat.hh30 inline Result<std::vector<uint8_t>> wat2wasm(std::string_view wat) { in wat2wasm()
36 std::vector<uint8_t> vec; in wat2wasm()
H A Dfunc.hh150 static std::vector<ValType> types() { return {WasmType<T>::kind}; } in types()
169 static std::vector<ValType> types() { return {}; } in types()
205 static std::vector<ValType> types() { return {WasmType<T>::kind...}; } in types()
502 TrapResult<std::vector<Val>> call(Store::Context cx, const I &begin, in call()
504 std::vector<wasmtime_val_t> raw_params; in call()
510 std::vector<wasmtime_val_t> raw_results(nresults); in call()
523 std::vector<Val> results; in call()
537 TrapResult<std::vector<Val>> call(Store::Context cx, in call()
538 const std::vector<Val> &params) const { in call()
548 TrapResult<std::vector<Val>>
H A Dinstance.hh59 const std::vector<Extern> &imports) { in create()
60 std::vector<wasmtime_extern_t> raw_imports; in create()
H A Dmodule.hh152 Result<std::vector<uint8_t>> serialize() const { in serialize()
158 std::vector<uint8_t> ret; in serialize()
H A Dgc.hh155 const std::vector<FieldType> &fields) { in create()
241 const std::vector<Val> &fields) { in create()
242 std::vector<wasmtime_val_t> c_fields; in create()
H A Dexn.hh58 const std::vector<Val> &fields) { in create()
/wasmtime-44.0.1/crates/fuzzing/src/generators/
H A Dvalue.rs107 let vector = u128::from_le_bytes([ in arbitrary_of_type() localVariable
125 DiffValue::V128(vector) in arbitrary_of_type()
130 let vector: Vec<u8> = i16()? in arbitrary_of_type() localVariable
140 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
145 let vector: Vec<u8> = i32()? in arbitrary_of_type() localVariable
151 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
156 let vector: Vec<u8> = i64()?.into_iter().chain(i64()?).collect(); in arbitrary_of_type() localVariable
157 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
166 let vector: Vec<u8> = f32()? in arbitrary_of_type() localVariable
172 DiffValue::V128(u128::from_le_bytes(vector.try_into().unwrap())) in arbitrary_of_type()
[all …]
/wasmtime-44.0.1/crates/c-api/tests/
H A Dexception.cc25 std::vector<Val> fields = {Val(int32_t(42)), Val(int64_t(100))}; in TEST()
99 std::vector<Val> fields = {Val(int32_t(99))}; in TEST()
104 std::vector<Extern> imports = {throw_fn, tag}; in TEST()
168 std::vector<Extern> imports2 = {tag}; in TEST()
173 std::vector<Val> args = {std::move(exnref_val)}; in TEST()
/wasmtime-44.0.1/examples/wasip1/
H A Dmain.cc22 static std::vector<uint8_t> read_binary_file(const char *path) { in read_binary_file()
27 std::vector<uint8_t> data((std::istreambuf_iterator<char>(file)), in read_binary_file()
/wasmtime-44.0.1/examples/
H A Dserialize.cc31 std::vector<uint8_t> serialize() { in serialize()
45 void deserialize(std::vector<uint8_t> buffer) { in deserialize()
H A Dthreads.cc97 std::vector<std::thread> threads; in main()
/wasmtime-44.0.1/cranelift/filetests/filetests/runtests/
H A Dsimd-bitselect.clif63 …ember that bitselect accepts: 1) the selector vector, 2) the "if true" vector, and 3) the "if fals…
68 v0 = vconst.i8x16 [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 255] ; the selector vector
H A Dissue-10906.clif1 ;; When CLIF's `scalar_to_vector` operates on an `i16x8` vector, we need to be
/wasmtime-44.0.1/crates/c-api/include/wasmtime/component/
H A Dval.hh162 Record(std::vector<std::pair<std::string_view, Val>> entries);
194 List(std::vector<Val> entries);
228 Tuple(std::vector<Val> entries);
401 Flags(std::vector<Flag> flags) { in Flags()
463 Map(std::vector<std::pair<Val, Val>> entries);
917 inline Record::Record(std::vector<std::pair<std::string_view, Val>> entries) { in Record()
927 inline Map::Map(std::vector<std::pair<Val, Val>> entries) { in Map()
937 inline List::List(std::vector<Val> values) { in List()
944 inline Tuple::Tuple(std::vector<Val> values) { in Tuple()
H A Dcomponent.hh135 Result<std::vector<uint8_t>> serialize() const { in serialize()
141 std::vector<uint8_t> ret; in serialize()
/wasmtime-44.0.1/cranelift/codegen/meta/src/cdsl/
H A Dtypes.rs100 fn from(vector: VectorType) -> Self { in from()
101 ValueType::Vector(vector) in from()
107 fn from(vector: DynamicVectorType) -> Self { in from()
108 ValueType::DynamicVector(vector) in from()
/wasmtime-44.0.1/cranelift/codegen/src/isa/s390x/
H A Dlower.isle114 ;; Add two vector registers.
186 ;; Sub two vector registers.
248 ;; Negate a vector register.
792 ;; 128-bit vector shift left.
1116 ;; And two vector registers.
1171 ;; And-Or 3 vector registers
1177 ;; And-Nor 3 vector registers
1217 ;; Or two vector registers.
1339 ;; Xor two vector registers.
2186 ;; Insert vector lane from another vector lane.
[all …]
H A Dinst.isle574 ;; A binary vector operation with two vector register sources.
581 ;; A unary vector operation with a vector register source.
684 ;; 128-bit vector load instruction.
724 ;; 128-bit vector store instruction.
806 ;; Load vector replicated immediate.
1183 ;; A binary vector operation.
1284 ;; Full vector shift operations
1314 ;; A vector unary operation.
1363 ;; A vector shift operation.
1384 ;; An integer vector comparison operation.
[all …]
/wasmtime-44.0.1/cranelift/docs/
H A Dir.md189 ### SIMD vector types
191 A SIMD vector type represents a vector of values from one of the scalar types
205 A SIMD vector of single precision floating point numbers.
207 Some concrete `f32` vector types are: `f32x2`, `f32x4`,
210 The size of a `f32` vector in memory is :math:`4N` bytes.
213 A SIMD vector of double precision floating point numbers.
215 Some concrete `f64` vector types are: `f64x2`, `f64x4`,
218 The size of a `f64` vector in memory is :math:`8N` bytes.
235 Any scalar *or vector* integer type: `iB` or `iBxN`.
241 Any scalar *or vector* floating point type: `fB` or `fBxN`.
[all …]
/wasmtime-44.0.1/cranelift/codegen/src/
H A Dprelude.isle441 ;; An extractor that matches scalar floating-point types or vector types.
445 ;; A pure constructor that only matches vector floating-point types.
449 ;; A pure constructor that only matches vector types with lanes which
454 ;; A pure constructor/extractor that only matches 64-bit vector types.
459 ;; An extractor that only matches 128-bit vector types.
463 ;; An extractor that only matches dynamic vector types with a 64-bit
468 ;; An extractor that only matches dynamic vector types with a 128-bit
473 ;; An extractor that only matches 64-bit vector types with integer
478 ;; An extractor that only matches 128-bit vector types with integer
546 ;; An extractor that only matches 64-bit dynamic vector types with integer
[all …]
/wasmtime-44.0.1/tests/misc_testsuite/winch/
H A Dsimd_multivalue.wast11 ;; test case where vector is neither the first return value nor the last return value
/wasmtime-44.0.1/cranelift/codegen/src/isa/riscv64/
H A Dinst_vector.isle13 ;; vector register. Fractional LMUL is used to increase the number of effective
14 ;; usable vector register groups when operating on mixed-width values.
27 ;; The tail mode specifies how the tail elements of a vector register are handled.
1079 ;; `vslidedown` moves all elements in the vector down by n elements.
1228 ;; The vector compress instruction allows elements selected by a vector mask
1230 ;; elements at the start of the destination vector register group.
1529 ;; Build a vector mask from a u64
1539 ;; the vector register.
1583 ;; Builds a vector mask corresponding to the IntCC operation.
1735 ;; Builds a vector mask corresponding to the FloatCC operation.
[all …]
/wasmtime-44.0.1/crates/c-api/tests/component/
H A Dvalues.cc218 static const auto check = [](const Val &v, std::vector<uint32_t> data) { in TEST()
230 static const auto make = [](std::vector<Val> data) -> Val { in TEST()
274 static const auto check = [](const Val &v, std::vector<uint32_t> data) { in TEST()
285 static const auto make = [](std::vector<Val> data) -> Val { in TEST()
560 static const auto check = [](const Val &v, std::vector<std::string> data) { in TEST()
570 static const auto make = [](std::vector<Flag> data) -> Val { in TEST()
831 std::vector<Flag> flags = { in TEST()
/wasmtime-44.0.1/cranelift/filetests/filetests/isa/riscv64/
H A Dsimd-vstate.clif6 ;; Interleaves vector operations to ensure that `vsetivli` is emitted
58 ;; When the block changes, we need to reemit the vector state instruction

12