Page MenuHomePhabricator
Feed Advanced Search

Mar 21 2023

yamt added inline comments to D142615: [WebAssembly] Fix tail call with return_call_indirect instruction.
Mar 21 2023, 5:12 PM · Restricted Project, Restricted Project
yamt updated the diff for D142615: [WebAssembly] Fix tail call with return_call_indirect instruction.

add comment

Mar 21 2023, 5:11 PM · Restricted Project, Restricted Project

Feb 27 2023

yamt added reviewers for D142615: [WebAssembly] Fix tail call with return_call_indirect instruction: aheejin, dschuff.
Feb 27 2023, 12:46 AM · Restricted Project, Restricted Project
yamt added inline comments to D143140: [libc++] avoid a GCC -Wsigned-compare warning where time_t is unsigned.
Feb 27 2023, 12:06 AM · Restricted Project, Restricted Project

Feb 12 2023

yamt added inline comments to D143140: [libc++] avoid a GCC -Wsigned-compare warning where time_t is unsigned.
Feb 12 2023, 7:44 PM · Restricted Project, Restricted Project

Feb 2 2023

yamt requested review of D143140: [libc++] avoid a GCC -Wsigned-compare warning where time_t is unsigned.
Feb 2 2023, 12:11 AM · Restricted Project, Restricted Project

Jan 30 2023

yamt updated the diff for D142615: [WebAssembly] Fix tail call with return_call_indirect instruction.

remove an unnecessary line in the test

Jan 30 2023, 10:44 PM · Restricted Project, Restricted Project
yamt updated the diff for D142615: [WebAssembly] Fix tail call with return_call_indirect instruction.

i added a test.

Jan 30 2023, 10:41 PM · Restricted Project, Restricted Project
yamt added a comment to D142615: [WebAssembly] Fix tail call with return_call_indirect instruction.

Are you able to provide a test case that demonstrates the codegen change?

this function is broken without this change: https://github.com/yamt/garbage/blob/51ec5aaea4e30c9eece7665dea78cb71364076e2/wasm/tail-call/b.c#L12

Jan 30 2023, 8:50 AM · Restricted Project, Restricted Project
yamt added a comment to D142615: [WebAssembly] Fix tail call with return_call_indirect instruction.

Are you able to provide a test case that demonstrates the codegen change?

Jan 30 2023, 8:06 AM · Restricted Project, Restricted Project

Jan 26 2023

yamt requested review of D142615: [WebAssembly] Fix tail call with return_call_indirect instruction.
Jan 26 2023, 4:27 AM · Restricted Project, Restricted Project

Jul 8 2022

yamt added a comment to D81689: [WebAssembly] New-style command support.

for my very specific case it can be worked around eg. by "-mexec-model=reactor -emain". but i feel it isn't a right thing to do.

It's difficult to talk about the "right thing to do" in the short term. I'm giving a presentation at the upcoming WASI meeting about "WASI Preview2", which is a plan for a major new successor to the current wasi_snapshot_preview1 API, which will include a new clear definition of "commands", which I expect will be our best chance at fixing these issues.

unfortunately the meeting is at midnight for me.

I'll post the slides in the meeting notes, and I'll be following up with
documentation and standards proposals.

Jul 8 2022, 12:55 AM · Restricted Project, Restricted Project
yamt added a comment to D81689: [WebAssembly] New-style command support.

IIUC, with commands you can call back into the module, but only while the command entry point (_start) is running. i.e. while _start is running it can call out, and you can callback in as much as you want.

Once _start returns the instance is no longer in a valid state and can no longer called into (for example it would not be valid to call malloc after _start returns since the heap data structures may have been torn down).

If you want to call into a module after _start returns (and have the state preserved between calls) then what you want is a reactor and you should use _initialize rather than _start.

Jul 8 2022, 12:09 AM · Restricted Project, Restricted Project

Jun 30 2022

yamt added a comment to D81689: [WebAssembly] New-style command support.

there are use cases for a command to export non-main functions.
eg. malloc/free stuff mentioned in https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/memory_tune.md
this change broke them.

One consideration is that that wamr API doesn't seem compatible with closest thing we have to a spec, which states "Command instances may assume that they will be called from the environment at most once. Command instances may assume that none of their exports are accessed outside the duration of that call.". It's debatable how authoritative that spec is, but the big picture is that there's not currently much clarity on the relationship between LLVM and engines.

  • if "outside the duration of that call" mean it's ok to access exports during the call of _start, the wamr api seems compatible to me. (those malloc/free exports are used during the execution of _start, as far as i understand.)

I'm referring to the "will be called from the environment at most once" part.
If I understand correctly, these malloc/free exports are used to make
additional calls into the instance.

Jun 30 2022, 12:25 AM · Restricted Project, Restricted Project

Jun 27 2022

yamt added a comment to D81689: [WebAssembly] New-style command support.

there are use cases for a command to export non-main functions.
eg. malloc/free stuff mentioned in https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/memory_tune.md
this change broke them.

One consideration is that that wamr API doesn't seem compatible with closest thing we have to a spec, which states "Command instances may assume that they will be called from the environment at most once. Command instances may assume that none of their exports are accessed outside the duration of that call.". It's debatable how authoritative that spec is, but the big picture is that there's not currently much clarity on the relationship between LLVM and engines.

Jun 27 2022, 5:44 PM · Restricted Project, Restricted Project
Herald added a project to D81689: [WebAssembly] New-style command support: Restricted Project.

there are use cases for a command to export non-main functions.
eg. malloc/free stuff mentioned in https://github.com/bytecodealliance/wasm-micro-runtime/blob/main/doc/memory_tune.md
this change broke them.
for my very specific case it can be worked around eg. by "-mexec-model=reactor -emain". but i feel it isn't a right thing to do.

Jun 27 2022, 2:11 AM · Restricted Project, Restricted Project

Oct 26 2020

yamt added a comment to D90139: libcxx: Fix a few warnings.

Thanks! If you need someone to commit this on your behalf, please provide the Author Name <email@domain> you'd like to be used.

Oct 26 2020, 5:21 PM · Restricted Project
yamt requested review of D90139: libcxx: Fix a few warnings.
Oct 26 2020, 2:31 AM · Restricted Project