r337783 - [WebAssembly] Change size_t to `unsigned long`.

2018-07-23 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Jul 23 17:29:58 2018 New Revision: 337783 URL: http://llvm.org/viewvc/llvm-project?rev=337783&view=rev Log: [WebAssembly] Change size_t to `unsigned long`. Changing it to unsigned long (which is 32-bit on wasm32) makes it the same type as wasm64 (where unsigned long is 64-bi

r304859 - [WebAssembly] Set MaxAtomicInlineWidth to 64.

2017-06-06 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jun 6 21:22:40 2017 New Revision: 304859 URL: http://llvm.org/viewvc/llvm-project?rev=304859&view=rev Log: [WebAssembly] Set MaxAtomicInlineWidth to 64. The WebAssembly threads proposal has changed such that C++ implementations can now declare that atomics up to 64 bits are

r333712 - [WebAssembly] Update to the new names for the memory builtin functions.

2018-05-31 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu May 31 17:05:51 2018 New Revision: 333712 URL: http://llvm.org/viewvc/llvm-project?rev=333712&view=rev Log: [WebAssembly] Update to the new names for the memory builtin functions. The WebAssembly committee has decided on the names `memory.size` and `memory.grow` for the memo

r351089 - [WebAssembly] Remove old builtins

2019-01-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Jan 14 10:28:10 2019 New Revision: 351089 URL: http://llvm.org/viewvc/llvm-project?rev=351089&view=rev Log: [WebAssembly] Remove old builtins This removes the old grow_memory and mem.grow-style builtins, leaving just the memory.grow-style builtins. Differential Revision: ht

r351164 - [WebAssembly] Support multilibs for wasm32 and add a wasm OS that uses it

2019-01-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Jan 14 22:58:16 2019 New Revision: 351164 URL: http://llvm.org/viewvc/llvm-project?rev=351164&view=rev Log: [WebAssembly] Support multilibs for wasm32 and add a wasm OS that uses it This adds support for multilib paths for wasm32 targets, following [Debian's Multiarch conven

r351298 - [WebAssembly] COWS has been renamed to WASI.

2019-01-15 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 15 21:23:57 2019 New Revision: 351298 URL: http://llvm.org/viewvc/llvm-project?rev=351298&view=rev Log: [WebAssembly] COWS has been renamed to WASI. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/test/Driver/wasm-toolchain.c cfe/trunk/test/Driver/wasm-to

r352099 - [WebAssembly] Factor commonality between wasm32 and wasm64 in test/Preprocessor/init.c

2019-01-24 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Jan 24 12:31:11 2019 New Revision: 352099 URL: http://llvm.org/viewvc/llvm-project?rev=352099&view=rev Log: [WebAssembly] Factor commonality between wasm32 and wasm64 in test/Preprocessor/init.c Use the -check-prefixes= feature to merge most of the WEBASSEMBLY32 and WEBASSE

r352100 - [WebAssembly] Support __float128

2019-01-24 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Jan 24 12:33:28 2019 New Revision: 352100 URL: http://llvm.org/viewvc/llvm-project?rev=352100&view=rev Log: [WebAssembly] Support __float128 This enables support for the "__float128" keyword. Differential Revision: https://reviews.llvm.org/D57154 Modified: cfe/trunk/li

r352105 - [WebAssembly] Add a __wasi__ target macro

2019-01-24 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Jan 24 13:05:11 2019 New Revision: 352105 URL: http://llvm.org/viewvc/llvm-project?rev=352105&view=rev Log: [WebAssembly] Add a __wasi__ target macro This adds a `__wasi__` macro for the wasi OS, similar to `__linux__` etc. for other OS's. Differential Revision: https://rev

r352106 - [WebAssembly] Add an import_module function attribute

2019-01-24 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Jan 24 13:08:30 2019 New Revision: 352106 URL: http://llvm.org/viewvc/llvm-project?rev=352106&view=rev Log: [WebAssembly] Add an import_module function attribute This adds a C/C++ attribute which corresponds to the LLVM IR wasm-import-module attribute. It allows code to spec

r352108 - [WebAssembly] Add WebAssemblyImportModule to pragma-attribute-supported-attributes-list.test

2019-01-24 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Jan 24 13:20:03 2019 New Revision: 352108 URL: http://llvm.org/viewvc/llvm-project?rev=352108&view=rev Log: [WebAssembly] Add WebAssemblyImportModule to pragma-attribute-supported-attributes-list.test Modified: cfe/trunk/test/Misc/pragma-attribute-supported-attributes-l

Re: r352930 - [WebAssembly] Add an import_field function attribute

2019-03-18 Thread Dan Gohman via cfe-commits
On Fri, Mar 15, 2019 at 10:55 AM Aaron Ballman wrote: > > Ping. > I apologize for the extraordinarily delays here. I've now posted a patch to address the review comments here: https://reviews.llvm.org/D59520 Dan ___ cfe-commits mailing list cfe-commi

r359630 - [WebAssembly] Use the "wasm32-wasi" triple in tests

