Re: [PATCH] D21545: CodeGen: Replace ThinLTO backend implementation with a client of LTO/Resolution.

2016-07-14 Thread Peter Collingbourne via cfe-commits
pcc marked an inline comment as done. pcc added a comment. https://reviews.llvm.org/D21545 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r275507 - Frontend: Simplify ownership model for clang's output streams.

2016-07-14 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Thu Jul 14 19:55:40 2016 New Revision: 275507 URL: http://llvm.org/viewvc/llvm-project?rev=275507&view=rev Log: Frontend: Simplify ownership model for clang's output streams. This changes the CompilerInstance::createOutputFile function to return a std::unique_ptr, rather than an

Re: [PATCH] D21537: Frontend: Simplify ownership model for clang's output streams.

2016-07-14 Thread Peter Collingbourne via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL275507: Frontend: Simplify ownership model for clang's output streams. (authored by pcc). Changed prior to commit: https://reviews.llvm.org/D21537?vs=61317&id=64071#toc Repository: rL LLVM https://r

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-04 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: include/clang/Basic/Attr.td:1543 @@ +1542,3 @@ + let Subjects = SubjectList<[Record]>; + let Documentation = [Undocumented]; +} aaron.ballman wrote: > No new undocumented attributes, please. Same below. Yes, sorry, forgot t

Re: [PATCH] D17360: [cfi] Fix handling of sanitize trap/recover flags in the cross-DSO CFI mode.

2016-03-10 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM Comment at: lib/CodeGen/CGExpr.cpp:2484-2485 @@ -2483,3 +2483,4 @@ CheckRecoverableKind RecoverKind = getRecoverableKind(Checked[0].second); // In cross-DSO CFI mode this

[PATCH] D18071: CodeGen: Mark runtime functions with reserved names as unnamed_addr.

2016-03-10 Thread Peter Collingbourne via cfe-commits
pcc created this revision. pcc added reviewers: rsmith, rjmccall. pcc added a subscriber: cfe-commits. User programs shouldn't be able to observe their addresses without invoking undefined behavior. This will be needed to create relative references to runtime functions __cxa_pure_virtual and __cxa

Re: [PATCH] D18071: CodeGen: Mark runtime functions with reserved names as unnamed_addr.

