[clang] [Driver] Corrections for linker flags passed with relocatable linking on OpenBSD (PR #67254)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/67254 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Some adjustments for relocatable linking on OpenBSD (PR #67254)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67254 >From c638c2fe9d022f6e25f4ec5e6d2a4db49ac5d0f8 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 24 Sep 2023 00:20:53 -0400 Subject: [PATCH] [Driver] Corrections for linker flags passed with relocatable linking

[clang] [clang-format] Fix a bug in aligning trailing comments (PR #67221)

2023-09-24 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/67221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d3f8c88 - [clang-format] Fix a bug in aligning trailing comments (#67221)

2023-09-24 Thread via cfe-commits
Author: Owen Pan Date: 2023-09-24T20:07:23-07:00 New Revision: d3f8c88abe2ecc455165f0a32c389fec61730ace URL: https://github.com/llvm/llvm-project/commit/d3f8c88abe2ecc455165f0a32c389fec61730ace DIFF: https://github.com/llvm/llvm-project/commit/d3f8c88abe2ecc455165f0a32c389fec61730ace.diff

[clang] [clang-format] Fix a bug in aligning trailing comments (PR #67221)

2023-09-24 Thread Owen Pan via cfe-commits
https://github.com/owenca updated https://github.com/llvm/llvm-project/pull/67221 >From 8f9df29e1fdfdf49d4a420cc7ec7a28d6bba807f Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Fri, 22 Sep 2023 23:47:23 -0700 Subject: [PATCH] [clang-format] Fix a bug in aligning trailing comments Fixes #67116.

[clang] [clang-format] Fix a bug in aligning trailing comments (PR #67221)

2023-09-24 Thread Owen Pan via cfe-commits
https://github.com/owenca reopened https://github.com/llvm/llvm-project/pull/67221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Kai Luo via cfe-commits
@@ -3412,13 +3416,23 @@ SDValue PPCTargetLowering::LowerGlobalTLSAddressAIX(SDValue Op, return DAG.getNode(PPCISD::ADD_TLS, dl, PtrVT, TLSReg, VariableOffset); } - // Only Local-Exec, Initial-Exec and General-Dynamic TLS models are currently - // supported models. If

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang updated https://github.com/llvm/llvm-project/pull/67278 >From eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Mon, 25 Sep 2023 10:31:37 +0800 Subject: [PATCH 1/2] [X86][RFC] Support AVX10 options AVX10 Architecture

[clang] [libc++] Prevent calling the projection more than three times (PR #66315)

2023-09-24 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff c60ccfbb898148449946f82cbac6140f1e01cb12 f97313eadac98e753155b5e05ac0eef16f7fb82d --

[clang-tools-extra] [libc++] Prevent calling the projection more than three times (PR #66315)

2023-09-24 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff c60ccfbb898148449946f82cbac6140f1e01cb12 f97313eadac98e753155b5e05ac0eef16f7fb82d --

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang reopened https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [X86][RFC] Support AVX10 options (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang edited https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] main (PR #67278)

2023-09-24 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 81a3828dbd992aaf03cb6080abace8114ba40f8e eaf36c8cac3fe6d9bb3dcb1387b0b4f1febf5ef7 --

[clang] main (PR #67278)

2023-09-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes - Reapply "[AArch64] Merge LDRSWpre-LD[U]RSW pair into LDPSWpre" - Revert "[ORC][LLJIT] Move enable-debugger-support utility out of LLJITBuilder." - [gn build] Port e5f169f91a86 - [ConstraintElimination] Introduce tests for PR66173 -

[clang] main (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang closed https://github.com/llvm/llvm-project/pull/67278 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] main (PR #67278)

2023-09-24 Thread Phoebe Wang via cfe-commits
https://github.com/phoebewang created https://github.com/llvm/llvm-project/pull/67278 - Reapply "[AArch64] Merge LDRSWpre-LD[U]RSW pair into LDPSWpre" - Revert "[ORC][LLJIT] Move enable-debugger-support utility out of LLJITBuilder." - [gn build] Port e5f169f91a86 - [ConstraintElimination]

[clang] [Driver] Remove FreeBSD/riscv32 support (PR #67277)

2023-09-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Changes FreeBSD does not support riscv32 and has no intention of doing so. --- Full diff: https://github.com/llvm/llvm-project/pull/67277.diff 4 Files Affected: - (modified) clang/lib/Basic/Targets.cpp (-3) - (modified)

[clang] [Driver] Remove FreeBSD/riscv32 support (PR #67277)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 created https://github.com/llvm/llvm-project/pull/67277 FreeBSD does not support riscv32 and has no intention of doing so. >From f72b48795ea5ceb6e0301460defe361041767013 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 24 Sep 2023 22:24:20 -0400 Subject: [PATCH]

[clang] [libc++] Prevent calling the projection more than three times (PR #66315)

2023-09-24 Thread Jocelyn Castellano via cfe-commits
https://github.com/pandaninjas updated https://github.com/llvm/llvm-project/pull/66315 >From ead65bfcb70be46788bc9e88c891e7ae7f91b8d7 Mon Sep 17 00:00:00 2001 From: PandaNinjas Date: Wed, 13 Sep 2023 17:38:17 -0700 Subject: [PATCH 01/21] [libc++] Prevent calling the projection more than three

[clang] 7db211b - [clang-format][NFC] Remove the unused separateDefinitionBlocks()

2023-09-24 Thread Owen Pan via cfe-commits
Author: Owen Pan Date: 2023-09-24T19:25:23-07:00 New Revision: 7db211bda791e4326e380a57a882af20a273 URL: https://github.com/llvm/llvm-project/commit/7db211bda791e4326e380a57a882af20a273 DIFF: https://github.com/llvm/llvm-project/commit/7db211bda791e4326e380a57a882af20a273.diff

[clang-tools-extra] [clangd] fix compilation errors with newer versions of gRPC (PR #67258)

2023-09-24 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clangd Changes in recent versions of gRPC, header files with prefix `grpc++` are deprecated. gRPC headers in include/grpc++ are deprecated since gRPC 1.10.0 https://github.com/grpc/grpc/releases/tag/v1.10.0 , this PR should close

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
orcguru wrote: > For below case: > > ``` > __thread extern int x = 42; > __thread extern int y = 42; > int main(void) { >return x + y; > } > ``` > > For now, we get: > > ``` > .main: > # %bb.0:# %entry > mflr 0 > stwu 1, -32(1) >

[clang-tools-extra] [libc++] Prevent calling the projection more than three times (PR #66315)

2023-09-24 Thread A. Jiang via cfe-commits
frederick-vs-ja wrote: It seems that we should remove this block because it turns out that `ranges::clamp` needs double moves under some circumstances.

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
orcguru wrote: I'm working on environment issue, and will update remaining two LIT cases and do testing etc. I'm requesting another round of review in the mean time. Thank you all for your inputs! https://github.com/llvm/llvm-project/pull/66316 ___

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -3412,13 +3416,23 @@ SDValue PPCTargetLowering::LowerGlobalTLSAddressAIX(SDValue Op, return DAG.getNode(PPCISD::ADD_TLS, dl, PtrVT, TLSReg, VariableOffset); } - // Only Local-Exec, Initial-Exec and General-Dynamic TLS models are currently - // supported models. If

[clang-tools-extra] [X86] Add detection for more Tremont models (PR #67150)

2023-09-24 Thread via cfe-commits
https://github.com/libenc updated https://github.com/llvm/llvm-project/pull/67150 >From 6f0e5d947d05105b3480221b0d9759216596268a Mon Sep 17 00:00:00 2001 From: libenc <75132456+lib...@users.noreply.github.com> Date: Fri, 22 Sep 2023 22:43:46 +0800 Subject: [PATCH] [X86] Add detection for more

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
orcguru wrote: > > The primary advantage of the local-dynamic access method is that you only > > make a single function call to __tls_get_mod() and use the returned pointer > > to get at all TLS variables. This implementation makes a function call for > > every variable. The only thing you've

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -156,10 +156,11 @@ define void @storesTIInit(double %Val) #0 { ; SMALL32: # %bb.0: # %entry ; SMALL32-NEXT:mflr 0 ; SMALL32-NEXT:stwu 1, -32(1) -; SMALL32-NEXT:lwz 3, L..C4(2) # target-flags(ppc-lo) @TIInit -; SMALL32-NEXT:lwz 4, L..C5(2) #

[clang] 56c3b8e - [clang][Sema] Make format size estimator aware of %p's existence in format string (#65969)

2023-09-24 Thread via cfe-commits
Author: Takuya Shimizu Date: 2023-09-25T10:03:46+09:00 New Revision: 56c3b8e997d065b568964f71715ecbbd28c2e4a4 URL: https://github.com/llvm/llvm-project/commit/56c3b8e997d065b568964f71715ecbbd28c2e4a4 DIFF:

[clang] [clang][Sema] Make format size estimator aware of %p's existence in format string (PR #65969)

2023-09-24 Thread Takuya Shimizu via cfe-commits
https://github.com/hazohelet closed https://github.com/llvm/llvm-project/pull/65969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -3412,13 +3416,23 @@ SDValue PPCTargetLowering::LowerGlobalTLSAddressAIX(SDValue Op, return DAG.getNode(PPCISD::ADD_TLS, dl, PtrVT, TLSReg, VariableOffset); } - // Only Local-Exec, Initial-Exec and General-Dynamic TLS models are currently - // supported models. If

[clang] [clang][Sema] Make format size estimator aware of %p's existence in format string (PR #65969)

2023-09-24 Thread Takuya Shimizu via cfe-commits
https://github.com/hazohelet edited https://github.com/llvm/llvm-project/pull/65969 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang][Sema] Stop format size estimator upon %p to adapt to linux kernel's extension (PR #65969)

2023-09-24 Thread Takuya Shimizu via cfe-commits
hazohelet wrote: > ping @hazohelet . This should be good to land and should help clear some red > in our CI for Linux kernel builds. Thanks for the ping. I was away for a while. I'm merging this after updating the PR descriptions. https://github.com/llvm/llvm-project/pull/65969

[clang] [clang-format][NFC] Clean up alignTrailingComments() (PR #67218)

2023-09-24 Thread Owen Pan via cfe-commits
owenca wrote: Fixed in ff7e85402280. https://github.com/llvm/llvm-project/pull/67218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -3412,13 +3416,23 @@ SDValue PPCTargetLowering::LowerGlobalTLSAddressAIX(SDValue Op, return DAG.getNode(PPCISD::ADD_TLS, dl, PtrVT, TLSReg, VariableOffset); } - // Only Local-Exec, Initial-Exec and General-Dynamic TLS models are currently - // supported models. If

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -1771,9 +1771,13 @@ const char *PPCTargetLowering::getTargetNodeName(unsigned Opcode) const { case PPCISD::ADDIS_TLSGD_HA: return "PPCISD::ADDIS_TLSGD_HA"; case PPCISD::ADDI_TLSGD_L:return "PPCISD::ADDI_TLSGD_L"; case PPCISD::GET_TLS_ADDR:return

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -2826,6 +2877,8 @@ void PPCAIXAsmPrinter::emitInstruction(const MachineInstr *MI) { MMI->hasDebugInfo()); break; } + case PPC::GETtlsMOD32AIX: + case PPC::GETtlsMOD64AIX: case PPC::GETtlsTpointer32AIX: case PPC::GETtlsADDR64AIX: case

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -1362,6 +1402,8 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) { case PPC::GETtlsADDRPCREL: case PPC::GETtlsADDR32AIX: case PPC::GETtlsADDR64AIX: + case PPC::GETtlsMOD32AIX: orcguru wrote: Added following description: //

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -231,12 +231,15 @@ class PPCTargetAsmStreamer : public PPCTargetStreamer { MCSymbolXCOFF *TCSym = cast(Streamer.getCurrentSectionOnly()) ->getQualNameSymbol(); - // On AIX, we have a region handle (symbol@m) and the variable offset -

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
@@ -1622,6 +1629,10 @@ def TLSGDAIX8 : "#TLSGDAIX8", [(set i64:$rD, (PPCTlsgdAIX i64:$offset, i64:$handle))]>; +// This pseudo is expanded to one copy to put the module handle in R3, then call +//

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format][NFC] Clean up alignTrailingComments() (PR #67218)

2023-09-24 Thread Nico Weber via cfe-commits
nico wrote: This seems to break tests: http://45.33.8.238/linux/119090/step_8.txt Please take a look and revert for now if it takes a while to fix. https://github.com/llvm/llvm-project/pull/67218 ___ cfe-commits mailing list

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [PowerPC] Support local-dynamic TLS relocation on AIX (PR #66316)

2023-09-24 Thread Felix via cfe-commits
https://github.com/orcguru resolved https://github.com/llvm/llvm-project/pull/66316 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 2c3cae3 - Remove unused clang::TargetInfo::adjustTargetOptions

2023-09-24 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2023-09-24T16:37:24-07:00 New Revision: 2c3cae3f01b10a2ba3745761e11b63a2b129eee9 URL: https://github.com/llvm/llvm-project/commit/2c3cae3f01b10a2ba3745761e11b63a2b129eee9 DIFF: https://github.com/llvm/llvm-project/commit/2c3cae3f01b10a2ba3745761e11b63a2b129eee9.diff

[clang] [Clang][RISCV] Handle RVV tuple types correctly as OutputOperands for inline asm (PR #67018)

2023-09-24 Thread Kito Cheng via cfe-commits
@@ -2524,11 +2551,32 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt ) { ResultRegIsFlagReg.push_back(IsFlagReg); llvm::Type *Ty = ConvertTypeForMem(QTy); + ResultTruncRegTypes.push_back(Ty); + + // Expressing the type as a structure in inline asm

[clang] [clang-format][NFC] Clean up alignTrailingComments() (PR #67218)

2023-09-24 Thread Owen Pan via cfe-commits
https://github.com/owenca closed https://github.com/llvm/llvm-project/pull/67218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] d1c643a - [clang-format][NFC] Clean up alignTrailingComments() (#67218)

2023-09-24 Thread via cfe-commits
Author: Owen Pan Date: 2023-09-24T15:00:57-07:00 New Revision: d1c643a0168268445dab29d96b96d5fcb9c97f92 URL: https://github.com/llvm/llvm-project/commit/d1c643a0168268445dab29d96b96d5fcb9c97f92 DIFF: https://github.com/llvm/llvm-project/commit/d1c643a0168268445dab29d96b96d5fcb9c97f92.diff

[clang] [Driver] Move assertion check before checking Output.isFilename (PR #67210)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67210 >From 6747bc42be015d39509af516f34ba96e07e4045c Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 22 Sep 2023 19:35:21 -0400 Subject: [PATCH] [Driver] Move assertion check before checking Output.isFilename ---

[clang] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
@@ -757,7 +757,8 @@ class RISCVInsertVSETVLI : public MachineFunctionPass { bool computeVLVTYPEChanges(const MachineBasicBlock , VSETVLIInfo ) const; void computeIncomingVLVTYPE(const MachineBasicBlock ); - void emitVSETVLIs(MachineBasicBlock

[clang] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
@@ -757,7 +757,8 @@ class RISCVInsertVSETVLI : public MachineFunctionPass { bool computeVLVTYPEChanges(const MachineBasicBlock , VSETVLIInfo ) const; void computeIncomingVLVTYPE(const MachineBasicBlock ); - void emitVSETVLIs(MachineBasicBlock

[clang] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65934 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/65934 >From 2fe5756dd4d49580d3a23b0ff1b72535f725915e Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Mon, 11 Sep 2023 15:51:46 +0800 Subject: [PATCH 1/4] [RISCV] Eliminate dead li after emitting VSETVLIs ---

[clang-tools-extra] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw updated https://github.com/llvm/llvm-project/pull/65934 >From 2fe5756dd4d49580d3a23b0ff1b72535f725915e Mon Sep 17 00:00:00 2001 From: Yingwei Zheng Date: Mon, 11 Sep 2023 15:51:46 +0800 Subject: [PATCH 1/4] [RISCV] Eliminate dead li after emitting VSETVLIs ---

[clang] [NFC][Clang][CodeGen] Improve performance for vtable metadata generation (PR #67066)

2023-09-24 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/67066 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Hook up Haiku ARM support (PR #67222)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67222 >From b9ad72d918c663f7b5ee782979ce5704b23aa370 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sat, 23 Sep 2023 03:22:18 -0400 Subject: [PATCH] [Driver] Hook up Haiku ARM support --- clang/lib/Basic/Targets.cpp

[clang] 62ffbe0 - [Driver] Hook up NetBSD/riscv support (#67256)

2023-09-24 Thread via cfe-commits
Author: Brad Smith Date: 2023-09-24T16:29:46-04:00 New Revision: 62ffbe0dcca9f394f9dbfda160e0f0a1e96948ae URL: https://github.com/llvm/llvm-project/commit/62ffbe0dcca9f394f9dbfda160e0f0a1e96948ae DIFF: https://github.com/llvm/llvm-project/commit/62ffbe0dcca9f394f9dbfda160e0f0a1e96948ae.diff

[clang] [Driver] Hook up NetBSD/riscv support (PR #67256)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 closed https://github.com/llvm/llvm-project/pull/67256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Hook up NetBSD/riscv support (PR #67256)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/67256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Hook up NetBSD/riscv64 support (PR #67256)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67256 >From 2c5311b844f9ad08b0357ea2b79d0d8bee922296 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 24 Sep 2023 02:29:27 -0400 Subject: [PATCH] [Driver] Hook up NetBSD/riscv support ---

[clang] [clang-format][NFC] Clean up alignTrailingComments() (PR #67218)

2023-09-24 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/67218 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Fix a bug in aligning trailing comments (PR #67221)

2023-09-24 Thread Björn Schäpers via cfe-commits
https://github.com/HazardyKnusperkeks approved this pull request. https://github.com/llvm/llvm-project/pull/67221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Disable OuterScope lambda indentation behaviour for constructor initializers (PR #66755)

2023-09-24 Thread Björn Schäpers via cfe-commits
HazardyKnusperkeks wrote: You should adapt the documentation. https://github.com/llvm/llvm-project/pull/66755 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)

2023-09-24 Thread Heejin Ahn via cfe-commits
aheejin wrote: > > Can you point out what are the unsupported options here? > > All of them, they are all options that translate to TargetOptions, and they > do nothing for a wasm target triple: ` --trap-unreachable=false > --xcoff-traceback-table=true --relax-elf-relocations=false

[clang-tools-extra] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)

2023-09-24 Thread Heejin Ahn via cfe-commits
aheejin wrote: > > Can you point out what are the unsupported options here? > > All of them, they are all options that translate to TargetOptions, and they > do nothing for a wasm target triple: ` --trap-unreachable=false > --xcoff-traceback-table=true --relax-elf-relocations=false

[clang] [Driver] Hook up NetBSD/riscv64 support (PR #67256)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 resolved https://github.com/llvm/llvm-project/pull/67256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Hook up NetBSD/riscv64 support (PR #67256)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67256 >From 949ffebe8d74fd5ca27551934bd7a565022ebaa7 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 24 Sep 2023 02:29:27 -0400 Subject: [PATCH] [Driver] Hook up NetBSD/riscv64 support ---

[clang] [flang][Driver] Support -rpath, -shared, and -static in the frontend (PR #66702)

2023-09-24 Thread Fangrui Song via cfe-commits
MaskRay wrote: I think Windows does not work likely because `ld` is absent in PATH. You need `-Bxxx/bin` to specify a directory that contains `ld`, but I don't remember whether `ld.exe` is needed instead. https://github.com/llvm/llvm-project/pull/66702

[clang] 6876514 - Fix assertion failure mangling an unresolved template argument that

2023-09-24 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2023-09-24T11:52:58-07:00 New Revision: 68765143c6765a694d40d4c3fea43893cc025433 URL: https://github.com/llvm/llvm-project/commit/68765143c6765a694d40d4c3fea43893cc025433 DIFF: https://github.com/llvm/llvm-project/commit/68765143c6765a694d40d4c3fea43893cc025433.diff

[clang] [Driver] -include: deprecate probing .gch (PR #67084)

2023-09-24 Thread Fangrui Song via cfe-commits
MaskRay wrote: > Xcode is actively using this feature: the `.pch` extension is used for > headers that are to be precompiled, the `.pch.gch` extension is used for the > actual precompiled header, and Clang is expected to expand the given > `-include X.pch` argument into `-include-pch

[clang] [Driver] -include: deprecate probing .gch (PR #67084)

2023-09-24 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/67084 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] -include: deprecate probing .gch (PR #67084)

2023-09-24 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/67084 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] -include: do not probe .gch (PR #67084)

2023-09-24 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/67084 >From f3479f95f7c11e36de4fff5dc01bb27a02db Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 12 Sep 2023 18:31:18 -0700 Subject: [PATCH] [Driver] -include: deprecate probing .gch `-include a.h` probes

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-09-24 Thread via cfe-commits
https://github.com/goldsteinn updated https://github.com/llvm/llvm-project/pull/67166 >From a2e343dab6e698621a9121c767d2dca285d27b5d Mon Sep 17 00:00:00 2001 From: Noah Goldstein Date: Fri, 22 Sep 2023 08:21:21 -0500 Subject: [PATCH 1/9] [InstSimplify] Add tests for simplify `llvm.ptrmask`;

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-09-24 Thread via cfe-commits
@@ -1984,10 +1984,30 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst ) { //-> (ptrmask p, (and A, B)) if (match(Op0, m_OneUse(m_Intrinsic( m_Value(InnerPtr), m_Value(InnerMask) { + // See if combining the two masks is free.

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-09-24 Thread via cfe-commits
@@ -898,6 +910,53 @@ Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, } break; } + case Intrinsic::ptrmask: { +// Fail loudly in case this is ever changed. +// Likely not much needs to be changed here to

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-09-24 Thread via cfe-commits
@@ -898,6 +910,53 @@ Value *InstCombinerImpl::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, } break; } + case Intrinsic::ptrmask: { +// Fail loudly in case this is ever changed. +// Likely not much needs to be changed here to

[clang] [Driver] Some adjustments for relocatable linking on OpenBSD (PR #67254)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 edited https://github.com/llvm/llvm-project/pull/67254 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Driver] Some adjustments for reloctable linking on OpenBSD (PR #67254)

2023-09-24 Thread Brad Smith via cfe-commits
https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/67254 >From fdcdea6353a7931a9e57dd3d0b4f6cf1b35085c3 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 24 Sep 2023 00:20:53 -0400 Subject: [PATCH] [Driver] Some adjustments for relocatable linking on OpenBSD ---

[clang] [Driver] Hook up NetBSD/riscv64 support (PR #67256)

2023-09-24 Thread Fangrui Song via cfe-commits
@@ -124,6 +130,14 @@ // AARCH64_BE-7: "-lm" "-lc" // AARCH64_BE-7: "{{.*}}/usr/lib{{/|}}crtend.o" "{{.*}}/usr/lib{{/|}}crtn.o" +// RISCV64: "-cc1" "-triple" "riscv64-unknown-netbsd" +// RISCV64: ld{{.*}}" "--eh-frame-hdr" "-dynamic-linker" "/libexec/ld.elf_so"

[clang] [Driver] Hook up NetBSD/riscv64 support (PR #67256)

2023-09-24 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay approved this pull request. https://github.com/llvm/llvm-project/pull/67256 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang][CodeGen] Add __builtin_bcopy (PR #67130)

2023-09-24 Thread Carlos Eduardo Seo via cfe-commits
https://github.com/ceseo closed https://github.com/llvm/llvm-project/pull/67130 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 7523550 - [Clang][CodeGen] Add __builtin_bcopy (#67130)

2023-09-24 Thread via cfe-commits
Author: Carlos Eduardo Seo Date: 2023-09-24T11:58:14-03:00 New Revision: 7523550853dbb0c66c17f424d60201bde4ec3bb7 URL: https://github.com/llvm/llvm-project/commit/7523550853dbb0c66c17f424d60201bde4ec3bb7 DIFF:

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-09-24 Thread via cfe-commits
@@ -6397,6 +6397,48 @@ static Value *simplifyBinaryIntrinsic(Function *F, Value *Op0, Value *Op1, return Constant::getNullValue(ReturnType); break; } + case Intrinsic::ptrmask: { +// Fail loudly in case this is ever changed. +// TODO: If vector types are

[clang] [InstCombine] Add combines/simplifications for `llvm.ptrmask` (PR #67166)

2023-09-24 Thread via cfe-commits
@@ -6397,6 +6397,48 @@ static Value *simplifyBinaryIntrinsic(Function *F, Value *Op0, Value *Op1, return Constant::getNullValue(ReturnType); break; } + case Intrinsic::ptrmask: { +// Fail loudly in case this is ever changed. +// TODO: If vector types are

[clang] Extension: allow recursive macros (PR #65851)

2023-09-24 Thread via cfe-commits
kelbon wrote: Version with `__THIS_MACRO__` instead of new preprocessor directive is ready, so actual examples are like ```C++ #define reverse(head, ...) __VA_OPT__(__THIS_MACRO__(__VA_ARGS__) , ) head ``` `__THIS_MACRO__` behaves exactly as macro name(`reverse` in this case), but its allowed

[clang-tools-extra] [InstCombine] Simplify the pattern `a ne/eq (zext/sext (a ne/eq c))` (PR #65852)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [InstCombine] Simplify the pattern `a ne/eq (zext/sext (a ne/eq c))` (PR #65852)

2023-09-24 Thread Yingwei Zheng via cfe-commits
https://github.com/dtcxzyw resolved https://github.com/llvm/llvm-project/pull/65852 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   >