[PATCH] D107082: [X86][RFC] Enable `_Float16` type support on X86 following the psABI

2022-06-08 Thread LuoYuanke via Phabricator via cfe-commits
LuoYuanke added inline comments. Comment at: llvm/test/CodeGen/X86/fpclamptosat.ll:569 ; CHECK-NEXT:cvttss2si %xmm0, %rax ; CHECK-NEXT:ucomiss {{\.?LCPI[0-9]+_[0-9]+}}(%rip), %xmm0 +; CHECK-NEXT:movabsq $-9223372036854775808, %rcx # imm = 0x8000

[PATCH] D126743: [RISCV][Clang] Add tests for all supported policy functions. (NFC)

2022-06-08 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 accepted this revision. rogfer01 added a comment. This revision is now accepted and ready to land. This is a huge number of test changes so I have checked a subset of files but the changes seems reasonable, as I imagine they're generated mechanically. We seem to be internally consistent

[clang] 7e17e15 - clang: Introduce -fexperimental-max-bitint-width

2022-06-08 Thread Matthias Gehre via cfe-commits
Author: Matthias Gehre Date: 2022-06-09T07:15:03+01:00 New Revision: 7e17e15c9f01a04283524c6a6735d639aac39fe6 URL: https://github.com/llvm/llvm-project/commit/7e17e15c9f01a04283524c6a6735d639aac39fe6 DIFF: https://github.com/llvm/llvm-project/commit/7e17e15c9f01a04283524c6a6735d639aac39fe6.diff

[PATCH] D127366: [clang-format][NFC] Format lib/Format and unittests/Format in clang

2022-06-08 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius accepted this revision. curdeius added a comment. This revision is now accepted and ready to land. LGTM. Comment at: clang/unittests/Format/FormatTest.cpp:25442 "} while (hasMore() && Filter(*I));", - "do { ++I; } while (hasMore() && Filte

[PATCH] D126461: [RISCV] Extract and store new vl of vleff iff destination isn't null

2022-06-08 Thread Wang Pengcheng via Phabricator via cfe-commits
pcwang-thead added a comment. In D126461#3566626 , @khchen wrote: > IMO, if I'm an user, I would not expected intrinsic function will generate > the condition code to impact the performance, maybe we need to raise a issue > in rvv-intrinsic-doc. > maybe

[PATCH] D126741: [RISCV][Clang] Refactor RISCVVEmitter. (NFC)

2022-06-08 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 accepted this revision. rogfer01 added a comment. This revision is now accepted and ready to land. LGTM. Thanks @khchen ! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126741/new/ https://reviews.llvm.org/D126741 _

[PATCH] D126740: [RISCV][Clang] Refactor and rename rvv intrinsic related stuff. (NFC)

2022-06-08 Thread Roger Ferrer Ibanez via Phabricator via cfe-commits
rogfer01 accepted this revision. rogfer01 added a comment. This revision is now accepted and ready to land. LGTM. Thanks @khchen ! (I was a bit confused by the refactoring of `computeBuiltinTypes` but it is definitely better this way) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST A

[PATCH] D127338: [Clang][CoverageMapping] Fix compile time explosions by adjusting only appropriated skipped ranges

2022-06-08 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGe6a76a49356e: [Clang][CoverageMapping] Fix compile time explosions by adjusting only… (authored by bruno). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D1273

[clang] e6a76a4 - [Clang][CoverageMapping] Fix compile time explosions by adjusting only appropriated skipped ranges

2022-06-08 Thread Bruno Cardoso Lopes via cfe-commits
Author: Bruno Cardoso Lopes Date: 2022-06-08T23:13:39-07:00 New Revision: e6a76a49356efd11f5f36690181f0f60cecb2e01 URL: https://github.com/llvm/llvm-project/commit/e6a76a49356efd11f5f36690181f0f60cecb2e01 DIFF: https://github.com/llvm/llvm-project/commit/e6a76a49356efd11f5f36690181f0f60cecb2e01

[PATCH] D127379: [Lex] Keep track of skipped preprocessor blocks and advance the lexer directly if they are revisited

2022-06-08 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi created this revision. Herald added a project: All. akyrtzi requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This speeds up preprocessing, specifically for preprocessing the clang sources time is reduced by about -36%, using measure

[PATCH] D127310: [clang][driver] fix to correctly set devtoolset on RHEL

2022-06-08 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. In D127310#3568777 , @nemanjai wrote: > In D127310#3567472 , @MaskRay wrote: > >> Do you have more authoritative answer when /root/usr is used and when it >> isn't? > > These suffixes wer

[PATCH] D126495: [clang-tidy] Organize test docs into subdirectories by module (NFC)

2022-06-08 Thread Nathan James via Phabricator via cfe-commits
njames93 added a comment. In D126495#3568998 , @LegalizeAdulthood wrote: > Gentle ping My previous point about the links in the header files not being updated hasn't been addressed. It would also be nice if there was a redirect that would dynamically

