[PATCH] D143553: [Clang][CMake] Use perf-training for Clang-BOLT

2023-05-13 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. LGTM. Sorry for the delays reviewing! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D143553/new/ https://reviews.llvm.org/D143553 ___

[PATCH] D151683: [clang] Enable C++11-style attributes in all language modes

2023-06-09 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/test/ParserHLSL/group_shared.hlsl:14 -// expected-error@+1 {{expected expression}} float groupshared [[]] i = 12; aaron.ballman wrote: > philnik wrote: > > Should this also get an extension warning/should attribut

[PATCH] D151683: [clang] Enable C++11-style attributes in all language modes

2023-06-09 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/test/ParserHLSL/group_shared.hlsl:14 -// expected-error@+1 {{expected expression}} float groupshared [[]] i = 12; philnik wrote: > beanz wrote: > > aaron.ballman wrote: > > > philnik wrote: > > > > Should this als

[PATCH] D139137: add floor library function

2022-12-05 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. LGTM. @bob80905 if you haven't already, you should follow the steps here (https://www.llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access) to get commit access. Repository: rG LLVM Gi

[PATCH] D27812: [test] Extend llvm_shlib_dir fix to unittests

2016-12-15 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Looks reasonable to me. https://reviews.llvm.org/D27812 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[PATCH] D28269: [clang] Update lit config in utils/perf-training

2017-01-03 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. I don't think this works either. Pretty sure not setting the driver mode defaults it to gcc, when we should be setting it to g++. Can you try setting driver mode to g++ instead of removing the flag? Repository: rL LLVM https://reviews.llvm.org/D28269 __

[PATCH] D28269: [clang] Update lit config in utils/perf-training

2017-01-03 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. LGTM! Repository: rL LLVM https://reviews.llvm.org/D28269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D29851: [clang-tools-extra] [test] Fix test dependencies when using installed tools

2017-03-14 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Ugh... I really don't like how `LLVM_UTILS_PROVIDED` is implemented, but I guess it is fine. This patch is good. Repository: rL LLVM https://reviews.llvm.org/D29851 __

[PATCH] D31363: [libc++] Remove cmake glob for source files

2017-03-28 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. LLVM has a CMake module "LLVMProcessSources.cmake" which verifies that all source files are referenced in the CMakeLists file. Since it is part of the LLVM distributed modules, you can re-use it in libcxx. https://reviews.llvm.org/D31363 __

[PATCH] D31447: [Driver] Add option to print the resource directory

2017-04-03 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. One minor nitpick on the test case, but otherwise this looks fine to me. Comment at: test/Driver/immediate-options.c:19 +// RUN: %clang -print-resource-dir | FileCheck %s -che

[PATCH] D31696: Automatically add include-what-you-use for when building in tree

2017-04-10 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/tools/.gitignore:12 +#==# +# The include-what-you-use project, for when building in-tree. +include-what-you-use rnk wrote: > LLVM doesn't cu

[PATCH] D26649: [CMake] Support lld with LTO bootstrap

2017-01-17 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: cfe/trunk/CMakeLists.txt:531 + if(BOOTSTRAP_LLVM_ENABLE_LLD) +add_dependencies(clang-bootstrap-deps lld) + elseif(LLVM_BINUTILS_INCDIR) mehdi_amini wrote: > I come back to this a bit late, sorry, but I'm

[PATCH] D28821: [CMake] Separate LLVM_ENABLE_LTO and LLVM_ENABLE_LLD

2017-01-17 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Many thanks for the quick cleanup! LGTM! Repository: rL LLVM https://reviews.llvm.org/D28821 ___ cfe-commits mailing list cfe-commits@lists.llvm

[PATCH] D42490: [cmake] Set cmake policy CMP0068 to suppress warnings on OSX

2018-01-31 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Historically we've duplicated `cmake_policy` calls on a per-project basis which we needed to support standalone builds. That said, it would be nice if we had LLVM vend some CMake modules that en

[PATCH] D26654: [CMake] Add Fuchsia toolchain CMake cache files

2017-02-15 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. Thanks for all your work on these! Repository: rL LLVM https://reviews.llvm.org/D26654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D26764: [compiler-rt] [cmake] Remove i686 target that is duplicate to i386

2016-11-28 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a reviewer: eugenis. beanz added a subscriber: eugenis. beanz added a comment. Looping in @eugenis, who added i686 support in r218761. eugenis, since i686 is identical to i386 generating it as a separate target is undesirable. Can you help advise as to how we can better meet your nee

