[clang] [llvm] [Clang] Add env var for nvptx-arch/amdgpu-arch timeout (PR #102521)

2024-08-08 Thread Joseph Huber via cfe-commits
https://github.com/jhuber6 edited https://github.com/llvm/llvm-project/pull/102521 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [ARM][AArch64] BTI, GCS, PAC Module flag update. (PR #86212)

2024-08-08 Thread Daniel Kiss via cfe-commits
https://github.com/DanielKristofKiss updated https://github.com/llvm/llvm-project/pull/86212 >From f2f3356da08d68dab4431f49d0921515560e4927 Mon Sep 17 00:00:00 2001 From: Daniel Kiss Date: Fri, 8 Mar 2024 15:06:28 +0100 Subject: [PATCH 1/2] BTI,GCS,PAC Module flag update. Module flag is used t

[clang] [llvm] [Clang] Add env var for nvptx-arch/amdgpu-arch timeout (PR #102521)

2024-08-08 Thread Joseph Huber via cfe-commits
jhuber6 wrote: Also, just be aware that if you set this, it will apply to everything. So if you had a particularly long link job, probably would be a good idea to make it wait forever. https://github.com/llvm/llvm-project/pull/102521 ___ cfe-commits

[clang] [llvm] [PAC] Fix address discrimination for type info vtable pointers (PR #102199)

2024-08-08 Thread Eli Friedman via cfe-commits
@@ -1056,12 +1056,18 @@ class ConstantPtrAuth final : public Constant { return !getAddrDiscriminator()->isNullValue(); } - /// A constant value for the address discriminator which has special - /// significance to ctors/dtors lowering. Regular address discrimination c

[clang] [llvm] [Clang] Add env var for nvptx-arch/amdgpu-arch timeout (PR #102521)

2024-08-08 Thread Joel E. Denny via cfe-commits
jdenny-ornl wrote: > Also, just be aware that if you set this, it will apply to everything. So if > you had a particularly long link job, probably would be a good idea to make > it wait forever. Not sure I understand. grep found 2 uses of executeToolChainProgram: calling amdgpu-arch and nvpt

[clang] [llvm] [Clang] Add env var for nvptx-arch/amdgpu-arch timeout (PR #102521)

2024-08-08 Thread Joseph Huber via cfe-commits
jhuber6 wrote: > > Also, just be aware that if you set this, it will apply to everything. So > > if you had a particularly long link job, probably would be a good idea to > > make it wait forever. > > Not sure I understand. grep found 2 uses of executeToolChainProgram: calling > amdgpu-arch a

[clang] [llvm] workflows/release-binaries: Enable flang builds on Windows (PR #101344)

2024-08-08 Thread Nikita Popov via cfe-commits
@@ -47,11 +47,17 @@ set(LLVM_TARGETS_TO_BUILD Native CACHE STRING "") set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "") set(STAGE1_PROJECTS "clang") -set(STAGE1_RUNTIMES "") + +# Building Flang on Windows requires compiler-rt, so we need to build it in +# stage1. compiler-rt is al

[clang] [clang-format] Adjust requires clause wrapping (#101550) (PR #102078)

2024-08-08 Thread Nathan Sidwell via cfe-commits
https://github.com/urnathan updated https://github.com/llvm/llvm-project/pull/102078 >From 193e704ea21251ea639bfb733671b4047c93c4ea Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Sun, 4 Aug 2024 19:15:20 -0400 Subject: [PATCH 1/2] [clang-format] Adjust requires clause wrapping (#101550) A

[clang] [clang-format] Adjust requires clause wrapping (#101550) (PR #102078)

2024-08-08 Thread Nathan Sidwell via cfe-commits
urnathan wrote: > But that would be the way to go, add an option to the enum, don't change the > existing behavior. Sure -- I thought I'd shoot for the simplest change first :) Here's an update that adds `OwnLineWithBrace`, which is like `OwnLine` except it also allows a trailing `{` (and any

[clang] #101784 part 1: introduce ctyped in an independent manner (PR #101941)

2024-08-08 Thread Vlad Serebrennikov via cfe-commits
Endilll wrote: > Good point about the restype for clang_Cursor_getTemplateArgumentKind though, > I didn't notice and we should probably change that Yes, I'd like us to stop relying on that for the same reason I don't like `errcheck`. The fact that it's deprecated further adds to it. > I don't

[clang] [clang] Stop adjusting the module cache path (PR #102540)

2024-08-08 Thread Jan Svoboda via cfe-commits
https://github.com/jansvoboda11 created https://github.com/llvm/llvm-project/pull/102540 This patch stops adjustments of the module cache path beyond what is done in `ParseHeaderSearchArgs` (making it absolute and removing dots). This enables more efficient implementation of the caching VFS in

[clang] [clang] Stop adjusting the module cache path (PR #102540)

2024-08-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Jan Svoboda (jansvoboda11) Changes This patch stops adjustments of the module cache path beyond what is done in `ParseHeaderSearchArgs` (making it absolute and removing dots). This enables more efficient implementation of the caching VFS

[clang] [clang][deps] Only bypass scanning VFS for the module cache (PR #88800)

2024-08-08 Thread Jan Svoboda via cfe-commits
@@ -201,11 +201,8 @@ const CachedRealPath &DependencyScanningFilesystemSharedCache::CacheShard:: return *StoredRealPath; } -static bool shouldCacheStatFailures(StringRef Filename) { - StringRef Ext = llvm::sys::path::extension(Filename); - if (Ext.empty()) -return fal

[clang] [Clang] Reuse tail-padding for more types that are not POD for the purpose of layout (PR #90462)

2024-08-08 Thread Hubert Tong via cfe-commits
hubert-reinterpretcast wrote: > @hubert-reinterpretcast There were none, now I've added some: > https://github.com/llvm/llvm-project/blob/cf8be1bac0eb37caaaecd47cb463ca58ee0fbe59/clang/test/Layout/itanium-padded-bit-field.cpp Thanks. I am a bit concerned that the fix to match the Itanium ABI on

[clang-tools-extra] clang-tidy: readability-redundant-smartptr-get does not remove (#97964) (PR #100177)

2024-08-08 Thread via cfe-commits
https://github.com/akshaykumars614 updated https://github.com/llvm/llvm-project/pull/100177 >From a9850211dae37e5b3d0cbbaf7eb25435ad8810f9 Mon Sep 17 00:00:00 2001 From: akshaykumars614 Date: Tue, 23 Jul 2024 14:32:24 -0400 Subject: [PATCH 1/5] clang-tidy: readability-redundant-smartptr-get doe

[clang] [llvm] [llvm][support] Implement tracing virtual file system (PR #88326)

2024-08-08 Thread Jan Svoboda via cfe-commits
@@ -1125,6 +1125,54 @@ class YAMLVFSWriter { void write(llvm::raw_ostream &OS); }; +/// File system that tracks the number of calls to the underlying file system. +/// This is particularly useful when wrapped around \c RealFileSystem to add +/// lightweight tracking of expen

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-08 Thread Fangrui Song via cfe-commits
@@ -2507,6 +2507,7 @@ static void CollectArgsForIntegratedAssembler(Compilation &C, bool Crel = false, ExperimentalCrel = false; bool UseRelaxRelocations = C.getDefaultToolChain().useRelaxRelocations(); bool UseNoExecStack = false; + bool Msa = false; M

[clang] [attributes][-Wunsafe-buffer-usage] Support adding unsafe_buffer_usage attribute to struct fields (PR #101585)

2024-08-08 Thread Malavika Samak via cfe-commits
@@ -0,0 +1,113 @@ +// RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage \ +// RUN:-fsafe-buffer-usage-suggestions -verify %s + +using size_t = __typeof(sizeof(int)); + +namespace std { + class type_info; + class bad_cast; + class bad_typeid; + + template class span

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-08 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,28 @@ +// RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \ +// RUN: -Wa,-mmsa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-MMSA +// CHECK-MMSA: "-cc1" {{.*}}"-mmsa" +// MaskRay wrote: drop `^//$` lines. Just use one single blan

[clang] [attributes][-Wunsafe-buffer-usage] Support adding unsafe_buffer_usage attribute to struct fields (PR #101585)

2024-08-08 Thread Malavika Samak via cfe-commits
@@ -0,0 +1,113 @@ +// RUN: %clang_cc1 -std=c++20 -Wunsafe-buffer-usage \ +// RUN:-fsafe-buffer-usage-suggestions -verify %s + +using size_t = __typeof(sizeof(int)); + +namespace std { + class type_info; + class bad_cast; + class bad_typeid; + + template class span

[clang] [clang] Support -Wa, options -mmsa and -mno-msa (PR #99615)

2024-08-08 Thread Fangrui Song via cfe-commits
@@ -0,0 +1,28 @@ +// RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \ +// RUN: -Wa,-mmsa %s -Werror 2>&1 | FileCheck %s --check-prefix=CHECK-MMSA +// CHECK-MMSA: "-cc1" {{.*}}"-mmsa" +// +// +// RUN: %clang -### -c --target=mips64el-unknown-linux-gnuabi64 \ +// R

<    1   2   3   4   5