Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge with upstream #6

Merged
merged 9 commits into from
Apr 2, 2024
Merged

Merge with upstream #6

merged 9 commits into from
Apr 2, 2024

Conversation

dhil
Copy link
Member

@dhil dhil commented Apr 2, 2024

No description provided.

alexcrichton and others added 9 commits March 27, 2024 16:53
Mainly a few internal changes of `Float32` naming to `F32` for example.
Not all guest generators are updated to remove the "float" terminology
entirely yet.
[automatically-tag-and-release-this-commit]

Co-authored-by: Auto Release Process <auto-release-process@users.noreply.github.com>
…ance#911)

* add testcase for when flags have dashes

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* fix(tiny-go): fix generated code in type_flags function

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

---------

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
* feat(c#): Multi-return support

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* wip

* simple lists codegen passing

* fix warning

* multi return passing

* passes ret-areas

* passes simple-functions and zero-size-tuple

* fixes regression with tcp-interop

* integers passing

* passes keywords

* remove old code

* Merge branch 'main' into wip

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* use new tuple work

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* fix up codegen tests

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* fmt and remove debug line

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Use internal for imports function

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Fix up test implemetation (not complete yet)

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* handle empyt array

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Copy data from parameter properly

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* List Exports now work

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* All export tests work

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Fix up strings with changes to lists

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Start on list imports

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Basic list imports work

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* List<string> works

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* more imports work

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* list results work

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* All the tests pass 🚀

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Fix up return area code-gen

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* fix up records test

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Simplify the Return area code

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* fix return area imports

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* clean up allocs

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Now passes variants and result tests. Still an issue with return pointer alignment and missing cleanup function.

* added todo

* Debugging issues with variant lower

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* only write the affected bytes and do not extra bytes write to the following memory addresses

* Fixed bug wit float conversion and return area alignment

* removed trailing space

* fixees incorrect type name for results and variants

* Converted option to generic

* Changes tests to use option generic

* Use stack based return area for imports but don't set the generic return area size/alignment

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* uncomment debug statement

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Add in the new bitcases

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Remove extra copy

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Update crates/csharp/src/lib.rs

Co-authored-by: yowl <scott.waye@hubse.com>

* Update crates/csharp/src/lib.rs

Co-authored-by: yowl <scott.waye@hubse.com>

* rename and fix ca2018

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Update return pointer to match c version on imports

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Use local return varaible

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

* Fix types

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>

---------

Signed-off-by: James Sturtevant <jsturtevant@gmail.com>
Co-authored-by: James Sturtevant <jsturtevant@gmail.com>
Co-authored-by: Timmy Silesmo <timmy@raybrowser.com>
Co-authored-by: yowl <scott.waye@hubse.com>
…nce#913)

* feat(rust): allow generate unused records and variants

* fix: empty record

* rename: allow_unused -> generate_unused_types

* test(rust): make sure unused types are exported
…alliance#915)

this commit adds an extra flag on the wit-bindgen tiny-go to
be able to rename the package name of the generated Go source code.

it also changes the file names from kebab names to snake names which
follow the Go file name conventions.

Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
…odealliance#916)

* Change float32/float64 to f32/f64 in the C bindings generator.

Change float32/float64 to f32/f64 in the C bindings generator, in
the `Instruction` enum, and in the tests.

* Update test names in Go.

* Update more tests.
…unction exists that uses that record (bytecodealliance#912)

* add world-has-go-keyword testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* add world-has-go-keyword testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* fix(tinygo): fix world-has-go-keyword testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* add enum-has-go-keyword testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* add interface-has-go-keyword testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* add interface-has-go-keyword testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* add record-has-go-keyword-and-used-in-fn testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* fix(tinygo): fix record-has-go-keyword-and-used-in-fn testcase

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* update list of unsupported testcases for csharp

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>

* feat(go): add understore as prefix to keyword in go

Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>

---------

Signed-off-by: Rajat Jindal <rajatjindal83@gmail.com>
Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
Co-authored-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
@dhil dhil merged commit bafa3fb into wasmfx:main Apr 2, 2024
12 checks passed
@dhil dhil deleted the wasmfx-merge branch April 2, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
7 participants