[PATCH] D88345: [CUDA] Allow local `static const {__constant__, __device__}` variables.

2020-11-03 Thread Artem Belevich 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 rGbe86b6773b6b: [CUDA] Allow local static variables with target attributes. (authored by tra). Repository: rG LLVM Github Monorepo CHANGES SINCE LA

[clang] cdbf6bf - [HIP] Use argv[0] as the default choice for the Executable name.

2020-11-03 Thread Artem Belevich via cfe-commits
Author: Artem Belevich Date: 2020-11-03T10:31:39-08:00 New Revision: cdbf6bfdc7d15fc6a078c7773f142042a11d2c1b URL: https://github.com/llvm/llvm-project/commit/cdbf6bfdc7d15fc6a078c7773f142042a11d2c1b DIFF: https://github.com/llvm/llvm-project/commit/cdbf6bfdc7d15fc6a078c7773f142042a11d2c1b.diff

[PATCH] D90436: [Bundler] Use argv[0] as the default choice for the Executable name.

2020-11-03 Thread Artem Belevich 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 rGcdbf6bfdc7d1: [HIP] Use argv[0] as the default choice for the Executable name. (authored by tra). Repository: rG LLVM Github Monorepo CHANGES SIN

[PATCH] D72184: [BPF] support atomic instructions

2020-11-03 Thread Yonghong Song via Phabricator via cfe-commits
yonghong-song updated this revision to Diff 302617. yonghong-song retitled this revision from "[WIP][BPF] support exchange/compare-and-exchange instruction" to "[BPF] support atomic instructions". yonghong-song edited the summary of this revision. yonghong-song added a comment. - remove RFC tag.

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Aaron Enye Shi via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGca5b31502c82: [HIP] Math Headers to use type promotion (authored by ashi1). Herald added a project: clang. Herald added a subscriber: cfe-commits. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[clang] ca5b315 - [HIP] Math Headers to use type promotion

2020-11-03 Thread Aaron En Ye Shi via cfe-commits
Author: Aaron En Ye Shi Date: 2020-11-03T18:40:26Z New Revision: ca5b31502c828f8e7160a77f54a5a131dc298005 URL: https://github.com/llvm/llvm-project/commit/ca5b31502c828f8e7160a77f54a5a131dc298005 DIFF: https://github.com/llvm/llvm-project/commit/ca5b31502c828f8e7160a77f54a5a131dc298005.diff LO

[PATCH] D72184: [BPF] support atomic instructions

