[PATCH] D134020: [clang][Interp] Handle enums

2022-09-20 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added a comment. Anything still missing here? (CI failure is because one of the other patches is missing) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134020/new/ https://reviews.llvm.org/D134020

[PATCH] D134311: [clang] handle extended integer constant expressions in _Static_assert (PR #57687)

2022-09-20 Thread Timm Bäder via Phabricator via cfe-commits
tbaeder added inline comments. Comment at: clang/lib/Sema/SemaDeclCXX.cpp:16733 + while (auto *BaseCast = dyn_cast(BaseExpr)) +BaseExpr = BaseCast->getSubExpr(); +} There is `Expr::ignoreParenImpCasts()` or `Expr::ImpCasts()` that should do

[PATCH] D134270: [clang] [Driver] Support multiple configuration files

2022-09-20 Thread Serge Pavlov via Phabricator via cfe-commits
sepavloff added a comment. What about the case, when executable file has a target prefix (so implicit config file may be used) and the option `--config` is specified in command line? Now this case becomes possible and we should either reject it (because explicit config files have precedence)

[PATCH] D133289: [C2X] N3007 Type inference for object definitions

2022-09-20 Thread Guillot Tony via Phabricator via cfe-commits
to268 added a comment. Also i have found that we don't parse the compound literal with the `auto` keyword correctly in `ParseExpr.cpp` between line 939 to 973 which is the beginning of `Parser::ParseCastExpression(...)` int test_cl = (int){12}; // Compound literal is detected auto

[clang] 3db2917 - [clang] [docs] Improve formatting & fix typo in config docs

2022-09-20 Thread Michał Górny via cfe-commits
Author: Michał Górny Date: 2022-09-21T07:26:56+02:00 New Revision: 3db2917e270673be281547ec80796dc6f254be82 URL: https://github.com/llvm/llvm-project/commit/3db2917e270673be281547ec80796dc6f254be82 DIFF: https://github.com/llvm/llvm-project/commit/3db2917e270673be281547ec80796dc6f254be82.diff

[PATCH] D134271: [clang] [docs] Improve formatting & fix typo in config docs

2022-09-20 Thread Michał Górny 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 rG3db2917e2706: [clang] [docs] Improve formatting fix typo in config docs (authored by mgorny). Herald added a project: clang. Repository: rG LLVM

[PATCH] D133289: [C2X] N3007 Type inference for object definitions

2022-09-20 Thread Guillot Tony via Phabricator via cfe-commits
to268 updated this revision to Diff 461790. to268 marked 2 inline comments as done. to268 added a comment. I've added more test cases, added a diagnostic when using `auto` in compound literals and advised fixes Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D134325: [clang-format] Look ahead before consuming `bool` in requires clause.

2022-09-20 Thread zzyyyl via Phabricator via cfe-commits
zzyyyl added a comment. What if `concept c = (bool)(...)` ? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134325/new/ https://reviews.llvm.org/D134325 ___ cfe-commits mailing list

[PATCH] D134334: [Clang] Fix crash in isCXXDeclarationSpecifier when attempting to annotate template name

2022-09-20 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik created this revision. shafik added reviewers: aaron.ballman, erichkeane. Herald added a project: All. shafik requested review of this revision. When attempting to decide if in C++17 a type template for class template argument deduction and the code is ill-formed the condition to break is

[PATCH] D134269: [docs] Document the one-phase style compilation to c++ standard modules

2022-09-20 Thread Chuanqi Xu via Phabricator via cfe-commits
ChuanqiXu updated this revision to Diff 461782. ChuanqiXu marked 2 inline comments as done. ChuanqiXu added a comment. Address comments. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134269/new/ https://reviews.llvm.org/D134269 Files: clang/docs/StandardCPlusPlusModules.rst Index:

[PATCH] D134271: [clang] [docs] Improve formatting & fix typo in config docs

2022-09-20 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. Looks great! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134271/new/ https://reviews.llvm.org/D134271 ___ cfe-commits mailing list

[clang] 669e508 - [Driver] Fix -f[no-]unwind-tables -Wunused-command-line-argument after 4388b56d525c08ce3cf941cfbad2428b0e1695b0

2022-09-20 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2022-09-20T20:13:30-07:00 New Revision: 669e508772e5e00db6285d699ee82a428dc00f32 URL: https://github.com/llvm/llvm-project/commit/669e508772e5e00db6285d699ee82a428dc00f32 DIFF: https://github.com/llvm/llvm-project/commit/669e508772e5e00db6285d699ee82a428dc00f32.diff