[PATCH] D27683: Prepare PrettyStackTrace for LLDB adoption

2016-12-13 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. LGTM other than a few style comments. Please clang-format before committing. Some of the formatting looks off (although that might just be my phone). Comment at: lib/Support/PrettyStackTrace.cpp:152 + va_start(ap, format);

[PATCH] D32603: Build the Apple-style stage2 with modules and full debug info

2017-04-27 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. SWEET! this is great to see! One small comment inline, otherwise LGTM. Comment at: cmake/caches/Apple-stage2.cmake:33 +set(CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG" CACHE

[PATCH] D32815: [clang-tidy][CMake] Make clang-tidy usable as distribution component

2017-05-08 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. Yep, this seems straight forward. Repository: rL LLVM https://reviews.llvm.org/D32815 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[PATCH] D117419: [clang][cmake] Use `GNUInstallDirs` to support custom installation dirs

2022-01-18 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/CMakeLists.txt:3 +include(GNUInstallDirs) + If GNUInstallDirs is included before the `project` call enables languages it results in a CMake warning being logged. Repository: rG LLVM Github Monorepo CHANGES SI

[PATCH] D117626: [ADT] [NFC] Add StringRef::detectEOL

2022-01-18 Thread Chris Bieneman via Phabricator via cfe-commits
beanz created this revision. beanz added reviewers: rnk, jyknight, dexonsmith. beanz requested review of this revision. Herald added projects: clang, LLVM. This change moves EOL detection out of the clang::InclusionRewriter into llvm::StringRef so that it can be easily reused elsewhere. It also ad

[PATCH] D117626: [ADT] [NFC] Add StringRef::detectEOL

2022-01-18 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 401071. beanz added a comment. Minor fix to properly handle classic mac... because it is _very_ important. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D117626/new/ https://reviews.llvm.org/D117626 Files: clan

[PATCH] D117626: [ADT] [NFC] Add StringRef::detectEOL

2022-01-18 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 401074. beanz added a comment. Fixing the CR test case Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D117626/new/ https://reviews.llvm.org/D117626 Files: clang/lib/Frontend/Rewrite/InclusionRewriter.cpp llvm/

[PATCH] D115848: tidy-llvm

2022-01-19 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. Sorry I’m a bit late here. If you want to use clang-tidy on a CMake built project (like LLVM) you can use CMake’s built-in support for clang-tidy: https://cmake.org/cmake/help/latest/variable/CMAKE_LANG_CLANG_TIDY.html This will run clang-tidy during the project build wit

[PATCH] D117626: [ADT] [NFC] Add StringRef::detectEOL

2022-01-21 Thread Chris Bieneman via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG9d3437fbf341: [ADT] [NFC] Add StringRef::detectEOL (authored by beanz). Changed prior to commit: https://reviews.llvm.org/D117626?vs=401074&id=401

[PATCH] D116966: [analyzer] Don't specify PLUGIN_TOOL for analyzer plugins

2022-01-21 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. Have you looked at the impact on binary size? PLUGIN_TOOL _should_ cause the plugins to link against the copy of LLVM & Clang in the tool target binary which reduces the binary size of the plugin and avoids duplicate global initializations. Repository: rG LLVM Github

[PATCH] D109977: LLVM Driver Multicall tool

2022-01-28 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. Sorry for disappearing on this. I'm working right now on adding support for multi-entry tools (like objcopy). I'll get an update in today. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D109977/new/ https://reviews.llvm.org/D1

[PATCH] D109977: LLVM Driver Multicall tool

2022-01-28 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 404114. beanz added a comment. Adding support for multiple subcommands mapping to the same entry. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D109977/new/ https://reviews.llvm.org/D109977 Files: clang/cmake/m

[PATCH] D116492: [lld] Deprecate using llvm-config to detect llvm installation

2022-01-03 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/CMakeLists.txt:26 "--src-root" - "--cmakedir") + "--cmakedir" + "--bindir" I assume these are re-arranged to match what you're doing in lld. Is that correct? Generally it is preferred to do th

[PATCH] D116492: [lld] Deprecate using llvm-config to detect llvm installation

