[PATCH] D156205: wasm: link crt1 even in case of -shared

2023-08-13 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt marked an inline comment as done. yamt added a comment. can this land? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156205/new/ https://reviews.llvm.org/D156205 ___ cfe-commits mailing list cfe-com

[PATCH] D156205: wasm: link crt1 even in case of -shared

2023-08-02 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt added inline comments. Comment at: clang/lib/Driver/ToolChains/WebAssembly.cpp:80 - const char *Crt1 = "crt1.o"; + bool isCommand = true; + const char *Crt1; sbc100 wrote: > LLCM coding style is `IsCommand` (at last for now: > https://llvm.org/docs/Pro

[PATCH] D156205: wasm: link crt1 even in case of -shared

2023-08-02 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt updated this revision to Diff 546525. yamt added a comment. isCommand -> IsCommand Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156205/new/ https://reviews.llvm.org/D156205 Files: clang/lib/Driver/ToolChains/WebAssembly.cpp clang/test/Dr

[PATCH] D156205: wasm: link crt1 even in case of -shared

2023-08-02 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt updated this revision to Diff 546417. yamt added a comment. when -shared, use the reactor model by default Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156205/new/ https://reviews.llvm.org/D156205 Files: clang/lib/Driver/ToolChains/WebAsse

[PATCH] D156205: wasm: link crt1 even in case of -shared

2023-07-26 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt updated this revision to Diff 544275. yamt added a comment. update test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D156205/new/ https://reviews.llvm.org/D156205 Files: clang/lib/Driver/ToolChains/WebAssembly.cpp clang/test/Driver/wasm-t

[PATCH] D156205: wasm: link crt1 even in case of -shared

2023-07-25 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt added a comment. > Should -shared modules also link with crt1-reactor.o by default then? Or > should we add crt1-shared.o and use the whenever -shared is passed. Should we > also make -shared incompatible with -mexec-model? It seems like -mexec-model > should only apply to the main module,

[PATCH] D156205: wasm: link crt1 even in case of -shared

2023-07-24 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt created this revision. Herald added subscribers: pmatos, asb, sunfish, jgravelle-google, sbc100, dschuff. Herald added a project: All. yamt requested review of this revision. Herald added subscribers: cfe-commits, MaskRay, aheejin. Herald added a project: clang. This allows -mexec-model=reac

[PATCH] D147714: [Attr] Introduce [[clang::nonportable_musttail]] as less strict version of [[clang::musttail]]

2023-06-24 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt added a comment. > musttail provide assurances that the tail call can be optimized on all > targets. Such a definition doesn't make much sense because for some targets tail call optimization isn't available at all. Eg. Wasm w/o tail call proposal, xtensa windowed abi. So I'm not sure what

[PATCH] D144970: [llvm-c] Remove bindings for creating legacy passes

2023-06-20 Thread YAMAMOTO Takashi via Phabricator via cfe-commits
yamt added a comment. at least some of these stuff is used by wasm-micro-runtime. do you have a suggestion about how to adapt it? https://github.com/bytecodealliance/wasm-micro-runtime/blob/72fc872afe9a51228b2a32bc7b08475b176f187f/core/iwasm/compilation/aot_compiler.c#L2666-L2670 Repository: