[libclc] libclc: increase fp16 support (PR #98149)

2024-07-09 Thread Romaric Jodin via cfe-commits
rjodinchr wrote: @frasercrmck Could you review it please? https://github.com/llvm/llvm-project/pull/98149 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] CTAD: Generate deduction guides for alias templates from non-template explicit deduction guides (PR #96686)

2024-07-09 Thread Haojian Wu via cfe-commits
https://github.com/hokein closed https://github.com/llvm/llvm-project/pull/96686 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 1205371 - [clang] CTAD: Generate deduction guides for alias templates from non-template explicit deduction guides (#96686)

2024-07-09 Thread via cfe-commits
Author: Haojian Wu Date: 2024-07-10T08:55:37+02:00 New Revision: 1205371a6e4b4f03aa5fee5124efd4234e279ca4 URL: https://github.com/llvm/llvm-project/commit/1205371a6e4b4f03aa5fee5124efd4234e279ca4 DIFF: https://github.com/llvm/llvm-project/commit/1205371a6e4b4f03aa5fee5124efd4234e279ca4.diff LO

[clang-tools-extra] [llvm] [clang-doc] fix bug introduced by asset test (PR #97540)

2024-07-09 Thread Michał Górny via cfe-commits
mgorny wrote: Thank you. https://github.com/llvm/llvm-project/pull/97540 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Run PreStmt/PostStmt checker for GCCAsmStmt (PR #95409)

2024-07-09 Thread via cfe-commits
T-Gruber wrote: Hi @steakhal , what is your opinion on this PR? Are there any open points from my side? https://github.com/llvm/llvm-project/pull/95409 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/list

[clang] [clang][doc] Improve error handling for `LibTooling` example code avoiding core dump (PR #98129)

2024-07-09 Thread Rajveer Singh Bharadwaj via cfe-commits
Rajveer100 wrote: > Sure. Do I need to do anything? I don't have the access rights to merge yet. https://github.com/llvm/llvm-project/pull/98129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cf

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

2024-07-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt updated https://github.com/llvm/llvm-project/pull/98276 >From 4b92c4af87a1a381dad09b243db4d3ec71d64738 Mon Sep 17 00:00:00 2001 From: John McCall Date: Wed, 18 Sep 2019 02:21:37 -0400 Subject: [PATCH 1/3] Sign function pointers passed to atexit and __cxa_atexit. Patch

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

2024-07-09 Thread Oliver Hunt via cfe-commits
https://github.com/ojhunt created https://github.com/llvm/llvm-project/pull/98276 Updates codegen for global destructors and raising exceptions to ensure that the function pointers being passed are signed using the correct schema. Notably this requires that CodeGenFunction::createAtExitStub to

[clang] [X86][vectorcall] Do not consume register for indirect return value (PR #97939)

2024-07-09 Thread Phoebe Wang via cfe-commits
phoebewang wrote: > I lost the `__fastcall` or `__vectorcall` during editing, here's a fixed > link: https://godbolt.org/z/46j33z8bc > > You can see the load from [edx] and store to [ecx]: > > ``` > NonTrivial copy_nontrivial(NonTrivial *) PROC ; copy_nontrivial, COMDAT > mov eax

[clang] [llvm] [AsmPrinter] Don't check for inlineasm dialect on non-X86 platforms (PR #98097)

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

[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)

2024-07-09 Thread Vikash Gupta via cfe-commits
https://github.com/vg0204 updated https://github.com/llvm/llvm-project/pull/95750 >From cbe656fa6db50319e74c0fab166538518506974e Mon Sep 17 00:00:00 2001 From: vg0204 Date: Mon, 17 Jun 2024 11:20:02 +0530 Subject: [PATCH 1/5] [Clang] [WIP] Added builtin_alloca support for OpenCL1.2 and below

[clang] [Clang] [WIP] Added builtin_alloca right Address Space for OpenCL (PR #95750)

2024-07-09 Thread Vikash Gupta via cfe-commits
https://github.com/vg0204 updated https://github.com/llvm/llvm-project/pull/95750 >From cbe656fa6db50319e74c0fab166538518506974e Mon Sep 17 00:00:00 2001 From: vg0204 Date: Mon, 17 Jun 2024 11:20:02 +0530 Subject: [PATCH 1/5] [Clang] [WIP] Added builtin_alloca support for OpenCL1.2 and below

[clang] [clang] inherit GD to let the codegen add kcfi type for ifunc (PR #96400)

2024-07-09 Thread Fangrui Song via cfe-commits
MaskRay wrote: > Oh, hmm, I see. > > Maybe the right strategy here is to delay attaching the resolver to the ifunc > until the end of the translation unit, when we know the definition is already > emitted. That way, it should already have the right attributes. (We already > do some delayed ch

[clang] 015526b - [RISCV] Fix spelling instuctions->instructions.

2024-07-09 Thread Craig Topper via cfe-commits
Author: Craig Topper Date: 2024-07-09T22:35:46-07:00 New Revision: 015526bf3fc6843ad28f9e0809598453228c4bc2 URL: https://github.com/llvm/llvm-project/commit/015526bf3fc6843ad28f9e0809598453228c4bc2 DIFF: https://github.com/llvm/llvm-project/commit/015526bf3fc6843ad28f9e0809598453228c4bc2.diff

[clang] [llvm] Clang: don't unnecessarily convert inline-asm operands to x86mmx in IR. (PR #98273)

2024-07-09 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 bf528849819733482cff205f3bdf1fe9ce2b92a4 546963316017935bfbbc05d7095d645344fbd5f5 --

[clang] [llvm] Clang: don't unnecessarily convert inline-asm operands to x86mmx in IR. (PR #98273)

2024-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: James Y Knight (jyknight) Changes The SelectionDAG asm-lowering code can already handle conversion of other vector types to MMX if needed. --- Full diff: https://github.com/llvm/llvm-project/pull/98273.diff 5 Files Affected: - (modifi

[clang] [llvm] Clang: don't unnecessarily convert inline-asm operands to x86mmx in IR. (PR #98273)

2024-07-09 Thread James Y Knight via cfe-commits
https://github.com/jyknight created https://github.com/llvm/llvm-project/pull/98273 The SelectionDAG asm-lowering code can already handle conversion of other vector types to MMX if needed. >From 546963316017935bfbbc05d7095d645344fbd5f5 Mon Sep 17 00:00:00 2001 From: James Y Knight Date: Wed,

[clang] [llvm] [RISCV] Add ability to list extensions enabled for a target (PR #98207)

2024-07-09 Thread Craig Topper via cfe-commits
https://github.com/topperc edited https://github.com/llvm/llvm-project/pull/98207 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add ability to list extensions enabled for a target (PR #98207)

2024-07-09 Thread Craig Topper via cfe-commits
@@ -116,6 +115,44 @@ void llvm::riscvExtensionsHelp(StringMap DescMap) { "For example, clang -march=rv32i_v1p0\n"; } +void RISCVISAInfo::printEnabledExtensions( +bool IsRV64, std::set &EnabledFeatureNames, +StringMap &DescMap) { + outs() << "Extensions en

[clang] [llvm] [RISCV] Add ability to list extensions enabled for a target (PR #98207)

2024-07-09 Thread Yingwei Zheng via cfe-commits
@@ -116,6 +115,44 @@ void llvm::riscvExtensionsHelp(StringMap DescMap) { "For example, clang -march=rv32i_v1p0\n"; } +void RISCVISAInfo::printEnabledExtensions( +bool IsRV64, std::set &EnabledFeatureNames, +StringMap &DescMap) { + outs() << "Extensions en

[clang] [libcxx] [Clang] Implement resolution for CWG1835 (PR #92957)

2024-07-09 Thread NAKAMURA Takumi via cfe-commits
chapuni wrote: Reverted, thank you. https://github.com/llvm/llvm-project/pull/92957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] 869ac40 - [Clang][Sema] Substitute for the type aliases inside of a CTAD guide (#94740)

2024-07-09 Thread via cfe-commits
Author: Younan Zhang Date: 2024-07-10T12:51:27+08:00 New Revision: 869ac4064861b7e644ae52a72fb80efacfd86462 URL: https://github.com/llvm/llvm-project/commit/869ac4064861b7e644ae52a72fb80efacfd86462 DIFF: https://github.com/llvm/llvm-project/commit/869ac4064861b7e644ae52a72fb80efacfd86462.diff

[clang] [Clang] Substitute for the type aliases inside of a CTAD guide (PR #94740)

2024-07-09 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 closed https://github.com/llvm/llvm-project/pull/94740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Substitute for the type aliases inside of a CTAD guide (PR #94740)

2024-07-09 Thread Younan Zhang via cfe-commits
zyn0217 wrote: Thanks for the review. https://github.com/llvm/llvm-project/pull/94740 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Substitute for the type aliases inside of a CTAD guide (PR #94740)

2024-07-09 Thread Younan Zhang via cfe-commits
https://github.com/zyn0217 updated https://github.com/llvm/llvm-project/pull/94740 >From 2f60e51f2017e4448047f64983b2f22cdb67e816 Mon Sep 17 00:00:00 2001 From: Younan Zhang Date: Fri, 7 Jun 2024 18:08:10 +0800 Subject: [PATCH 1/6] [Clang] Substitute for the type aliases inside of a CTAD guide

[clang] [clang] fix sema init crash for not checking a ExprResult (PR #98102)

2024-07-09 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/98102 >From 588762c4c3a1e01f4cf2bd418a8545b79a6b5371 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Mon, 8 Jul 2024 18:16:17 -0700 Subject: [PATCH 1/2] [clang] fix sema init crash for not checking a ExprResult

[clang] [clang] fix sema init crash for not checking a ExprResult (PR #98102)

2024-07-09 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/98102 >From 588762c4c3a1e01f4cf2bd418a8545b79a6b5371 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Mon, 8 Jul 2024 18:16:17 -0700 Subject: [PATCH 1/2] [clang] fix sema init crash for not checking a ExprResult

[clang] [RFC] [clang][Toolchain] Treat "pc"/"unknown" vendor interchangeable (PR #97802)

2024-07-09 Thread Azat Khuzhin via cfe-commits
azat wrote: >If you specify the wrong --target= (avoid -target , deprecated since Clang >3.4), clangDriver will not find the compiler-rt library. >This works as intended. But isn't this odd, that you depends on `LLVM_DEFAULT_TARGET_TRIPLE`? https://github.com/llvm/llvm-project/pull/97802 _

[clang] [TBAA] Emit int TBAA metadata on FP math libcall expf (PR #96025)

2024-07-09 Thread via cfe-commits
@@ -0,0 +1,43 @@ +// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5 +// The test may fail as time out on windows +// REQUIRES: system-linux + +// RUN: %clang -S -O3 -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefixes=CHECK,

[clang] 62a7562 - [docs] [C++20] [Modules] Add a workaround document for missing vtables

2024-07-09 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-07-10T11:23:14+08:00 New Revision: 62a7562b828ee9df6a41b6ce3dfda7c5511816a6 URL: https://github.com/llvm/llvm-project/commit/62a7562b828ee9df6a41b6ce3dfda7c5511816a6 DIFF: https://github.com/llvm/llvm-project/commit/62a7562b828ee9df6a41b6ce3dfda7c5511816a6.diff LO

[clang] [clang] fix sema init crash for not checking a ExprResult (PR #98102)

2024-07-09 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/98102 >From 588762c4c3a1e01f4cf2bd418a8545b79a6b5371 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Mon, 8 Jul 2024 18:16:17 -0700 Subject: [PATCH 1/2] [clang] fix sema init crash for not checking a ExprResult

[clang] [compiler-rt] [compiler-rt] Realtime Sanitizer: Introduce Realtime Sanitizer (RTSan) backend (PR #92460)

2024-07-09 Thread Chris Apple via cfe-commits
cjappl wrote: > This also breaks building the compiler-rt for older android versions, because > pthread_spinlock_t is only defined when `__ANDROID_API__` >= 24. Thanks for reporting this @glandium ! I am in the process of disabling this for android as we speak. Let me know if you see anything

[clang] [compiler-rt] [compiler-rt] Realtime Sanitizer: Introduce Realtime Sanitizer (RTSan) backend (PR #92460)

2024-07-09 Thread Mike Hommey via cfe-commits
glandium wrote: This also breaks building the compiler-rt for older android versions, because pthread_spinlock_t is only defined when __ANDROID_API__ >= 24. https://github.com/llvm/llvm-project/pull/92460 ___ cfe-commits mailing list cfe-commits@lists

[clang] [llvm] [AIX] Add -msave-reg-params to save arguments to stack (PR #97524)

2024-07-09 Thread Qiu Chaofan via cfe-commits
https://github.com/ecnelises updated https://github.com/llvm/llvm-project/pull/97524 >From 654cf7753023302c367340872e889856f8738169 Mon Sep 17 00:00:00 2001 From: Qiu Chaofan Date: Wed, 3 Jul 2024 14:17:01 +0800 Subject: [PATCH 1/3] [AIX] Add -msave-reg-params to save arguments to stack In Pow

[clang] [clang] fix sema init crash for not checking a ExprResult (PR #98102)

2024-07-09 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/98102 >From 588762c4c3a1e01f4cf2bd418a8545b79a6b5371 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Mon, 8 Jul 2024 18:16:17 -0700 Subject: [PATCH 1/2] [clang] fix sema init crash for not checking a ExprResult

[clang] [clang] fix sema init crash for not checking a ExprResult (PR #98102)

2024-07-09 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/98102 >From 01a5dd6e5bfc612678818035b88f85fda5c039d1 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Mon, 8 Jul 2024 18:16:17 -0700 Subject: [PATCH 1/2] [clang] fix sema init crash for not checking a ExprResult

[clang] 91d40ef - Revert "[C++20] [Modules] [Itanium ABI] Generate the vtable in the module unit of dynamic classes (#75912)"

2024-07-09 Thread Chuanqi Xu via cfe-commits
Author: Chuanqi Xu Date: 2024-07-10T10:58:18+08:00 New Revision: 91d40ef6e369a73b0147d9153a95c3bc63e14102 URL: https://github.com/llvm/llvm-project/commit/91d40ef6e369a73b0147d9153a95c3bc63e14102 DIFF: https://github.com/llvm/llvm-project/commit/91d40ef6e369a73b0147d9153a95c3bc63e14102.diff LO

[clang] [TBAA] Emit int TBAA metadata on FP math libcall expf (PR #96025)

2024-07-09 Thread via cfe-commits
https://github.com/vfdff updated https://github.com/llvm/llvm-project/pull/96025 >From ed6292fd0e9119322c39e5f37e2225c76e324101 Mon Sep 17 00:00:00 2001 From: zhongyunde 00443407 Date: Tue, 18 Jun 2024 09:21:07 -0400 Subject: [PATCH 1/8] [TBAA] Emit int TBAA metadata on FP math libcalls Base on

[clang] [clang] fix sema init crash for not checking a ExprResult (PR #98102)

2024-07-09 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/98102 >From 01a5dd6e5bfc612678818035b88f85fda5c039d1 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Mon, 8 Jul 2024 18:16:17 -0700 Subject: [PATCH 1/2] [clang] fix sema init crash for not checking a ExprResult

[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

2024-07-09 Thread Shafik Yaghmour via cfe-commits
@@ -249,13 +249,15 @@ class APValue { struct NoLValuePath {}; struct UninitArray {}; struct UninitStruct {}; + struct ConstexprUnknown {}; template friend class clang::serialization::BasicReaderBase; friend class ASTImporter; friend class ASTNodeImporter;

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

2024-07-09 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: Given this patch has another unexpected behavior in windows (https://github.com/llvm/llvm-project/issues/97447), I'd like to revert this temporarily to wait for the response from Windows devs and your reproducer @mizvekov https://github.com/llvm/llvm-project/pull/75912

[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

2024-07-09 Thread Shafik Yaghmour via cfe-commits
https://github.com/shafik deleted https://github.com/llvm/llvm-project/pull/95474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Implement P2280R4 Using unknown pointers and references in constant expressions (PR #95474)

2024-07-09 Thread Shafik Yaghmour via cfe-commits
@@ -249,13 +249,15 @@ class APValue { struct NoLValuePath {}; struct UninitArray {}; struct UninitStruct {}; + struct ConstexprUnknown {}; template friend class clang::serialization::BasicReaderBase; friend class ASTImporter; friend class ASTNodeImporter;

[clang] [TBAA] Emit int TBAA metadata on FP math libcall expf (PR #96025)

2024-07-09 Thread via cfe-commits
https://github.com/vfdff updated https://github.com/llvm/llvm-project/pull/96025 >From ed6292fd0e9119322c39e5f37e2225c76e324101 Mon Sep 17 00:00:00 2001 From: zhongyunde 00443407 Date: Tue, 18 Jun 2024 09:21:07 -0400 Subject: [PATCH 1/8] [TBAA] Emit int TBAA metadata on FP math libcalls Base on

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

2024-07-09 Thread Chuanqi Xu via cfe-commits
ChuanqiXu9 wrote: > FYI, the commit > [99873b3](https://github.com/llvm/llvm-project/commit/99873b35da7ecb905143c8a6b8deca4d4416f1a9), > which lists this PR as a motivator, causes breakage building a project, > which I am still looking for a reduced test case. > > The commit is not NFC despit

[clang] [Clang][Sema] Earlier type checking for builtin unary operators (PR #90500)

2024-07-09 Thread Shafik Yaghmour via cfe-commits
shafik wrote: You reapplied this here: https://github.com/llvm/llvm-project/commit/1595988ee6f9732e7ea79928af8a470ad5ef7dbe but it has caused a regression: https://github.com/llvm/llvm-project/issues/97646 https://github.com/llvm/llvm-project/pull/90500 _

[clang] [compiler-rt] [safestack] Various Solaris fixes (PR #98001)

2024-07-09 Thread Vitaly Buka via cfe-commits
vitalybuka wrote: They look quite independent. Would be possible to split independent fixed into a separate patches? https://github.com/llvm/llvm-project/pull/98001 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin

[clang] [compiler-rt] [safestack] Various Solaris fixes (PR #98001)

2024-07-09 Thread Fangrui Song via cfe-commits
MaskRay wrote: > At the end of the recent flurry of Illumos (and implicitly Solaris) safestack > patches, the tests were disabled in > [b0260c5](https://github.com/llvm/llvm-project/commit/b0260c5b1052f8e3ff1ec77dc42a11f42da762cc) > without explanation. @devnexen Thank you for #97183, which s

[clang] Fix erroneous `-Wmissing-prototypes` for Win32 entry points (PR #98105)

2024-07-09 Thread Max Winkler via cfe-commits
https://github.com/MaxEW707 closed https://github.com/llvm/llvm-project/pull/98105 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] b0b96fb - Fix erroneous `-Wmissing-prototypes` for Win32 entry points (#98105)

2024-07-09 Thread via cfe-commits
Author: Max Winkler Date: 2024-07-09T18:38:32-07:00 New Revision: b0b96fbff47c74940a62073c579372f3c47df9c8 URL: https://github.com/llvm/llvm-project/commit/b0b96fbff47c74940a62073c579372f3c47df9c8 DIFF: https://github.com/llvm/llvm-project/commit/b0b96fbff47c74940a62073c579372f3c47df9c8.diff L

[clang-tools-extra] [clang-doc] switched from using relative to absolute paths (PR #93281)

2024-07-09 Thread Paul Kirth via cfe-commits
ilovepi wrote: any progress here? https://github.com/llvm/llvm-project/pull/93281 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] modify basic-project test (PR #97684)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -54,306 +54,249 @@ // JSON-INDEX-NEXT: }; // JSON-INDEX-NEXT: } -// HTML-SHAPE: -// HTML-SHAPE-NEXT: -// HTML-SHAPE-NEXT: class Shape -// HTML-SHAPE-NEXT: -// HTML-SHAPE-NEXT: -// HTML-SHAPE-NEXT: -// HTML-SHAPE-NEXT: -// HTML-SHAPE-NEXT: -// HTML-SHAPE-NEXT: -//

[clang-tools-extra] [clang-doc] modify basic-project test (PR #97684)

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

[clang-tools-extra] [clang-doc] modify basic-project test (PR #97684)

2024-07-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi commented: This is headed in the right direction, but I'm not sure we want to match so many of the single line tags ... they don't seem particularly valuable from a testing standpoint. If you think we're missing tests for the HTML structure, then we should have some

[clang] [clang][Driver] Fix Linux/sparc64 -m32 (PR #98124)

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

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,340 @@ +// RUN: clang-doc --format=html --output=%t/docs --executor=standalone %s +// RUN: clang-doc --format=md --output=%t/docs --executor=standalone %s ilovepi wrote: Why no `mkdir`? I presume because clang-doc will make it, but the test shouldn't

[clang-tools-extra] [clang-doc] add nested namespace test case (PR #97681)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,340 @@ +// RUN: clang-doc --format=html --output=%t/docs --executor=standalone %s +// RUN: clang-doc --format=md --output=%t/docs --executor=standalone %s +// RUN: FileCheck %s -input-file=%t/docs/index_json.js -check-prefix=JSON-INDEX +// RUN: FileCheck %s -input-file=

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -437,7 +444,419 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct RegisterBindingFlags { + bool Resource = false; + bool UDT = false; + bool Other = false; + bool Basic = false; + + bool SRV = false; + bool UAV = f

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: clang-doc --format=html --doxygen --output=%t/docs --executor=standalone %s +// RUN: clang-doc --format=md --doxygen --output=%t/docs --executor=standalone %s +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/index.html -check-prefix=HTML-INDEX

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: clang-doc --format=html --doxygen --output=%t/docs --executor=standalone %s +// RUN: clang-doc --format=md --doxygen --output=%t/docs --executor=standalone %s +// RUN: FileCheck %s -input-file=%t/docs/GlobalNamespace/index.html -check-prefix=HTML-INDEX

[clang-tools-extra] [clang-doc] add enum test (PR #97679)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -0,0 +1,38 @@ +// RUN: clang-doc --format=html --doxygen --output=%t/docs --executor=standalone %s +// RUN: clang-doc --format=md --doxygen --output=%t/docs --executor=standalone %s ilovepi wrote: This can't work right, can it? you haven't made `%t`, you als

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -437,7 +444,419 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct RegisterBindingFlags { + bool Resource = false; + bool UDT = false; + bool Other = false; + bool Basic = false; + + bool SRV = false; + bool UAV = f

[clang] [RFC] [clang][Toolchain] Treat "pc"/"unknown" vendor interchangeable (PR #97802)

2024-07-09 Thread Fangrui Song via cfe-commits
MaskRay wrote: > The problem is not only with Rust, it is any invocation with non-default > --target (--target != LLVM_DEFAULT_TARGET_TRIPLE), and I was fixing a C++ > issue not a Rust issue, but I guess it will be covered If you specify the wrong `--target=` (avoid `-target `, deprecated sinc

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -670,6 +671,7 @@ llvm::Error ClangDocBitcodeReader::readRecord(unsigned ID, T I) { template <> llvm::Error ClangDocBitcodeReader::readRecord(unsigned ID, Reference *I) { + llvm::TimeTraceScope("clang-doc", "readRecord Reference"); ilovepi wrote: Why `rea

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -362,6 +395,17 @@ Example usage for a project using a compile commands database: if (Err) { llvm::outs() << "warning: " << toString(std::move(Err)) << "\n"; } - + llvm::timeTraceProfilerEnd(); + + if (FTimeTrace) { +std::error_code EC; +llvm::raw_fd_ostrea

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -99,6 +100,16 @@ URL of repository that hosts code. Used for links to definition locations.)"), llvm::cl::cat(ClangDocCategory)); +static llvm::cl::opt FTimeTrace("ftime-trace", llvm::cl::desc(R"( +Turn on time profiler. Generates clang-doc-tracing.json)")

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -30,6 +35,7 @@ template bool MapASTVisitor::mapDecl(const T *D) { if (D->getParentFunctionOrMethod()) return true; + llvm::timeTraceProfilerBegin("emit info phase", "emit info"); ilovepi wrote: nit: try to be consistent w/ the logging style and ca

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -316,32 +342,39 @@ Example usage for a project using a compile commands database: std::move(ReadInfos->begin(), ReadInfos->end(), std::back_inserter(Infos)); } + llvm::timeTraceProfilerEnd(); + llvm::timeTraceProfilerBegin("mergin

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -681,6 +683,7 @@ llvm::Error ClangDocBitcodeReader::readRecord(unsigned ID, Reference *I) { // Read a block of records into a single info. template llvm::Error ClangDocBitcodeReader::readBlock(unsigned ID, T I) { + llvm::TimeTraceScope("readBlock", "ClangDocBitcodeReader"

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -480,12 +480,15 @@ mergeInfos(std::vector> &Values); struct ClangDocContext { ClangDocContext() = default; ClangDocContext(tooling::ExecutionContext *ECtx, StringRef ProjectName, - bool PublicOnly, StringRef OutDirectory, StringRef SourceRoot, +

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -30,7 +30,7 @@ ClangDocContext getClangDocContext(std::vector UserStylesheets = {}, StringRef RepositoryUrl = "") { ClangDocContext CDCtx{ - {}, "test-project", {}, {}, {}, RepositoryUrl, UserStylesheets}; + {}, "test-project", {}, {}, {}, {},

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -13,12 +13,17 @@ #include "clang/Index/USRGeneration.h" #include "llvm/ADT/StringExtras.h" #include "llvm/Support/Error.h" +#include "llvm/Support/TimeProfiler.h" namespace clang { namespace doc { void MapASTVisitor::HandleTranslationUnit(ASTContext &Context) { + if

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
@@ -362,6 +395,17 @@ Example usage for a project using a compile commands database: if (Err) { llvm::outs() << "warning: " << toString(std::move(Err)) << "\n"; } - + llvm::timeTraceProfilerEnd(); + + if (FTimeTrace) { +std::error_code EC; +llvm::raw_fd_ostrea

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

2024-07-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi requested changes to this pull request. https://github.com/llvm/llvm-project/pull/97644 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang-tools-extra] [clang-doc] add ftime profiling (PR #97644)

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

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -437,7 +444,419 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct RegisterBindingFlags { + bool Resource = false; + bool UDT = false; + bool Other = false; + bool Basic = false; + + bool SRV = false; + bool UAV = f

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -437,7 +444,419 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct RegisterBindingFlags { + bool Resource = false; + bool UDT = false; + bool Other = false; + bool Basic = false; + + bool SRV = false; + bool UAV = f

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -437,7 +453,409 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct RegisterBindingFlags { + bool Resource = false; + bool Udt = false; + bool Other = false; + bool Basic = false; + + bool Srv = false; + bool Uav = f

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -0,0 +1,103 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify + +// TODO: Implement "Buffer" +struct Eg1 { + float f; + // Buffer Buf; + RWBuffer RWBuf; + }; +Eg1 e1 : /* register(t0) :*/ register(u0); +// Valid: f is skip

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -20,12 +20,12 @@ tbuffer g_tbuffer1 { float f5 : register(c2); }; -tbuffer g_cbuffer2 { +cbuffer g_cbuffer2 { // expected-error@+1{{register binding type 'float' not supported for variable of type 'b'}} damyanp wrote: hmmm...is this message actually

[clang-tools-extra] [clang-doc] Add another test project to clang-doc (PR #97518)

2024-07-09 Thread Paul Kirth via cfe-commits
https://github.com/ilovepi requested changes to this pull request. I'm a bit confused by the "advanced project", as it largely seems to be minor extensions to the `basic project`. I would expect that an "advanced project" would use a complicated structure and be much larger. IMO if you're only

[clang] [llvm] [Clang][Coroutines] Introducing the `[[clang::coro_inplace_task]]` attribute (PR #94693)

2024-07-09 Thread Yuxuan Chen via cfe-commits
https://github.com/yuxuanchen1997 updated https://github.com/llvm/llvm-project/pull/94693 >From b263674367fb82ac9d7c306a42c500c8968ca3f7 Mon Sep 17 00:00:00 2001 From: Yuxuan Chen Date: Tue, 4 Jun 2024 23:22:00 -0700 Subject: [PATCH 1/2] [Clang] Introduce [[clang::coro_inplace_task]] --- clan

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Joshua Batista via cfe-commits
@@ -635,46 +626,52 @@ RegisterBindingFlags HLSLFillRegisterBindingFlags(Sema &S, Decl *D) { } else r.Other = true; } - } else { -llvm_unreachable("unknown decl type"); } return r; } +int getRegisterTypeIndex(StringRef Slot) { + switch (Slot[0])

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Joshua Batista via cfe-commits
@@ -437,7 +453,409 @@ void SemaHLSL::handleShaderAttr(Decl *D, const ParsedAttr &AL) { D->addAttr(NewAttr); } +struct RegisterBindingFlags { + bool Resource = false; + bool Udt = false; + bool Other = false; + bool Basic = false; + + bool Srv = false; + bool Uav = f

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -0,0 +1,104 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify + +// TODO: Implement "Buffer" +struct Eg1 { + float f; + // Buffer Buf; + RWBuffer RWBuf; + }; +Eg1 e1 : /* register(t0) :*/ register(u0); +// Valid: f is skip

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -635,46 +626,52 @@ RegisterBindingFlags HLSLFillRegisterBindingFlags(Sema &S, Decl *D) { } else r.Other = true; } - } else { -llvm_unreachable("unknown decl type"); } return r; } +int getRegisterTypeIndex(StringRef Slot) { + switch (Slot[0])

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -635,46 +626,52 @@ RegisterBindingFlags HLSLFillRegisterBindingFlags(Sema &S, Decl *D) { } else r.Other = true; } - } else { -llvm_unreachable("unknown decl type"); } return r; } +int getRegisterTypeIndex(StringRef Slot) { + switch (Slot[0])

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Damyan Pepper via cfe-commits
@@ -635,46 +626,52 @@ RegisterBindingFlags HLSLFillRegisterBindingFlags(Sema &S, Decl *D) { } else r.Other = true; } - } else { -llvm_unreachable("unknown decl type"); } return r; } +int getRegisterTypeIndex(StringRef Slot) { + switch (Slot[0])

[clang] [clang] fix sema init crash for not checking a ExprResult (PR #98102)

2024-07-09 Thread Yuxuan Chen via cfe-commits
yuxuanchen1997 wrote: @AaronBallman I have good news. I was able to manually write a well-formed C++ file that crashes. https://gist.github.com/yuxuanchen1997/576dce964666f0f8713fccacf5847138 And I am able to validate that the fix I proposed here does fix the problem. https://github.com/llvm

[clang] [msan] Precommit MSan Arm NEON vst tests (PR #98247)

2024-07-09 Thread Vitaly Buka via cfe-commits
https://github.com/vitalybuka requested changes to this pull request. Discussed offline, it should be IR tests https://github.com/llvm/llvm-project/pull/98247 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[clang] [llvm] [AArch64] Add -mlr-for-calls-only to replace the now removed -ffixed-x30 flag. (PR #98073)

2024-07-09 Thread Amara Emerson via cfe-commits
https://github.com/aemerson updated https://github.com/llvm/llvm-project/pull/98073 >From d7a8f55b0790b15060f73f188ce97c83fe75f62d Mon Sep 17 00:00:00 2001 From: Amara Emerson Date: Mon, 8 Jul 2024 10:09:06 -0700 Subject: [PATCH 1/4] [AArch64] Add -mlr-for-calls-only to replace the now removed

[clang] [clang][doc] Improve error handling for `LibTooling` example code avoiding core dump (PR #98129)

2024-07-09 Thread nick huang via cfe-commits
nickhuang99 wrote: > @nickhuang99 Could you land this for me? Sure. Do I need to do anything? https://github.com/llvm/llvm-project/pull/98129 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

[clang] Implement resource binding type prefix mismatch diagnostic infrastructure (PR #97103)

2024-07-09 Thread Joshua Batista via cfe-commits
@@ -0,0 +1,104 @@ +// RUN: %clang_cc1 -triple dxil-pc-shadermodel6.3-library -x hlsl -o - -fsyntax-only %s -verify + +// TODO: Implement "Buffer" +struct Eg1 { + float f; + // Buffer Buf; + RWBuffer RWBuf; + }; +Eg1 e1 : /* register(t0) :*/ register(u0); +// Valid: f is skip

[clang] [msan] Precommit MSan Arm NEON vst tests (PR #98247)

2024-07-09 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Thurston Dang (thurstond) Changes These tests show that MSan currently does not handle vst (or vld) correctly. --- Patch is 1.22 MiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/98247.diff 2 Fi

[clang] [libcxx] [Clang] Implement resolution for CWG1835 (PR #92957)

2024-07-09 Thread LLVM Continuous Integration via cfe-commits
llvm-ci wrote: LLVM Buildbot has detected a new failure on builder `ppc64le-lld-multistage-test` running on `ppc64le-lld-multistage-test` while building `clang,libcxx` at step 12 "build-stage2-unified-tree". Full details are available at: https://lab.llvm.org/buildbot/#/builders/168/builds/86

[clang] [llvm] demangle function names in trace files (PR #87626)

2024-07-09 Thread via cfe-commits
Trass3r wrote: @jamieschmeiser ping https://github.com/llvm/llvm-project/pull/87626 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [RISCV] Add ability to list extensions enabled for a target (PR #98207)

2024-07-09 Thread Craig Topper via cfe-commits
@@ -116,6 +115,44 @@ void llvm::riscvExtensionsHelp(StringMap DescMap) { "For example, clang -march=rv32i_v1p0\n"; } +void RISCVISAInfo::printEnabledExtensions( +bool IsRV64, std::set &EnabledFeatureNames, +StringMap &DescMap) { + outs() << "Extensions en

[clang] [clang][CGRecordLayout] Remove dependency on isZeroSize (PR #96422)

2024-07-09 Thread Michael Buch via cfe-commits
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/96422 >From 07e603f7afc98e5af31962a5b1f44f4e4c079ebb Mon Sep 17 00:00:00 2001 From: Michael Buch Date: Fri, 21 Jun 2024 12:15:07 +0100 Subject: [PATCH 01/12] [clang][CGRecordLayout] Remove dependency on isZeroSize

[clang] [C23] Add *_NORM_MAX macros to (PR #96643)

2024-07-09 Thread Hubert Tong via cfe-commits
@@ -113,7 +113,11 @@ static T PickFP(const llvm::fltSemantics *Sem, T IEEEHalfVal, T IEEESingleVal, static void DefineFloatMacros(MacroBuilder &Builder, StringRef Prefix, const llvm::fltSemantics *Sem, StringRef Ext) { - const char *DenormMin, *

[clang] [libcxx] [Clang] Implement resolution for CWG1835 (PR #92957)

2024-07-09 Thread Krystian Stasiowski via cfe-commits
https://github.com/sdkrystian closed https://github.com/llvm/llvm-project/pull/92957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

  1   2   3   4   5   >