[PATCH] D130513: [Flang] Add -fconvert option to swap endianness for unformatted files

2022-09-20 Thread Peixin Qiao via Phabricator via cfe-commits
peixin added a comment. In D130513#3804659 , @jpenix-quic wrote: >> The build still fails. > > I think it might be an infrastructure issue or something like that--I've > tried restarting it a few times and each time it just ends with "HTTP 28" as >

[PATCH] D130513: [Flang] Add -fconvert option to swap endianness for unformatted files

2022-09-20 Thread Jonathon Penix via Phabricator via cfe-commits
jpenix-quic added a comment. > The build still fails. I think it might be an infrastructure issue or something like that--I've tried restarting it a few times and each time it just ends with "HTTP 28" as the only message I see. Another review that was created a bit ago

[PATCH] D130513: [Flang] Add -fconvert option to swap endianness for unformatted files

2022-09-20 Thread Peixin Qiao via Phabricator via cfe-commits
peixin added a comment. The build still fails. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130513/new/ https://reviews.llvm.org/D130513 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D134330: [Docs] [HLSL] Add note about PCH support

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae created this revision. python3kgae added reviewers: beanz, pow2clk, bogner, bob80905. Herald added a subscriber: Anastasia. Herald added a project: All. python3kgae requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. PCH supported

[PATCH] D134249: [modules] Fix error "malformed or corrupted AST file: 'SourceLocation remap refers to unknown module...'".

2022-09-20 Thread Volodymyr Sapsai via Phabricator via cfe-commits
vsapsai marked an inline comment as done. vsapsai added a comment. Thanks for the review! Comment at: clang/lib/Serialization/ModuleManager.cpp:284-286 for (ModuleIterator victim = First; victim != Last; ++victim) { Modules.erase(victim->File); }

[PATCH] D134249: [modules] Fix error "malformed or corrupted AST file: 'SourceLocation remap refers to unknown module...'".

2022-09-20 Thread Volodymyr Sapsai via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGe12f6c26c394: [modules] Fix error malformed or corrupted AST file: SourceLocation remap… (authored by vsapsai). Changed prior to commit: https://reviews.llvm.org/D134249?vs=461435=461770#toc

[clang] e12f6c2 - [modules] Fix error "malformed or corrupted AST file: 'SourceLocation remap refers to unknown module...'".

2022-09-20 Thread Volodymyr Sapsai via cfe-commits
Author: Volodymyr Sapsai Date: 2022-09-20T17:55:37-07:00 New Revision: e12f6c26c394bd5b49e7c1e1c157bcee3a33d1de URL: https://github.com/llvm/llvm-project/commit/e12f6c26c394bd5b49e7c1e1c157bcee3a33d1de DIFF:

[PATCH] D131067: [analyzer] Treat values passed as parameter as escaped