2016-03-11 Thread Peter Collingbourne via cfe-commits
pcc added subscribers: majnemer, rnk. pcc added a comment. Done (this also affects `_purecall` in the MS ABI; I don't think this change should break anything there, but someone working on that might want to comment). Since this patch is now specific to virtual tables anyway, I've incorporated a

Re: [PATCH] D18071: CodeGen: Mark runtime functions with reserved names as unnamed_addr.

2016-03-11 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 50500. pcc added a comment. Restrict to functions referenced in virtual tables http://reviews.llvm.org/D18071 Files: lib/CodeGen/CGVTables.cpp lib/CodeGen/CodeGenModule.cpp test/CodeGenCXX/virtual-function-attrs.cpp test/CodeGenCXX/vtt-layout.cpp Index

[PATCH] D18113: CodeGen: Use 32-bit gep offsets to address vtable address points.

2016-03-11 Thread Peter Collingbourne via cfe-commits
pcc created this revision. pcc added reviewers: rsmith, rjmccall. pcc added a subscriber: cfe-commits. The relative vtable ABI will use a struct rather than an array as the type of a vtable. LLVM only allows 32-bit integers as struct indices, so we need to use 32-bit integers to get addresses of a

Re: [PATCH] D18071: CodeGen: Mark functions used in vtables as unnamed_addr.

2016-03-14 Thread Peter Collingbourne via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL263464: CodeGen: Mark functions used in vtables as unnamed_addr. (authored by pcc). Changed prior to commit: http://reviews.llvm.org/D18071?vs=50500&id=50622#toc Repository: rL LLVM http://reviews.l

r263464 - CodeGen: Mark functions used in vtables as unnamed_addr.

2016-03-14 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Mon Mar 14 13:41:59 2016 New Revision: 263464 URL: http://llvm.org/viewvc/llvm-project?rev=263464&view=rev Log: CodeGen: Mark functions used in vtables as unnamed_addr. This marks virtual function declarations, as well as runtime library functions __cxa_pure_virtual, __cxa_delet

r263469 - CodeGen: Use 32-bit gep offsets to address vtable address points.

2016-03-14 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Mon Mar 14 14:07:10 2016 New Revision: 263469 URL: http://llvm.org/viewvc/llvm-project?rev=263469&view=rev Log: CodeGen: Use 32-bit gep offsets to address vtable address points. The relative vtable ABI will use a struct rather than an array as the type of a vtable. LLVM only all

Re: [PATCH] D18113: CodeGen: Use 32-bit gep offsets to address vtable address points.

2016-03-14 Thread Peter Collingbourne via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL263469: CodeGen: Use 32-bit gep offsets to address vtable address points. (authored by pcc). Changed prior to commit: http://reviews.llvm.org/D18113?vs=50506&id=50626#toc Repository: rL LLVM http://

r263477 - Relax test introduced in r263464 to accept ARM ABI output.

2016-03-14 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Mon Mar 14 15:13:59 2016 New Revision: 263477 URL: http://llvm.org/viewvc/llvm-project?rev=263477&view=rev Log: Relax test introduced in r263464 to accept ARM ABI output. Should fix ARM bots. Modified: cfe/trunk/test/CodeGenCXX/virtual-function-attrs.cpp Modified: cfe/trun

Re: r263464 - CodeGen: Mark functions used in vtables as unnamed_addr.

2016-03-14 Thread Peter Collingbourne via cfe-commits
Yes, and r263477 was the fix. Peter On Mar 14, 2016 13:59, "Renato Golin" wrote: > On 14 March 2016 at 18:42, Peter Collingbourne via cfe-commits > wrote: > > Author: pcc > > Date: Mon Mar 14 13:41:59 2016 > > New Revision: 263464 > > > > URL:

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-14 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 50667. pcc marked 3 inline comments as done. pcc added a comment. - Address review comments http://reviews.llvm.org/D17893 Files: include/clang/AST/DeclCXX.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticSemaK

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-14 Thread Peter Collingbourne via cfe-commits
pcc added a comment. > Missing some attribute-related tests like attaching the attribute to > something other than a record, or passing arguments to the attribute. Added. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8345 @@ +8344,3 @@ +def note_add_unstable_abi_attr

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-14 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 50668. pcc added a comment. - Add a test for passing arguments to the attribute http://reviews.llvm.org/D17893 Files: include/clang/AST/DeclCXX.h include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Basic/DiagnosticSemaKinds.td in

[PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-15 Thread Peter Collingbourne via cfe-commits
pcc created this revision. pcc added reviewers: rjmccall, rsmith, rafael, joker.eph, majnemer, rnk. pcc added a subscriber: cfe-commits. Also add documentation for the new feature. The new IR scheme for virtual calls (http://lists.llvm.org/pipermail/llvm-dev/2016-February/096146.html) will be imp

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-18 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/ItaniumCXXABI.cpp:1627 @@ +1626,3 @@ + +llvm::Value *CodeGenFunction::GetVirtualFunctionFromVTable(const CXXRecordDecl *RD, + llvm::Value *VTable, rnk wro

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 50998. pcc added a comment. - Update test to match committed debug info change http://reviews.llvm.org/D18199 Files: docs/UsersManual.rst lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGVTables.cpp lib/CodeGen/CGVTables.h lib/CodeGen/CodeGenFunction.h lib

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc added a comment. There's a correctness issue with this change that I'll need to resolve before this goes in; see http://lists.llvm.org/pipermail/cfe-dev/2016-March/048025.html http://reviews.llvm.org/D18199 ___ cfe-commits mailing list cfe-comm

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:4935-4943 @@ +4934,11 @@ + + bool HasStableAttr = Record->hasAttr(); + bool HasUnstableAttr = Record->hasAttr(); + if (HasStableAttr && HasUnstableAttr) { +Diag(Record->getLocation(), diag::err_abi_mismatch) <<

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 50905. pcc added a comment. - Do not set virtual index in debug info for relative-ABI virtual functions http://reviews.llvm.org/D18199 Files: docs/UsersManual.rst lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGVTables.cpp lib/CodeGen/CGVTables.h lib/CodeGe

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:8380 @@ +8379,3 @@ +def warn_unused_abi_stability_attr : Warning< + "unused C++ ABI stability attribute on non-dynamic class">, + InGroup>; rsmith wrote: > How valuable is it to wa

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:4935-4943 @@ +4934,11 @@ + + bool HasStableAttr = Record->hasAttr(); + bool HasUnstableAttr = Record->hasAttr(); + if (HasStableAttr && HasUnstableAttr) { +Diag(Record->getLocation(), diag::err_abi_mismatch) <<

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/CGDebugInfo.cpp:1153 @@ -1152,3 +1152,3 @@ unsigned Virtuality = 0; - unsigned VIndex = 0; + unsigned VIndex = -1u; rsmith wrote: > Is this what debug info consumers expect for the non-virtual case? The deb

Re: [PATCH] D17893: Sema: Add semantic analysis for the C++ ABI stability attributes and whitelist.

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/Sema/SemaDeclCXX.cpp:4999 @@ +4998,3 @@ +return; + } + joker.eph wrote: > joker.eph wrote: > > Isn't this correct by the loop which starts with `DC = InnermostExternalDC`? > `s/correct/already covered/` That loop che

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-19 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 51061. pcc added a comment. - Use a vindex of 0 for non-virtuals http://reviews.llvm.org/D18199 Files: docs/UsersManual.rst lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGVTables.cpp lib/CodeGen/CGVTables.h lib/CodeGen/CodeGenFunction.h lib/CodeGen/Itani

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-22 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 51324. pcc added a comment. - Use llvm.load.relative (http://reviews.llvm.org/D18367) http://reviews.llvm.org/D18199 Files: docs/UsersManual.rst lib/CodeGen/CGClass.cpp lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGVTables.cpp lib/CodeGen/CGVTables.h li

Re: [PATCH] D18199: CodeGen: Implement IR generation for the relative vtable ABI (PR26723).

2016-03-24 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 51580. pcc added a comment. - Compute a correct byte offset for struct vtable bitsets http://reviews.llvm.org/D18199 Files: docs/UsersManual.rst lib/CodeGen/CGClass.cpp lib/CodeGen/CGDebugInfo.cpp lib/CodeGen/CGVTables.cpp lib/CodeGen/CGVTables.h li

[PATCH] D15985: AST: Support constant folding of variables of const pointer type.

2016-01-07 Thread Peter Collingbourne via cfe-commits
pcc created this revision. pcc added a reviewer: rsmith. pcc added a subscriber: cfe-commits. http://reviews.llvm.org/D15985 Files: lib/AST/ExprConstant.cpp test/CodeGenCXX/global-init.cpp Index: test/CodeGenCXX/global-init.cpp

Re: [PATCH] D15699: [cfi] Cross-DSO CFI diagnostic mode (clang part)

2016-01-12 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2620 @@ +2619,3 @@ + Builder.CreateICmpEQ(Data, llvm::ConstantPointerNull::get(Int8PtrTy)); + Builder.CreateCondBr(DataIsNullPtr, TrapBB, ContBB); + This looks like `CodeGenFunction::EmitTrapCheck

r257738 - CodeGen: Only emit CFI unrelated cast checks for bit casts.

2016-01-13 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed Jan 13 20:49:48 2016 New Revision: 257738 URL: http://llvm.org/viewvc/llvm-project?rev=257738&view=rev Log: CodeGen: Only emit CFI unrelated cast checks for bit casts. We were previously emitting them for no-op casts (e.g. implicit casts to const). Modified: cfe/trunk/l

r257739 - Driver: Remove SanitizerArgs::clear() function and SanitizerSet ctor,

2016-01-13 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Wed Jan 13 20:49:51 2016 New Revision: 257739 URL: http://llvm.org/viewvc/llvm-project?rev=257739&view=rev Log: Driver: Remove SanitizerArgs::clear() function and SanitizerSet ctor, replace with in-class initializers. Modified: cfe/trunk/include/clang/Basic/Sanitizers.h

[PATCH] D16175: Introduce -fsanitize-stats flag.

2016-01-13 Thread Peter Collingbourne via cfe-commits
pcc created this revision. pcc added reviewers: kcc, eugenis. pcc added a subscriber: cfe-commits. This is part of a new statistics gathering feature for the sanitizers. See clang/docs/SanitizerStats.rst for further info and docs. http://reviews.llvm.org/D16175 Files: docs/SanitizerStats.rst

Re: [PATCH] D16175: Introduce -fsanitize-stats flag.

2016-01-14 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 44936. pcc added a comment. - Switch to an alternative in-memory representation that avoids the need for linker magic http://reviews.llvm.org/D16175 Files: docs/SanitizerStats.rst docs/UsersManual.rst docs/index.rst include/clang/AST/ASTConsumer.h in

Re: [PATCH] D16175: Introduce -fsanitize-stats flag.

2016-01-14 Thread Peter Collingbourne via cfe-commits
pcc updated this revision to Diff 44945. pcc marked an inline comment as done. pcc added a comment. - Add note about win32 function name mangling - Stop using -whole-archive to link the stats runtime http://reviews.llvm.org/D16175 Files: docs/SanitizerStats.rst docs/UsersManual.rst docs/i

r257971 - Introduce -fsanitize-stats flag.

2016-01-15 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Jan 15 18:31:22 2016 New Revision: 257971 URL: http://llvm.org/viewvc/llvm-project?rev=257971&view=rev Log: Introduce -fsanitize-stats flag. This is part of a new statistics gathering feature for the sanitizers. See clang/docs/SanitizerStats.rst for further info and docs. D

Re: [PATCH] D16175: Introduce -fsanitize-stats flag.

2016-01-15 Thread Peter Collingbourne via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL257971: Introduce -fsanitize-stats flag. (authored by pcc). Changed prior to commit: http://reviews.llvm.org/D16175?vs=44945&id=45056#toc Repository: rL LLVM http://reviews.llvm.org/D16175 Files:

Re: [PATCH] D16496: [cfi] Do not emit bit set entry for available_externally vtables.

2016-01-22 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM Repository: rL LLVM http://reviews.llvm.org/D16496 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

Re: [PATCH] D15699: [cfi] Cross-DSO CFI diagnostic mode (clang part)

2016-01-25 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM Comment at: test/CodeGen/cfi-check-fail.c:17 @@ +16,3 @@ + +// CHECK: [[TRAP]]: +// CHECK-NEXT: call void @llvm.trap() Does this match in a -asserts build?

r253707 - Driver: Defer computation of linker path until it is needed.

2015-11-20 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Nov 20 14:49:39 2015 New Revision: 253707 URL: http://llvm.org/viewvc/llvm-project?rev=253707&view=rev Log: Driver: Defer computation of linker path until it is needed. This allows us to construct Linux toolchains without a valid linker. This is needed for example to build a

r254464 - docs: Add design documentation for forward-edge CFI for indirect calls.

2015-12-01 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Tue Dec 1 15:58:54 2015 New Revision: 254464 URL: http://llvm.org/viewvc/llvm-project?rev=254464&view=rev Log: docs: Add design documentation for forward-edge CFI for indirect calls. Modified: cfe/trunk/docs/ControlFlowIntegrityDesign.rst Modified: cfe/trunk/docs/ControlFl

Re: [PATCH] D15237: [Docs] Use proper headling levels in CFI doc.

2015-12-04 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: docs/ControlFlowIntegrity.rst:23 @@ -22,6 +22,3 @@ To enable Clang's available CFI schemes, use the flag ``-fsanitize=cfi``. -As currently implemented, all of Clang's CFI schemes (``cfi-vcall``, -``cfi-derived-cast``, ``cfi-unrelated-cast``,

Re: [PATCH] D15237: [Docs] Use proper headling levels in CFI doc.

2015-12-04 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM http://reviews.llvm.org/D15237 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15367: Cross-DSO control flow integrity (Clang part)

2015-12-09 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/CGExpr.cpp:2558 @@ +2557,3 @@ + false)); + llvm::MDString *MDS = dyn_cast(MD); + llvm::Constant *TypeId = What happens if `MD` is not an `MDString`? Comment at: lib/CodeGen/CodeGenModu

r255393 - docs: Document -fno-sanitize-trap= and -fsanitize-recover= flags for CFI.

2015-12-11 Thread Peter Collingbourne via cfe-commits
Author: pcc Date: Fri Dec 11 17:54:18 2015 New Revision: 255393 URL: http://llvm.org/viewvc/llvm-project?rev=255393&view=rev Log: docs: Document -fno-sanitize-trap= and -fsanitize-recover= flags for CFI. Modified: cfe/trunk/docs/ControlFlowIntegrity.rst Modified: cfe/trunk/docs/ControlFlowIn

Re: [PATCH] D15367: Cross-DSO control flow integrity (Clang part)

2015-12-11 Thread Peter Collingbourne via cfe-commits
pcc added inline comments. Comment at: lib/CodeGen/CGClass.cpp:2564 @@ -2563,16 +2563,3 @@ - SanitizerMask M; - switch (TCK) { - case CFITCK_VCall: -M = SanitizerKind::CFIVCall; -break; - case CFITCK_NVCall: -M = SanitizerKind::CFINVCall; -break; - case CFIT

Re: [PATCH] D15367: Cross-DSO control flow integrity (Clang part)

2015-12-14 Thread Peter Collingbourne via cfe-commits
pcc added a comment. Please add documentation. At the very least please document flags in `docs/ControlFlowIntegrity.rst` and `docs/UsersManual.rst`. We should also document the design in `docs/ControlFlowIntegrityDesign.rst`. Comment at: lib/CodeGen/CGExpr.cpp:3868 @@ +3867,3

Re: [PATCH] D15367: Cross-DSO control flow integrity (Clang part)

2015-12-15 Thread Peter Collingbourne via cfe-commits
pcc accepted this revision. pcc added a comment. This revision is now accepted and ready to land. LGTM modulo some wordsmithing in the documentation. Comment at: docs/ControlFlowIntegrity.rst:31 @@ +30,3 @@ +enabled, and are statically linked into the program. This may preclude

Re: [PATCH] D15367: Cross-DSO control flow integrity (Clang part)

2015-12-15 Thread Peter Collingbourne via cfe-commits
pcc added a comment. LGTM Comment at: docs/ControlFlowIntegrityDesign.rst:389 @@ +388,3 @@ + - Calls between different instrumented DSOs are also protected, with + performance penalty (in addition to the monolithic CFI overhead). + - Calls from an instrumented DSO to an un

[clang] [llvm] [MTE] decide whether to tag global in AsmPrinter (PR #135891)

2025-04-18 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc approved this pull request. > > Should we add AsmPrinter tests to replace the ones we're removing from > > Clang? > > We have memtag-globals-asm.cpp I see, that's fine then. https://github.com/llvm/llvm-project/pull/135891 ___

[clang] [llvm] [MTE] decide whether to tag global in AsmPrinter (PR #135891)

2025-04-16 Thread Peter Collingbourne via cfe-commits
pcc wrote: Should we add AsmPrinter tests to replace the ones we're removing from Clang? https://github.com/llvm/llvm-project/pull/135891 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commit

[clang] Clarify documentation for -funique-source-file-names. (PR #135832)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/135832 >From 6d04789998482be11d15e8969c54df0375987a60 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 15 Apr 2025 11:27:48 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?

[clang] Clarify documentation for -funique-source-file-names. (PR #135832)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc commented: Will leave this for a bit in case @efriedma-quic has any comments https://github.com/llvm/llvm-project/pull/135832 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo

[clang] Clarify documentation for -funique-source-file-names. (PR #135832)

2025-04-15 Thread Peter Collingbourne via cfe-commits
@@ -2301,11 +2301,31 @@ are listed below. When enabled, allows the compiler to assume that each object file passed to the linker has been compiled using a unique source file - name. This is useful for reducing link times when doing ThinLTO + path. This is useful for

[clang] Clarify documentation for -funique-source-file-names. (PR #135832)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/135832 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clarify documentation for -funique-source-file-names. (PR #135832)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc closed https://github.com/llvm/llvm-project/pull/135832 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Introduce -funique-source-file-names flag. (PR #135728)

2025-04-15 Thread Peter Collingbourne via cfe-commits
pcc wrote: https://github.com/llvm/llvm-project/pull/135832 https://github.com/llvm/llvm-project/pull/135728 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Clarify documentation for -funique-source-file-names. (PR #135832)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc created https://github.com/llvm/llvm-project/pull/135832 None >From 6d04789998482be11d15e8969c54df0375987a60 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Tue, 15 Apr 2025 11:27:48 -0700 Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia

[clang] [llvm] Introduce -funique-source-file-names flag. (PR #135728)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/135728 >From 4ddc4d6fcd938b66cce586c18a9e165c6d065121 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Mon, 14 Apr 2025 19:04:00 -0700 Subject: [PATCH 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?= =?

[clang] [llvm] Introduce -funique-source-file-names flag. (PR #135728)

2025-04-15 Thread Peter Collingbourne via cfe-commits
pcc wrote: > Could that be addressed by only allowing this flag under LTO? `-fsanitize=address -flto=thin` would have the same issue (if there is indeed an issue, which I think there probably isn't). > Probably at least add a note to the new documentation for the option that it > will result

[clang] [llvm] Introduce -funique-source-file-names flag. (PR #135728)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc closed https://github.com/llvm/llvm-project/pull/135728 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] Introduce -funique-source-file-names flag. (PR #135728)

2025-04-15 Thread Peter Collingbourne via cfe-commits
pcc wrote: > Is the "name" in this context the whole path? Or just the filename? I know > many projects have files with the same name in different folders (including > LLVM itsef). It is the whole path. Let me clarify this in the documentation. https://github.com/llvm/llvm-project/pull/135728

[clang] 984ec70 - Minor documentation update.

2025-04-14 Thread Peter Collingbourne via cfe-commits
Author: Peter Collingbourne Date: 2025-04-14T19:50:37-07:00 New Revision: 984ec70b61cb57b00e622a21b259aaf11775c5f0 URL: https://github.com/llvm/llvm-project/commit/984ec70b61cb57b00e622a21b259aaf11775c5f0 DIFF: https://github.com/llvm/llvm-project/commit/984ec70b61cb57b00e622a21b259aaf11775c5f0

[clang] [llvm] Introduce -funique-source-file-names flag. (PR #135728)

2025-04-15 Thread Peter Collingbourne via cfe-commits
@@ -345,27 +345,25 @@ void llvm::filterDeadComdatFunctions( std::string llvm::getUniqueModuleId(Module *M) { MD5 Md5; - bool ExportsSymbols = false; - auto AddGlobal = [&](GlobalValue &GV) { -if (GV.isDeclaration() || GV.getName().starts_with("llvm.") || -!GV.h

[clang] [llvm] LowerTypeTests: Fix quadratic complexity. (PR #135875)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc edited https://github.com/llvm/llvm-project/pull/135875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] LowerTypeTests: Fix quadratic complexity. (PR #135875)

2025-04-15 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc closed https://github.com/llvm/llvm-project/pull/135875 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [llvm] [MTE] generalize overalignment / size of MTE globals (PR #121957)

2025-03-05 Thread Peter Collingbourne via cfe-commits
https://github.com/pcc approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/121957 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

<    1   2   3   4