[clang] [analyzer] Drop assertion enforcing that assume args are known constants (PR #151908)

2025-08-25 Thread Tobias Hieta via cfe-commits
tru wrote: @steakhal you can cherry-pick both at the same time with cherry-pick that works for me. https://github.com/llvm/llvm-project/pull/151908 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listin

[clang] [clang-tools-extra] [flang] [lld] [llvm] [LLVM][utils] Add script which clears release notes (PR #153593)

2025-08-15 Thread Tobias Hieta via cfe-commits
tru wrote: @zwuis do you need someone to merge the PR for you? https://github.com/llvm/llvm-project/pull/153593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lld] [llvm] [LLVM][utils] Add script which clears release notes (PR #153593)

2025-08-15 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/153593 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-tools-extra] [flang] [lld] [llvm] [LLVM][utils] Add script which clears release notes (PR #153593)

2025-08-15 Thread Tobias Hieta via cfe-commits
tru wrote: > @tru In that case it might make sense to switch to the libcxx model where all > the release notes are versioned (see > https://github.com/llvm/llvm-project/tree/main/libcxx/docs/ReleaseNotes) and > then just the latest one included on the unversioned page? Yes this is probably a

[clang] [clang-tools-extra] [flang] [lld] [llvm] [LLVM][utils] Add script which clears release notes (PR #153593)

2025-08-15 Thread Tobias Hieta via cfe-commits
tru wrote: Maybe out of scope for this PR - but I wonder if we should just copy the release notes to ReleaseNotes-LLVM21.rst instead of just nuking them from main. That would make it easier to see what recently happened and not much of a difference for the script. What do you guys think @tste

[clang] [clang-tools-extra] [flang] [lld] [llvm] [LLVM][utils] Add script which clears release notes (PR #153593)

2025-08-14 Thread Tobias Hieta via cfe-commits
tru wrote: Hi this is great! Thanks for doing this. There are some things that might need to happen in libc++ as well. Is that something we can automate in this script @ldionne @philnik777 ? https://github.com/llvm/llvm-project/pull/153593 ___ cfe-co

[clang] [win][clang] Align scalar deleting destructors with MSABI (PR #139566)

2025-08-06 Thread Tobias Hieta via cfe-commits
tru wrote: The conflict in ReleaseNotes has to be fixed. I am happy to have this compatibility fixed since we ran into it at some point. I am guessing that reviews can be slower during summer. Maybe @aganea or @efriedma-quic could have a look (again). https://github.com/llvm/llvm-project/pull

[clang] [DTLTO][Clang][Docs] Update for COFF support (PR #149988)

2025-07-31 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/149988 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C23] Handle type compatibility for enumerations better (PR #150282)

2025-07-29 Thread Tobias Hieta via cfe-commits
tru wrote: Oh never mind @AaronBallman I just noticed that this PR was targeting `main` and not the release branch, ignore my comments! It just ended up in my review queue since it's in the milestone and I didn't pay attention! https://github.com/llvm/llvm-project/pull/150282 _

[clang] [C23] Handle type compatibility for enumerations better (PR #150282)

2025-07-29 Thread Tobias Hieta via cfe-commits
tru wrote: > > @AaronBallman can you squash this? (release procedure is a bit different so > > we prefer to get it pre-squashed). > > Sure, but I'm not certain we should have a different merge strategy for main > vs release branches so I'd like to understand more about what's driving this. >

[clang] [C23] Handle type compatibility for enumerations better (PR #150282)

2025-07-29 Thread Tobias Hieta via cfe-commits
tru wrote: @AaronBallman can you squash this? (release procedure is a bit different so we prefer to get it pre-squashed). https://github.com/llvm/llvm-project/pull/150282 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/c

[clang] [CMake][Release] Build with -ffat-lto-objects (PR #140381)

2025-07-26 Thread Tobias Hieta via cfe-commits
tru wrote: > > How much slower is this? Last time I tested fatlto in our toolchain it took > > a VERY long time to link. > > > > You're probably thinking about "full" LTO, this is fat thin LTO. Our naming > is truly amazing. See https://llvm.org/docs/FatLTO.html. > > > > It should add abo

[clang] [CMake][Release] Build with -ffat-lto-objects (PR #140381)

2025-07-26 Thread Tobias Hieta via cfe-commits
tru wrote: How much slower is this? Last time I tested fatlto in our toolchain it took a VERY long time to link. https://github.com/llvm/llvm-project/pull/140381 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/m

[clang] [llvm] [DTLTO][Clang] Add support for Integrated Distributed ThinLTO (PR #147265)

2025-07-17 Thread Tobias Hieta via cfe-commits
tru wrote: > @tru - would you be happy for me to backport this to the LLVM 21 release > branch to complete the DTLTO feature? Yes! https://github.com/llvm/llvm-project/pull/147265 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists

[clang] [clang][scandeps] Improve handling of rawstrings. (PR #139504)

2025-06-27 Thread Tobias Hieta via cfe-commits
https://github.com/tru closed https://github.com/llvm/llvm-project/pull/139504 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][scandeps] Improve handling of rawstrings. (PR #139504)

2025-06-23 Thread Tobias Hieta via cfe-commits
tru wrote: Sorry for the delay. I have addressed both your comments now @benlangmuir - reworked it to use Lexer::getEscapedNewLineSize() and removed the assertline. I also expanded the test coverage. https://github.com/llvm/llvm-project/pull/139504 _

[clang] [clang][scandeps] Improve handling of rawstrings. (PR #139504)

2025-06-23 Thread Tobias Hieta via cfe-commits
https://github.com/tru updated https://github.com/llvm/llvm-project/pull/139504 >From 859723743a51bc75d855b4ee924ea5cf86e26183 Mon Sep 17 00:00:00 2001 From: Tobias Hieta Date: Mon, 5 May 2025 11:40:17 +0200 Subject: [PATCH 1/5] [clang][scandeps] Improve handling of rawstrings. The current pars

[clang] [clang][scandeps] Improve handling of rawstrings. (PR #139504)

2025-06-23 Thread Tobias Hieta via cfe-commits
https://github.com/tru updated https://github.com/llvm/llvm-project/pull/139504 >From 859723743a51bc75d855b4ee924ea5cf86e26183 Mon Sep 17 00:00:00 2001 From: Tobias Hieta Date: Mon, 5 May 2025 11:40:17 +0200 Subject: [PATCH 1/4] [clang][scandeps] Improve handling of rawstrings. The current pars

[clang] [clang][scandeps] Improve handling of rawstrings. (PR #139504)

2025-06-23 Thread Tobias Hieta via cfe-commits
https://github.com/tru updated https://github.com/llvm/llvm-project/pull/139504 >From 859723743a51bc75d855b4ee924ea5cf86e26183 Mon Sep 17 00:00:00 2001 From: Tobias Hieta Date: Mon, 5 May 2025 11:40:17 +0200 Subject: [PATCH 1/3] [clang][scandeps] Improve handling of rawstrings. The current pars

[clang] Work around a build issue with MSVC; NFC (PR #142195)

2025-05-30 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/142195 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][scandeps] Improve handling of rawstrings. (PR #139504)

2025-05-11 Thread Tobias Hieta via cfe-commits
https://github.com/tru created https://github.com/llvm/llvm-project/pull/139504 The current parser just checks one step back for a R before each string to know that it's a rawstring. But the preprocessor is much more advanced here and can have constructs like: R\ "str" And much more. This pat

[clang] [llvm] [CMake][Release] Enable bolt optimization for clang on Linux (PR #128090)

2025-02-24 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/128090 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
@@ -90,9 +88,17 @@ else() set(CLANG_BOOTSTRAP_TARGETS ${LLVM_RELEASE_FINAL_STAGE_TARGETS} CACHE STRING "") endif() +if (LLVM_RELEASE_ENABLE_LTO) + # Enable LTO for the runtimes. We need to configure stage1 clang to default + # to using lld as the linker because the stage

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/127268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
https://github.com/tru commented: Just one question. https://github.com/llvm/llvm-project/pull/127268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
@@ -90,9 +88,17 @@ else() set(CLANG_BOOTSTRAP_TARGETS ${LLVM_RELEASE_FINAL_STAGE_TARGETS} CACHE STRING "") endif() +if (LLVM_RELEASE_ENABLE_LTO) + # Enable LTO for the runtimes. We need to configure stage1 clang to default + # to using lld as the linker because the stage

[clang] [flang] [llvm] [CMake][Release] Statically link clang with stage1 runtimes (PR #127268)

2025-02-19 Thread Tobias Hieta via cfe-commits
https://github.com/tru edited https://github.com/llvm/llvm-project/pull/127268 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-11 Thread Tobias Hieta via cfe-commits
tru wrote: > Great. Actually, we wanted to add support for distributing via FASTBuild, > icecream and distcc with the initial DTLTO PR. However, we investigated found > that these couldn't be supported without extending the existing codebases. > More details to follow.. Interesting. Intereste

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-11 Thread Tobias Hieta via cfe-commits
tru wrote: > > ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️ > > You can test this locally with the following command: > > View the diff from clang-format here. > > I believe this failure is OK as I have followed the (non-standard) formatting > in the flagged file which th

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-11 Thread Tobias Hieta via cfe-commits
https://github.com/tru edited https://github.com/llvm/llvm-project/pull/126654 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-11 Thread Tobias Hieta via cfe-commits
@@ -969,6 +969,10 @@ def Xlinker : Separate<["-"], "Xlinker">, Flags<[LinkerInput, RenderAsInput]>, Visibility<[ClangOption, CLOption, FlangOption]>, HelpText<"Pass to the linker">, MetaVarName<"">, Group; +def Xdist : Separate<["-"], "Xdist">, Flags<[LinkOption]>,

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-11 Thread Tobias Hieta via cfe-commits
@@ -116,7 +117,18 @@ BitcodeCompiler::BitcodeCompiler(COFFLinkerContext &c) : ctx(c) { // Initialize ltoObj. lto::ThinBackend backend; - if (ctx.config.thinLTOIndexOnly) { + if (!ctx.config.DTLTODistributor.empty()) { +StringRef version = getenv("LLD_VERSION"); // F

[clang] [lld] [llvm] Integrated Distributed ThinLTO (DTLTO): Initial support (PR #126654)

2025-02-11 Thread Tobias Hieta via cfe-commits
https://github.com/tru commented: Hello! I had a quick glance at this and while I am no expert in the actual LTO internal code, I was totally able to understand how we could integrate this with our build system (fastbuild) so I am really happy you have decided to upstream this. I am planning o

[clang] [profile] Add a clang option -fprofile-continuous that enables continuous instrumentation profiling mode (PR #124353)

2025-02-10 Thread Tobias Hieta via cfe-commits
tru wrote: Just saw this in LLVM weekly. But this is not supported on Windows right? Only the UNIX platforms that can mmap? In that case it the limitation needs to be documented https://github.com/llvm/llvm-project/pull/124353 ___ cfe-commits mail

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-11-14 Thread Tobias Hieta via cfe-commits
tru wrote: Yeah. It's still on my list to update the patch to be recursive - but it's been a pretty busy period and I haven't gotten around to it yet. https://github.com/llvm/llvm-project/pull/88857 ___ cfe-commits mailing list cfe-commits@lists.llvm

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-11-05 Thread Tobias Hieta via cfe-commits
tru wrote: I can recommend the hyperfine tool when benchmarking. It runs the same command multiple times and does all the fancy things to make sure you are measuring correctly. https://github.com/llvm/llvm-project/pull/114260 ___ cfe-commits mailing

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-11-04 Thread Tobias Hieta via cfe-commits
@@ -0,0 +1,13 @@ +// This test checks if Window PE file compiled with -flto option contains a magic +// string "LTCG" to indicate LTO compilation. + +// REQUIRES: system-windows + +// RUN: %clang --target=x86_64-pc-windows-msvc -flto -fuse-ld=lld %s -o %t.exe tr

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-10-30 Thread Tobias Hieta via cfe-commits
tru wrote: You can consolidate the tests into a single cpp file instead of having three different ones. https://github.com/llvm/llvm-project/pull/114260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https:

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-10-30 Thread Tobias Hieta via cfe-commits
https://github.com/tru commented: Thanks for working on this. It's always good to be compatible with MSVC as much as possible. Some comments and questions. We also need some more people that know more COFF to weigh in. https://github.com/llvm/llvm-project/pull/114260 _

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-10-30 Thread Tobias Hieta via cfe-commits
@@ -0,0 +1,13 @@ +// This test checks if Window PE file compiled with -flto option contains a magic +// string "LTCG" to indicate LTO compilation. + +// REQUIRES: system-windows + +// RUN: %clang --target=x86_64-pc-windows-msvc -flto -fuse-ld=lld %s -o %t.exe +// RUN: dumpbin /H

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-10-30 Thread Tobias Hieta via cfe-commits
@@ -1165,6 +1188,23 @@ void Writer::createMiscChunks() { llvm::TimeTraceScope timeScope("Misc chunks"); Configuration *config = &ctx.config; + auto searchForPgoMagicSection = [this](char sectionName[]) { tru wrote: How expensive is this recursive search

[clang] [lld] [llvm] [Windows] Add support for emitting PGO/LTO magic strings in the Windows PE debug directory (PR #114260)

2024-10-30 Thread Tobias Hieta via cfe-commits
https://github.com/tru edited https://github.com/llvm/llvm-project/pull/114260 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-cl]: Add /std:c++23preview and update _MSVC_LANG for C++23 (PR #112378)

2024-10-15 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. LGTM! Thanks for doing that! https://github.com/llvm/llvm-project/pull/112378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC] Correct the misuse of the API in the Clang test-report script. (PR #108725)

2024-09-28 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/108725 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-16 Thread Tobias Hieta via cfe-commits
tru wrote: > @tru No, this is my first llvm pr. I'd appreciate you doing it :) Thanks for your contribution! https://github.com/llvm/llvm-project/pull/106369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-16 Thread Tobias Hieta via cfe-commits
https://github.com/tru closed https://github.com/llvm/llvm-project/pull/106369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #108801)

2024-09-16 Thread Tobias Hieta via cfe-commits
tru wrote: Yeah it needs to be towards the 19.x release branch as I described in my comment here https://github.com/llvm/llvm-project/pull/107964#issuecomment-2352261158 https://github.com/llvm/llvm-project/pull/108801 ___ cfe-commits mailing list c

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-16 Thread Tobias Hieta via cfe-commits
tru wrote: Create a branch from `release/19.x` in your own fork, then cherry-pick over the changes from `main`, edit them to match the things we talked about above (and fix any merge problems). Then submit a PR that wants to merge `yourbranch` into `release/19.x`. And check the checkbox `maint

[clang] [llvm] [CodeView] Flatten cmd args in frontend for LF_BUILDINFO (PR #106369)

2024-09-15 Thread Tobias Hieta via cfe-commits
tru wrote: @nebulark do you have commit access to merge this? otherwise I can do it for you. https://github.com/llvm/llvm-project/pull/106369 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-15 Thread Tobias Hieta via cfe-commits
tru wrote: @ganeshgit or @RKSimon can one of you put up a PR against release/19.x with the abi compatible changes so that we have chance to look at it and approve it before the release tomorrow. https://github.com/llvm/llvm-project/pull/107964 ___ cf

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Tobias Hieta via cfe-commits
tru wrote: I think it's better it land as it should be in `main` and then you can create a new PR against the ` release/19.x` branch with the different enum layout. https://github.com/llvm/llvm-project/pull/107964 ___ cfe-commits mailing list cfe-comm

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Tobias Hieta via cfe-commits
tru wrote: > It would be messy, but could we not place the CK_ZNVER5 enum entry at the end > of the enum list just for 19.x and then fix the sorting in trunk? I would be fine with that. WDYT @nikic ? https://github.com/llvm/llvm-project/pull/107964 _

[clang] [compiler-rt] [llvm] [X86] AMD Zen 5 Initial enablement (PR #107964)

2024-09-13 Thread Tobias Hieta via cfe-commits
tru wrote: > The change to X86TargetParser.h looks ABI breaking to me. This seems unfortunate to me. But I don't think it would be good to insert the enum at the end of the list and changing the sorting order. How big of a problem would it be with a ABI break now? I know you have requested th

[clang] [llvm] Delete the clang-format Visual Studio plugin code (PR #108342)

2024-09-12 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. LGTM. Let's remove it. https://github.com/llvm/llvm-project/pull/108342 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [libcxx] [lld] [lldb] [llvm] [mlir] [polly] python: use raw strings for regex (PR #105990)

2024-08-26 Thread Tobias Hieta via cfe-commits
tru wrote: This was suggested in https://github.com/llvm/llvm-project/pull/91856 and the suggestion there was that we need to split it up per sub-project which is something @e-kwsm has been doing: https://github.com/llvm/llvm-project/pulls/e-kwsm so I don't think this one is needed. https://

[clang] [Driver] Have getTargetSubDirPath better match get_compiler_rt_target (PR #100091)

2024-08-10 Thread Tobias Hieta via cfe-commits
tru wrote: Do we still need to fix this for 19.1.0-final? https://github.com/llvm/llvm-project/pull/100091 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[libunwind] [libunwind] Add GCS support for AArch64 (PR #99335)

2024-08-05 Thread Tobias Hieta via cfe-commits
tru wrote: > Though having said all this, I marked this for LLVM 19 as my reading of > https://discourse.llvm.org/t/update-on-llvm-19-x-releases/80511 was that new > features are still ok before RC2, but re-reading it it's a bit ambiguous: it > says "New features will have to wait until LLVM 2

[libunwind] [libunwind] Add GCS support for AArch64 (PR #99335)

2024-08-04 Thread Tobias Hieta via cfe-commits
tru wrote: This seems to add a new feature, is it really relevant for a backport? https://github.com/llvm/llvm-project/pull/99335 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Build release binaries for multiple targets (PR #98431)

2024-07-26 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/98431 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Build release binaries for multiple targets (PR #98431)

2024-07-11 Thread Tobias Hieta via cfe-commits
tru wrote: Hmm. It's a bit worrying that we can't have the tests running... I wonder what the workflow would be here since we need to verify before we run the binaries. What's the problem with the tests currently? https://github.com/llvm/llvm-project/pull/98431

[clang] [llvm] [Driver] Add option to select compiler-rt arch suffix (PR #89775)

2024-06-11 Thread Tobias Hieta via cfe-commits
tru wrote: I don't have the bandwidth to get a RFC through right now. If this is broken and no-one wants to take care of getting consensus for something new, I suggest you revert to the previous state. For my toolchain I can continue to carry a patch until this is all sorted. https://github.c

[clang] [llvm] [CMake][Release] Use the TXZ cpack generator for binaries (PR #90138)

2024-06-06 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/90138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CMake][Release] Use the TXZ cpack generator for binaries (PR #90138)

2024-05-20 Thread Tobias Hieta via cfe-commits
tru wrote: Did you consider the parallel setting as well? https://github.com/llvm/llvm-project/pull/90138 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Driver] Add option to select compiler-rt arch suffix (PR #89775)

2024-05-06 Thread Tobias Hieta via cfe-commits
tru wrote: Yeah I think this should be brought up as an RFC in discourse. I would like to see that we move away from two different layouts and just adopt one (my preference is the new layout, but honestly - I don't feel that strongly about it). https://github.com/llvm/llvm-project/pull/89775

[clang] [llvm] [Driver] Add option to select compiler-rt arch suffix (PR #89775)

2024-05-03 Thread Tobias Hieta via cfe-commits
tru wrote: It needs a release note and documentation though. https://github.com/llvm/llvm-project/pull/89775 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [Driver] Add option to select compiler-rt arch suffix (PR #89775)

2024-05-03 Thread Tobias Hieta via cfe-commits
tru wrote: I think this is fine. I probably have to carry a one line patch in our tree to make it the default on windows as well. But that's acceptable to me. https://github.com/llvm/llvm-project/pull/89775 ___ cfe-commits mailing list cfe-commits@li

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-04-29 Thread Tobias Hieta via cfe-commits
@@ -1105,6 +1105,11 @@ bool MicrosoftCXXABI::hasMostDerivedReturn(GlobalDecl GD) const { static bool isTrivialForMSVC(const CXXRecordDecl *RD, QualType Ty, CodeGenModule &CGM) { + // If the record is marked with the trivial_abi attribute, we don'

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-04-29 Thread Tobias Hieta via cfe-commits
tru wrote: ping on this. https://github.com/llvm/llvm-project/pull/88857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [CMake][Release] Use the TGZ cpack generator for binaries (PR #90138)

2024-04-26 Thread Tobias Hieta via cfe-commits
tru wrote: If this is for permanent storage I suggest we use TXZ instead, since it has better compression. You should also set CPACK_ARCHIVE_THREADS to something higher than the default (1). Since xz really benefits from this. https://github.com/llvm/llvm-project/pull/90138 ___

[clang] [llvm] [CMake][Release] Enable CMAKE_POSITION_INDEPENDENT_CODE (PR #90139)

2024-04-26 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/90139 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-25 Thread Tobias Hieta via cfe-commits
tru wrote: I think I suggested that we should make the CMake variable change the driver behaviour to reflect the setting in order to remove unexpected fallbacks and that the vendor could select the layout. I still think that's probably the better solution. https://github.com/llvm/llvm-projec

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-25 Thread Tobias Hieta via cfe-commits
tru wrote: > > LLVM_ENABLE_PER_TARGET_RUNTIME_DIR=on > > > > I'm unable to find what code this affects. I don't see it mentioned anywhere > in clang/lib or clang/include. > > > > It does seem like it should control the behavior of > `ToolChain::getCompilerRT`; where I had added the Windo

[clang] [CMake][Release] Refactor cache file and use two stages for non-PGO builds (PR #89812)

2024-04-24 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. I find changes to the multi-stage build caches a bit confusing to review without being able to see the cache that's generated. But I trust that you have tested this and it works as expected, In that case you can merge this. https://github.com/

[clang] [CMake][Release] Add stage2-package target (PR #89517)

2024-04-24 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/89517 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-24 Thread Tobias Hieta via cfe-commits
tru wrote: And I think it's better to revert it all instead of implementing this half-revert in this PR in that case and then we should discuss how to move forward. https://github.com/llvm/llvm-project/pull/89775 ___ cfe-commits mailing list cfe-comm

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-24 Thread Tobias Hieta via cfe-commits
tru wrote: Honestly - I think going back to *one* style of runtime path is to be preferred now. But I don't think it's fair to say that it doesn't solve any problems, because we switched to it so that we could ship more platforms in one toolchain package without having to add cfg files and sim

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-23 Thread Tobias Hieta via cfe-commits
tru wrote: I agree that if downstream want to change stuff, they need to engage. We can't guess what microsoft wants to do (or sony) unless we have a discussion about it. This is also documented in the developer policy. If there are missed release notes, they need to be added of course. That

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-23 Thread Tobias Hieta via cfe-commits
tru wrote: It's been like that for maybe 2-3 years now and no one has complained about it, so I think that change is solid. I can suggest a CMake change, but last time it was discussed I think @maskray was against a new variable, but since we might need to have some different behaviour it migh

[clang] [Driver] Restore compiler-rt arch suffix for PS and Windows (PR #89775)

2024-04-23 Thread Tobias Hieta via cfe-commits
tru wrote: We have a custom toolchain that uses the new style on windows and if you build with runtimes on windows (which is the suggested way) it will end up with the new style without arch suffix. I don't think we can assume this is correct for windows in all setups. I am fine with this chan

[clang] [clang] Support __typeof_unqual__ in all C modes (PR #87392)

2024-04-20 Thread Tobias Hieta via cfe-commits
tru wrote: The final decision is Toms, but I don't think it qualifies since we are so late in the current process and that 19 will start in just a few months. https://github.com/llvm/llvm-project/pull/87392 ___ cfe-commits mailing list cfe-commits@li

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-04-18 Thread Tobias Hieta via cfe-commits
@@ -1105,6 +1105,11 @@ bool MicrosoftCXXABI::hasMostDerivedReturn(GlobalDecl GD) const { static bool isTrivialForMSVC(const CXXRecordDecl *RD, QualType Ty, CodeGenModule &CGM) { + // If the record is marked with the trivial_abi attribute, we don'

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-04-16 Thread Tobias Hieta via cfe-commits
tru wrote: @efriedma-quic are you ok with this change? https://github.com/llvm/llvm-project/pull/88857 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-04-16 Thread Tobias Hieta via cfe-commits
https://github.com/tru updated https://github.com/llvm/llvm-project/pull/88857 >From 08214d87d1a7c83ea25eef3bf18de1568a20a152 Mon Sep 17 00:00:00 2001 From: Tobias Hieta Date: Tue, 16 Apr 2024 09:38:53 +0200 Subject: [PATCH] [clang] Handle trivial_abi attribute for Microsoft ABI. Previously the

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-04-16 Thread Tobias Hieta via cfe-commits
@@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -triple x86_64-pc-windows-msvc -std=c++11 -fcxx-exceptions -fexceptions -emit-llvm -o - %s | FileCheck %s + +// CHECK: %[[STRUCT_TRIVIAL:.*]] = type { ptr } +struct __attribute__((trivial_abi)) Trivial { + int *p; + Trivial() : p(0) {} + Tr

[clang] [clang] Handle trivial_abi attribute for Microsoft ABI. (PR #88857)

2024-04-16 Thread Tobias Hieta via cfe-commits
https://github.com/tru created https://github.com/llvm/llvm-project/pull/88857 Previously the trivial_abi was ignored for records when targetting the microsoft abi, the MSVC rules where always enforced to ensure compatibility with MSVC. This commit changes it to be closer to the itanium abi whe

[clang] [clang-tools-extra] [compiler-rt] [flang] [lld] [lldb] [llvm] [mlir] [openmp] [pstl] Finally formalise our defacto line-ending policy (PR #86318)

2024-03-25 Thread Tobias Hieta via cfe-commits
tru wrote: > I think .natvis files should be CRLF (those are used with Visual Studio for > debug visualizers). Agreed, Visual Studio should handle this correctly, but who knows 🤷🏼 https://github.com/llvm/llvm-project/pull/86318 ___ cfe-commits maili

[clang] [llvm] Update documentation and release notes for llvm-profgen COFF support (PR #84864)

2024-03-12 Thread Tobias Hieta via cfe-commits
@@ -2410,20 +2410,35 @@ usual build cycle when using sample profilers for optimization: 1. Build the code with source line table information. You can use all the usual build flags that you always build your application with. The only - requirement is that you add ``-glin

[clang] [llvm] Update documentation and release notes for llvm-profgen COFF support (PR #84864)

2024-03-12 Thread Tobias Hieta via cfe-commits
@@ -2410,20 +2410,35 @@ usual build cycle when using sample profilers for optimization: 1. Build the code with source line table information. You can use all the usual build flags that you always build your application with. The only - requirement is that you add ``-glin

[clang] [llvm] Update documentation and release notes for llvm-profgen COFF support (PR #84864)

2024-03-12 Thread Tobias Hieta via cfe-commits
@@ -2410,20 +2410,35 @@ usual build cycle when using sample profilers for optimization: 1. Build the code with source line table information. You can use all the usual build flags that you always build your application with. The only - requirement is that you add ``-glin

[clang] [llvm] Update documentation and release notes for llvm-profgen COFF support (PR #84864)

2024-03-12 Thread Tobias Hieta via cfe-commits
https://github.com/tru commented: Thanks for working on documentation! https://github.com/llvm/llvm-project/pull/84864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Update documentation and release notes for llvm-profgen COFF support (PR #84864)

2024-03-12 Thread Tobias Hieta via cfe-commits
https://github.com/tru edited https://github.com/llvm/llvm-project/pull/84864 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Improve error when a compiler-rt library is not found (PR #81037)

2024-02-26 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. This seems good to me, it worked in my internal test as I expected it! https://github.com/llvm/llvm-project/pull/81037 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi

[clang] [compiler-rt] [asan][windows] Eliminate the static asan runtime on windows (PR #81677)

2024-02-14 Thread Tobias Hieta via cfe-commits
tru wrote: cc @sylvain-audi https://github.com/llvm/llvm-project/pull/81677 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[llvm] [lld] [clang] Embed the command line arguments during LTO (PR #79390)

2024-01-24 Thread Tobias Hieta via cfe-commits
tru wrote: I haven't checked closely yet, but it seems like you need to add tests. https://github.com/llvm/llvm-project/pull/79390 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [CMake][Release] Add option for enabling PGO to release cache file. (PR #78823)

2024-01-20 Thread Tobias Hieta via cfe-commits
https://github.com/tru approved this pull request. https://github.com/llvm/llvm-project/pull/78823 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add SkipMacroDefinitionBody option (PR #78682)

2024-01-20 Thread Tobias Hieta via cfe-commits
tru wrote: Thanks @owenca ! https://github.com/llvm/llvm-project/pull/78682 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Option to ignore macro definitions (PR #70338)

2024-01-18 Thread Tobias Hieta via cfe-commits
tru wrote: @owenca What's the things that still needs to be addressed for this to land? https://github.com/llvm/llvm-project/pull/70338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Option to ignore macro definitions (PR #70338)

2024-01-18 Thread Tobias Hieta via cfe-commits
tru wrote: @tomekpaszek Hi Tomek, do you think you will have time to work on this soon? Otherwise, I can probably finish it off for you since we also want this feature. https://github.com/llvm/llvm-project/pull/70338 ___ cfe-commits mailing list cfe-c

[clang-tools-extra] [llvm] [clang] workflows: Refactor release-tasks.yml (PR #69523)

2024-01-15 Thread Tobias Hieta via cfe-commits
@@ -10,112 +10,70 @@ on: - 'llvmorg-*' jobs: - release-tasks: -permissions: - contents: write # To upload assets to release. + validate-tag: +name: Validate Tag runs-on: ubuntu-latest if: github.repository == 'llvm/llvm-project' +outputs: +

[clang-tools-extra] [llvm] [clang] workflows: Refactor release-tasks.yml (PR #69523)

2024-01-15 Thread Tobias Hieta via cfe-commits
@@ -0,0 +1,74 @@ +name: Release Lit + +permissions: + contents: read + +on: + workflow_dispatch: +inputs: + release-version: +description: 'Release Version' +required: true +type: string + + workflow_call: +inputs: + release-version: +

  1   2   >