2019-04-30 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Apr 30 16:06:07 2019 New Revision: 359630 URL: http://llvm.org/viewvc/llvm-project?rev=359630&view=rev Log: [WebAssembly] Use the "wasm32-wasi" triple in tests Similar to https://reviews.llvm.org/D61334, update clang tests to use the "wasm32-wasi" triple, removing the "-musl

r352930 - [WebAssembly] Add an import_field function attribute

2019-02-01 Thread Dan Gohman via cfe-commits
Author: djg Date: Fri Feb 1 14:25:23 2019 New Revision: 352930 URL: http://llvm.org/viewvc/llvm-project?rev=352930&view=rev Log: [WebAssembly] Add an import_field function attribute This is similar to import_module, but sets the import field name instead. By default, the import field name is th

r352936 - [WebAssembly] Fix ImportName's position in this test.

2019-02-01 Thread Dan Gohman via cfe-commits
Author: djg Date: Fri Feb 1 14:52:29 2019 New Revision: 352936 URL: http://llvm.org/viewvc/llvm-project?rev=352936&view=rev Log: [WebAssembly] Fix ImportName's position in this test. This is a follow-up to r352930. Modified: cfe/trunk/test/Misc/pragma-attribute-supported-attributes-list.te

Re: r352930 - [WebAssembly] Add an import_field function attribute

2019-02-01 Thread Dan Gohman via cfe-commits
On Fri, Feb 1, 2019 at 2:31 PM Aaron Ballman wrote: > On Fri, Feb 1, 2019 at 5:25 PM Dan Gohman via cfe-commits > wrote: > > > > Author: djg > > Date: Fri Feb 1 14:25:23 2019 > > New Revision: 352930 > > > > URL: http://llvm.org/viewvc/llvm-project?rev

Re: r352930 - [WebAssembly] Add an import_field function attribute

2019-02-05 Thread Dan Gohman via cfe-commits
On Tue, Feb 5, 2019 at 11:20 AM Aaron Ballman wrote: > On Fri, Feb 1, 2019 at 8:27 PM Dan Gohman wrote: > > > > > > Indeed, and the existing import_module attribute needs these tests as > well. I'll write some and add them in a follow-up patch. > > > > Thanks for the review! > > Any time! I hav

[clang] d496437 - [WebAssembly] Add support for -mexec-model=reactor

2020-06-03 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-06-03T14:02:47-07:00 New Revision: d496437a0bfd6d135343026cdb7b6a69cb6af536 URL: https://github.com/llvm/llvm-project/commit/d496437a0bfd6d135343026cdb7b6a69cb6af536 DIFF: https://github.com/llvm/llvm-project/commit/d496437a0bfd6d135343026cdb7b6a69cb6af536.diff LO

[clang] 072192d - [WebAssembly] Fix a testcase to be independent of the sysroot default

2020-06-04 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-06-04T16:04:44-07:00 New Revision: 072192d54aa0a5c4bb694be8280dd4fef495b582 URL: https://github.com/llvm/llvm-project/commit/072192d54aa0a5c4bb694be8280dd4fef495b582 DIFF: https://github.com/llvm/llvm-project/commit/072192d54aa0a5c4bb694be8280dd4fef495b582.diff LO

[clang] 931fcd3 - [WebAssembly] Improve clang diagnostics for wasm attributes

2020-06-05 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-06-05T11:27:51-07:00 New Revision: 931fcd3ba011c27626a95e5e35b657763284882a URL: https://github.com/llvm/llvm-project/commit/931fcd3ba011c27626a95e5e35b657763284882a DIFF: https://github.com/llvm/llvm-project/commit/931fcd3ba011c27626a95e5e35b657763284882a.diff LO

[clang] 3aec298 - Revert "[WebAssembly] Improve clang diagnostics for wasm attributes"

2020-06-05 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-06-05T11:52:11-07:00 New Revision: 3aec298349fbc901a51b47004fb156090b3d6bce URL: https://github.com/llvm/llvm-project/commit/3aec298349fbc901a51b47004fb156090b3d6bce DIFF: https://github.com/llvm/llvm-project/commit/3aec298349fbc901a51b47004fb156090b3d6bce.diff LO

[clang] 0d4e243 - [WebAssembly] Improve clang diagnostics for wasm attributes

2020-06-05 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-06-05T14:32:51-07:00 New Revision: 0d4e243456809eabd6914669753eda242b5da4cb URL: https://github.com/llvm/llvm-project/commit/0d4e243456809eabd6914669753eda242b5da4cb DIFF: https://github.com/llvm/llvm-project/commit/0d4e243456809eabd6914669753eda242b5da4cb.diff LO

[clang] 6604295 - [WebAssembly] WebAssembly doesn't support "protected" visibility

2020-06-12 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-06-12T19:52:35-07:00 New Revision: 66042959590d6db9d2a12803a16476d4e3508f3f URL: https://github.com/llvm/llvm-project/commit/66042959590d6db9d2a12803a16476d4e3508f3f DIFF: https://github.com/llvm/llvm-project/commit/66042959590d6db9d2a12803a16476d4e3508f3f.diff LO

[clang] 47f7174 - [WebAssembly] Use "signed char" instead of "char" in SIMD intrinsics.