[PATCH] D123493: Support the min of module flags when linking, use for AArch64 BTI/PAC-RET

2022-06-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. This behavior requires that all participating modules have the module flag. In the absence of the module flag, what should be behavior be? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D123493/new/ https://reviews.llvm.org/

[PATCH] D123235: [OpenMP] atomic compare fail : Parser & AST support

2022-06-08 Thread Sunil K via Phabricator via cfe-commits
koops added a comment. Is it possible to move this back from "Closed" state to "Needs Review"? The merge has been rolled back due to a defect in the code. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D123235/new/ https://reviews.llvm.org/D123235

[PATCH] D126495: [clang-tidy] Organize test docs into subdirectories by module (NFC)

2022-06-08 Thread Richard via Phabricator via cfe-commits
LegalizeAdulthood added a comment. Gentle ping CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126495/new/ https://reviews.llvm.org/D126495 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[PATCH] D127271: [pseudo] Fix link time undefined reference to llvm::EnableABIBreakingChecks

2022-06-08 Thread John McIver via Phabricator via cfe-commits
jmciver closed this revision. jmciver added a comment. Obsoleted by D127269 . Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127271/new/ https://reviews.llvm.org/D127271

[PATCH] D126907: Deferred Concept Instantiation Implementation Take 2

2022-06-08 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu added inline comments. Comment at: clang/lib/Sema/SemaConcept.cpp:442-444 +} + } else if (FD->getTemplatedKind() == FunctionDecl::TK_MemberSpecialization || + FD->getTemplatedKind() == FunctionDecl::TK_DependentNonTemplate) { erichkeane

[PATCH] D127293: [clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init

2022-06-08 Thread gehry via Phabricator via cfe-commits
Sockke updated this revision to Diff 435409. Sockke edited the summary of this revision. Sockke added a comment. Fix test file. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127293/new/ https://reviews.llvm.org/D127293 Files: clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemb

[PATCH] D126907: Deferred Concept Instantiation Implementation Take 2

2022-06-08 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu added a comment. In D126907#3566633 , @erichkeane wrote: > All of the comments from @ChuanqiXu done, thank you so much! > > As far as the crash you're seeing: That is typically a 'depth mismatch' kinda > thing. They sadly only show up when th

[PATCH] D127142: [HIP] Link with clang_rt.builtins

2022-06-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. > These functions are not available in libgcc but in libclang_rt.builtins. > Therefore --hip-link needs to link with libclang_rt.builtins by default. I think this is problematic. The current link sequence is `... "-lamdhip64" "/tmp/Debug/lib/clang/15.0.0/lib/linux/libc

[PATCH] D127093: [clang][pseudo] Add missing Support lib to cxx

2022-06-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay accepted this revision. MaskRay added a comment. This revision is now accepted and ready to land. Thanks! Obsoleted by D127269 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127093/new/ https://reviews.llvm

[PATCH] D127310: [clang][driver] fix to correctly set devtoolset on RHEL

2022-06-08 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai added a comment. In D127310#3567472 , @MaskRay wrote: > Do you have more authoritative answer when /root/usr is used and when it > isn't? These suffixes were always part of the code and the mentioned changeset removed it without any justificat

[PATCH] D127351: clang: fix early substitution of alias templates

2022-06-08 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added inline comments. Comment at: clang/lib/Sema/SemaTemplateInstantiateDecl.cpp:1060 LocalInstantiationScope Scope(SemaRef); + auto EarlySubstitutionScope = getEarlySubstitutionRAII(); mark Repository: rG LLVM Github Monorepo CHANGES SINCE L

[PATCH] D127366: [clang-format][NFC] Format lib/Format and unittests/Format in clang

2022-06-08 Thread Owen Pan via Phabricator via cfe-commits
owenpan created this revision. owenpan added reviewers: curdeius, HazardyKnusperkeks, MyDeveloperDay. owenpan added a project: clang-format. Herald added a project: All. owenpan requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Run clang-form

[PATCH] D126308: cmake: use llvm dir variables for clang/utils/hmaptool

2022-06-08 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. @nikic ping, can you confirm this current patch works for you? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126308/new/ https://reviews.llvm.org/D126308 ___ cfe-commits mailing

[PATCH] D127351: clang: fix early substitution of alias templates

2022-06-08 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. @rsmith , I have marked the few spots where the change is meaningful. Comment at: clang/include/clang/Sema/Template.h:488-497 +bool EarlySubstitution; + public: TemplateDeclInstantiator(Sema &SemaRef, DeclContext *Owner, -

[PATCH] D127338: [Clang][CoverageMapping] Fix compile time explosions by adjusting only appropriated skipped ranges

2022-06-08 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno updated this revision to Diff 435388. bruno added a comment. Empty lines handling should also make it skipped, fix the 3 failures. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127338/new/ https://reviews.llvm.org/D127338 Files: clang/lib/

[PATCH] D127363: [Lex] Fix for char32_t literal truncation on 16 bit architectures

2022-06-08 Thread Sebastian Perta via Phabricator via cfe-commits
SebastianPerta created this revision. SebastianPerta added reviewers: aaron.ballman, sammccall, DaanDeMeyer. Herald added a subscriber: dylanmckay. Herald added a project: All. SebastianPerta requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits.

[clang] d6f6cd5 - [docs][clang] Fixing minor typo

2022-06-08 Thread Jose Manuel Monsalve Diaz via cfe-commits
Author: Jose Manuel Monsalve Diaz Date: 2022-06-08T23:35:11Z New Revision: d6f6cd5cd52bbfe91444226ef8a9687288d939b1 URL: https://github.com/llvm/llvm-project/commit/d6f6cd5cd52bbfe91444226ef8a9687288d939b1 DIFF: https://github.com/llvm/llvm-project/commit/d6f6cd5cd52bbfe91444226ef8a9687288d939b

[PATCH] D127312: [clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into PointerValue and ReferenceValue

2022-06-08 Thread Dmitri Gribenko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGa1b2b7d9790b: [clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into… (authored by wyt, committed by gribozavr). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION h

[clang] a1b2b7d - [clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into PointerValue and ReferenceValue

2022-06-08 Thread Dmitri Gribenko via cfe-commits
Author: Wei Yi Tee Date: 2022-06-09T01:29:16+02:00 New Revision: a1b2b7d9790b8a150d798fcc672387607986dbe0 URL: https://github.com/llvm/llvm-project/commit/a1b2b7d9790b8a150d798fcc672387607986dbe0 DIFF: https://github.com/llvm/llvm-project/commit/a1b2b7d9790b8a150d798fcc672387607986dbe0.diff LO

[PATCH] D127361: [NFC] clang: add test for PR55886

2022-06-08 Thread Matheus Izvekov via Phabricator via cfe-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rGcfda534b9944: [NFC] clang: add test for PR55886 (authored by mizve

[clang] cfda534 - [NFC] clang: add test for PR55886

2022-06-08 Thread Matheus Izvekov via cfe-commits
Author: Matheus Izvekov Date: 2022-06-09T01:20:58+02:00 New Revision: cfda534b9944571bf55f0b275982d578361ab7d7 URL: https://github.com/llvm/llvm-project/commit/cfda534b9944571bf55f0b275982d578361ab7d7 DIFF: https://github.com/llvm/llvm-project/commit/cfda534b9944571bf55f0b275982d578361ab7d7.dif

[PATCH] D127312: [clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into PointerValue and ReferenceValue

2022-06-08 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 accepted this revision. gribozavr2 added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:63 -auto *IndVal2 = cast(Val2); -assert(IndVal1->getKind() == IndVal2->getKind()); -

[PATCH] D127260: [clang-format] Remove braces of else blocks that embody an if block

2022-06-08 Thread Owen Pan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG5ead1f13a2d8: [clang-format] Remove braces of else blocks that embody an if block (authored by owenpan). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127260

[clang] 5ead1f1 - [clang-format] Remove braces of else blocks that embody an if block

2022-06-08 Thread via cfe-commits
Author: owenca Date: 2022-06-08T16:05:20-07:00 New Revision: 5ead1f13a2d8ca33e9e93c06acee941a857905c6 URL: https://github.com/llvm/llvm-project/commit/5ead1f13a2d8ca33e9e93c06acee941a857905c6 DIFF: https://github.com/llvm/llvm-project/commit/5ead1f13a2d8ca33e9e93c06acee941a857905c6.diff LOG: [

[PATCH] D126157: [clang-format][NFC] Insert/remove braces in clang/lib/Format/

2022-06-08 Thread Owen Pan via Phabricator via cfe-commits
owenpan added inline comments. Comment at: clang/lib/Format/UnwrappedLineParser.cpp:2769 - if (Style.isCSharp()) { do { owenpan wrote: > curdeius wrote: > > owenpan wrote: > > > From > > > https://llvm.org/docs/CodingStandards.html#don-t-use-braces-on-si

[PATCH] D127361: [NFC] clang: add test for PR55886

2022-06-08 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov created this revision. Herald added a project: All. mizvekov requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Signed-off-by: Matheus Izvekov Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D127361 Files: clang/

[PATCH] D127267: [NVPTX] Add setAuxTarget override rather than make a new TargetInfo

2022-06-08 Thread Ryan Prichard via Phabricator via cfe-commits
rprichard added a comment. In D127267#3568388 , @rprichard wrote: > Aside: There are only two calls to AllocateTarget: one in > TargetInfo::CreateTargetInfo and one in NVPTXTargetInfo::NVPTXTargetInfo. > This change removes NVPTXTargetInfo's call. Ther

[PATCH] D127357: [pseudo] wip/prototype: use LR0 instead of SLR1 table

2022-06-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: hokein. Herald added a project: All. sammccall requested review of this revision. Herald added subscribers: cfe-commits, alextsao1999. Herald added a project: clang-tools-extra. This ignores the lookahead token when deciding what to redu

[PATCH] D127267: [NVPTX] Add setAuxTarget override rather than make a new TargetInfo

2022-06-08 Thread Ryan Prichard via Phabricator via cfe-commits
rprichard added a comment. I don't expect this change to affect the compiler behavior by itself -- is there a particular test that should be written? The code that I'm moving into NVPTXTargetInfo::setAuxTarget is already tested via clang/test/Preprocessor/cuda-types.cu. Aside: There are only t

[PATCH] D127271: [pseudo] Fix link time undefined reference to llvm::EnableABIBreakingChecks

2022-06-08 Thread John McIver via Phabricator via cfe-commits
jmciver added a comment. Thanks @sammccall for taking the time to review! Can you please commit on my behalf? Name: `John McIver` Email: `john.mciver@gmail.com` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127271/new/ https://reviews.llvm.o

[PATCH] D127260: [clang-format] Remove braces of else blocks that embody an if block

2022-06-08 Thread Owen Pan via Phabricator via cfe-commits
owenpan added a comment. In D127260#3567476 , @curdeius wrote: > Still looks good. Was there a particular case where the previous version > didn't work? The assertion I added on line 2626, which would ensure that the `RemoveBraces` lambda on line 898 d

[PATCH] D127271: [pseudo] Fix link time undefined reference to llvm::EnableABIBreakingChecks

2022-06-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127271/new/ https://reviews.llvm.org/D127271 __

[PATCH] D127271: [pseudo] Fix link time undefined reference to llvm::EnableABIBreakingChecks

2022-06-08 Thread John McIver via Phabricator via cfe-commits
jmciver added a comment. This patch is associated to: https://github.com/llvm/llvm-project/issues/55935 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127271/new/ https://reviews.llvm.org/D127271 ___ cfe-

[PATCH] D126723: [pseudo] GC GSS nodes, reuse them with a freelist

2022-06-08 Thread Sam McCall via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG94b2ca18c10b: [pseudo] GC GSS nodes, reuse them with a freelist (authored by sammccall). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST A

[clang-tools-extra] 94b2ca1 - [pseudo] GC GSS nodes, reuse them with a freelist

2022-06-08 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-06-08T23:39:59+02:00 New Revision: 94b2ca18c10bfb4107a850d63148fc51e65d9512 URL: https://github.com/llvm/llvm-project/commit/94b2ca18c10bfb4107a850d63148fc51e65d9512 DIFF: https://github.com/llvm/llvm-project/commit/94b2ca18c10bfb4107a850d63148fc51e65d9512.diff LO

[PATCH] D126723: [pseudo] GC GSS nodes, reuse them with a freelist

2022-06-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall added inline comments. Comment at: clang-tools-extra/pseudo/lib/GLR.cpp:78 +// We need to copy the list: Roots is consumed by the GC. +Roots = NewHeads; +GSS.gc(std::move(Roots)); hokein wrote: > nit: I'd rather pass the NewHeads as a vector

[clang-tools-extra] bbc58c5 - [pseudo] Restore accidentally removed debug print

2022-06-08 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-06-08T23:39:34+02:00 New Revision: bbc58c5e9ba39b234b6f526b313bbc35cbc2ba0f URL: https://github.com/llvm/llvm-project/commit/bbc58c5e9ba39b234b6f526b313bbc35cbc2ba0f DIFF: https://github.com/llvm/llvm-project/commit/bbc58c5e9ba39b234b6f526b313bbc35cbc2ba0f.diff LO

[PATCH] D127006: [pseudo] Invert rows/columns of LRTable storage for speedup. NFC

2022-06-08 Thread Sam McCall via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG93bcff8aa855: [pseudo] Invert rows/columns of LRTable storage for speedup. NFC (authored by sammccall). Repository: rG LLVM Github Monorepo CHANG

[clang-tools-extra] 93bcff8 - [pseudo] Invert rows/columns of LRTable storage for speedup. NFC

2022-06-08 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-06-08T23:35:14+02:00 New Revision: 93bcff8aa85512f2b24e822d857b426c31b6d051 URL: https://github.com/llvm/llvm-project/commit/93bcff8aa85512f2b24e822d857b426c31b6d051 DIFF: https://github.com/llvm/llvm-project/commit/93bcff8aa85512f2b24e822d857b426c31b6d051.diff LO

[PATCH] D125677: [pseudo] Remove the explicit Accept actions.

2022-06-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. Comment at: clang-tools-extra/pseudo/lib/GLR.cpp:86 + const ForestNode *Result = nullptr; + StateID AcceptState = Params.Table.getGoToState(StartState, StartSymbol); + glrReduce(PendingReduce, Params, [&](const

[PATCH] D126536: [pseudo] Add grammar annotations support.

2022-06-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall accepted this revision. sammccall added inline comments. This revision is now accepted and ready to land. Comment at: clang-tools-extra/pseudo/include/clang-pseudo/Grammar.h:91 +// attribute value (all attributes share a namespace). +// An ExtensionID is the index into

[PATCH] D126984: [clang] Add initial support for gcc's optimize function attribute

2022-06-08 Thread Stephen Long via Phabricator via cfe-commits
steplong added a comment. In D126984#3567822 , @aaron.ballman wrote: > Two final (I hope) nits! One is in the code, the other is that this should > have a release note for the new attribute. Assuming precommit CI pipeline > passes, then I think this is

[PATCH] D127269: Add llvm's Support lib to the psuedoCXX library

2022-06-08 Thread Nathan Lanza via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGdd2f2909188b: Add llvm's Support lib to the psuedoCXX library (authored by lanza). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127269/new/ https://reviews

[clang-tools-extra] dd2f290 - Add llvm's Support lib to the psuedoCXX library

2022-06-08 Thread Nathan Lanza via cfe-commits
Author: Nathan Lanza Date: 2022-06-08T17:12:02-04:00 New Revision: dd2f2909188bf56716248675c58e4699c1c6b903 URL: https://github.com/llvm/llvm-project/commit/dd2f2909188bf56716248675c58e4699c1c6b903 DIFF: https://github.com/llvm/llvm-project/commit/dd2f2909188bf56716248675c58e4699c1c6b903.diff

[PATCH] D126061: [clang] Reject non-declaration C++11 attributes on declarations

2022-06-08 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: clang/lib/Parse/ParseStmt.cpp:242-246 +Decl = ParseDeclaration(DeclaratorContext::Block, DeclEnd, CXX11Attrs, +GNUAttrs, &GNUAttributeLoc); } else { -Decl = ParseDeclaration(Declarato

[PATCH] D127338: [Clang][CoverageMapping] Fix compile time explosions by adjusting only appropriated skipped ranges

2022-06-08 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno added a comment. > Just noticed that 3 test cases failed. Please fix them before landing. Sure thing, thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127338/new/ https://reviews.llvm.org/D127338 ___

[PATCH] D127338: [Clang][CoverageMapping] Fix compile time explosions by adjusting only appropriated skipped ranges

2022-06-08 Thread Zequan Wu via Phabricator via cfe-commits
zequanwu added a comment. Just noticed that 3 test cases failed. Please fix them before landing. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127338/new/ https://reviews.llvm.org/D127338 ___ cfe-commits

[PATCH] D127338: [Clang][CoverageMapping] Fix compile time explosions by adjusting only appropriated skipped ranges

2022-06-08 Thread Zequan Wu via Phabricator via cfe-commits
zequanwu accepted this revision. zequanwu added a comment. This revision is now accepted and ready to land. LGTM, thanks. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127338/new/ https://reviews.llvm.org/D127338 __

[PATCH] D126929: Add sanitizer metadata attributes to clang IR gen.

2022-06-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added inline comments. Comment at: clang/lib/CodeGen/SanitizerMetadata.cpp:55 + + bool IsExcluded = CGM.isInNoSanitizeList(GV, Loc, Ty); + IsExcluded |= (NoSanitizeMask == SanitizerKind::All); vitalybuka wrote: > it can be in some weird ubsan check i

[PATCH] D126984: [clang] Add initial support for gcc's optimize function attribute

2022-06-08 Thread Stephen Long via Phabricator via cfe-commits
steplong updated this revision to Diff 435313. steplong added a comment. - Add Arg when creating Attr Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126984/new/ https://reviews.llvm.org/D126984 Files: clang/include/clang/Basic/Attr.td clang/inc

[PATCH] D126929: Add sanitizer metadata attributes to clang IR gen.

2022-06-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. No need to recover my snapshot, I'll just comment here. Comment at: clang/lib/CodeGen/SanitizerMetadata.cpp:20 +using GlobalVariable = llvm::GlobalVariable; +using GVSanitizerMetadata = GlobalVariable::SanitizerMetadata; Seems inco

[PATCH] D126100: Add sanitizer-specific GlobalValue attributes.

2022-06-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added inline comments. This revision is now accepted and ready to land. Comment at: llvm/lib/Bitcode/Writer/BitcodeWriter.cpp:1389 + + if (GV.hasSanitizerMetadata()) +Vals.push_back(serializeSanitizerMetadata(GV.getSaniti

[PATCH] D125677: [pseudo] Remove the explicit Accept actions.

2022-06-08 Thread Haojian Wu via Phabricator via cfe-commits
hokein added inline comments. Comment at: clang-tools-extra/pseudo/lib/GLR.cpp:86 + const ForestNode *Result = nullptr; + StateID AcceptState = Params.Table.getGoToState(StartState, StartSymbol); + glrReduce(PendingReduce, Params, [&](const GSS::Node *NewHead) { --

[PATCH] D125677: [pseudo] Remove the explicit Accept actions.

2022-06-08 Thread Haojian Wu via Phabricator via cfe-commits
hokein updated this revision to Diff 435309. hokein marked an inline comment as done. hokein added a comment. switch to the previous simple version Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125677/new/ https://reviews.llvm.org/D125677 Files:

[PATCH] D126929: Add sanitizer metadata attributes to clang IR gen.

2022-06-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. In D126929#3567491 , @hctim wrote: > Update. Sorry if it want clear that I some changes. You undone my snapshot. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126929/new/ https

[clang] f0a6a57 - Switch links to use https consistently

2022-06-08 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-06-08T15:53:55-04:00 New Revision: f0a6a573309b1807de057f032a6db5e8d4a3c10d URL: https://github.com/llvm/llvm-project/commit/f0a6a573309b1807de057f032a6db5e8d4a3c10d DIFF: https://github.com/llvm/llvm-project/commit/f0a6a573309b1807de057f032a6db5e8d4a3c10d.diff

[clang] b685426 - Add missing entries for Annex F and Annex H to the C status page

2022-06-08 Thread Aaron Ballman via cfe-commits
Author: Aaron Ballman Date: 2022-06-08T15:53:54-04:00 New Revision: b685426970df3b12ac3640110e43db2ee3f340c6 URL: https://github.com/llvm/llvm-project/commit/b685426970df3b12ac3640110e43db2ee3f340c6 DIFF: https://github.com/llvm/llvm-project/commit/b685426970df3b12ac3640110e43db2ee3f340c6.diff

[PATCH] D127338: [Clang][CoverageMapping] Fix compile time explosions by adjusting only appropriated skipped ranges

2022-06-08 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno created this revision. bruno added reviewers: vsk, zequanwu. Herald added subscribers: hoy, modimo, wenlei. Herald added a project: All. bruno requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. D83592 ad

[PATCH] D112579: Allow non-variadic functions to be attributed with `__attribute__((format))`

2022-06-08 Thread Félix Cloutier via Phabricator via cfe-commits
fcloutier updated this revision to Diff 435302. fcloutier added a comment. Herald added a project: All. Apologies the long delay: things happened and I was pulled away. I have some time to finish this change now. I recommend re-reading the discussion up to now since it's not _that_ long and it p

[PATCH] D127217: [include-cleaner] Fix build error in unit test

2022-06-08 Thread Nathan Ridge via Phabricator via cfe-commits
nridge accepted this revision. nridge added a comment. This revision is now accepted and ready to land. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127217/new/ https://reviews.llvm.org/D127217

[PATCH] D126984: [clang] Add initial support for gcc's optimize function attribute

2022-06-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Two final (I hope) nits! One is in the code, the other is that this should have a release note for the new attribute. Assuming precommit CI pipeline passes, then I think this is all set. Comment at: clang/lib/Sema/SemaDeclAttr.cpp:4860 + if (It

[PATCH] D125499: Enabling the detection of devtoolset-11 toolchain.

2022-06-08 Thread Kamau Bridgeman via Phabricator via cfe-commits
kamaub added a comment. In D125499#3541689 , @tstellar wrote: > I'm curious what is your system configuration where this patch actually > allows for detection of devtoolset? I noticed that if clang and gcc are both > installed to /usr/, then driver wil

[PATCH] D112661: [clangd] reuse preambles from other files when possible

2022-06-08 Thread Quentin Chateau via Phabricator via cfe-commits
qchateau added a comment. @nridge after rebasing this change for several months, I find it less and less useful. It seems both clangd and the IDE I'm using are making significant improvements that make this changes less and less impactful. I closed this revision as I feel that it now passed the

[PATCH] D126864: [clang] Introduce -fstrict-flex-arrays for stricter handling of flexible arrays

2022-06-08 Thread Kees Cook via Phabricator via cfe-commits
kees added a comment. In D126864#3567647 , @nickdesaulniers wrote: > @kees maybe we should think about what would be needed for toolchains that > don't yet support `-fstrict-flex-arrays` in kernel sources? Does this become > a toolchain portability iss

[PATCH] D126864: [clang] Introduce -fstrict-flex-arrays for stricter handling of flexible arrays

2022-06-08 Thread Nick Desaulniers via Phabricator via cfe-commits
nickdesaulniers added a comment. In D126864#3564519 , @efriedma wrote: >> As for SOCK_MAXADDRLEN, that's a horrid hack, and the definition of struct >> sockaddr needs to change. :) > > Do we want some builtin define so headers can check if we're in > -f

[PATCH] D127312: [clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into PointerValue and ReferenceValue

2022-06-08 Thread weiyi via Phabricator via cfe-commits
wyt added inline comments. Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:63 -auto *IndVal2 = cast(Val2); -assert(IndVal1->getKind() == IndVal2->getKind()); -if (&IndVal1->getPointeeLoc() == &IndVal2->getPointeeLoc()) gribozavr2

[PATCH] D127312: [clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into PointerValue and ReferenceValue

2022-06-08 Thread weiyi via Phabricator via cfe-commits
wyt updated this revision to Diff 435271. wyt marked 2 inline comments as done. wyt added a comment. Rename function as suggested Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127312/new/ https://reviews.llvm.org/D127312 Files: clang/include/cla

[PATCH] D126864: [clang] Introduce -fstrict-flex-arrays for stricter handling of flexible arrays

2022-06-08 Thread Kees Cook via Phabricator via cfe-commits
kees added a comment. In D126864#3564519 , @efriedma wrote: > Do we want some builtin define so headers can check if we're in > -fstrict-flex-arrays mode? It might be hard to mess with the definitions > otherwise. Hm, maybe? It wonder if that's more c

[PATCH] D127196: [clang][dataflow] Enable use of synthetic properties on all Value instances.

2022-06-08 Thread Dmitri Gribenko via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG49ed5bf51958: [clang][dataflow] Enable use of synthetic properties on all Value instances. (authored by wyt, committed by gribozavr). Changed prior to commit: https://reviews.llvm.org/D127196?vs=435121&

[clang] 49ed5bf - [clang][dataflow] Enable use of synthetic properties on all Value instances.

2022-06-08 Thread Dmitri Gribenko via cfe-commits
Author: Wei Yi Tee Date: 2022-06-08T20:20:26+02:00 New Revision: 49ed5bf51958aaeb209804da794c85d06207c3ed URL: https://github.com/llvm/llvm-project/commit/49ed5bf51958aaeb209804da794c85d06207c3ed DIFF: https://github.com/llvm/llvm-project/commit/49ed5bf51958aaeb209804da794c85d06207c3ed.diff LO

[PATCH] D126984: [clang] Add initial support for gcc's optimize function attribute

2022-06-08 Thread Stephen Long via Phabricator via cfe-commits
steplong updated this revision to Diff 435264. steplong added a comment. Herald added a subscriber: jdoerfert. - Fix up docs and comments - Fix failing pragma-attribute-supported-attributes-list.test - Remove debug print - Change to StringMap Repository: rG LLVM Github Monorepo CHANGES SINCE

[PATCH] D127243: [clang][deps] Make order of module dependencies deterministic

2022-06-08 Thread Ben Langmuir via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG835fcf2aa512: [clang][deps] Make order of module dependencies deterministic (authored by benlangmuir). Repository: rG LLVM Github Monorepo CHANGE

[PATCH] D127229: [clang][deps] Set -disable-free for module compilations

2022-06-08 Thread Ben Langmuir via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG7a72dca74a27: [clang][deps] Set -disable-free for module compilations (authored by benlangmuir). Repository: rG LLVM Github Monorepo CHANGES SINC

[clang] 835fcf2 - [clang][deps] Make order of module dependencies deterministic

2022-06-08 Thread Ben Langmuir via cfe-commits
Author: Ben Langmuir Date: 2022-06-08T11:09:17-07:00 New Revision: 835fcf2aa5127bf99a1e6397c72153f00a0497b2 URL: https://github.com/llvm/llvm-project/commit/835fcf2aa5127bf99a1e6397c72153f00a0497b2 DIFF: https://github.com/llvm/llvm-project/commit/835fcf2aa5127bf99a1e6397c72153f00a0497b2.diff

[clang] 7a72dca - [clang][deps] Set -disable-free for module compilations

2022-06-08 Thread Ben Langmuir via cfe-commits
Author: Ben Langmuir Date: 2022-06-08T11:09:17-07:00 New Revision: 7a72dca74a27f1f6198cfabb064dc43274ee005d URL: https://github.com/llvm/llvm-project/commit/7a72dca74a27f1f6198cfabb064dc43274ee005d DIFF: https://github.com/llvm/llvm-project/commit/7a72dca74a27f1f6198cfabb064dc43274ee005d.diff

[PATCH] D126832: [clang][tablegen] adds human documentation to `WarningOption`

2022-06-08 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb added a comment. In D126832#3567035 , @aaron.ballman wrote: > In D126832#3554816 , @cjdb wrote: > >> In D126832#3553569 , >> @aaron.ballman wrote: >> >>> Can you po

[PATCH] D126929: Add sanitizer metadata attributes to clang IR gen.

2022-06-08 Thread Mitch Phillips via Phabricator via cfe-commits
hctim updated this revision to Diff 435257. hctim marked 3 inline comments as done. hctim added a comment. Update. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126929/new/ https://reviews.llvm.org/D126929 Files: clang/lib/CodeGen/SanitizerMetad

[PATCH] D126929: Add sanitizer metadata attributes to clang IR gen.

2022-06-08 Thread Mitch Phillips via Phabricator via cfe-commits
hctim marked 3 inline comments as done. hctim added inline comments. Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2767-2781 + if (NoSanitizeL.containsGlobal(LangOpts.Sanitize.Mask, GV->getName(), Category)) return true; - if (NoSanitizeL.containsLocation(EnabledAsanMas

[PATCH] D126832: [clang][tablegen] adds human documentation to `WarningOption`

2022-06-08 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb updated this revision to Diff 435255. cjdb marked 2 inline comments as done. cjdb added a comment. applies feedback Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126832/new/ https://reviews.llvm.org/D126832 Files: clang/include/clang/Basic/

[PATCH] D127260: [clang-format] Remove braces of else blocks that embody an if block

2022-06-08 Thread Marek Kurdej via Phabricator via cfe-commits
curdeius accepted this revision. curdeius added a comment. This revision is now accepted and ready to land. Still looks good. Was there a particular case where the previous version didn't work? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127260/new/ https://reviews.llvm.org/D127260

[PATCH] D127310: [clang][driver] fix to correctly set devtoolset on RHEL

2022-06-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. Do you have more authoritative answer when /root/usr is used and when it isn't? I'd wish that we have comments for them. This change also needs a unit test. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127310/new/ https:/

[PATCH] D126796: [clang][driver] adds `-print-diagnostics`

2022-06-08 Thread Christopher Di Bella via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. Closed by commit rG288c1bff96fc: [clang][driver] adds `-print-diagnostics` (authored by cjdb). Changed prior to commit: https://reviews.llvm.org/D126796?vs=435223&id

[clang] 288c1bf - [clang][driver] adds `-print-diagnostics`

2022-06-08 Thread Christopher Di Bella via cfe-commits
Author: Christopher Di Bella Date: 2022-06-08T17:55:31Z New Revision: 288c1bff96fc9042d01b7055dc6e1049d8b54b26 URL: https://github.com/llvm/llvm-project/commit/288c1bff96fc9042d01b7055dc6e1049d8b54b26 DIFF: https://github.com/llvm/llvm-project/commit/288c1bff96fc9042d01b7055dc6e1049d8b54b26.dif

[PATCH] D127196: [clang][dataflow] Enable use of synthetic properties on all Value instances.

2022-06-08 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 accepted this revision. gribozavr2 added inline comments. Comment at: clang/include/clang/Analysis/FlowSensitive/Value.h:28 /// Base class for all values computed by abstract interpretation. +/// Don't use `Value` instances by value. All `Value` instances are alloca

[PATCH] D127312: [clang][dataflow] Remove IndirectionValue class, moving PointeeLoc field into PointerValue and ReferenceValue

2022-06-08 Thread Dmitri Gribenko via Phabricator via cfe-commits
gribozavr2 added inline comments. Comment at: clang/lib/Analysis/FlowSensitive/DataflowEnvironment.cpp:53 +static bool indirectionEquivalentValues(Value *Val1, Value *Val2) { + if (auto *IndVal1 = dyn_cast(Val1)) { WDYT about "areEquivalentIndirectionValues"?

[clang] 28aa7d1 - [docs][clang] Minor typo fix

2022-06-08 Thread Jose Manuel Monsalve Diaz via cfe-commits
Author: Jose Manuel Monsalve Diaz Date: 2022-06-08T17:41:04Z New Revision: 28aa7d188492223eb600317239f97b3f76dff1ee URL: https://github.com/llvm/llvm-project/commit/28aa7d188492223eb600317239f97b3f76dff1ee DIFF: https://github.com/llvm/llvm-project/commit/28aa7d188492223eb600317239f97b3f76dff1e

[PATCH] D127229: [clang][deps] Set -disable-free for module compilations

2022-06-08 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 accepted this revision. jansvoboda11 added a comment. This revision is now accepted and ready to land. LGTM! Comment at: clang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp:338 +// always true for a driver invocation. +

[PATCH] D125349: [Sema] Fix crash for C11 atomic in gnu++ mode

2022-06-08 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. This seems like the right idea to me, yeah. It doesn't look like the patch handles `volatile _Atomic` correctly, though. I know we do a lot of candidate prefiltering, and that that can be difficult because of uesr-defined conversions. How do those things interact wit

  1   2   3   >