2022-09-20 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: clang/lib/StaticAnalyzer/Checkers/DeadStoresChecker.cpp:538 + CallExpr::const_arg_range Args) { +for (const auto &[Param, Arg] : llvm::zip(FD->parameters(), Args)) { + if

[clang] 7a23920 - [clang] Fix an unused variable warning

2022-09-20 Thread Kazu Hirata via cfe-commits
Author: Kazu Hirata Date: 2022-09-20T17:41:58-07:00 New Revision: 7a239200e673c4e4c0c6d87cd35bce5bac2d44a7 URL: https://github.com/llvm/llvm-project/commit/7a239200e673c4e4c0c6d87cd35bce5bac2d44a7 DIFF: https://github.com/llvm/llvm-project/commit/7a239200e673c4e4c0c6d87cd35bce5bac2d44a7.diff

[PATCH] D132030: [analyzer] Pass correct bldrCtx to computeObjectUnderConstruction

2022-09-20 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ accepted this revision. NoQ added a comment. This revision is now accepted and ready to land. LGTM! Thanks again for your investigation. And patience! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132030/new/ https://reviews.llvm.org/D132030

[PATCH] D101526: [analyzer][StdLibraryFunctionsChecker] Add NoteTags for applied arg constraints

2022-09-20 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added a comment. Hi, looks great! I found a couple of typos and the amount of changes in tests is suspiciously low. And I want to make sure that the promise to change "arg" -> "argument" isn't lost (but I'll be happy if it's addressed in a follow-up patch). Comment at:

[PATCH] D134296: [SIE] Always enable the .debug_aranges section when using LTO

2022-09-20 Thread NAKAMURA Takumi via Phabricator via cfe-commits
chapuni added a comment. A warning can be seen in -Asserts. Comment at: clang/lib/Driver/ToolChains/PS4CPU.cpp:160 const bool IsPS5 = TC.getTriple().isPS5(); assert(IsPS4 || IsPS5); IsPS5 is used only here. Repository: rG LLVM Github Monorepo

[PATCH] D134329: [clang-format][NFC] Reformat clang/lib/Format using 6257832bf94f

2022-09-20 Thread Owen Pan via Phabricator via cfe-commits
owenpan created this revision. owenpan added reviewers: MyDeveloperDay, HazardyKnusperkeks, curdeius. 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. Fix braces

[PATCH] D130513: [Flang] Add -fconvert option to swap endianness for unformatted files

2022-09-20 Thread Jonathon Penix via Phabricator via cfe-commits
jpenix-quic marked 5 inline comments as done. jpenix-quic added inline comments. Comment at: flang/test/Driver/convert.f90:1 +! Ensure argument -fconvert= works as expected. + awarzynski wrote: > rovka wrote: > > Nit: Shouldn't you also check that valid values

[PATCH] D130513: [Flang] Add -fconvert option to swap endianness for unformatted files

2022-09-20 Thread Jonathon Penix via Phabricator via cfe-commits
jpenix-quic updated this revision to Diff 461759. jpenix-quic marked an inline comment as done. jpenix-quic added a comment. Move comment, see if build will cooperate. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130513/new/ https://reviews.llvm.org/D130513 Files:

[PATCH] D134326: [HLSL] Allow SV_GroupIndex for lib profile.

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae created this revision. python3kgae added reviewers: beanz, pow2clk, bogner, bob80905. Herald added subscribers: Anastasia, arphaman. Herald added a reviewer: aaron.ballman. Herald added a project: All. python3kgae requested review of this revision. Herald added a project: clang. Herald

[PATCH] D134235: [clang-doc] Clean up *Info constructors.

2022-09-20 Thread Haowei Wu via Phabricator via cfe-commits
haowei added a comment. I am a bit puzzled by the intent of cleaning up the constructors in Info object. I didn't see it as an issue to have multiple constructors, which is a common practice. After this clean up It doesn't make it easier to use these objects, in fact, in `Serialize.cpp`, you

[PATCH] D130513: [Flang] Add -fconvert option to swap endianness for unformatted files

2022-09-20 Thread Jonathon Penix via Phabricator via cfe-commits
jpenix-quic updated this revision to Diff 461753. jpenix-quic added a comment. Address comments from @awarzynski, @rovka, and @peixin. Also fixed the file header comments for EnvironmentDefaults.h, environment-defaults.h, and environment-default-list.h to match others in their respective

[PATCH] D134325: [clang-format] Look ahead before consuming `bool` in requires clause.

2022-09-20 Thread Emilia Dreamer via Phabricator via cfe-commits
rymiel created this revision. rymiel added reviewers: HazardyKnusperkeks, owenpan, MyDeveloperDay, curdeius. Herald added a project: All. rymiel requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. The comment handling the bool case says: "bool

[PATCH] D129883: [HLSL] Support cbuffer/tbuffer for hlsl.

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae updated this revision to Diff 461751. python3kgae added a comment. Rebase for the PCH fix. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D129883/new/ https://reviews.llvm.org/D129883 Files: clang/include/clang/AST/Decl.h

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 updated this revision to Diff 461749. bob80905 added a comment. fix attempt 2 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134319/new/ https://reviews.llvm.org/D134319 Files: clang/lib/Headers/hlsl/hlsl_intrinsics.h

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 updated this revision to Diff 461747. bob80905 added a comment. fix attempt 1 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134319/new/ https://reviews.llvm.org/D134319 Files: clang/lib/Headers/hlsl/hlsl_intrinsics.h Index:

[PATCH] D134311: [clang] handle extended integer constant expressions in _Static_assert (PR #57687)

2022-09-20 Thread Martin Sebor via Phabricator via cfe-commits
msebor updated this revision to Diff 461744. msebor added a comment. Update to the latest diff that didn't get picked up in the first submission. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134311/new/ https://reviews.llvm.org/D134311 Files:

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 updated this revision to Diff 461739. bob80905 added a comment. Herald added subscribers: llvm-commits, bzcheeseman, sdasgup3, wenzhicui, wrengr, cota, mravishankar, teijeong, rdzhabarov, tatianashp, ThomasRaoux, msifontes, jurahul, Kayjukh, grosul1, Joonsoo, stephenneuendorffer,

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae added inline comments. Comment at: clang/lib/Headers/hlsl/hlsl_intrinsics.h:18 // abs builtins -__attribute__((clang_builtin_alias(__builtin_abs))) int abs(int In); -__attribute__((clang_builtin_alias(__builtin_labs))) int64_t abs(int64_t In); The

[PATCH] D134295: [clang] Fix missing template arguments in AST of access to member variable template

2022-09-20 Thread Matheus Izvekov via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGc493d49cefee: [clang] Fix missing template arguments in AST of access to member variable… (authored by mizvekov). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[clang] c493d49 - [clang] Fix missing template arguments in AST of access to member variable template

2022-09-20 Thread Matheus Izvekov via cfe-commits
Author: Matheus Izvekov Date: 2022-09-21T00:46:18+02:00 New Revision: c493d49cefeefa87532a2987a776b5433265e49f URL: https://github.com/llvm/llvm-project/commit/c493d49cefeefa87532a2987a776b5433265e49f DIFF:

[PATCH] D133108: [clang] Rework IsTailPaddedMemberArray into isFlexibleArrayMemberExpr

2022-09-20 Thread Martin Sebor via Phabricator via cfe-commits
msebor added inline comments. Comment at: clang/test/Sema/unbounded-array-bounds.c:101 + char tail[1]; // addr16-note {{declared here}} addr32-note {{declared here}} +} fam1; + msebor wrote: > There's a difference between the sizes of `fam1` and `fam` that

[PATCH] D53847: [C++2a] P0634r3: Down with typename!

2022-09-20 Thread Alan Zhao via Phabricator via cfe-commits
ayzhao added inline comments. Comment at: clang/include/clang/Sema/DeclSpec.h:1918 + /// Lookup result of declarator, if any. + std::unique_ptr PrevLookupResult; + shafik wrote: > Why do we need this one shot previous lookup result? I am struggling to see >

[PATCH] D133468: [clang] Implement divergence for TypedefType and UsingType

2022-09-20 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov added a comment. In D133468#3803449 , @sammccall wrote: > The descriptions here are pretty general and opaque nad it's hard to follow > what this means in practice. > It sounds like the motivating cases are to do with template instantiation -

[PATCH] D53847: [C++2a] P0634r3: Down with typename!

2022-09-20 Thread Alan Zhao via Phabricator via cfe-commits
ayzhao updated this revision to Diff 461729. ayzhao marked 2 inline comments as done. ayzhao added a comment. remove PrevLookupResult + put Declarator(...) and ~Declarator() definitions back in the header files to reduce the diff since we're no longer overloading the constructor. Repository:

[clang] 079a5ff - [HLSL] Support PCH for cc1 mode

2022-09-20 Thread Xiang Li via cfe-commits
Author: Xiang Li Date: 2022-09-20T15:13:43-07:00 New Revision: 079a5ffb0a3f862bee3076f785d5c71c03e14f00 URL: https://github.com/llvm/llvm-project/commit/079a5ffb0a3f862bee3076f785d5c71c03e14f00 DIFF: https://github.com/llvm/llvm-project/commit/079a5ffb0a3f862bee3076f785d5c71c03e14f00.diff

[PATCH] D132421: [HLSL] Support PCH for cc1 mode

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG079a5ffb0a3f: [HLSL] Support PCH for cc1 mode (authored by python3kgae). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132421/new/

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 updated this revision to Diff 461727. bob80905 added a comment. - remove int attribute links in hlsl_intrinsics.h Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134319/new/ https://reviews.llvm.org/D134319 Files:

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 updated this revision to Diff 461725. bob80905 added a comment. - add elementwise function tests. Remove integer tests, ceil will not take integer types as an arg Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134319/new/

[PATCH] D134249: [modules] Fix error "malformed or corrupted AST file: 'SourceLocation remap refers to unknown module...'".

2022-09-20 Thread Ben Barham via Phabricator via cfe-commits
bnbarham accepted this revision. bnbarham added a comment. LGTM. > When we try to load such outdated .pcm file, we shouldn't change any already > loaded and processed modules. Or to put another way - we can't remove these modules because they may already have references... anywhere.

[PATCH] D133993: [HLSL] Remove global ctor/dtor variable for non-lib profile.

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae marked 4 inline comments as done. python3kgae added inline comments. Comment at: clang/lib/CodeGen/CGHLSLRuntime.cpp:208 + // ctors/dtors added for entry. + Triple T(M.getTargetTriple()); + if (T.getEnvironment() != Triple::EnvironmentType::Library) {

[PATCH] D133801: Extraction of a matcher for an unused value from an expression from the bugprone-unused-return-value check

2022-09-20 Thread Bartłomiej Cieślar via Phabricator via cfe-commits
barcisz updated this revision to Diff 461721. barcisz added a comment. Tests for the check Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D133801/new/ https://reviews.llvm.org/D133801 Files:

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added a comment. For this builtin you should be able to use `__builtin_elementwise_ceil` for all the overload cases, and you should be able to add the vector cases too. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134319/new/

[PATCH] D133993: [HLSL] Remove global ctor/dtor variable for non-lib profile.

2022-09-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/lib/CodeGen/CGHLSLRuntime.cpp:208 + // ctors/dtors added for entry. + Triple T(M.getTargetTriple()); + if (T.getEnvironment() != Triple::EnvironmentType::Library) { python3kgae wrote: > beanz wrote: > > I

[PATCH] D134296: [SIE] Always enable the .debug_aranges section when using LTO

2022-09-20 Thread Matthew Voss 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 rG45c7da241f12: [PS4] Always enable the .debug_aranges section when using LTO (authored by ormris). Herald added a subscriber: cfe-commits.

[clang] 45c7da2 - [PS4] Always enable the .debug_aranges section when using LTO

2022-09-20 Thread Matthew Voss via cfe-commits
Author: Matthew Voss Date: 2022-09-20T14:44:56-07:00 New Revision: 45c7da241f124d49abdc0598d381d96d15918834 URL: https://github.com/llvm/llvm-project/commit/45c7da241f124d49abdc0598d381d96d15918834 DIFF: https://github.com/llvm/llvm-project/commit/45c7da241f124d49abdc0598d381d96d15918834.diff

[PATCH] D134319: [HLSL] add ceil library function

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 created this revision. bob80905 added a reviewer: beanz. Herald added a subscriber: Anastasia. Herald added a project: All. bob80905 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. This change exposes the ceil library function for

[PATCH] D134318: [clang][dataflow] Remove deprecated `transfer(const Stmt *, ...)` API.

2022-09-20 Thread weiyi via Phabricator via cfe-commits
wyt created this revision. Herald added subscribers: martong, xazax.hun. Herald added a reviewer: NoQ. Herald added a project: All. wyt requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo

[PATCH] D133993: [HLSL] Remove global ctor/dtor variable for non-lib profile.

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae marked 3 inline comments as done. python3kgae added inline comments. Comment at: clang/lib/CodeGen/CGHLSLRuntime.cpp:208 + // ctors/dtors added for entry. + Triple T(M.getTargetTriple()); + if (T.getEnvironment() != Triple::EnvironmentType::Library) {

[PATCH] D134316: [clang][docs] Fix supported element types for `__builtin_reduce_(add|mul)`

2022-09-20 Thread Joe Loser via Phabricator via cfe-commits
jloser created this revision. jloser added reviewers: RKSimon, nikic, fhahn. Herald added a project: All. jloser requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. The docs mention that `__builtin_reduce_add` and `__builtin_reduce_mul`

[PATCH] D133993: [HLSL] Remove global ctor/dtor variable for non-lib profile.

2022-09-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/lib/CodeGen/CGHLSLRuntime.cpp:208 + // ctors/dtors added for entry. + Triple T(M.getTargetTriple()); + if (T.getEnvironment() != Triple::EnvironmentType::Library) { I question whether we should do this early or

[PATCH] D133108: [clang] Rework IsTailPaddedMemberArray into isFlexibleArrayMemberExpr

2022-09-20 Thread Martin Sebor via Phabricator via cfe-commits
msebor added inline comments. Comment at: clang/test/Sema/unbounded-array-bounds.c:101 + char tail[1]; // addr16-note {{declared here}} addr32-note {{declared here}} +} fam1; + There's a difference between the sizes of `fam1` and `fam` that makes accesses to

[PATCH] D134314: [HIP] stop forcing the lang std in the driver

2022-09-20 Thread Siu Chi Chan via Phabricator via cfe-commits
scchan created this revision. scchan added a reviewer: yaxunl. Herald added a project: All. scchan requested review of this revision. Herald added subscribers: cfe-commits, MaskRay. Herald added a project: clang. D103221 changed HIP's default to C++14, removing

[PATCH] D134300: [llvm] Handle dso_local_equivalent in FunctionComparator

2022-09-20 Thread Petr Hosek via Phabricator via cfe-commits
phosek accepted this revision. phosek 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/D134300/new/ https://reviews.llvm.org/D134300

[clang] d76c654 - [HLSL] remove unnecessary abs attributes

2022-09-20 Thread Chris Bieneman via cfe-commits
Author: Joshua Batista Date: 2022-09-20T16:04:21-05:00 New Revision: d76c654d02b66d8ec695d531d82a482224f21c79 URL: https://github.com/llvm/llvm-project/commit/d76c654d02b66d8ec695d531d82a482224f21c79 DIFF:

[PATCH] D134312: [HLSL] remove unnecessary abs attributes

2022-09-20 Thread Chris Bieneman 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 rGd76c654d02b6: [HLSL] remove unnecessary abs attributes (authored by bob80905, committed by beanz). Repository: rG LLVM Github Monorepo CHANGES

[PATCH] D134312: [HLSL] remove unnecessary abs attributes

2022-09-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz accepted this revision. beanz added a comment. This revision is now accepted and ready to land. Doh... I should have caught this before I pushed your last change. Thanks! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134312/new/

[PATCH] D53847: [C++2a] P0634r3: Down with typename!

2022-09-20 Thread Alan Zhao via Phabricator via cfe-commits
ayzhao updated this revision to Diff 461699. ayzhao added a comment. rebase + clang-format Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D53847/new/ https://reviews.llvm.org/D53847 Files: clang/include/clang/Basic/DiagnosticSemaKinds.td

[PATCH] D132421: [HLSL] Support PCH for cc1 mode

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae updated this revision to Diff 461695. python3kgae marked 2 inline comments as done. python3kgae added a comment. Move #include "clang/Sema/MultiplexExternalSemaSource.h" into FrontendAction.cpp Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

[PATCH] D134312: [HLSL] remove unnecessary abs attributes

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 created this revision. bob80905 added reviewers: python3kgae, beanz. Herald added a subscriber: Anastasia. Herald added a project: All. bob80905 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. remove abs non-elementwise attribute

[PATCH] D133586: [clang] initialize type qualifiers for FunctionNoProtoType

2022-09-20 Thread Richard Howell via Phabricator via cfe-commits
rmaz updated this revision to Diff 461689. rmaz edited the summary of this revision. rmaz added a comment. Add unit test for type qualifiers Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D133586/new/ https://reviews.llvm.org/D133586 Files:

[PATCH] D134304: [Docs] [HLSL] Add IR reference for HLSL

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae added inline comments. Comment at: clang/docs/HLSL/HLSLIRReference.rst:20 + +The ``hlsl.uavs`` metadata is a list of all the global variables that represent +to UAV resources. beanz wrote: > python3kgae wrote: > > Maybe only external global

[PATCH] D133834: [RISCV] Remove support for the unratified Zbt extension.

2022-09-20 Thread Philip Reames via Phabricator via cfe-commits
reames accepted this revision. reames added a comment. LGTM as well. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D133834/new/ https://reviews.llvm.org/D133834 ___ cfe-commits mailing list

[PATCH] D134137: [clangd] Return earlier when snippet is empty

2022-09-20 Thread Tom Praschan via Phabricator via cfe-commits
tom-anders added inline comments. Comment at: clang-tools-extra/clangd/unittests/CodeCompleteTests.cpp:1017 +TEST(CompletionTests, EmptySnippetDoesNotCrash) { +// See https://github.com/clangd/clangd/issues/1216 nridge wrote: > tom-anders wrote: > >

[PATCH] D132711: [HLSL] add sqrt library function

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae added inline comments. Comment at: clang/lib/Headers/hlsl/hlsl_intrinsics.h:18 +// abs builtins +__attribute__((clang_builtin_alias(__builtin_abs))) int abs(int In); +__attribute__((clang_builtin_alias(__builtin_labs))) int64_t abs(int64_t In); This

[PATCH] D133092: [clang] fix generation of .debug_aranges with LTO

2022-09-20 Thread Azat Khuzhin via Phabricator via cfe-commits
azat added a comment. > If the two patches are basically identical with just some fixes for the > problem, the convention is to reuse the original Differential. Ok, did not know that, will keep it in mind, thanks! > You can click "Add Action - Open" (or Reopen?), then you can upload a new >

[clang-tools-extra] 60528c6 - [clangd] Return earlier when snippet is empty

2022-09-20 Thread Tom Praschan via cfe-commits
Author: Tom Praschan Date: 2022-09-21T00:45:26+02:00 New Revision: 60528c690a4c334d2a3a2c22eb97af9e67d7a91d URL: https://github.com/llvm/llvm-project/commit/60528c690a4c334d2a3a2c22eb97af9e67d7a91d DIFF: https://github.com/llvm/llvm-project/commit/60528c690a4c334d2a3a2c22eb97af9e67d7a91d.diff

[PATCH] D134137: [clangd] Return earlier when snippet is empty

2022-09-20 Thread Tom Praschan 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 rG60528c690a4c: [clangd] Return earlier when snippet is empty (authored by tom-anders). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D134304: [Docs] [HLSL] Add IR reference for HLSL

2022-09-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/docs/HLSL/HLSLIRReference.rst:20 + +The ``hlsl.uavs`` metadata is a list of all the global variables that represent +to UAV resources. python3kgae wrote: > Maybe only external global variables? > Do they have to be

[PATCH] D134311: [clang] handle extended integer constant expressions in _Static_assert (PR #57687)

2022-09-20 Thread Martin Sebor via Phabricator via cfe-commits
msebor created this revision. msebor added a reviewer: aaron.ballman. Herald added a project: All. msebor requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. The discussion in PR #57687

[PATCH] D134304: [Docs] [HLSL] Add IR reference for HLSL

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae added inline comments. Comment at: clang/docs/HLSL/HLSLIRReference.rst:20 + +The ``hlsl.uavs`` metadata is a list of all the global variables that represent +to UAV resources. Maybe only external global variables? Repository: rG LLVM Github

[PATCH] D132711: [HLSL] add sqrt library function

2022-09-20 Thread Chris Bieneman 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 rGb95c57444a8a: [HLSL] add sqrt library function (authored by bob80905, committed by beanz). Repository: rG LLVM Github Monorepo CHANGES SINCE

[clang] b95c574 - [HLSL] add sqrt library function

2022-09-20 Thread Chris Bieneman via cfe-commits
Author: Joshua Batista Date: 2022-09-20T15:42:08-05:00 New Revision: b95c57444a8ac3f81bc33a3d52d0f88b7a592a2f URL: https://github.com/llvm/llvm-project/commit/b95c57444a8ac3f81bc33a3d52d0f88b7a592a2f DIFF:

[PATCH] D131424: Remove the unused/undefined _cmd parameter to objc_direct methods.

2022-09-20 Thread Puyan Lotfi via Phabricator via cfe-commits
plotfi added a comment. In D131424#3803190 , @mwyman wrote: > Hi Akira, > > I'd reached out to John offline and he'd mentioned you might be able to help > on some of these objc_direct reviews; if so, that would be wonderful! > > -Michael I would also

[PATCH] D134300: [llvm] Handle dso_local_equivalent in FunctionComparator

2022-09-20 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan added inline comments. Comment at: llvm/test/Transforms/MergeFunc/dso_local_equivalent_merged.ll:1 +;; Check the cases involving dso_local_equivalent where we do expect functions to be merged. +; RUN: opt -S -mergefunc < %s | FileCheck %s nikic

[PATCH] D134300: [llvm] Handle dso_local_equivalent in FunctionComparator

2022-09-20 Thread Leonard Chan via Phabricator via cfe-commits
leonardchan updated this revision to Diff 461686. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134300/new/ https://reviews.llvm.org/D134300 Files: llvm/lib/Transforms/Utils/FunctionComparator.cpp

[PATCH] D134286: [C2x] implement typeof and typeof_unqual

2022-09-20 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: clang/include/clang/AST/Type.h:1902 AutoTypeBitfields AutoTypeBits; +TypeOfBitfields TypeOfBits; BuiltinTypeBitfields BuiltinTypeBits; So the downside to doing the bitfields is that EVERY 'Type' pays

[PATCH] D134304: [Docs] [HLSL] Add IR reference for HLSL

2022-09-20 Thread Chris Bieneman via Phabricator via cfe-commits
beanz added inline comments. Comment at: clang/docs/HLSL/HLSLIRReference.rst:12 +The goal of this document is to provide a reference for all the special purpose +IR metadata and attributes used by the HLSL code generation path. + python3kgae wrote: > Once we

[PATCH] D134304: [Docs] [HLSL] Add IR reference for HLSL

2022-09-20 Thread Xiang Li via Phabricator via cfe-commits
python3kgae added inline comments. Comment at: clang/docs/HLSL/HLSLIRReference.rst:12 +The goal of this document is to provide a reference for all the special purpose +IR metadata and attributes used by the HLSL code generation path. + Once we document a

[PATCH] D134077: [RISCV] Support -mno-implicit-float.

2022-09-20 Thread Craig Topper via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG549231d38e10: [RISCV] Support -mno-implicit-float. (authored by craig.topper). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134077/new/

[clang] 549231d - [RISCV] Support -mno-implicit-float.

2022-09-20 Thread Craig Topper via cfe-commits
Author: Craig Topper Date: 2022-09-20T13:32:40-07:00 New Revision: 549231d38e10de7371adb85f5452d42ad42f4201 URL: https://github.com/llvm/llvm-project/commit/549231d38e10de7371adb85f5452d42ad42f4201 DIFF: https://github.com/llvm/llvm-project/commit/549231d38e10de7371adb85f5452d42ad42f4201.diff

[PATCH] D134286: [C2x] implement typeof and typeof_unqual

2022-09-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang/lib/AST/ASTContext.cpp:12910-12916 +// FIXME:: is this assumption correct or do we need to do work here to find +// the common type sugar regarding the stripped qualifiers if only one side +// is unqual? +

[PATCH] D133801: Extraction of a matcher for an unused value from an expression from the bugprone-unused-return-value check

2022-09-20 Thread Bartłomiej Cieślar via Phabricator via cfe-commits
barcisz added a comment. @njames93 What would be the best way to write up those tests here? I feel like writing a custom check to test the matcher each time we want to test one would be quite wasteful, but at the same time what would be the best way to invoke clang's frontend without using

[PATCH] D134286: [C2x] implement typeof and typeof_unqual

2022-09-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman updated this revision to Diff 461675. aaron.ballman added a comment. Really update, don't just kinda sorta update. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134286/new/ https://reviews.llvm.org/D134286 Files: clang/docs/ReleaseNotes.rst

[clang-tools-extra] 8a13119 - [clangd] Remove second tracer (which breaks threading contract)

2022-09-20 Thread Sam McCall via cfe-commits
Author: Sam McCall Date: 2022-09-20T22:17:34+02:00 New Revision: 8a131190070152ffb0a27ab5dd14d98052467aa9 URL: https://github.com/llvm/llvm-project/commit/8a131190070152ffb0a27ab5dd14d98052467aa9 DIFF: https://github.com/llvm/llvm-project/commit/8a131190070152ffb0a27ab5dd14d98052467aa9.diff

[PATCH] D132711: [HLSL] add sqrt library function

2022-09-20 Thread Joshua Batista via Phabricator via cfe-commits
bob80905 updated this revision to Diff 461674. bob80905 added a comment. - add empty line to end of file sqrt.hlsl Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D132711/new/ https://reviews.llvm.org/D132711 Files:

[PATCH] D134286: [C2x] implement typeof and typeof_unqual

2022-09-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman updated this revision to Diff 461673. aaron.ballman marked 8 inline comments as done. aaron.ballman added a comment. Addressing review feedback. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134286/new/ https://reviews.llvm.org/D134286 Files:

[PATCH] D134286: [C2x] implement typeof and typeof_unqual

2022-09-20 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman marked 13 inline comments as done. aaron.ballman added a comment. In D134286#3803077 , @erichkeane wrote: > I'm on the fence about re-using the same nodes for `typeof` and > `typeof_unqual`. However, I have a preference to stop shuffling

[PATCH] D133092: [clang] fix generation of .debug_aranges with LTO

2022-09-20 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. If the two patches are basically identical with just some fixes for the problem, the convention is to reuse the original Differential. You can click "Add Action - Open" (or Reopen?), then you can upload a new patch to update the Differential. This keeps all discussions

[PATCH] D134268: [Clang][OpenMP] Codegen generation for has_device_addr claues.

2022-09-20 Thread Abhinav Gaba via Phabricator via cfe-commits
abhinavgaba accepted this revision. abhinavgaba added a comment. This revision is now accepted and ready to land. Thanks, Jennifer. Looks good to me. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D134268/new/ https://reviews.llvm.org/D134268

[PATCH] D133092: [clang] fix generation of .debug_aranges with LTO

2022-09-20 Thread Azat Khuzhin via Phabricator via cfe-commits
azat abandoned this revision. azat added a comment. > Which patch needs review, this one or D133875 > ? Or are they both relevant? Sorry, wrote in the wrong thread. The only patch that needs review is resubmitted version - https://reviews.llvm.org/D133875 >

[PATCH] D133092: [clang] fix generation of .debug_aranges with LTO

2022-09-20 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Which patch needs review, this one or D133875 ? Or are they both relevant? (their names are basically identical, so I'm not sure which is needed/how they're different) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION

  1   2   3   >