2020-08-04 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-08-04T12:48:40-07:00 New Revision: 47f7174ffa71d339c1a65d1dd9a2ac5ff2abc95d URL: https://github.com/llvm/llvm-project/commit/47f7174ffa71d339c1a65d1dd9a2ac5ff2abc95d DIFF: https://github.com/llvm/llvm-project/commit/47f7174ffa71d339c1a65d1dd9a2ac5ff2abc95d.diff LO

r319101 - [WebAssemby] Enable "-mthread-model single" by default, for now.

2017-11-27 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Nov 27 13:39:16 2017 New Revision: 319101 URL: http://llvm.org/viewvc/llvm-project?rev=319101&view=rev Log: [WebAssemby] Enable "-mthread-model single" by default, for now. The WebAssembly standard does not yet have threads, and while it's in the process of being standardize

r319129 - [WebAssembly] Add options for using the nontrapping-fptoint feature.

2017-11-27 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Nov 27 17:13:45 2017 New Revision: 319129 URL: http://llvm.org/viewvc/llvm-project?rev=319129&view=rev Log: [WebAssembly] Add options for using the nontrapping-fptoint feature. This adds ways to control use of WebAssembly's new nontrapping-fptoint feature. Modified: cfe

r319801 - [WebAssembly] Don't use Wasm function sections for more than one function

2017-12-05 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Dec 5 09:46:17 2017 New Revision: 319801 URL: http://llvm.org/viewvc/llvm-project?rev=319801&view=rev Log: [WebAssembly] Don't use Wasm function sections for more than one function Patch by Nicholas Wilson! Fixes PR35467. Differential Revision: https://reviews.llvm.org/D4

