[clang] cd0d526 - [clang][dataflow] In `optional` model, match call return via hasType

2022-06-10 Thread Yitzhak Mandelbaum via cfe-commits
Author: Sam Estep Date: 2022-06-10T14:52:05Z New Revision: cd0d52610d80116324f19983320ec6db2048450f URL: https://github.com/llvm/llvm-project/commit/cd0d52610d80116324f19983320ec6db2048450f DIFF: https://github.com/llvm/llvm-project/commit/cd0d52610d80116324f19983320ec6db2048450f.diff LOG: [cl

[PATCH] D127434: [clang][dataflow] In `optional` model, match call return via hasType

2022-06-10 Thread Yitzhak Mandelbaum 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 rGcd0d52610d80: [clang][dataflow] In `optional` model, match call return via hasType (authored by samestep, committed by ymandel). Repository: rG LL

[PATCH] D127487: [Sema] Fix assertion failure when instantiating requires expression

2022-06-10 Thread Roy Jacobson via Phabricator via cfe-commits
royjacobson added inline comments. Comment at: clang/lib/Sema/SemaConcept.cpp:352 + [this](const Expr *AtomicExpr) -> ExprResult { +// We only do this to immitate lvalue-to-rvalue conversion. +return PerformContextuallyConvertToBool(const_cast(AtomicExpr)); -

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

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/include/clang/AST/Type.h:617 +struct QualifiersAndAtomic { + Qualifiers Quals; The set of operations here feel a bit weird. We have `withVolatile` and `withAtomic` but not `withConst` or `withRestrict`. W

[PATCH] D127313: [libc++] Implement P0618R0 (Deprecating )

2022-06-10 Thread Louis Dionne via Phabricator via cfe-commits
ldionne accepted this revision. ldionne added a comment. This revision is now accepted and ready to land. LGTM with changes applied and passing CI. Comment at: libcxx/docs/ReleaseNotes.rst:149-152 +- The contents of , ``wstring_convert`` and ``wbuffer_convert`` have been m

[PATCH] D125847: LTO: Add option to initialize with opaque/non-opaque pointer types

2022-06-10 Thread Bardia Mahjour via Phabricator via cfe-commits
bmahjour added inline comments. Comment at: lld/test/ELF/lto/discard-value-names.ll:4 ; RUN: ld.lld -shared -save-temps %t.o -o %t2.o ; RUN: llvm-dis < %t2.o.0.0.preopt.bc | FileCheck %s I see `--plugin-opt=opaque-pointers` is being explicitly specified for s

[PATCH] D127502: [clang][dataflow] Don't `assert` full LHS coverage in `optional` model

2022-06-10 Thread Sam Estep via Phabricator via cfe-commits
samestep created this revision. samestep added a reviewer: ymandel. Herald added subscribers: tschuett, steakhal, xazax.hun. Herald added a project: All. samestep requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github

[PATCH] D126479: [Clang] Allow 'Complex float __attribute__((mode(HC)))'

2022-06-10 Thread Jolanta Jensen via Phabricator via cfe-commits
jolanta.jensen updated this revision to Diff 435922. jolanta.jensen added a comment. Removing the implicit dependency on the FloatModeKind enumerator values. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126479/new/ https://reviews.llvm.org/D126479

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

2022-06-10 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 435927. jansvoboda11 added a comment. Code review feedback Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125349/new/ https://reviews.llvm.org/D125349 Files: clang/include/clang/AST/Type.h clang/lib/Se

[PATCH] D125847: LTO: Add option to initialize with opaque/non-opaque pointer types

2022-06-10 Thread Matthias Braun via Phabricator via cfe-commits
MatzeB added inline comments. Comment at: lld/test/ELF/lto/discard-value-names.ll:4 ; RUN: ld.lld -shared -save-temps %t.o -o %t2.o ; RUN: llvm-dis < %t2.o.0.0.preopt.bc | FileCheck %s bmahjour wrote: > I see `--plugin-opt=opaque-pointers` is being explicitly

[PATCH] D125847: LTO: Add option to initialize with opaque/non-opaque pointer types

2022-06-10 Thread Matthias Braun via Phabricator via cfe-commits
MatzeB added a comment. @JakeEgan I did a quick look for the code in that stacktrace but nothing jumped out on me. It‘s with inlining effects obscuring it. But I think that crash must be investigated on an AIX machine, there‘s no indication that this directly related to my change which works on

[PATCH] D125847: LTO: Add option to initialize with opaque/non-opaque pointer types

2022-06-10 Thread Matthias Braun via Phabricator via cfe-commits
MatzeB added a comment. In D125847#3552297 , @MaskRay wrote: > Your commit message seems to use the original summary. Yes sorry, I noticed it too after pushing it. I think this can‘t be fixed after the push though… Repository: rG LLVM Github Monorep

[PATCH] D126291: [flang][Driver] Update link job on windows

2022-06-10 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In D126291#3573137 , @mmuetzel wrote: > Not sure if this is the right place to add this. But maybe something like > this could be used to add 'windows-msvc' and 'windows-gnu' features that > could be used to run tests condition

[PATCH] D127184: [clangd] Add to header map

2022-06-10 Thread Florian Albrechtskirchinger via Phabricator via cfe-commits
falbrechtskirchinger added a comment. In D127184#3572731 , @nridge wrote: > This change looks fine to me. > > I wonder though if we should be a bit more systematic about it, and try to > cover other newly added libstdc++ implementation headers? Sure thi

[PATCH] D127502: [clang][dataflow] Don't `assert` full LHS coverage in `optional` model

2022-06-10 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
ymandel accepted this revision. ymandel added a comment. This revision is now accepted and ready to land. Do I understand correctly that the test you added in D127434 covers this change as well? (in that this change moves it from crashing to not crashing) Rep

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

2022-06-10 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 updated this revision to Diff 435932. jansvoboda11 added a comment. Implement another round of review feedback Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125349/new/ https://reviews.llvm.org/D125349 Files: clang/include/clang/AST

[PATCH] D127502: [clang][dataflow] Don't `assert` full LHS coverage in `optional` model

2022-06-10 Thread Sam Estep via Phabricator via cfe-commits
samestep added a comment. @ymandel Yes, either this patch or D127434 would bring that test from crashing to passing. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127502/new/ https://reviews.llvm.org/D127502 ___

[PATCH] D127487: [Sema] Fix assertion failure when instantiating requires expression

2022-06-10 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added a comment. I've checked that the change works fine on top of D126907 . The bug is still there after D126907 and gets fixed by this. Also, the merge conflict is actually minimal, no code changes intersect.

[PATCH] D125847: LTO: Add option to initialize with opaque/non-opaque pointer types

2022-06-10 Thread Jake Egan via Phabricator via cfe-commits
Jake-Egan added a comment. Thanks for taking a look. I agree someone on AIX should investigate. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125847/new/ https://reviews.llvm.org/D125847 ___ cfe-commits

[PATCH] D127498: [SystemZ/z/OS] Set DWARF version to 4 for z/OS.

2022-06-10 Thread Ulrich Weigand via Phabricator via cfe-commits
uweigand accepted this revision. uweigand added a comment. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127498/new/ https://reviews.llvm.org/D127498 ___ cfe-commits mailing list cfe-commits@lists.l

[PATCH] D124690: [clangd] add inlay hints for std::forward-ed parameter packs

2022-06-10 Thread Nathan Ridge via Phabricator via cfe-commits
nridge added a comment. I will do my best to take a look this weekend. Your patience is appreciated :) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D124690/new/ https://reviews.llvm.org/D124690 ___ cfe-c

[PATCH] D127487: [Sema] Fix assertion failure when instantiating requires expression

2022-06-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. In D127487#3573667 , @ilya-biryukov wrote: > I've checked that the change works fine on top of D126907 > . The bug is still there after D126907 > and gets

[PATCH] D126479: [Clang] Allow 'Complex float __attribute__((mode(HC)))'

2022-06-10 Thread Tom Honermann via Phabricator via cfe-commits
tahonermann requested changes to this revision. tahonermann added inline comments. This revision now requires changes to proceed. Comment at: clang/include/clang/Basic/TargetInfo.h:223-224 unsigned HasAlignMac68kSupport : 1; - unsigned RealTypeUsesObjCFPRet : 3; + unsigned R

[PATCH] D127487: [Sema] Fix assertion failure when instantiating requires expression

2022-06-10 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clang/lib/Sema/SemaConcept.cpp:352 + [this](const Expr *AtomicExpr) -> ExprResult { +// We only do this to immitate lvalue-to-rvalue conversion. +return PerformContextuallyConvertToBool(const_cast(AtomicExpr));

[PATCH] D126291: [flang][Driver] Update link job on windows

2022-06-10 Thread Markus Mützel via Phabricator via cfe-commits
mmuetzel added a comment. In D126291#3573607 , @mstorsjo wrote: > FWIW, something very similar was added just a couple days ago in an lldb > specific lit.cfg.py: https://reviews.llvm.org/D127048#change-KJ7QgKPHtN1S Thank you for pointing this out. Those

[PATCH] D126291: [flang][Driver] Update link job on windows

2022-06-10 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In D126291#3573742 , @mmuetzel wrote: > In D126291#3573607 , @mstorsjo > wrote: > >> FWIW, something very similar was added just a couple days ago in an lldb >> specific lit.cfg.py: htt

[PATCH] D119296: KCFI sanitizer

2022-06-10 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen added inline comments. Comment at: clang/lib/CodeGen/CodeGenModule.cpp:2257 + + F->setPrefixData(CreateKCFITypeId(FD->getType())); + F->addFnAttr("kcfi-target"); ychen wrote: > FYI: using prefix data may not work for the C++ coroutine. > (https://

[PATCH] D127496: [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Shivam Gupta via Phabricator via cfe-commits
xgupta updated this revision to Diff 435947. xgupta added a comment. Address comments CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127496/new/ https://reviews.llvm.org/D127496 Files: clang/www/get_started.html Index: clang/www/get_started.html =

[PATCH] D127496: [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Shivam Gupta via Phabricator via cfe-commits
xgupta added inline comments. Comment at: clang/www/get_started.html:72 cd build +This builds both LLVM and Clang for debug mode and takes a lot of time and space. Alternatively -DCMAKE_BUILD_TYPE=Release" can be use to make a release build. cmake -DLLVM_ENABLE_PR

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

2022-06-10 Thread Phoebe Wang via Phabricator via cfe-commits
pengfei added inline comments. Comment at: llvm/test/CodeGen/X86/fpclamptosat_vec.ll:605 +; CHECK-NEXT:.cfi_def_cfa_offset 80 +; CHECK-NEXT:movss %xmm2, {{[-0-9]+}}(%r{{[sb]}}p) # 4-byte Spill +; CHECK-NEXT:movss %xmm1, {{[-0-9]+}}(%r{{[sb]}}p) # 4-byte Spill

[PATCH] D127496: [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. Looks pretty close, just some minor nits from me. Comment at: clang/www/get_started.html:72-75 +This builds both LLVM and Clang for release mode. Alternatively if +you need a debug build, switch Release to Debug. See +frequentl

[PATCH] D127509: Prefer `getCurrentFileOrBufferName` in `FrontendAction::EndSourceFile`

2022-06-10 Thread Yuki Okushi via Phabricator via cfe-commits
JohnTitor created this revision. Herald added a project: All. JohnTitor requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. `getCurrentFile` here causes an assertion on some condition. `getCurrentFileOrBufferName` is preferrable instead. llvm#

[PATCH] D127496: [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Shivam Gupta via Phabricator via cfe-commits
xgupta updated this revision to Diff 435957. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127496/new/ https://reviews.llvm.org/D127496 Files: clang/www/get_started.html Index: clang/www/get_started.html === --- clang/ww

[PATCH] D127487: [Sema] Fix assertion failure when instantiating requires expression

2022-06-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: clang/lib/Sema/SemaTemplateInstantiate.cpp:2042 +!SemaRef.CheckConstraintExpression(TransConstraint.get())) { + assert(Trap.hasErrorOccurred() && "CheckConstraintExpression failed, but " +

[PATCH] D127496: [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. LGTM aside from a missing comma (that can be fixed when landing). But you should give @thieta a chance to chime in before landing. Comment at: clang/www/get_started.html:72 cd build -cmake -DLLVM_ENA

[PATCH] D126291: [flang][Driver] Update link job on windows

2022-06-10 Thread Markus Mützel via Phabricator via cfe-commits
mmuetzel added a comment. In D126291#3573751 , @mstorsjo wrote: > Maybe, but keep in mind that those kinds of tests should be the exception, > not the rule. > > As clang (and flang too, I would presume) generally can be cross compiling, > one shouldn't

[PATCH] D126291: [flang][Driver] Update link job on windows

2022-06-10 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In D126291#3573937 , @mmuetzel wrote: > Ah ok. So instead of having `! REQUIRES:` lines, those tests should add > `-target x86_64-windows-msvc` to the flang invocation? Exactly > On platforms that didn't build the necessary li

[PATCH] D117977: [cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore

2022-06-10 Thread Stephan Bergmann via Phabricator via cfe-commits
sberg added a comment. There might be something fishy with this commit. My fresh from-scratch `cmake --build . && cmake --build . --target install` monorepo build now lacked e.g. the `bin/clang++` symlink in the installation dir, and locally reverting this commit fixed that. Repository: rG

[PATCH] D127496: [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Tobias Hieta via Phabricator via cfe-commits
thieta accepted this revision. thieta added a comment. This revision is now accepted and ready to land. Looks fine to me. Thanks for fixing! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127496/new/ https://reviews.llvm.org/D127496 ___ cfe-co

[clang] f21187e - [clang][tablegen] adds human documentation to `WarningOption`

2022-06-10 Thread Christopher Di Bella via cfe-commits
Author: Christopher Di Bella Date: 2022-06-10T17:23:00Z New Revision: f21187eb2d943c1407ae764b87f73602177dcba8 URL: https://github.com/llvm/llvm-project/commit/f21187eb2d943c1407ae764b87f73602177dcba8 DIFF: https://github.com/llvm/llvm-project/commit/f21187eb2d943c1407ae764b87f73602177dcba8.dif

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

2022-06-10 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 rGf21187eb2d94: [clang][tablegen] adds human documentation to `WarningOption` (authored by cjdb). Changed prior to commit: https://reviews.llvm.org/

[clang] a01579a - [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Shivam Gupta via cfe-commits
Author: Shivam Gupta Date: 2022-06-10T11:00:05+05:30 New Revision: a01579ad0a1bde4d90f4fb656f07586c3097428a URL: https://github.com/llvm/llvm-project/commit/a01579ad0a1bde4d90f4fb656f07586c3097428a DIFF: https://github.com/llvm/llvm-project/commit/a01579ad0a1bde4d90f4fb656f07586c3097428a.diff

[PATCH] D127496: [NFC] Suggest Release mode in clang GettingStarted.html

2022-06-10 Thread Shivam Gupta via Phabricator via cfe-commits
xgupta added a comment. Thank you for review! Committed in https://reviews.llvm.org/rGa01579ad0a1bde4d90f4fb656f07586c3097428a. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127496/new/ https://reviews.llvm.org/D127496 ___ cfe-commits mailin

[PATCH] D127487: [Sema] Fix assertion failure when instantiating requires expression

2022-06-10 Thread Ilya Biryukov via Phabricator via cfe-commits
ilya-biryukov added inline comments. Comment at: clang/lib/Sema/SemaTemplateInstantiate.cpp:2042 +!SemaRef.CheckConstraintExpression(TransConstraint.get())) { + assert(Trap.hasErrorOccurred() && "CheckConstraintExpression failed, but " +

[clang] b5019ff - [SystemZ/z/OS] Set DWARF version to 4 for z/OS.

2022-06-10 Thread Kai Nacke via cfe-commits
Author: Kai Nacke Date: 2022-06-10T13:38:58-04:00 New Revision: b5019ffc8efd472d18eb9ed55a004af8d713583d URL: https://github.com/llvm/llvm-project/commit/b5019ffc8efd472d18eb9ed55a004af8d713583d DIFF: https://github.com/llvm/llvm-project/commit/b5019ffc8efd472d18eb9ed55a004af8d713583d.diff LOG

[PATCH] D127498: [SystemZ/z/OS] Set DWARF version to 4 for z/OS.

2022-06-10 Thread Kai Nacke via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGb5019ffc8efd: [SystemZ/z/OS] Set DWARF version to 4 for z/OS. (authored by Kai). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127498/new/ https://reviews.l

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

2022-06-10 Thread Stephen Long via Phabricator via cfe-commits
steplong added a comment. In D126984#3571573 , @aeubanks wrote: > IIRC in the past there was a strong preference to not have the pass manager > support this sort of thing > if you want to support this, there should be an RFC for how the optimization > p

[PATCH] D126974: [scan-build-py] Fix exception on shutdown with sarif-html output format

2022-06-10 Thread Daniel via Phabricator via cfe-commits
isthismyaccount accepted this revision. isthismyaccount added a comment. This revision is now accepted and ready to land. lgtm Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126974/new/ https://reviews.llvm.org/D126974 _

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

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D126984#3571573 , @aeubanks wrote: > IIRC in the past there was a strong preference to not have the pass manager > support this sort of thing > if you want to support this, there should be an RFC for how the optimization

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

2022-06-10 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks added a comment. In D126984#3574033 , @steplong wrote: > In D126984#3571573 , @aeubanks > wrote: > >> IIRC in the past there was a strong preference to not have the pass manager >> support this sort of

[PATCH] D126291: [flang][Driver] Update link job on windows

2022-06-10 Thread Markus Mützel via Phabricator via cfe-commits
mmuetzel added inline comments. Comment at: clang/lib/Driver/ToolChains/Darwin.cpp:645 if (getToolChain().getDriver().IsFlangMode() && Args.hasArg(options::OPT_flang_experimental_exec)) { addFortranRuntimeLibraryPath(getToolChain(), Args, CmdArgs);

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

2022-06-10 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. I agree with @aeubanks , this feature requires major changes to pass manager and I see no value to land this currently. I see that somebody may prefer “opt for size”, but this is exposed via “minsize” attribute so I see no strong need for optimize(“-Os”) Repository:

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

2022-06-10 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks added a comment. In D126984#3574046 , @aaron.ballman wrote: > In D126984#3571573 , @aeubanks > wrote: > >> IIRC in the past there was a strong preference to not have the pass manager >> support this so

[PATCH] D126907: Deferred Concept Instantiation Implementation Take 2

2022-06-10 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added a comment. So from what I can tell, the problem is evaluating `Constraint` on `initiate`, and trying to find the 'right' argument from the `MultiLevelTemplateArgumentList` for `RawCompletionToken`. The problem is that the `RawCompletionToken`, as a template parameter, gets 'fi

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

2022-06-10 Thread Stephen Long via Phabricator via cfe-commits
steplong added a comment. In D126984#3574077 , @aeubanks wrote: > In D126984#3574046 , @aaron.ballman > wrote: > >> In D126984#3571573 , @aeubanks >> wrote: >> >>> IIRC

[PATCH] D127515: [Clang] Change host/device only compilation to a driver mode

2022-06-10 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 created this revision. jhuber6 added reviewers: tra, jdoerfert, JonChesterfield, yaxunl. Herald added a project: All. jhuber6 requested review of this revision. Herald added subscribers: cfe-commits, MaskRay. Herald added a project: clang. We use the flags `--offload-host-only` and `--offl

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

2022-06-10 Thread Richard via Phabricator via cfe-commits
LegalizeAdulthood added a comment. In D126495#3571511 , @njames93 wrote: > Search engines isn't really an issue, its more people who are using older > versions of llvm that try and go to the documentation which turns out is a > dead link. > Having said

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

2022-06-10 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks added a comment. In D126984#3574091 , @steplong wrote: > In D126984#3574077 , @aeubanks > wrote: > >> In D126984#3574046 , >> @aaron.ballman wrote: >> >>> In D1

[PATCH] D126974: [scan-build-py] Fix exception on shutdown with sarif-html output format

2022-06-10 Thread Petr Hosek via Phabricator via cfe-commits
phosek added a comment. Would it be possible to reupload the diff with full context? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126974/new/ https://reviews.llvm.org/D126974 ___ cfe-commits mailing lis

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

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D126984#3574077 , @aeubanks wrote: > In D126984#3574046 , @aaron.ballman > wrote: > >> In D126984#3571573 , @aeubanks >> wrote: >> >>>

[PATCH] D127518: [Diagnostics] Fix inconsistent shift-overflow warnings in C++20

2022-06-10 Thread Shivam Gupta via Phabricator via cfe-commits
xgupta created this revision. xgupta added a reviewer: aaron.ballman. Herald added a project: All. xgupta requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This fixes https://github.com/llvm/llvm-project/issues/52873. Don't warn in C++2A mode

[PATCH] D127408: [clang][driver] Introduce new -fdriver-only flag

2022-06-10 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith accepted this revision. dexonsmith added a comment. LGTM with a minor comment on the test. Comment at: clang/test/Driver/driver-only.c:13 + +// Check that -fdriver-only respects -v. +// Should there be a `-check-epmty` or similar when `-v` is not pas

[PATCH] D127251: [Lex] Fix `fixits` for typo-corrections of preprocessing directives within skipped blocks

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/test/Preprocessor/suggest-typoed-directive.c:1-2 +// clang-format off + // RUN: %clang_cc1 -fsyntax-only -verify=pre-c2x-cpp2b %s akyrtzi wrote: > akyrtzi wrote: > > aaron.ballman wrote: > > > You can remove

[PATCH] D127519: [clang-cl] Accept /FA[c][s][u], but ignore the arguments

2022-06-10 Thread Stephen Long via Phabricator via cfe-commits
steplong created this revision. Herald added a project: All. steplong requested review of this revision. Herald added subscribers: cfe-commits, MaskRay. Herald added a project: clang. Previously, /FAsc would emit a warning. Now, it will just do what /FA does. https://docs.microsoft.com/en-us/cpp/

[PATCH] D127519: [clang-cl] Accept /FA[c][s][u], but ignore the arguments

2022-06-10 Thread Stephen Long via Phabricator via cfe-commits
steplong added reviewers: rnk, hans. steplong added a comment. I'm not sure which test file to modify and how to test this. I do see it generating the `.asm` file now when I pass `/FAsc`, not the `.codd` file though since we are ignoring the `c` argument. Repository: rG LLVM Github Monorepo

[PATCH] D126974: [scan-build-py] Fix exception on shutdown with sarif-html output format

2022-06-10 Thread Anders Waldenborg via Phabricator via cfe-commits
wanders updated this revision to Diff 435999. wanders added a comment. Updated patch with full context. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126974/new/ https://reviews.llvm.org/D126974 Files: clang/tools/scan-build-py/lib/libscanbuild/

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

2022-06-10 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. [[gnu::optimize("O0")]] is okay but [[gnu::optimize("O3 ")]] is not gonna work without major changes. Not sure why we should deliver half-broken new attribute. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D126651: [clang-diff] Fix getStmtValue when dealing with wide, UTF16 UTF32 chars

2022-06-10 Thread Johannes Altmanninger via Phabricator via cfe-commits
johannes added a comment. No idea why the conversion fails for the wide string. First step is to reproduce the problem. I guess we should try in a Ubuntu VM. Is there an easy way to see if other builders succeeded? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://review

[PATCH] D127471: [Coroutines] Convert coroutine.presplit to enum attr

2022-06-10 Thread Eugene Zhulenev via Phabricator via cfe-commits
ezhulenev accepted this revision. ezhulenev added a comment. This revision is now accepted and ready to land. Yes, that's the correct MLIR way of passing attributes to LLVM. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127471/new/ https://reviews.

[PATCH] D126974: [scan-build-py] Fix exception on shutdown with sarif-html output format

2022-06-10 Thread Petr Hosek via Phabricator via cfe-commits
phosek accepted this revision. phosek added a comment. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126974/new/ https://reviews.llvm.org/D126974 ___ cfe-commits mailing list cfe-commits@lists.llvm.

[clang] a9ad689 - [clang][dataflow] Don't `assert` full LHS coverage in `optional` model

2022-06-10 Thread Yitzhak Mandelbaum via cfe-commits
Author: Sam Estep Date: 2022-06-10T19:10:20Z New Revision: a9ad689e352dd1037f947dacc7d01c091b67e00c URL: https://github.com/llvm/llvm-project/commit/a9ad689e352dd1037f947dacc7d01c091b67e00c DIFF: https://github.com/llvm/llvm-project/commit/a9ad689e352dd1037f947dacc7d01c091b67e00c.diff LOG: [cl

[PATCH] D127502: [clang][dataflow] Don't `assert` full LHS coverage in `optional` model

2022-06-10 Thread Yitzhak Mandelbaum via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGa9ad689e352d: [clang][dataflow] Don't `assert` full LHS coverage in `optional` model (authored by samestep, committed by ymandel). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https:

[PATCH] D125936: [Sema] Relax an assertion in BuildStmtExpr

2022-06-10 Thread Akira Hatanaka via Phabricator via cfe-commits
ahatanak added a comment. ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D125936/new/ https://reviews.llvm.org/D125936 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cg

[clang] b3b08ad - [Clang] Added missing doc for minsize attribute

2022-06-10 Thread Dávid Bolvanský via cfe-commits
Author: Dávid Bolvanský Date: 2022-06-10T21:18:45+02:00 New Revision: b3b08ad6239ccf68bb725defde07edb7a471a9b2 URL: https://github.com/llvm/llvm-project/commit/b3b08ad6239ccf68bb725defde07edb7a471a9b2 DIFF: https://github.com/llvm/llvm-project/commit/b3b08ad6239ccf68bb725defde07edb7a471a9b2.dif

[PATCH] D127528: [Clang] Let the linker choose shared or static libunwind unless specified

2022-06-10 Thread Petr Hosek via Phabricator via cfe-commits
phosek created this revision. phosek added reviewers: saugustine, jkz. Herald added a subscriber: mstorsjo. Herald added a project: All. phosek requested review of this revision. Herald added subscribers: cfe-commits, MaskRay. Herald added a project: clang. We shouldn't assume that libunwind.so is

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

2022-06-10 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. In D126984#3574071 , @xbolva00 wrote: > I agree with @aeubanks , this feature requires major changes to pass manager > and I see no value to land this currently. > > I see that somebody may prefer “opt for size”, but this is exp

[PATCH] D127528: [Clang] Let the linker choose shared or static libunwind unless specified

2022-06-10 Thread Petr Hosek via Phabricator via cfe-commits
phosek added a comment. We ran into this in the Fuchsia toolchain where we only ship `libunwind.a` on Linux, but Clang is forcing the use of `libunwind.so` unless you explicitly set `-shared-libgcc`. With this change, the linker will choose whichever library is available by default. Repositor

[clang] 0bb317b - Revert "[cmake] Don't export `LLVM_TOOLS_INSTALL_DIR` anymore"

2022-06-10 Thread John Ericson via cfe-commits
Author: John Ericson Date: 2022-06-10T19:26:12Z New Revision: 0bb317b7bff3d4f70bddd03a1f337c3f2a118943 URL: https://github.com/llvm/llvm-project/commit/0bb317b7bff3d4f70bddd03a1f337c3f2a118943 DIFF: https://github.com/llvm/llvm-project/commit/0bb317b7bff3d4f70bddd03a1f337c3f2a118943.diff LOG:

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

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D126984#3574288 , @xbolva00 wrote: > [[gnu::optimize("O0")]] is okay but [[gnu::optimize("O3 > ")]] is not gonna work without > major changes. Not sure why we should deliver h

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

2022-06-10 Thread Mitch Phillips via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. hctim marked an inline comment as done. Closed by commit rG8db981d463ee: Add sanitizer-specific GlobalValue attributes. (authored by hctim). Repository: rG LLVM Gith

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

2022-06-10 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. "The optimize attribute should be used for debugging purposes only. It is not suitable in production code." Until they (users) start and any change in pipeline may surprise them. Personally I am bigger fan of more targeted attributes like we have noinline / noipa prop

[PATCH] D126651: [clang-diff] Fix getStmtValue when dealing with wide, UTF16 UTF32 chars

2022-06-10 Thread Douglas Yung via Phabricator via cfe-commits
dyung added a comment. In D126651#3574290 , @johannes wrote: > No idea why the conversion fails for the wide string. > First step is to reproduce the problem. I guess we should try in a Ubuntu VM. > Is there an easy way to see if other builders succeeded?

LLVM lab will be unavailable today starting 1:30 PM PST

2022-06-10 Thread Galina Kistanova via cfe-commits
Hello, LLVM lab will be unavailable for a few hours today starting 1:30 PM PST for maintenance. I will send an update when it is completed. Thank you for understanding. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://list

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

2022-06-10 Thread serge via Phabricator via cfe-commits
serge-sans-paille updated this revision to Diff 435900. serge-sans-paille added a comment. Cleanup testcase CHANGES SINCE LAST ACTION https://reviews.llvm.org/D126864/new/ https://reviews.llvm.org/D126864 Files: clang/docs/ClangCommandLineReference.rst clang/docs/ReleaseNotes.rst clang

[PATCH] D127532: [clang-format] Fix a bug in RemoveBracesLLVM

2022-06-10 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. Remove the bra

[clang] 0fe88f9 - [PS4/PS5] Don't inherit base class alignment

2022-06-10 Thread Paul Robinson via cfe-commits
Author: Paul Robinson Date: 2022-06-10T13:15:17-07:00 New Revision: 0fe88f9679ff6df5a7cce7e89038602c35a5e272 URL: https://github.com/llvm/llvm-project/commit/0fe88f9679ff6df5a7cce7e89038602c35a5e272 DIFF: https://github.com/llvm/llvm-project/commit/0fe88f9679ff6df5a7cce7e89038602c35a5e272.diff

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

2022-06-10 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D126984#3574445 , @xbolva00 wrote: > "The optimize attribute should be used for debugging purposes only. It is not > suitable in production code." > > Until they (users) start and any change in pipeline may surprise them

[PATCH] D127251: [Lex] Fix `fixits` for typo-corrections of preprocessing directives within skipped blocks

2022-06-10 Thread Argyrios Kyrtzidis via Phabricator via cfe-commits
akyrtzi updated this revision to Diff 436024. akyrtzi added a comment. Remove `// clang-format off` annotation. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127251/new/ https://reviews.llvm.org/D127251 Files: clang/include/clang/Lex/Preprocesso

[clang] fbaa8b9 - [Lex] Fix `fixits` for typo-corrections of preprocessing directives within skipped blocks

2022-06-10 Thread Argyrios Kyrtzidis via cfe-commits
Author: Argyrios Kyrtzidis Date: 2022-06-10T13:32:19-07:00 New Revision: fbaa8b9ae5f3c6637be7d4dae6adaab4be811625 URL: https://github.com/llvm/llvm-project/commit/fbaa8b9ae5f3c6637be7d4dae6adaab4be811625 DIFF: https://github.com/llvm/llvm-project/commit/fbaa8b9ae5f3c6637be7d4dae6adaab4be811625.

[PATCH] D127251: [Lex] Fix `fixits` for typo-corrections of preprocessing directives within skipped blocks

2022-06-10 Thread Argyrios Kyrtzidis 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 rGfbaa8b9ae5f3: [Lex] Fix `fixits` for typo-corrections of preprocessing directives within… (authored by akyrtzi). Repository: rG LLVM Github Monore

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

2022-06-10 Thread Arthur Eubanks via Phabricator via cfe-commits
aeubanks added a comment. I can't speak for @xbolva00 but the only part I'm against is the user-visible feature of > - Added preliminary support for GCC's attribute `optimize`, which allows > functions to be compiled with different optimization options than what was > specified on the command

[PATCH] D109701: [clang] Emit SARIF Diagnostics: Create `clang::SarifDocumentWriter` interface

2022-06-10 Thread Vaibhav Yenamandra via Phabricator via cfe-commits
vaibhav.y updated this revision to Diff 436030. vaibhav.y added a comment. Rebase on main branch from upstream git Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D109701/new/ https://reviews.llvm.org/D109701 Files: clang/include/clang/Basic/Sarif.

[PATCH] D127313: [libc++] Implement P0618R0 (Deprecating )

2022-06-10 Thread Nikolas Klauser via Phabricator via cfe-commits
philnik updated this revision to Diff 436032. philnik marked 3 inline comments as done. philnik added a comment. - Address comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D127313/new/ https://reviews.llvm.org/D127313 Files: libcxx/docs/Rel

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

2022-06-10 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. >> Are you opposed to exposing #pragma optimize? >> (https://docs.microsoft.com/en-us/cpp/preprocessor/optimize?view=msvc-170) >> If yes, I think Stephen should run an RFC on Discourse to see if there's >> general agreement. No, I like it, seems more useful and genera

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

2022-06-10 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added a comment. But where I think this feature could be very useful in following case from gcc test suite where there is some FP computation.. Imagine you compile you program with -ffast-math and then you have function: __attribute__ ((optimize ("no-associative-math"))) double fn3

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

2022-06-10 Thread Dávid Bolvanský via Phabricator via cfe-commits
xbolva00 added inline comments. Comment at: clang/test/CodeGen/attr-optimize.c:4 + +__attribute__((optimize("O0"))) void f1(void) {} +// O2: @f1{{.*}}[[ATTR_OPTNONE:#[0-9]+]] No support for ``` __attribute__ ((__optimize__ (0))) ``` ? GCC supports it Reposito

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

2022-06-10 Thread Stephen Long via Phabricator via cfe-commits
steplong added inline comments. Comment at: clang/test/CodeGen/attr-optimize.c:4 + +__attribute__((optimize("O0"))) void f1(void) {} +// O2: @f1{{.*}}[[ATTR_OPTNONE:#[0-9]+]] xbolva00 wrote: > No support for > ``` > __attribute__ ((__optimize__ (0))) > ``` > >

[clang] ff4abe7 - [scan-build-py] Fix exception on shutdown with sarif-html output format

2022-06-10 Thread Anders Waldenborg via cfe-commits
Author: Anders Waldenborg Date: 2022-06-10T23:21:09+02:00 New Revision: ff4abe755279a3a47cc416ef80dbc900d9a98a19 URL: https://github.com/llvm/llvm-project/commit/ff4abe755279a3a47cc416ef80dbc900d9a98a19 DIFF: https://github.com/llvm/llvm-project/commit/ff4abe755279a3a47cc416ef80dbc900d9a98a19.d

[PATCH] D126974: [scan-build-py] Fix exception on shutdown with sarif-html output format

2022-06-10 Thread Anders Waldenborg via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGff4abe755279: [scan-build-py] Fix exception on shutdown with sarif-html output format (authored by wanders). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D12

[PATCH] D127544: Add no_sanitize('hwaddress') (and 'memtag', but that's a no-op).

2022-06-10 Thread Mitch Phillips via Phabricator via cfe-commits
hctim created this revision. hctim added a reviewer: pcc. Herald added a reviewer: aaron.ballman. Herald added a subscriber: Enna1. Herald added a project: All. hctim requested review of this revision. Herald added projects: clang, Sanitizers. Herald added subscribers: Sanitizers, cfe-commits. Cur

  1   2   3   >