2020-11-03 Thread Yonghong Song via Phabricator via cfe-commits
yonghong-song marked an inline comment as done. yonghong-song added inline comments. Comment at: llvm/lib/Target/BPF/BPFInstrInfo.td:830 + +let Predicates = [BPFHasAtomicExt] in { + def CMPXCHGD : CMPXCHG; ast wrote: > let Defs = [R0], Uses = [R0] > and

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Justin Lebar via Phabricator via cfe-commits
jlebar added a comment. > LGTM. I think the change would make sense for CUDA, too. @jlebar - WDYT? I agree that the C and C++ standard libraries should behave the same in CUDA mode and host mode! But if doing so would make our behavior different than nvcc's, maybe we could emit a warning or so

[PATCH] D90570: [mips] Add a -mmips3d command line option to clang

2020-11-03 Thread Michael Roe via Phabricator via cfe-commits
michael-roe added a comment. The goal of this patch is that if you have some C code with inline MIPS assembly language that uses MIPS3D instructions, you can get it to compile by passing -mmips3d on the command line. (Without this command line option, there's an awkward workaround that involves

[PATCH] D87449: [clang-tidy] Add new check for SEI CERT rule SIG30-C

2020-11-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. I think this LGTM aside from a few minor nits. Thank you for working on this! Comment at: clang-tools-extra/docs/clang-tidy/checks/cert-sig30-c.rst:12-14 +This

[PATCH] D90275: [clang][IR] Add support for leaf attribute

2020-11-03 Thread Juneyoung Lee via Phabricator via cfe-commits
aqjune added a comment. Hi, Naming is a hard thing... I have no special preference. :/ However, I'd like to understand the details of this attribute. Would LTO be affected because `leaf` is guaranteed to untouch the current translation unit only? // a.c int x; void f1() { f2(); }

[clang] 7ad6010 - Fix - [Clang] Add the ability to map DLL storage class to visibility

2020-11-03 Thread Ben Dunbobbin via cfe-commits
Author: Ben Dunbobbin Date: 2020-11-03T19:13:54Z New Revision: 7ad6010f58eac498896e601857ff7eda84466064 URL: https://github.com/llvm/llvm-project/commit/7ad6010f58eac498896e601857ff7eda84466064 DIFF: https://github.com/llvm/llvm-project/commit/7ad6010f58eac498896e601857ff7eda84466064.diff LOG:

[PATCH] D90275: [clang][IR] Add support for leaf attribute

2020-11-03 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. In D90275#2371764 , @aqjune wrote: > Hi, > > Naming is a hard thing... I have no special preference. :/ > > However, I'd like to understand the details of this attribute. > > Would LTO be affected because `leaf` is guaranteed to

[PATCH] D89980: [hip] Remove kernel argument coercion.

2020-11-03 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. This should use byref, but I don't think this should come at the cost of the promotion. I would still like to see this promotion occur for the in-memory byref type Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D89980/new/ h

[PATCH] D90392: [clang-tidy] Omit std::make_unique/make_shared for default initialization.

2020-11-03 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. I think for starters this patch needs a better description, explaining not *what* it does, but *why* it does what it does. Also, it is probably not good to change (break) existing test coverage. Instead, it is best to add new tests, and adjust existing check lines. R

[PATCH] D90704: [OpenMP] target nested `use_device_ptr() if()` and is_device_ptr trigger asserts

2020-11-03 Thread Chi Chun Chen via Phabricator via cfe-commits
cchen created this revision. cchen added a reviewer: ABataev. Herald added subscribers: cfe-commits, guansong, yaxunl. Herald added a project: clang. cchen requested review of this revision. Herald added a reviewer: jdoerfert. Herald added a subscriber: sstefan1. Clang now asserts for the below ca

[PATCH] D90704: [OpenMP] target nested `use_device_ptr() if()` and is_device_ptr trigger asserts

2020-11-03 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. I do not understand the commit message. Can you try to make it clearer? Comment at: clang/test/OpenMP/target_data_use_device_ptr_codegen.cpp:518 + #endif #endif Create a new file please. Repository: rG LLVM Github Monorepo CHAN

[PATCH] D89980: [hip] Remove kernel argument coercion.

2020-11-03 Thread Michael Liao via Phabricator via cfe-commits
hliao added a comment. In D89980#2371850 , @arsenm wrote: > This should use byref, but I don't think this should come at the cost of the > promotion. I would still like to see this promotion occur for the in-memory > byref type Once we use `byref`, that

[PATCH] D89670: [clangd] Store the containing symbol for refs

2020-11-03 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added inline comments. Comment at: clang-tools-extra/clangd/unittests/SymbolCollectorTests.cpp:770 +EXPECT_TRUE(bool(Ref)); +if (!AllowNull) + EXPECT_FALSE(Ref->Container.isNull()); nit: instead of making thi

[PATCH] D89980: [hip] Remove kernel argument coercion.

2020-11-03 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. In D89980#2371952 , @hliao wrote: > In D89980#2371850 , @arsenm wrote: > >> This should use byref, but I don't think this should come at the cost of the >> promotion. I would still like to s

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. nvcc does not support fma(float,float,char) https://godbolt.org/z/zxbMhP clang's behavior was different from nvcc already. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90409/new/ https://reviews.llvm.org/D90409 _

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. In D90409#2371679 , @jlebar wrote: >> LGTM. I think the change would make sense for CUDA, too. @jlebar - WDYT? > > I agree that the C and C++ standard libraries should behave the same in CUDA > mode and host mode! > > But if doing so

[PATCH] D90275: [clang][IR] Add support for leaf attribute

2020-11-03 Thread Gulfem Savrun Yeniceri via Phabricator via cfe-commits
gulfem marked an inline comment as done. gulfem added a comment. In D90275#2371343 , @jdoerfert wrote: > The more I think about it, the more I think we should never create a > `leaf`/`nocallback` definition. Only declarations should carry that attribute.

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. In D90409#2371969 , @yaxunl wrote: > nvcc does not support fma(float,float,char) It does, it just needs an explicit flag to match clang's treatment of `constexpr` functions as HD. Repository: rG LLVM Github Monorepo CHANGES SINC

[PATCH] D90174: [HIP] Fix regressions due to fp contract change

2020-11-03 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 302662. yaxunl marked 7 inline comments as done. yaxunl added a comment. revised manual by John's comments CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90174/new/ https://reviews.llvm.org/D90174 Files: clang/docs/LanguageExtensions.rst clang/do

[PATCH] D87194: Thread safety analysis: Use access specifiers to decide about scope

2020-11-03 Thread Aaron Puchert via Phabricator via cfe-commits
aaronpuchert planned changes to this revision. aaronpuchert added a comment. That's a good point, while `mu_` is public, `params` is a local variable. I need to take into account the left-hand side of a `til::Project`, which we're currently ignoring. Repository: rG LLVM Github Monorepo CHAN

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In D90409#2371987 , @tra wrote: > In D90409#2371969 , @yaxunl wrote: > >> nvcc does not support fma(float,float,char) > > It does, it just needs an explicit flag to match clang's treatment of

[clang] 96ed679 - [unittest][TrasnformerTest] Fix asan stack-use-after-return

2020-11-03 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2020-11-03T12:34:45-08:00 New Revision: 96ed6793b35e8267b0c94ebe69ae94f07024f476 URL: https://github.com/llvm/llvm-project/commit/96ed6793b35e8267b0c94ebe69ae94f07024f476 DIFF: https://github.com/llvm/llvm-project/commit/96ed6793b35e8267b0c94ebe69ae94f07024f476.diff

[PATCH] D90682: [clangd][NFC] Make Located::operator->() use pointer sematics

2020-11-03 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet accepted this revision. kadircet added a comment. This revision is now accepted and ready to land. Ah thanks for catching this. LGTM! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90682/new/ https://reviews.llvm.org/D90682 ___

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In D90409#2372023 , @yaxunl wrote: > In D90409#2371987 , @tra wrote: > >> In D90409#2371969 , @yaxunl wrote: >> >>> nvcc does not support fma(float,fl

[clang-tools-extra] 7f059a2 - [clangd] Handle absolute/relative path specifications in Config

2020-11-03 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2020-11-03T21:45:35+01:00 New Revision: 7f059a258a1dbfc240a8d526b5d23d238a3d84f7 URL: https://github.com/llvm/llvm-project/commit/7f059a258a1dbfc240a8d526b5d23d238a3d84f7 DIFF: https://github.com/llvm/llvm-project/commit/7f059a258a1dbfc240a8d526b5d23d238a3d84f7.dif

[PATCH] D90270: [clangd] Handle absolute/relative path specifications in Config

2020-11-03 Thread Kadir Cetinkaya 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 rG7f059a258a1d: [clangd] Handle absolute/relative path specifications in Config (authored by kadircet). Repository: rG LLVM Github Monorepo CHANGES

[clang-tools-extra] 05e0a8e - [clangd] Fix missing override warnings in remote-index client

2020-11-03 Thread Kadir Cetinkaya via cfe-commits
Author: Kadir Cetinkaya Date: 2020-11-03T21:46:44+01:00 New Revision: 05e0a8e519fd7dd73141b58a1a479a84a5ac1014 URL: https://github.com/llvm/llvm-project/commit/05e0a8e519fd7dd73141b58a1a479a84a5ac1014 DIFF: https://github.com/llvm/llvm-project/commit/05e0a8e519fd7dd73141b58a1a479a84a5ac1014.dif

[PATCH] D89980: [hip] Remove kernel argument coercion.

2020-11-03 Thread Michael Liao via Phabricator via cfe-commits
hliao added a comment. In D89980#2371966 , @arsenm wrote: > In D89980#2371952 , @hliao wrote: > >> In D89980#2371850 , @arsenm wrote: >> >>> This should use byref, but I don'

[PATCH] D89980: [hip] Remove kernel argument coercion.

2020-11-03 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. In D89980#2372102 , @hliao wrote: > In D89980#2371966 , @arsenm wrote: > >> In D89980#2371952 , @hliao wrote: >> >>> In D89980#2371850

[PATCH] D85474: Add -fbinutils-version= to gate ELF features on the specified binutils version

2020-11-03 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. Ping @compnerd Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D85474/new/ https://reviews.llvm.org/D85474 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm

[clang] daa127d - [PowerPC] Add MMA builtin decoding and definitions

2020-11-03 Thread Baptiste Saleil via cfe-commits
Author: Baptiste Saleil Date: 2020-11-03T15:08:46-06:00 New Revision: daa127d77eab2547b1b7754939aa3f91fa8b1801 URL: https://github.com/llvm/llvm-project/commit/daa127d77eab2547b1b7754939aa3f91fa8b1801 DIFF: https://github.com/llvm/llvm-project/commit/daa127d77eab2547b1b7754939aa3f91fa8b1801.dif

[PATCH] D81748: [PowerPC] Add MMA builtin decoding and definitions

2020-11-03 Thread Baptiste Saleil 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 rGdaa127d77eab: [PowerPC] Add MMA builtin decoding and definitions (authored by bsaleil). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST AC

[PATCH] D90704: [OpenMP] target nested `use_device_ptr() if()` and is_device_ptr trigger asserts

2020-11-03 Thread Chi Chun Chen via Phabricator via cfe-commits
cchen updated this revision to Diff 302672. cchen added a comment. Separate test to a independent file Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90704/new/ https://reviews.llvm.org/D90704 Files: clang/lib/CodeGen/CGOpenMPRuntime.cpp clang/

[PATCH] D85474: Add -fbinutils-version= to gate ELF features on the specified binutils version

2020-11-03 Thread Peter Collingbourne via Phabricator via cfe-commits
pcc added a comment. I agree with @MaskRay that this should be a binutils-specific option. The flag `-mlinker-version` seems to have been designed around macOS-specific assumptions i.e. there is a single linker (ld64) and that the linker and assembler are not version coupled. Having this option

[PATCH] D90704: [OpenMP] target nested `use_device_ptr() if()` and is_device_ptr trigger asserts

2020-11-03 Thread Chi Chun Chen via Phabricator via cfe-commits
cchen added a comment. In D90704#2371938 , @jdoerfert wrote: > I do not understand the commit message. Can you try to make it clearer? Hi, sorry for the shabby commit message, I've updated it and use godbolt link instead of pasting the code snippet since

[PATCH] D90409: [HIP] Math Headers to use type promotion

2020-11-03 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. In D90409#2372042 , @yaxunl wrote: >> Practically the behavior is the same since they all promote integer types to >> double. This matches the C++ behavior. However the HIP change will make it >> conform to C++ for a target supportin

[PATCH] D74735: [analyzer] Add support for CXXInheritedCtorInitExpr.

2020-11-03 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:916-918 + virtual const CXXInheritedCtorInitExpr *getOriginExpr() const { +return cast(AnyFunctionCall::getOriginExpr()); + } steakhal wrote: > Why is

[PATCH] D90714: [clang]Fix length threshold for MicrosoftMangle md5 hash

2020-11-03 Thread Melanie Blower via Phabricator via cfe-commits
mibintc created this revision. mibintc added a reviewer: majnemer. Herald added a project: clang. mibintc requested review of this revision. Fix off-by-one bug in determining the threshold for when want to shorten very large external names, Microsoft compatibility. This fixes the bug reported her

[PATCH] D90704: [OpenMP] target nested `use_device_ptr() if()` and is_device_ptr trigger asserts

2020-11-03 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. It would be good if you could identify the object which leads to a crash, I mean a target region, variable, etc. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90704/new/ https://reviews.llvm.org/D90704 ___

[PATCH] D72184: [BPF] support atomic instructions

2020-11-03 Thread Alexei Starovoitov via Phabricator via cfe-commits
ast added inline comments. Comment at: llvm/test/CodeGen/BPF/atomics_2.ll:124 +; CHECK: r0 = r2 +; CHECK: r0 = cmpxchg_64(r1 + 0, r0, r3) +; CHECK: encoding: [0xdb,0x01,0x00,0x00,0xf1,0x03,0x00,0x00] Looks like it's generating correct code without special handlin

[clang] 72531ae - Revert "Ignore template instantiations if not in AsIs mode"

2020-11-03 Thread Matt Morehouse via cfe-commits
Author: Matt Morehouse Date: 2020-11-03T13:57:31-08:00 New Revision: 72531ae6e64d4408f6e9aee8d5902f5d6b0ae519 URL: https://github.com/llvm/llvm-project/commit/72531ae6e64d4408f6e9aee8d5902f5d6b0ae519 DIFF: https://github.com/llvm/llvm-project/commit/72531ae6e64d4408f6e9aee8d5902f5d6b0ae519.diff

[clang] a6d15d4 - Undo Revert "Ignore template instantiations if not in AsIs mode"

2020-11-03 Thread Matt Morehouse via cfe-commits
Author: Matt Morehouse Date: 2020-11-03T13:59:01-08:00 New Revision: a6d15d40701ad38f29e4ff93703b3ffa7b204611 URL: https://github.com/llvm/llvm-project/commit/a6d15d40701ad38f29e4ff93703b3ffa7b204611 DIFF: https://github.com/llvm/llvm-project/commit/a6d15d40701ad38f29e4ff93703b3ffa7b204611.diff

[clang] 09b54e2 - When re-checking an already-substituted template argument, don't lose

2020-11-03 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2020-11-03T14:09:54-08:00 New Revision: 09b54e2799a11c6813796c70475d52e09898568b URL: https://github.com/llvm/llvm-project/commit/09b54e2799a11c6813796c70475d52e09898568b DIFF: https://github.com/llvm/llvm-project/commit/09b54e2799a11c6813796c70475d52e09898568b.diff

[PATCH] D90634: Implement Lambda Conversion Operators for All CCs for MSVC.

2020-11-03 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: clang/lib/Sema/SemaLambda.cpp:1285 + /// that someone who intentionally places 'thiscall' on the lambda call + /// operator will still get that overload, since we don't have the a way of + /// detecting the attribute by the time we get

[PATCH] D72184: [BPF] support atomic instructions

2020-11-03 Thread Yonghong Song via Phabricator via cfe-commits
yonghong-song added inline comments. Comment at: llvm/test/CodeGen/BPF/atomics_2.ll:124 +; CHECK: r0 = r2 +; CHECK: r0 = cmpxchg_64(r1 + 0, r0, r3) +; CHECK: encoding: [0xdb,0x01,0x00,0x00,0xf1,0x03,0x00,0x00] ast wrote: > Looks like it's generating correct code

[PATCH] D90719: [DebugInfo] Modify ctor homing as workaround for unconstructed libcxx types

2020-11-03 Thread Amy Huang via Phabricator via cfe-commits
akhuang created this revision. akhuang added reviewers: rnk, dblaikie. Herald added a project: clang. Herald added a subscriber: cfe-commits. akhuang requested review of this revision. There are some types in libcxx that are used but their constructors are not called (__hash_node, __hash_value_typ

[PATCH] D90714: [clang]Fix length threshold for MicrosoftMangle md5 hash

2020-11-03 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Test case? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90714/new/ https://reviews.llvm.org/D90714 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.or

[PATCH] D90719: [DebugInfo] Modify ctor homing as workaround for unconstructed libcxx types

2020-11-03 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. Does Chromium need this fixed in clang? Or if it were fixed in libc++ would that be adequate? (does Chromium's build need to work with old libc++s, or does it always build with a libc++ that matches the compiler? (in the latter case, a fix in libc++ would be as good as

[PATCH] D89959: UBSAN: emit distinctive traps in trapping mode

2020-11-03 Thread Kostya Serebryany via Phabricator via cfe-commits
kcc added a reviewer: morehouse. kcc added a comment. did you consider approaches where the emitted code doesn't change, but the binary contains a debug-like metadata that corresponds to the trap instructions? Matt (CC-ed) has a patch if this kind (for a different purpose) in the works . CHANGE

[PATCH] D90704: [OpenMP] target nested `use_device_ptr() if()` and is_device_ptr trigger asserts

2020-11-03 Thread Chi Chun Chen via Phabricator via cfe-commits
cchen added a comment. In D90704#2372303 , @ABataev wrote: > It would be good if you could identify the object which leads to a crash, I > mean a target region, variable, etc. 1void 2add_one(float *b, int dm) 3{ 4#pragma omp

[PATCH] D90719: [DebugInfo] Modify ctor homing as workaround for unconstructed libcxx types

2020-11-03 Thread Amy Huang via Phabricator via cfe-commits
akhuang added a comment. No, chromium doesn't need this fixed in clang, but I didn't see a clear way to fix this in libc++. Do you think it should be fixed as a bug in libc++? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90719/new/ https://review

[PATCH] D90719: [DebugInfo] Modify ctor homing as workaround for unconstructed libcxx types

2020-11-03 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added a subscriber: EricWF. rnk added a comment. In D90719#2372463 , @dblaikie wrote: > Does Chromium need this fixed in clang? Or if it were fixed in libc++ would > that be adequate? (does Chromium's build need to work with old libc++s, or > does it

[PATCH] D89936: [clang-tidy] adding "--config-file=" to specify custom config file.

2020-11-03 Thread Hiral via Phabricator via cfe-commits
Hiralo added a comment. Hello @DmitryPolukhin , Sorry I missed to update 'SUMMARY' section of this review earlier! was not aware that that will be considered as commit message. I have now updated the 'SUMMARY', it is possible to revert this commit and then re-submit it with updated commit messag

[PATCH] D90275: [clang][IR] Add support for leaf attribute

2020-11-03 Thread Gulfem Savrun Yeniceri via Phabricator via cfe-commits
gulfem updated this revision to Diff 302716. gulfem added a comment. Add a target into the test case Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90275/new/ https://reviews.llvm.org/D90275 Files: clang/include/clang/Basic/Attr.td clang/includ

[PATCH] D90275: [clang][IR] Add support for leaf attribute

2020-11-03 Thread Gulfem Savrun Yeniceri via Phabricator via cfe-commits
gulfem added inline comments. Comment at: clang/include/clang/Basic/AttrDocs.td:3910 +in library functions. Functions marked with the ``leaf`` attribute are not allowed +to jump back into the caller's translation unit, whether through invoking a +callback function, a direct exte

[PATCH] D90682: [clangd][NFC] Make Located::operator->() use pointer sematics

2020-11-03 Thread Nathan James 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 rGcb9d0e8819ad: [clangd][NFC] Make Located::operator->() use pointer sematics (authored by njames93). Repository: rG LLVM Github Monorepo CHANGES S

[clang-tools-extra] cb9d0e8 - [clangd][NFC] Make Located::operator->() use pointer sematics

2020-11-03 Thread Nathan James via cfe-commits
Author: Nathan James Date: 2020-11-04T01:36:14Z New Revision: cb9d0e8819ad7ca2f349a57d62ea2af02d631dfa URL: https://github.com/llvm/llvm-project/commit/cb9d0e8819ad7ca2f349a57d62ea2af02d631dfa DIFF: https://github.com/llvm/llvm-project/commit/cb9d0e8819ad7ca2f349a57d62ea2af02d631dfa.diff LOG:

LLVM buildmaster will be restarted tonight

2020-11-03 Thread Galina Kistanova via cfe-commits
Hello everyone, LLVM buildmaster will be restarted after 6pm PST. Thanks Galina ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D90719: [DebugInfo] Modify ctor homing as workaround for unconstructed libcxx types

2020-11-03 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. In D90719#2372554 , @rnk wrote: > In D90719#2372463 , @dblaikie wrote: > >> Does Chromium need this fixed in clang? Or if it were fixed in libc++ would >> that be adequate? (does Chromium'

[PATCH] D90634: Implement Lambda Conversion Operators for All CCs for MSVC.

2020-11-03 Thread Erich Keane via Phabricator via cfe-commits
erichkeane added inline comments. Comment at: clang/test/CodeGenCXX/lambda-conversion-op-cc.cpp:10 void usage() { auto lambda = [](int i, float f, double d) CC { return i + f + d; }; rsmith wrote: > Does lambda-to-function-pointer decay still work (eg, `+la

[PATCH] D90275: [clang][IR] Add support for leaf attribute

2020-11-03 Thread Roland McGrath via Phabricator via cfe-commits
mcgrathr added a comment. The GCC documentation specifically gives the example of the standard C function `qsort` as one that does not qualify as `__attribute__((leaf))` because it uses a callback function (that presumably might be from the caller's own TU). AIUI the claim the attribute makes

[PATCH] D90733: Frontend: Sink named pipe logic from CompilerInstance down to FileManager

2020-11-03 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith created this revision. dexonsmith added reviewers: arphaman, JDevlieghere. Herald added a subscriber: ributzka. dexonsmith requested review of this revision. Remove compilicated logic from CompilerInstance::InitializeSourceManager to deal with named pipes, updating FileManager::getBuff

[PATCH] D90392: [clang-tidy] Omit std::make_unique/make_shared for default initialization.

2020-11-03 Thread Chris Kennelly via Phabricator via cfe-commits
ckennelly updated this revision to Diff 302731. ckennelly added a comment. Expand tests to cover value and default initialization Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90392/new/ https://reviews.llvm.org/D90392 Files: clang-tools-extra/c

[PATCH] D90188: Add support for attribute 'using_if_exists'

2020-11-03 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington updated this revision to Diff 302733. erik.pilkington marked 20 inline comments as done. erik.pilkington added a comment. Address review comments, thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90188/new/ https://reviews.llvm.org/D90188 Files: clang/include/cla

[PATCH] D90188: Add support for attribute 'using_if_exists'

2020-11-03 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added inline comments. Comment at: clang/include/clang/AST/DeclCXX.h:3801 +/// error. +class UnresolvedUsingIfExistsDecl final : public NamedDecl { + UnresolvedUsingIfExistsDecl(DeclContext *DC, SourceLocation Loc, aaron.ballman wrote: > Why is t

[PATCH] D87981: [X86] AMX programming model prototype.

2020-11-03 Thread LuoYuanke via Phabricator via cfe-commits
LuoYuanke updated this revision to Diff 302738. LuoYuanke added a comment. Removed tilezero support in this patch. Fixed some bugs. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87981/new/ https://reviews.llvm.org/D87981 Files: clang/include/cla

[clang] d3bd06f - [clang] Fix the fsanitize.c testcase after eaae6fdf67e1f. NFC.

2020-11-03 Thread Martin Storsjö via cfe-commits
Author: Martin Storsjö Date: 2020-11-03T10:21:29+02:00 New Revision: d3bd06f5c709fe073739a06e0d5a22020f0bf90c URL: https://github.com/llvm/llvm-project/commit/d3bd06f5c709fe073739a06e0d5a22020f0bf90c DIFF: https://github.com/llvm/llvm-project/commit/d3bd06f5c709fe073739a06e0d5a22020f0bf90c.diff

[PATCH] D90208: [PowerPC] [Clang] Define macros to identify quad-fp semantics

2020-11-03 Thread Qiu Chaofan via Phabricator via cfe-commits
qiucf added inline comments. Comment at: clang/lib/Basic/Targets/PPC.cpp:122 if (LongDoubleWidth == 128) { Builder.defineMacro("__LONG_DOUBLE_128__"); Builder.defineMacro("__LONGDOUBLE128"); steven.zhang wrote: > Can you please double check if we nee

[PATCH] D90208: [PowerPC] [Clang] Define macros to identify quad-fp semantics

2020-11-03 Thread Qiu Chaofan via Phabricator via cfe-commits
qiucf updated this revision to Diff 302488. qiucf marked an inline comment as done. qiucf added a comment. Keep the `FIXME`. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90208/new/ https://reviews.llvm.org/D90208 Files: clang/lib/Basic/Targets/PPC.cpp clang/test/CodeGen/ppc64-long

[PATCH] D82756: Port some floating point options to new option marshalling infrastructure

2020-11-03 Thread Jan Svoboda via Phabricator via cfe-commits
jansvoboda11 added a comment. Thanks for the feedback. @Bigcheese do you have anything to add? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D82756/new/ https://reviews.llvm.org/D82756 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

[PATCH] D90588: [clangd] NFC: Only pass ASTContext and TokenBuffer in getFoldingRanges API

2020-11-03 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev added a comment. In D90588#2368021 , @sammccall wrote: > This doesn't feel quite right to me - we're going to need to get PP > conditional regions, include blocks etc from the ParsedAST (they're not in > ASTContext). > My sense is that we'll nee

[PATCH] D90630: [CodeGen] Fix Bug 47499: __unaligned extension inconsistent behaviour with C and C++

2020-11-03 Thread Jan Ole Hüser via Phabricator via cfe-commits
j0le updated this revision to Diff 302496. j0le edited the summary of this revision. j0le added a comment. Moved comment into the else-if block. Changed Summary of the diff, so that it is better suited for a commit message. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90630/new/ https:

[PATCH] D90588: [clangd] NFC: Only pass ASTContext and TokenBuffer in getFoldingRanges API

2020-11-03 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. In D90588#2370604 , @kbobyrev wrote: > In D90588#2368021 , @sammccall wrote: > >> This doesn't feel quite right to me - we're going to need to get PP >> conditional regions, include block

[PATCH] D90630: [CodeGen] Fix Bug 47499: __unaligned extension inconsistent behaviour with C and C++

2020-11-03 Thread Jan Ole Hüser via Phabricator via cfe-commits
j0le marked an inline comment as done. j0le added a comment. In D90630#2368984 , @rnk wrote: > Thanks, this basically looks correct to me, aside from some formatting > details. Do you want me to apply those fixes and land this for you? I see > that was d

[PATCH] D90208: [PowerPC] [Clang] Define macros to identify quad-fp semantics

2020-11-03 Thread Qing Shan Zhang via Phabricator via cfe-commits
steven.zhang added a comment. LGTM now and thank you for the double check. But please hold on for some days in case someone has concern on enabling the new macros(we are enabling the __LONG_DOUBLE_IBM128__ by default now). CHANGES SINCE LAST ACTION https://reviews.llvm.org/D90208/new/ https

[PATCH] D89031: [SVE] Add support to vectorize_width loop pragma for scalable vectors

2020-11-03 Thread Sander de Smalen via Phabricator via cfe-commits
sdesmalen requested changes to this revision. sdesmalen added inline comments. This revision now requires changes to proceed. Comment at: clang/docs/LanguageExtensions.rst:3039 +useful for specifying the optimal width/count of the set of target +architectures supported by your ap

[PATCH] D90654: [clangd] Add index server request logging

2020-11-03 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added a comment. I wish there was an easy way to check redacted error logs too :/ Comment at: clang-tools-extra/clangd/index/remote/server/Server.cpp:335 return std::make_unique(OS, LogLevel); +llvm::errs() << "non redacted logger\n"; + } fee

[PATCH] D90672: [clang] Simplify buildSyntaxTree API

2020-11-03 Thread Kirill Bobyrev via Phabricator via cfe-commits
kbobyrev created this revision. kbobyrev added a reviewer: sammccall. Herald added subscribers: cfe-commits, usaxena95, kadircet, arphaman. Herald added a project: clang. kbobyrev requested review of this revision. Follow-up on https://reviews.llvm.org/D88553#inline-837013 Repository: rG LLVM

[PATCH] D89936: [clang-tidy] adding "--config-file=" to specify custom config file.

2020-11-03 Thread Dmitry Polukhin via Phabricator via cfe-commits
DmitryPolukhin added a comment. In D89936#2370163 , @Hiralo wrote: > When this patch will be merged and available in master? @Hiralo I can push this changes to master for you. Please let me know if you need it. Repository: rG LLVM Github Monorepo CH

[PATCH] D90572: [clang] [MinGW] Allow using the vptr sanitizer

2020-11-03 Thread Stephan Bergmann via Phabricator via cfe-commits
sberg added a comment. Smells like this breaks various bots due to a -fsanitize=...,... option now listing 18 instead of 17 items, see http://lab.llvm.org:8011/#builders/76/builds/363, http://lab.llvm.org:8011/#builders/93/builds/430, http://lab.llvm.org:8011/#builders/66/builds/315, http://l

[PATCH] D90572: [clang] [MinGW] Allow using the vptr sanitizer

2020-11-03 Thread Martin Storsjö via Phabricator via cfe-commits
mstorsjo added a comment. In D90572#2370716 , @sberg wrote: > Smells like this breaks various bots due to a -fsanitize=...,... option now > listing 18 instead of 17 items, see > http://lab.llvm.org:8011/#builders/76/builds/363, > http://lab.llvm.org:801

[PATCH] D89936: [clang-tidy] adding "--config-file=" to specify custom config file.

2020-11-03 Thread Hiral via Phabricator via cfe-commits
Hiralo added a comment. In D89936#2370712 , @DmitryPolukhin wrote: > In D89936#2370163 , @Hiralo wrote: > >> When this patch will be merged and available in master? > > @Hiralo I can push this changes to master for

[PATCH] D90673: yet another commit

2020-11-03 Thread Mikhail Goncharov via Phabricator via cfe-commits
goncharov created this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. goncharov requested review of this revision. Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D90673 Files: clang-tools-extra/docs/new_file.txt Index: clang-tools-extra/docs/

[PATCH] D88859: APINotes: add APINotesYAMLCompiler

2020-11-03 Thread Gabor Marton via Phabricator via cfe-commits
martong accepted this revision. martong added a comment. This revision is now accepted and ready to land. Herald added a subscriber: rnkovacs. Looks good to me now! Thanks for addressing my concerns. Comment at: clang/tools/apinotes-test/APINotesTest.cpp:15 + +static llvm::cl::

[clang] ff02ae2 - Add test missing from previous commit

2020-11-03 Thread Stephen Kelly via cfe-commits
Author: Stephen Kelly Date: 2020-11-03T11:06:52Z New Revision: ff02ae2139eebbe3fbd66d4204ad7589d475a355 URL: https://github.com/llvm/llvm-project/commit/ff02ae2139eebbe3fbd66d4204ad7589d475a355 DIFF: https://github.com/llvm/llvm-project/commit/ff02ae2139eebbe3fbd66d4204ad7589d475a355.diff LOG:

[PATCH] D90654: [clangd] Add index server request logging

2020-11-03 Thread Aleksandr Platonov via Phabricator via cfe-commits
ArcsinX added inline comments. Comment at: clang-tools-extra/clangd/test/remote-index/pipeline_helper.py:43 args.index_file, args.project_root - ], + ] + args.server_arg, stderr=subprocess.PIPE) this breaks `rem

[clang-tools-extra] d6a468d - [clang-tidy] adding "--config-file=" to specify custom config file.

2020-11-03 Thread Dmitry Polukhin via cfe-commits
Author: Hiral Oza Date: 2020-11-03T11:59:46Z New Revision: d6a468d622b2d48c40c47290aa54d6d910c5a6bf URL: https://github.com/llvm/llvm-project/commit/d6a468d622b2d48c40c47290aa54d6d910c5a6bf DIFF: https://github.com/llvm/llvm-project/commit/d6a468d622b2d48c40c47290aa54d6d910c5a6bf.diff LOG: [cl

[PATCH] D89936: [clang-tidy] adding "--config-file=" to specify custom config file.

2020-11-03 Thread Dmitry Polukhin via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd6a468d622b2: [clang-tidy] adding "--config-file=" to specify custom config file. (authored by Hiralo, committed by DmitryPolukhin). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST A

[PATCH] D72184: [WIP][BPF] support exchange/compare-and-exchange instruction

2020-11-03 Thread Brendan Jackman via Phabricator via cfe-commits
jackmanb added inline comments. Comment at: llvm/lib/Target/BPF/BPFInstrFormats.td:98 + +def BPF_ATOMIC_FETCH : BPFAtomicFlag<0x1>; Per Alexei's email comments let's call this BPF_FETCH? Comment at: llvm/lib/Target/BPF/BPFInstrInfo.td:765 +

[PATCH] D74735: [analyzer] Add support for CXXInheritedCtorInitExpr.

2020-11-03 Thread Balázs Benics via Phabricator via cfe-commits
steakhal added inline comments. Herald added a subscriber: ASDenysPetrov. Comment at: clang/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h:916-918 + virtual const CXXInheritedCtorInitExpr *getOriginExpr() const { +return cast(AnyFunctionCall::getOriginExpr());

[PATCH] D80961: [clang][AST] Ignore template instantiations if not in AsIs mode

2020-11-03 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. This seems to make asan buildbots unhappy: http://lab.llvm.org:8011/#/builders/5/builds/744 I can't see anything immediately suspicious, but I don't know the matcher internals that well :-\ Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://re

[PATCH] D87449: [clang-tidy] Add new check for SEI CERT rule SIG30-C

2020-11-03 Thread Balázs Kéri via Phabricator via cfe-commits
balazske updated this revision to Diff 302542. balazske added a comment. Rename of the checker. Using canonical decl for system function detection. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D87449/new/ https://reviews.llvm.org/D87449 Files: c

[PATCH] D90174: [HIP] Fix regressions due to fp contract change

2020-11-03 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In D90174#2370336 , @rjmccall wrote: > I agree this is useful. However, you need to update the manual to cover > `faststd`. will update the manual. Comment at: clang/test/CodeGenCUDA/fp-contract.cu:203 + +// A

[PATCH] D90303: [ASTMatchers] Made isExpandedFromMacro Polymorphic

2020-11-03 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM aside from testing request. Comment at: clang/include/clang/ASTMatchers/ASTMatchers.h:313 + AST_POLYMORPHIC_SUPPORTED_TYPES(Decl,

  1   2   >