[clang] [WebAssembly] Change the default linker for `wasm32-wasip2` (PR #84569)

2024-03-18 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode approved this pull request. Looks good! https://github.com/llvm/llvm-project/pull/84569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly] Change the default linker for `wasm32-wasip2` (PR #84569)

2024-03-18 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode closed https://github.com/llvm/llvm-project/pull/84569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly] Change the default linker for `wasm32-wasip2` (PR #84569)

2024-03-19 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode milestoned https://github.com/llvm/llvm-project/pull/84569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [WebAssembly] Change the default linker for `wasm32-wasip2` (PR #84569)

2024-03-19 Thread Dan Gohman via cfe-commits
sunfishcode wrote: /cherry-pick https://github.com/llvm/llvm-project/commit/d66121d74a458e098511b9de920d815440acaa1b https://github.com/llvm/llvm-project/pull/84569 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [WebAssembly] Add more features to generic CPU config (PR #80923)

2024-02-07 Thread Dan Gohman via cfe-commits
@@ -259,6 +259,10 @@ AIX Support WebAssembly Support ^^^ +The -mcpu=generic configuration now enables nontrapping-fptoint, multivalue, +reference-types, and bulk-memory.These proposals are standardized and available +in all major engines. sunfi

[clang] 95da64d - [WebAssembly] Use single-threaded mode when -matomics isn't enabled.

2021-02-04 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2021-02-04T18:16:48-08:00 New Revision: 95da64da23ac3a5855a8934a738b0fa10aa1323c URL: https://github.com/llvm/llvm-project/commit/95da64da23ac3a5855a8934a738b0fa10aa1323c DIFF: https://github.com/llvm/llvm-project/commit/95da64da23ac3a5855a8934a738b0fa10aa1323c.diff LO

[clang] f9c05fc - [WebAssembly] Use the new crt1-command.o if present.

2021-02-11 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2021-02-11T14:44:37-08:00 New Revision: f9c05fc391458e455e8e4d4108a7f270f2f7bedc URL: https://github.com/llvm/llvm-project/commit/f9c05fc391458e455e8e4d4108a7f270f2f7bedc DIFF: https://github.com/llvm/llvm-project/commit/f9c05fc391458e455e8e4d4108a7f270f2f7bedc.diff LO

[clang] 1e4e243 - [WebAssembly] Update supported features in the generic CPU configuration

2022-10-25 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2022-10-25T11:44:22-07:00 New Revision: 1e4e2433bcd1a0296ef1043c462252f0d087d90c URL: https://github.com/llvm/llvm-project/commit/1e4e2433bcd1a0296ef1043c462252f0d087d90c DIFF: https://github.com/llvm/llvm-project/commit/1e4e2433bcd1a0296ef1043c462252f0d087d90c.diff LO

[clang] 00072c0 - [WebAssembly] Mangle the argc/argv `main` as `__wasm_argc_argv`.

2020-02-27 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2020-02-27T07:55:36-08:00 New Revision: 00072c08c75050ae2c835b7bb0e505475dbcd7b9 URL: https://github.com/llvm/llvm-project/commit/00072c08c75050ae2c835b7bb0e505475dbcd7b9 DIFF: https://github.com/llvm/llvm-project/commit/00072c08c75050ae2c835b7bb0e505475dbcd7b9.diff LO

[clang] 8128289 - [WebAssembly] Use wasm-opt and LTO libraries when available.

2019-11-22 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2019-11-22T22:16:28-08:00 New Revision: 812828984c10857a4cd260eb638c52a4411f9143 URL: https://github.com/llvm/llvm-project/commit/812828984c10857a4cd260eb638c52a4411f9143 DIFF: https://github.com/llvm/llvm-project/commit/812828984c10857a4cd260eb638c52a4411f9143.diff LO

[clang] 872a53e - [WebAssembly] Change the llvm-lto dir to use the LLVM Version

2019-11-25 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2019-11-25T10:29:51-08:00 New Revision: 872a53ef9489fcfbb48c6f8dd30bd9a9a026934f URL: https://github.com/llvm/llvm-project/commit/872a53ef9489fcfbb48c6f8dd30bd9a9a026934f DIFF: https://github.com/llvm/llvm-project/commit/872a53ef9489fcfbb48c6f8dd30bd9a9a026934f.diff LO

[clang] 8f1e215 - [WebAssembly] Find wasm-opt with GetProgramPath

2019-12-02 Thread Dan Gohman via cfe-commits
Author: Dan Gohman Date: 2019-12-02T11:48:36-08:00 New Revision: 8f1e2151b8e923345a18aa3025a7d074e134768b URL: https://github.com/llvm/llvm-project/commit/8f1e2151b8e923345a18aa3025a7d074e134768b DIFF: https://github.com/llvm/llvm-project/commit/8f1e2151b8e923345a18aa3025a7d074e134768b.diff LO

Re: [PATCH] D24134: [WebAssembly] Change wasm SizeType to match asmjs

2016-09-01 Thread Dan Gohman via cfe-commits
sunfish added a comment. LGTM as a temporary workaround. https://reviews.llvm.org/D24134 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r292269 - [WebAssembly] Add minimal support for the new wasm object format triple.

2017-01-17 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 17 15:46:38 2017 New Revision: 292269 URL: http://llvm.org/viewvc/llvm-project?rev=292269&view=rev Log: [WebAssembly] Add minimal support for the new wasm object format triple. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/lib/CodeGen/BackendUtil.cpp cf

r292324 - [WebAssembly] Update grow_memory's return type.

2017-01-17 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 17 19:03:35 2017 New Revision: 292324 URL: http://llvm.org/viewvc/llvm-project?rev=292324&view=rev Log: [WebAssembly] Update grow_memory's return type. The grow_memory instruction now returns the previous memory size. Add the return type to the clang intrinsic. Modified

r322967 - [WebAssembly] Add target flags for sign-ext opcodes.

2018-01-19 Thread Dan Gohman via cfe-commits
Author: djg Date: Fri Jan 19 09:16:32 2018 New Revision: 322967 URL: http://llvm.org/viewvc/llvm-project?rev=322967&view=rev Log: [WebAssembly] Add target flags for sign-ext opcodes. Add -msign-ext and -mno-sign-ext to control the new sign-ext target feature. Modified: cfe/trunk/docs/ClangCo

r323224 - [WebAssembly] Add mem.* builtin functions.

2018-01-23 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 23 09:04:04 2018 New Revision: 323224 URL: http://llvm.org/viewvc/llvm-project?rev=323224&view=rev Log: [WebAssembly] Add mem.* builtin functions. This corresponds to r323222 in LLVM. The new names are not yet finalized, so use them at your own risk. Modified: cfe/t

r323253 - [WebAssembly] Factor out settings common to wasm32 and wasm64. NFC.

2018-01-23 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Jan 23 12:22:12 2018 New Revision: 323253 URL: http://llvm.org/viewvc/llvm-project?rev=323253&view=rev Log: [WebAssembly] Factor out settings common to wasm32 and wasm64. NFC. MaxAtomicPromoteWidth and MaxAtomicInlineWidth are 64 on both wasm32 and wasm64, so they can be set

r288447 - [WebAssembly] Add an -mdirect flag for the direct wasm object feature.

2016-12-01 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Dec 1 19:12:40 2016 New Revision: 288447 URL: http://llvm.org/viewvc/llvm-project?rev=288447&view=rev Log: [WebAssembly] Add an -mdirect flag for the direct wasm object feature. Add a target flag for enabling the new direct wasm object emission feature. Modified: cfe/t

r288604 - [WebAssembly] Revert r288447.

2016-12-03 Thread Dan Gohman via cfe-commits
Author: djg Date: Sat Dec 3 17:03:52 2016 New Revision: 288604 URL: http://llvm.org/viewvc/llvm-project?rev=288604&view=rev Log: [WebAssembly] Revert r288447. Revert r288447 which introduced -mdirect. It turns out we don't need a custom flag for this, as the information we need is in the target

[PATCH] D26431: [WebAssembly] Define __unix__ as part of the wasm target

2016-11-08 Thread Dan Gohman via cfe-commits
sunfish added a comment. When adding new predefined macros, please also add the new macros to test/Preprocessor/init.c (and remove negative tests that no longer apply). Also though, I'd also like to understand this a little more. Even with emulation, there will be limits to how Unixy a Web envi

[PATCH] D26431: [WebAssembly] Define __unix__ as part of the wasm target

2016-11-08 Thread Dan Gohman via cfe-commits
sunfish added a comment. The other main way we could provide __unix et al would be to add them to tools/shared.py in Emscripten (see the comment "wasm target does not automatically define emscripten stuff"). It's not clear to me whether that's better than adding the macros to clang itself or no

[PATCH] D12861: [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64

2015-09-14 Thread Dan Gohman via cfe-commits
sunfish created this revision. sunfish added a reviewer: jfb. sunfish added a subscriber: cfe-commits. sunfish set the repository for this revision to rL LLVM. Herald added subscribers: dschuff, jfb. This makes int_fast64_t and int_least64_t the same type as int64_t, and eliminates a difference b

[PATCH] D12862: [WebAssembly] Define the atomic type sizes

2015-09-14 Thread Dan Gohman via cfe-commits
sunfish created this revision. sunfish added a reviewer: jfb. sunfish added a subscriber: cfe-commits. sunfish set the repository for this revision to rL LLVM. Herald added subscribers: dschuff, jfb. WebAssembly's spec has now been updated to specify some [guarantees about lock free atomic access

r247622 - [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64

2015-09-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Sep 14 16:49:41 2015 New Revision: 247622 URL: http://llvm.org/viewvc/llvm-project?rev=247622&view=rev Log: [WebAssembly] Use "long long" for int_fast64_t and int_least64_t on wasm64 This makes int_fast64_t and int_least64_t the same type as int64_t, and eliminates a differe

r247623 - [WebAssembly] Simplify code by avoiding duplicating the default behavior.

2015-09-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Sep 14 16:54:32 2015 New Revision: 247623 URL: http://llvm.org/viewvc/llvm-project?rev=247623&view=rev Log: [WebAssembly] Simplify code by avoiding duplicating the default behavior. Modified: cfe/trunk/lib/CodeGen/TargetInfo.cpp Modified: cfe/trunk/lib/CodeGen/TargetInf

r247624 - [WebAssembly] Define the atomic type sizes

2015-09-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Sep 14 16:56:37 2015 New Revision: 247624 URL: http://llvm.org/viewvc/llvm-project?rev=247624&view=rev Log: [WebAssembly] Define the atomic type sizes WebAssembly's spec has now been updated to specify some guarantees about lock free atomic accesses. Update clang to match.

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-25 Thread Dan Gohman via cfe-commits
sunfish added a comment. This code has been questioned in this way before, and every time it comes up, it turns out that there's a bug somewhere else that really ought to be fixed anyway. In previous iterations of this discussion, when clang is found attempting to print something like a dep fi

Re: [PATCH] D13128: Fix backend crash on multiple close of stdout.

2015-09-29 Thread Dan Gohman via cfe-commits
sunfish added a comment. > In any case, that's not how clang deal with usage or even internal unexpected > errors. It asserts, print error messages but does not crash on purpose. > Having clang crash here does not seem like a good solution and will result in > this issue continue to surface aga

r249176 - [WebAssembly] Add a __builtin_wasm_memory_size() intrinsic.

2015-10-02 Thread Dan Gohman via cfe-commits
Author: djg Date: Fri Oct 2 14:38:47 2015 New Revision: 249176 URL: http://llvm.org/viewvc/llvm-project?rev=249176&view=rev Log: [WebAssembly] Add a __builtin_wasm_memory_size() intrinsic. Modified: cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def cfe/trunk/lib/CodeGen/CGBuiltin.cpp

r249179 - [WebAssembly] Add a __builtin_wasm_resize_memory() intrinsic.

2015-10-02 Thread Dan Gohman via cfe-commits
Author: djg Date: Fri Oct 2 15:20:01 2015 New Revision: 249179 URL: http://llvm.org/viewvc/llvm-project?rev=249179&view=rev Log: [WebAssembly] Add a __builtin_wasm_resize_memory() intrinsic. Modified: cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def cfe/trunk/lib/CodeGen/CGBuiltin.c

[PATCH] D12002: Initial WebAssembly support in clang

2015-08-12 Thread Dan Gohman via cfe-commits
sunfish created this revision. sunfish added subscribers: cfe-commits, jfb. sunfish set the repository for this revision to rL LLVM. This patch adds initial WebAssembly support in clang. The WebAssembly target is currently experimental. Repository: rL LLVM http://reviews.llvm.org/D12002 File

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-12 Thread Dan Gohman via cfe-commits
sunfish planned changes to this revision. sunfish marked 3 inline comments as done. Comment at: lib/Basic/Targets.cpp:6935 @@ +6934,3 @@ +NoAsmVariants = true; +LongDoubleWidth = LongDoubleAlign = 64; +SuitableAlign = 128; jfb wrote: > That's already t

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-12 Thread Dan Gohman via cfe-commits
sunfish updated this revision to Diff 32025. sunfish marked 3 inline comments as done. sunfish added a comment. Minor changes to address review comments. Repository: rL LLVM http://reviews.llvm.org/D12002 Files: include/clang/Basic/BuiltinsWebAssembly.def include/clang/Basic/TargetBuilti

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-13 Thread Dan Gohman via cfe-commits
sunfish updated this revision to Diff 32109. sunfish added a comment. - use more default values in WebAssemblyTargetInfo etc. - add a comment about using ARM-C++-ABI-style guard variables (for now) - fix diff to include context for Phabricator Repository: rL LLVM http://reviews.llvm.org/D1200

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-13 Thread Dan Gohman via cfe-commits
sunfish marked 2 inline comments as done. Comment at: lib/Basic/Targets.cpp:6935 @@ +6934,3 @@ + +public: + explicit WebAssemblyTargetInfo(const llvm::Triple &T) : TargetInfo(T) { I've now removed this (for now; we can discuss what to do in a later patch). Repo

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-14 Thread Dan Gohman via cfe-commits
sunfish updated this revision to Diff 32192. sunfish marked an inline comment as done. sunfish added a comment. - set MaxAtomicInlineWidth to 0 for now (sets *_ATOMIC_*_LOCK_FREE to 1) - enable LargeArrayAlign - enable __int128 - various cleanups Repository: rL LLVM http://reviews.llvm.org/D1

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-14 Thread Dan Gohman via cfe-commits
sunfish added inline comments. Comment at: lib/Basic/Targets.cpp:7010 @@ +7009,3 @@ + { #ID, TYPE, ATTRS, HEADER, ALL_LANGUAGES, nullptr }, +#include "clang/Basic/BuiltinsWebAssembly.def" +}; WebAssembly32TargetInfo is subclassed in LLVM code, and getTargetDefine

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-18 Thread Dan Gohman via cfe-commits
sunfish updated this revision to Diff 32485. sunfish marked an inline comment as done. sunfish added a comment. The patch evolved enough to prompt posting one more new version; major changes: - make constructors and destructors return this - enable -fuse-init-array - enable -fno-common - disable

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-20 Thread Dan Gohman via cfe-commits
sunfish marked 2 inline comments as done. Comment at: lib/CodeGen/ItaniumCXXABI.cpp:364 @@ +363,3 @@ +ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true, + /* UseARMGuardVarABI = */ true) {} + jfb wrote: > It's more common to have no spaces fo

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-31 Thread Dan Gohman via cfe-commits
sunfish updated this revision to Diff 33611. sunfish marked 2 inline comments as done. sunfish added a comment. Herald added a subscriber: dschuff. Minor updates to keep the patch building and working as code changes around it. Also enabled -mthread-model. Repository: rL LLVM http://reviews.

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-31 Thread Dan Gohman via cfe-commits
sunfish added a comment. Thanks for the review! Comment at: include/clang/Basic/TargetCXXABI.h:166 @@ -148,1 +165,3 @@ + /// \brief Are member functions differently aligned? + bool areMemberFunctionsAligned() const { echristo wrote: > Can you elaborate on th

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-31 Thread Dan Gohman via cfe-commits
sunfish updated this revision to Diff 33637. sunfish added a comment. Updated to address review comments: - added comments - simplified Triple validation code - removed -mcpu="native" code Repository: rL LLVM http://reviews.llvm.org/D12002 Files: include/clang/Basic/BuiltinsWebAssembly.de

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-09-03 Thread Dan Gohman via cfe-commits
sunfishcode added a subscriber: sunfishcode. Comment at: lib/Basic/Targets.cpp:6943-6944 @@ +6942,4 @@ + + Diags.Report(diag::err_opt_not_valid_with_opt) << Feature + << "-target-feature"; + return false; --

r246814 - [WebAssembly] Initial WebAssembly support in clang

2015-09-03 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Sep 3 17:51:53 2015 New Revision: 246814 URL: http://llvm.org/viewvc/llvm-project?rev=246814&view=rev Log: [WebAssembly] Initial WebAssembly support in clang This implements basic support for compiling (though not yet assembling or linking) for a WebAssembly target. Note th

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-09-03 Thread Dan Gohman via cfe-commits
sunfishcode added inline comments. Comment at: lib/Basic/Targets.cpp:7643-7649 @@ +7642,9 @@ + case llvm::Triple::wasm64: +// Until specific variations are defined, don't permit any. +if (!(Triple == llvm::Triple("wasm64-unknown-unknown")) || +(!Triple.getVendorNa

r252201 - [WebAssembly] Update wasm builtin functions to match spec changes.

2015-11-05 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Nov 5 14:16:37 2015 New Revision: 252201 URL: http://llvm.org/viewvc/llvm-project?rev=252201&view=rev Log: [WebAssembly] Update wasm builtin functions to match spec changes. The page_size operator has been removed from the spec, and the resize_memory operator has been chang

r252646 - [WebAssembly] Change long double to be quadruple-precision floating point.

2015-11-10 Thread Dan Gohman via cfe-commits
Author: djg Date: Tue Nov 10 15:01:46 2015 New Revision: 252646 URL: http://llvm.org/viewvc/llvm-project?rev=252646&view=rev Log: [WebAssembly] Change long double to be quadruple-precision floating point. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/test/CodeGen/wasm-arguments.c

Re: [PATCH] D23244: [Driver] Enable CFI for WebAssembly

2016-08-08 Thread Dan Gohman via cfe-commits
sunfish accepted this revision. sunfish added a comment. This revision is now accepted and ready to land. lgtm. https://reviews.llvm.org/D23244 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cf

Re: [PATCH] D16154: Default vaarg lowering should support indirect struct types.

2016-02-17 Thread Dan Gohman via cfe-commits
sunfish added a subscriber: sunfish. sunfish added a comment. For WebAssembly, I'm expecting we'll switch to emitVoidPtrVAArg and eschew LLVM's vaarg instruction too, as other targets do. This exposes the expanded code to the full optimizer, which seems preferable. http://reviews.llvm.org/D161

r261557 - [WebAssembly] Lower va_arg in clang.

2016-02-22 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Feb 22 13:17:40 2016 New Revision: 261557 URL: http://llvm.org/viewvc/llvm-project?rev=261557&view=rev Log: [WebAssembly] Lower va_arg in clang. This uses the general emitVoidPtrVAArg lowering logic for everything, since this supports all types, and we don't have any special

r261560 - [WebAssembly] Initial driver support for standard library paths.

2016-02-22 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Feb 22 13:26:15 2016 New Revision: 261560 URL: http://llvm.org/viewvc/llvm-project?rev=261560&view=rev Log: [WebAssembly] Initial driver support for standard library paths. Modified: cfe/trunk/lib/Driver/ToolChains.cpp cfe/trunk/lib/Driver/Tools.cpp cfe/trunk/tes

r256967 - [WebAssembly] Add --gc-sections to the link line.

2016-01-06 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 6 13:43:32 2016 New Revision: 256967 URL: http://llvm.org/viewvc/llvm-project?rev=256967&view=rev Log: [WebAssembly] Add --gc-sections to the link line. This will eventually be accompanied with a change to enable -ffunction-sections and -fdata-sections by default, which

r257004 - [WebAssembly] Only enable --gc-sections when optimizations are enabled.

2016-01-06 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 6 18:32:04 2016 New Revision: 257004 URL: http://llvm.org/viewvc/llvm-project?rev=257004&view=rev Log: [WebAssembly] Only enable --gc-sections when optimizations are enabled. Also, revamp the wasm-toolchain.c test and add a test to ensure that a user-supplied --no-gc-se

Re: r256967 - [WebAssembly] Add --gc-sections to the link line.

2016-01-06 Thread Dan Gohman via cfe-commits
On Wed, Jan 6, 2016 at 3:53 PM, Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Wed, Jan 06, 2016 at 07:43:32PM -0000, Dan Gohman via cfe-commits wrote: > > Author: djg > > Date: Wed Jan 6 13:43:32 2016 > > New Revision: 256967 > >

r257005 - [WebAssembly] Enable -ffunction-sections and -fdata-sections by default.

2016-01-06 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 6 18:50:27 2016 New Revision: 257005 URL: http://llvm.org/viewvc/llvm-project?rev=257005&view=rev Log: [WebAssembly] Enable -ffunction-sections and -fdata-sections by default. These remain user-overridable with -fno-function-sections and -fno-data-sections. Modified:

r257006 - [WebAssembly] Enable -fvisibility=hidden by default.

2016-01-06 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 6 19:00:21 2016 New Revision: 257006 URL: http://llvm.org/viewvc/llvm-project?rev=257006&view=rev Log: [WebAssembly] Enable -fvisibility=hidden by default. This, along with many things in the WebAssembly target, is experimental. Feedback is welcome. Modified: cfe/t

r257007 - [WebAssembly] Add a test to ensure that -fvisibility=default works.

2016-01-06 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 6 19:15:05 2016 New Revision: 257007 URL: http://llvm.org/viewvc/llvm-project?rev=257007&view=rev Log: [WebAssembly] Add a test to ensure that -fvisibility=default works. It should override the default of -fvisibility=hidden. Modified: cfe/trunk/test/Driver/wasm-to

r257021 - [WebAssembly] Add -m:e to the target triple.

2016-01-06 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 6 21:20:15 2016 New Revision: 257021 URL: http://llvm.org/viewvc/llvm-project?rev=257021&view=rev Log: [WebAssembly] Add -m:e to the target triple. Modified: cfe/trunk/lib/Basic/Targets.cpp cfe/trunk/test/CodeGen/target-data.c Modified: cfe/trunk/lib/Basic/Targ

r257327 - [WebAssembly] Fix a typo in a comment.

2016-01-11 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Jan 11 05:49:44 2016 New Revision: 257327 URL: http://llvm.org/viewvc/llvm-project?rev=257327&view=rev Log: [WebAssembly] Fix a typo in a comment. Modified: cfe/trunk/test/Driver/wasm-toolchain.c Modified: cfe/trunk/test/Driver/wasm-toolchain.c URL: http://llvm.org/vie

[libcxx] r257612 - [WebAssembly] Set std::numeric_limits's traps field for WebAssembly.

2016-01-13 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 13 10:32:00 2016 New Revision: 257612 URL: http://llvm.org/viewvc/llvm-project?rev=257612&view=rev Log: [WebAssembly] Set std::numeric_limits's traps field for WebAssembly. WebAssembly's integer division instruction traps on division by zero; set the traps field of integ

[libcxxabi] r257614 - [WebAssembly] Accomodate wasm's 128-bit long double.

2016-01-13 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Jan 13 10:39:30 2016 New Revision: 257614 URL: http://llvm.org/viewvc/llvm-project?rev=257614&view=rev Log: [WebAssembly] Accomodate wasm's 128-bit long double. Modified: libcxxabi/trunk/src/cxa_demangle.cpp Modified: libcxxabi/trunk/src/cxa_demangle.cpp URL: http://ll

r257774 - [WebAssembly] Configure some simple include paths and runtime library settings.

2016-01-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Thu Jan 14 10:00:13 2016 New Revision: 257774 URL: http://llvm.org/viewvc/llvm-project?rev=257774&view=rev Log: [WebAssembly] Configure some simple include paths and runtime library settings. Modified: cfe/trunk/lib/Driver/ToolChains.cpp cfe/trunk/lib/Driver/ToolChains.h

r253146 - [WebAssembly] Remove the "const" attribute from __builtin_wasm_memory_size.

2015-11-14 Thread Dan Gohman via cfe-commits
Author: djg Date: Sat Nov 14 16:57:34 2015 New Revision: 253146 URL: http://llvm.org/viewvc/llvm-project?rev=253146&view=rev Log: [WebAssembly] Remove the "const" attribute from __builtin_wasm_memory_size. Modified: cfe/trunk/include/clang/Basic/BuiltinsWebAssembly.def Modified: cfe/trunk/in

r254817 - [WebAssembly] Remove an obsolete TODO comment.

2015-12-04 Thread Dan Gohman via cfe-commits
Author: djg Date: Fri Dec 4 19:36:31 2015 New Revision: 254817 URL: http://llvm.org/viewvc/llvm-project?rev=254817&view=rev Log: [WebAssembly] Remove an obsolete TODO comment. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llvm.org/viewvc/ll

[PATCH] D15586: [WebAssembly] Initial linking support.

2015-12-16 Thread Dan Gohman via cfe-commits
sunfish created this revision. sunfish added subscribers: cfe-commits, jfb, dschuff. sunfish set the repository for this revision to rL LLVM. This begins minimal support for invoking 'ld' from clang for WebAssembly targets. Repository: rL LLVM http://reviews.llvm.org/D15586 Files: lib/Driv

r255848 - [WebAssembly] Initial linking support.

2015-12-16 Thread Dan Gohman via cfe-commits
Author: djg Date: Wed Dec 16 17:30:41 2015 New Revision: 255848 URL: http://llvm.org/viewvc/llvm-project?rev=255848&view=rev Log: [WebAssembly] Initial linking support. This begins minimal support for invoking 'ld' from clang for WebAssembly targets. Differential Revision: http://reviews.llvm.or

Re: r255848 - [WebAssembly] Initial linking support.

2015-12-16 Thread Dan Gohman via cfe-commits
On Wed, Dec 16, 2015 at 5:20 PM, Rafael EspĂ­ndola < rafael.espind...@gmail.com> wrote: > testcase? > Also, this is passing -target to ld, which is not a valid option. > This patch is mainly setting up some minimal infrastructure. The actual link command-line will need additional changes to be us

r256216 - [WebAssembly] Remove the -target command-line flag from the ld commandline.

2015-12-21 Thread Dan Gohman via cfe-commits
Author: djg Date: Mon Dec 21 17:30:41 2015 New Revision: 256216 URL: http://llvm.org/viewvc/llvm-project?rev=256216&view=rev Log: [WebAssembly] Remove the -target command-line flag from the ld commandline. This flag isn't needed, or permitted, with the "ld" flavor of lld. Also, add a basic ld co

Re: r256216 - [WebAssembly] Remove the -target command-line flag from the ld commandline.

2015-12-23 Thread Dan Gohman via cfe-commits
; > src\\chrome\\src\\third_party\\llvm\\tools\\clang\\test\\Driver\\wasm-toolchain.c" > > > > > ^ > :6:63: note: possible intended match here > "C:\\src\\chrome\\src\\third_party\\llvm-bootstrap\\bin\\lld.exe&

Re: r256216 - [WebAssembly] Remove the -target command-line flag from the ld commandline.

2015-12-23 Thread Dan Gohman via cfe-commits
C:\\src >>> \\chrome\\src\\third_party\\llvm-bootstrap\\tools\\clang\\test\\Driver" >>> "-dwarf-debug-producer" "clang version 3.8.0 (tr >>> unk 256248)" "-mrelocation-model" "static" "-o" >>> "C:\\Users\\

[clang] Add flag to opt out of wasm-opt (PR #95208)

2024-07-02 Thread Dan Gohman via cfe-commits
sunfishcode wrote: @mh4ck-Thales A warning could be useful in some situations, but I also don't know how to navigate the situation with existing users using `-Werror`. @sbc100 I'm open to ideas for how to limit the scope to wasm in some way. https://github.com/llvm/llvm-project/pull/95208

[clang] Add flag to opt out of wasm-opt (PR #95208)

2024-06-14 Thread Dan Gohman via cfe-commits
https://github.com/sunfishcode approved this pull request. This looks good to me. https://github.com/llvm/llvm-project/pull/95208 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >