[clang] 54c32be - [HLSL] Set default DwarfVersion to 4 for HLSL. (#97854)

2024-07-10 Thread via cfe-commits
Author: Xiang Li Date: 2024-07-10T20:17:45-04:00 New Revision: 54c32becf0991e60261bf8e80caee43cc6c0d65f URL: https://github.com/llvm/llvm-project/commit/54c32becf0991e60261bf8e80caee43cc6c0d65f DIFF: https://github.com/llvm/llvm-project/commit/54c32becf0991e60261bf8e80caee43cc6c0d65f.diff LOG:

[clang] [compiler-rt] [ubsan] Display correct runtime messages for negative _BitInt (PR #96240)

2024-07-10 Thread via cfe-commits
@@ -0,0 +1,42 @@ +// RUN: %clang -Wno-constant-conversion -Wno-array-bounds -Wno-division-by-zero -Wno-shift-negative-value -Wno-shift-count-negative -Wno-int-to-pointer-cast -O0 -fsanitize=alignment,array-bounds,bool,float-cast-overflow,implicit-integer-sign-change,implicit-si

[clang] [HLSL] Set default DwarfVersion to 4 for HLSL. (PR #97854)

2024-07-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-dylib` running on `linaro-flang-aarch64-dylib` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/50/builds/951 Here is the relevant p

[clang] 9324c95 - [Driver] -fsanitize=numerical: work with ubsan and support -shared-libsan

2024-07-10 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2024-07-10T17:32:17-07:00 New Revision: 9324c952e5d4744f86fc87662dee387134915bf0 URL: https://github.com/llvm/llvm-project/commit/9324c952e5d4744f86fc87662dee387134915bf0 DIFF: https://github.com/llvm/llvm-project/commit/9324c952e5d4744f86fc87662dee387134915bf0.diff

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay edited https://github.com/llvm/llvm-project/pull/98415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/98415 >From 29b11cc74f3358c22214e5a6c9e5042f9c4a7e38 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 10 Jul 2024 16:29:08 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Alexander Shaposhnikov via cfe-commits
https://github.com/alexander-shaposhnikov approved this pull request. LG, thanks https://github.com/llvm/llvm-project/pull/98415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/98415 >From 29b11cc74f3358c22214e5a6c9e5042f9c4a7e38 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 10 Jul 2024 16:29:08 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?UTF

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Fangrui Song via cfe-commits
https://github.com/MaskRay closed https://github.com/llvm/llvm-project/pull/98415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [C++20][Modules] static data members of template classes should be allowed in header units (PR #98309)

2024-07-10 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/98309 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libc] Update libc namespace clang-tidy checks (PR #98424)

2024-07-10 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi created https://github.com/llvm/llvm-project/pull/98424 This patch updates the clang-tidy checks for llvm-libc to ensure that the namespace macro used to declare the libc namespace is updated from LIBC_NAMESPACE to LIBC_NAMESPACE_DECL which by default has hidden visi

[clang] [C++20] [Modules] [Itanium ABI] Generate the vtable in the module unit of dynamic classes (PR #75912)

2024-07-10 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > The reproducer turned out to be pretty simple: > > ```c++ > export module a; > module :private; > static void f() {} > void g() { > f(); > } > ``` > > Compiles without that patch, otherwise produces: > > ``` > error: no matching function for call to 'f' > ``` > > > Oh, s

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/98419 >From b740aa9da3baf4fbd32b5a2c59d70bf2f224f700 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 10 Jul 2024 17:10:26 -0700 Subject: [PATCH 1/2] split out resource class data from resource attr, add some

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: It seems to cause a build failure: https://lab.llvm.org/buildbot/#/builders/123/builds/1580 https://github.com/llvm/llvm-project/pull/98415 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/

[clang-tools-extra] [libc] Update libc namespace clang-tidy checks (PR #98424)

2024-07-10 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi ready_for_review https://github.com/llvm/llvm-project/pull/98424 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [libc] Update libc namespace clang-tidy checks (PR #98424)

2024-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-tidy @llvm/pr-subscribers-clang-tools-extra Author: Paul Kirth (ilovepi) Changes This patch updates the clang-tidy checks for llvm-libc to ensure that the namespace macro used to declare the libc namespace is updated from LIBC_NAMESPACE to LIBC_N

[clang-tools-extra] [libc] Update libc namespace clang-tidy checks (PR #98424)

2024-07-10 Thread Paul Kirth via cfe-commits
@@ -3,60 +3,61 @@ #define MACRO_A "defining macros outside namespace is valid" class ClassB; -// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: declaration must be enclosed within the 'LIBC_NAMESPACE' namespace +// CHECK-MESSAGES: :[[@LINE-1]]:7: warning: declaration must be enclos

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Joshua Batista via cfe-commits
https://github.com/bob80905 updated https://github.com/llvm/llvm-project/pull/98419 >From b740aa9da3baf4fbd32b5a2c59d70bf2f224f700 Mon Sep 17 00:00:00 2001 From: Joshua Batista Date: Wed, 10 Jul 2024 17:10:26 -0700 Subject: [PATCH 1/3] split out resource class data from resource attr, add some

[clang] 3c5f929 - [RISCV] Add QingKe "XW" compressed opcode extension (#97925)

2024-07-10 Thread via cfe-commits
Author: R Date: 2024-07-11T11:10:02+08:00 New Revision: 3c5f929ad093a2053b3194474609f1fc3eb15431 URL: https://github.com/llvm/llvm-project/commit/3c5f929ad093a2053b3194474609f1fc3eb15431 DIFF: https://github.com/llvm/llvm-project/commit/3c5f929ad093a2053b3194474609f1fc3eb15431.diff LOG: [RISCV

[clang] [llvm] [RISCV] Add QingKe "XW" compressed opcode extension (PR #97925)

2024-07-10 Thread Pengcheng Wang via cfe-commits
https://github.com/wangpc-pp closed https://github.com/llvm/llvm-project/pull/97925 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add QingKe "XW" compressed opcode extension (PR #97925)

2024-07-10 Thread via cfe-commits
github-actions[bot] wrote: @ArcaneNibble Congratulations on having your first Pull Request (PR) merged into the LLVM Project! Your changes will be combined with recent changes from other authors, then tested by our [build bots](https://lab.llvm.org/buildbot/). If there is a problem with a b

[clang] [clang] Do not allow unorderable features in [[gnu::target{,_clones}]] (PR #98426)

2024-07-10 Thread Dan Klishch via cfe-commits
https://github.com/DanShaders created https://github.com/llvm/llvm-project/pull/98426 This partially addresses #98244. >From a8ddcb19d5fb2bb6a846c7a33f2c90c580d212fe Mon Sep 17 00:00:00 2001 From: Dan Klishch Date: Wed, 10 Jul 2024 23:39:42 -0400 Subject: [PATCH] [clang] Do not allow unorderab

[clang] [clang] Do not allow unorderable features in [[gnu::target{,_clones}]] (PR #98426)

2024-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dan Klishch (DanShaders) Changes This partially addresses #98244. --- Full diff: https://github.com/llvm/llvm-project/pull/98426.diff 5 Files Affected: - (modified) clang/lib/Sema/SemaDecl.cpp (+3-1) - (modified) clang/lib/Sema/SemaDec

[clang] [clang] Do not allow unorderable features in [[gnu::target{,_clones}]] (PR #98426)

2024-07-10 Thread Dan Klishch via cfe-commits
DanShaders wrote: CC @FreddyLeaf, @phoebewang https://github.com/llvm/llvm-project/pull/98426 ___ 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 TCAS_Leave using tabs for indentation (PR #98427)

2024-07-10 Thread Owen Pan via cfe-commits
https://github.com/owenca created https://github.com/llvm/llvm-project/pull/98427 Fixes #92530. >From fa1da3d06ed2207902df4911933bd40f0d514e51 Mon Sep 17 00:00:00 2001 From: Owen Pan Date: Wed, 10 Jul 2024 20:52:18 -0700 Subject: [PATCH] [clang-format] Fix a bug in TCAS_Leave using tabs for i

[clang] [clang-format] Fix a bug in TCAS_Leave using tabs for indentation (PR #98427)

2024-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-format Author: Owen Pan (owenca) Changes Fixes #92530. --- Full diff: https://github.com/llvm/llvm-project/pull/98427.diff 2 Files Affected: - (modified) clang/lib/Format/WhitespaceManager.cpp (+1-1) - (modified) clang/unittests/Format/FormatT

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Yaxun Liu via cfe-commits
yxsamliu wrote: > It seems to cause a build failure: > > https://lab.llvm.org/buildbot/#/builders/123/builds/1580 It seems the issue was due to old system linker. If I use lld to build compier-rt the build passes. I will fix the buildbot https://github.com/llvm/llvm-zorg/pull/225 https://git

[clang] [clang][Interp] Implement dynamic memory allocation handling (PR #70306)

2024-07-10 Thread Timm Baeder via cfe-commits
@@ -2771,6 +2771,109 @@ bool Compiler::VisitCXXInheritedCtorInitExpr( return this->emitCall(F, 0, E); } +template +bool Compiler::VisitCXXNewExpr(const CXXNewExpr *E) { + assert(classifyPrim(E->getType()) == PT_Ptr); + const Expr *Init = E->getInitializer(); + QualType E

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Damyan Pepper via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s | FileCheck %s + + +// CHECK: -HLSLResourceClassAttr 0x{{[0-9a-f]+}} <> SRV +struct [[hlsl::resource_class(SRV)]] Eg1 { damyanp wrote: I thought that the idea w

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Damyan Pepper via cfe-commits
@@ -280,13 +280,15 @@ void CGHLSLRuntime::annotateHLSLResource(const VarDecl *D, GlobalVariable *GV) { const auto *RD = Ty->getAsCXXRecordDecl(); if (!RD) return; - const auto *Attr = RD->getAttr(); - if (!Attr) + const auto *HLSLResAttr = RD->getAttr(); + const au

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Damyan Pepper via cfe-commits
@@ -437,6 +437,49 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +llvm::dxil::ResourceClass +getResourceClassFromStr(StringRef ResourceClassTypeStrRef) { + if (ResourceClassTypeStrRef == "SRV") +return llvm::dxil::ResourceC

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

2024-07-10 Thread Tom Stellard via cfe-commits
https://github.com/tstellar created https://github.com/llvm/llvm-project/pull/98431 This adds release binary builds for the 4 platforms currently supported by the free GitHub Action runners: * Linux x86_64 * Windows x86_64 * Mac x86_64 * Mac AArch64 The test stages for these are known to fail

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

2024-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang @llvm/pr-subscribers-github-workflow Author: Tom Stellard (tstellar) Changes This adds release binary builds for the 4 platforms currently supported by the free GitHub Action runners: * Linux x86_64 * Windows x86_64 * Mac x86_64 * Mac AArch64 Th

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Justin Bogner via cfe-commits
@@ -437,6 +437,49 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +llvm::dxil::ResourceClass +getResourceClassFromStr(StringRef ResourceClassTypeStrRef) { + if (ResourceClassTypeStrRef == "SRV") +return llvm::dxil::ResourceC

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s | FileCheck %s + + +// CHECK: -HLSLResourceClassAttr 0x{{[0-9a-f]+}} <> SRV +struct [[hlsl::resource_class(SRV)]] Eg1 { + int i; +}; + +Eg1 e1; + +// CHECK: -CXXRecordDecl 0x{

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,23 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -o - %s -verify + +// expected-error@+1{{'resource_class' attribute takes one argument}} +struct [[hlsl::resource_class()]] Eg1 { + int i; +}; + +Eg1 e1; + +// expected-error@+1{{invalid resource class

[clang] [compiler-rt] [nsan] Add shared runtime (PR #98415)

2024-07-10 Thread Fangrui Song via cfe-commits
MaskRay wrote: > > It seems to cause a build failure: > > [lab.llvm.org/buildbot](https://lab.llvm.org/buildbot/#/builders/123/builds/1580) > > It seems the issue was due to old system linker. If I use lld to build > compier-rt the build passes. I will fix the buildbot > [llvm/llvm-zorg#225](h

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Justin Bogner via cfe-commits
@@ -437,6 +437,49 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +llvm::dxil::ResourceClass +getResourceClassFromStr(StringRef ResourceClassTypeStrRef) { + if (ResourceClassTypeStrRef == "SRV") +return llvm::dxil::ResourceC

[clang] 4710e0f - [NFC][Clang] Move functions of BranchProtectionInfo out of line (#98329)

2024-07-10 Thread via cfe-commits
Author: Daniel Kiss Date: 2024-07-11T07:07:25+02:00 New Revision: 4710e0f498cb661ca17c99cb174616102fcad923 URL: https://github.com/llvm/llvm-project/commit/4710e0f498cb661ca17c99cb174616102fcad923 DIFF: https://github.com/llvm/llvm-project/commit/4710e0f498cb661ca17c99cb174616102fcad923.diff L

[clang] [NFC][Clang] Move functions of BranchProtectionInfo out of line (PR #98329)

2024-07-10 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss closed https://github.com/llvm/llvm-project/pull/98329 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] Split out resource class data from resource attribute (PR #98419)

2024-07-10 Thread Justin Bogner via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.0-compute -x hlsl -ast-dump -o - %s | FileCheck %s + + +// CHECK: -HLSLResourceClassAttr 0x{{[0-9a-f]+}} <> SRV +struct [[hlsl::resource_class(SRV)]] Eg1 { bogner wrote: For the purpose of these t

[clang] [llvm] [X86][MC] Added support for -msse2avx option in llvm-mc (PR #96860)

2024-07-10 Thread via cfe-commits
JaydeepChauhan14 wrote: > How easy would it be to add an option for this to update inline asm? I'm not > asking you to do this here, I just want to know if this approach would make > it straightforward to add in the future. As per my understanding we can easily utilize **GET_X86_SSE2AVX_TABLE*

[clang] [Clang] Ensure the method scope at the late parsing of noexcept specifiers (PR #98023)

2024-07-10 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/98023 >From 74d7184777e977ab3e83bfcae7e08e550ef32a39 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Mon, 8 Jul 2024 21:28:30 +0800 Subject: [PATCH 1/5] [Clang] Ensure the method scope at the late parsing of noexcep

[clang] [NFC][Clang] Move functions of BranchProtectionInfo out of line (PR #98329)

2024-07-10 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `flang-aarch64-libcxx` running on `linaro-flang-aarch64-libcxx` while building `clang` at step 5 "build-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/89/builds/1820 Here is the relevan

[clang] [clang] Emit bad shift warnings (PR #70307)

2024-07-10 Thread Timm Baeder via cfe-commits
https://github.com/tbaederr approved this pull request. https://github.com/llvm/llvm-project/pull/70307 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] Do not allow unorderable features in [[gnu::target{,_clones}]] (PR #98426)

2024-07-10 Thread Freddy Ye via cfe-commits
FreddyLeaf wrote: Thanks for the fix! https://github.com/llvm/llvm-project/pull/98426 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [X86][MC] Added support for -msse2avx option in llvm-mc (PR #96860)

2024-07-10 Thread Shengchen Kan via cfe-commits
@@ -0,0 +1,89 @@ +# RUN: %clang -march=x86-64 -msse2avx %s -c -o %t KanRobert wrote: Do not add end2end test. Check test for other flags. https://github.com/llvm/llvm-project/pull/96860 ___ cfe-commits mailing list cfe

[clang] [clang] Ensure pointers passed to runtime support functions are correctly signed (PR #98276)

2024-07-10 Thread Anton Korobeynikov via cfe-commits
@@ -333,7 +338,8 @@ void CodeGenFunction::registerGlobalDtorWithLLVM(const VarDecl &VD, llvm::FunctionCallee Dtor, llvm::Constant *Addr) { // Create a function which calls the d

[clang] [llvm] [PowerPC] add TargetParser for PPC target (PR #97541)

2024-07-10 Thread Chen Zheng via cfe-commits
chenzheng1030 wrote: gentle ping : ) https://github.com/llvm/llvm-project/pull/97541 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] Improve performance by adding a short circuit (PR #96809)

2024-07-10 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/96809 >From 7733243a7b9660ce2bcbd43f6219314fcd1e4a73 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Wed, 26 Jun 2024 14:20:03 -0400 Subject: [PATCH 1/7] [clang-doc] add short circuit in mapper --- clang-tools-ext

[clang-tools-extra] [clang-doc] Improve performance by adding a short circuit (PR #96809)

2024-07-10 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 7b57a1b4018db0c987fb5a67effbef4d7559c4f1 f86063293b693f5635fc2dfb4347389ce70f90b4 --e

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-10 Thread Owen Pan via cfe-commits
https://github.com/owenca commented: Also, we need ConfigParseTest for the new option. https://github.com/llvm/llvm-project/pull/95013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-10 Thread Owen Pan via cfe-commits
https://github.com/owenca edited https://github.com/llvm/llvm-project/pull/95013 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-10 Thread Owen Pan via cfe-commits
@@ -3153,6 +3153,15 @@ class ExpressionParser { parse(Precedence + 1); int CurrentPrecedence = getCurrentPrecedence(); + if (!Style.BinPackBinaryOperations && + (CurrentPrecedence > prec::Conditional) && + (CurrentPrecedence < prec::PointerTo

[clang] [clang-format] Add BinPackBinaryOperations configuration (PR #95013)

2024-07-10 Thread Owen Pan via cfe-commits
@@ -27628,6 +27628,109 @@ TEST_F(FormatTest, SpaceBetweenKeywordAndLiteral) { verifyFormat("return sizeof \"5\";"); } +TEST_F(FormatTest, BinPackBinaryOperations) { + auto Style = getLLVMStyleWithColumns(60); + // Logical operations + verifyFormat("if (condition1 && condi

[clang-tools-extra] [clang-doc] Improve performance by adding a short circuit (PR #96809)

2024-07-10 Thread via cfe-commits
PeterChou1 wrote: I did some more investigating and ran this patch against several different projects like llvm itself, and other well know libraries like zlib. The only functional difference I found was differences in the USR generated and generation order in the table genned files The one e

[clang-tools-extra] [clang-doc] Improve performance by adding a short circuit (PR #96809)

2024-07-10 Thread via cfe-commits
https://github.com/PeterChou1 updated https://github.com/llvm/llvm-project/pull/96809 >From 7733243a7b9660ce2bcbd43f6219314fcd1e4a73 Mon Sep 17 00:00:00 2001 From: PeterChou1 Date: Wed, 26 Jun 2024 14:20:03 -0400 Subject: [PATCH 1/7] [clang-doc] add short circuit in mapper --- clang-tools-ext

[clang] Revert "[NFC][Clang] Move functions of BranchProtectionInfo out of line" (PR #98437)

2024-07-10 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss created https://github.com/llvm/llvm-project/pull/98437 Reverts llvm/llvm-project#98329 >From 9a74d0613287e7ae86c305b0250e188e3c3de6c3 Mon Sep 17 00:00:00 2001 From: Daniel Kiss Date: Thu, 11 Jul 2024 08:37:25 +0200 Subject: [PATCH] Revert "[NFC][Clang] Mov

[clang] b65aba2 - Revert "[NFC][Clang] Move functions of BranchProtectionInfo out of line" (#98437)

2024-07-10 Thread via cfe-commits
Author: Daniel Kiss Date: 2024-07-11T08:37:47+02:00 New Revision: b65aba292e0d485de286ec36134375e74b1fb95c URL: https://github.com/llvm/llvm-project/commit/b65aba292e0d485de286ec36134375e74b1fb95c DIFF: https://github.com/llvm/llvm-project/commit/b65aba292e0d485de286ec36134375e74b1fb95c.diff L

[clang] Revert "[NFC][Clang] Move functions of BranchProtectionInfo out of line" (PR #98437)

2024-07-10 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss closed https://github.com/llvm/llvm-project/pull/98437 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Revert "[NFC][Clang] Move functions of BranchProtectionInfo out of line" (PR #98437)

2024-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Daniel Kiss (DanielKristofKiss) Changes Reverts llvm/llvm-project#98329 --- Full diff: https://github.com/llvm/llvm-project/pull/98437.diff 2 Files Affected: - (modified) clang/include/clang/Basic/TargetInfo.h (+19-4) - (modified) clan

[clang] [Clang] Don't crash if input file is not a module. (PR #98439)

2024-07-10 Thread Dmitriy Chestnykh via cfe-commits
https://github.com/chestnykh created https://github.com/llvm/llvm-project/pull/98439 Currently clang crashes with `-module-file-info` and input file which is not a module Emit error instead of segfaulting. Fix #98365 >From 716e8b7b71422b5850d2f9c3710a28bcf18ffccb Mon Sep 17 00:00:00 2001 From:

[clang] [Clang] Don't crash if input file is not a module. (PR #98439)

2024-07-10 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Dmitriy Chestnykh (chestnykh) Changes Currently clang crashes with `-module-file-info` and input file which is not a module Emit error instead of segfaulting. Fix #98365 --- Full diff: https://github.com/llvm/llvm-project/pull/98439.diff

[clang] [Clang] Don't crash if input file is not a module. (PR #98439)

2024-07-10 Thread Dmitriy Chestnykh via cfe-commits
chestnykh wrote: CC: @ChuanqiXu9 @shafik https://github.com/llvm/llvm-project/pull/98439 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Don't crash if input file is not a module. (PR #98439)

2024-07-10 Thread Dmitriy Chestnykh via cfe-commits
https://github.com/chestnykh updated https://github.com/llvm/llvm-project/pull/98439 >From 716e8b7b71422b5850d2f9c3710a28bcf18ffccb Mon Sep 17 00:00:00 2001 From: Dmitry Chestnykh Date: Thu, 11 Jul 2024 09:55:55 +0300 Subject: [PATCH 1/2] [Clang] Don't crash if input file is not a module. Curr

[clang] [Clang] Don't crash if input file is not a module. (PR #98439)

2024-07-10 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 dcf70e16684420ae211dad58dbfacc0430409ab4 716e8b7b71422b5850d2f9c3710a28bcf18ffccb --e

<    1   2   3   4   5