2022-01-03 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/CMakeLists.txt:26 "--src-root" - "--cmakedir") + "--cmakedir" + "--bindir" Ericson2314 wrote: > beanz wrote: > > I assume these are re-arranged to match what you're doing in lld. Is that > > co

[PATCH] D116548: [clang][cmake] Rearrange top-level CMakeLists.txt for D116492

2022-01-03 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116548/new/ https://reviews.llvm.org/D116548 ___ c

[PATCH] D116521: [CMake] Factor out config prefix finding logic

2022-01-07 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116521/new/ https://reviews.llvm.org/D116521 ___ cfe-commits mailing list cfe-commits@lists.llvm.or

[PATCH] D116492: [lld] Deprecate using llvm-config to detect llvm installation

2022-01-07 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116492/new/ https://reviews.llvm.org/D116492 ___ c

[PATCH] D89942: Disable LTO and LLD for bootstrap builds on systems unsupported by LLD

2021-03-16 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. I'm super sorry to be popping in so late on this. Is this really the direction we should take? If we know SystemZ + LLD + LTO is a bad configuration, "fixing" the configuration and logging a message seems like the wrong move when the only way to get into that state is to

[PATCH] D89942: Disable LTO and LLD for bootstrap builds on systems unsupported by LLD

2021-03-16 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. In D89942#2629184 , @tbaeder wrote: > But that's not true. The `3-stage-base.cmake` sets > `BOOTSTRAP_LLVM_ENABLE_LTO` to `ON`, which doesn't work on SystemZ. This is > the initial problem I had. I was not interested in having LTO

[PATCH] D89942: Disable LTO and LLD for bootstrap builds on systems unsupported by LLD

2021-03-16 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. If you add `include(CMakeDetermineSystem)` to the top of the cache file, it should initialize `CMAKE_HOST_SYSTEM_PROCESSOR`, which also probably gives you a reasonable value to key off. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D89942/new/ https://reviews.llv

[PATCH] D89942: Disable LTO and LLD for bootstrap builds on systems unsupported by LLD

2021-03-17 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. LGTM. The `*_LTO` and `*_LLD` variables are usable independently of each other even on non-Apple platforms, so it makes sense to need to set them both. LLVM’s LTO is supported in Gold, and I believe our build system supports MSVC’s LTCG (whi

[PATCH] D99322: [clang] Pass option directly to command. NFC

2021-03-25 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Woo! Thanks for cleaning up one of my old messes :) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99322/new/ https://reviews.llvm.org/D99322

[PATCH] D111109: AddGlobalAnnotations for function with or without function body.

2021-10-11 Thread Chris Bieneman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG121b2252de0e: AddGlobalAnnotations for function with or without function body. (authored by beanz). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D09/new/

[PATCH] D107095: Implement #pragma clang header_unsafe

2021-08-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 367851. beanz added a comment. Renaming to restrict_expansion Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D107095/new/ https://reviews.llvm.org/D107095 Files: clang/docs/LanguageExtensions.rst clang/include

[PATCH] D107095: Implement #pragma clang header_unsafe

2021-08-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 367856. beanz added a comment. Fixing documentation line wrapping. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D107095/new/ https://reviews.llvm.org/D107095 Files: clang/docs/LanguageExtensions.rst clang/in

[PATCH] D107095: Implement #pragma clang header_unsafe

2021-08-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 367861. beanz added a comment. Cleaning up documentation wording to make more sense with the rename Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D107095/new/ https://reviews.llvm.org/D107095 Files: clang/docs/

[PATCH] D107095: Implement #pragma clang header_unsafe

2021-08-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz updated this revision to Diff 367863. beanz added a comment. Missed updating the flag name. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D107095/new/ https://reviews.llvm.org/D107095 Files: clang/docs/LanguageExtensions.rst clang/include

[PATCH] D107095: Implement #pragma clang restrict_expansion

2021-08-23 Thread Chris Bieneman via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG43de869d77f7: Implement #pragma clang restrict_expansion (authored by beanz). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D107095/new/ https://reviews.llvm

[PATCH] D108567: Implement #pragma clang final extension

2021-08-23 Thread Chris Bieneman via Phabricator via cfe-commits
beanz created this revision. beanz added reviewers: aaron.ballman, rsmith, lgerbarg, pete, lebedev.ri, dexonsmith. beanz requested review of this revision. Herald added a project: clang. This patch adds a new preprocessor extension ``#pragma clang final`` which enables warning on undefinition and

<    1   2   3   4   5   6