[PATCH] D105457: [clang] Refactor AST printing tests to share more infrastructure

2021-07-13 Thread Douglas Yung via Phabricator via cfe-commits
dyung added a comment. In D105457#2875672 , @dblaikie wrote: > In D105457#2874783 , @nridge wrote: > >> To be honest, I don't really understand this error. It seems to come from a >> compile step (not a link step

[PATCH] D105726: Added fsanitize-address-instrument-via-callback, which controls if address sanitizer will always use a callback.

2021-07-13 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. In D105726#2875482 , @kstoimenov wrote: > Modified UsersManual.rst and added a test. Couldn't find a relevant section in > AddressSanitizer.rst and adding a new one is outside of the scope of this > change. something like: L

[PATCH] D105091: [RISCV] Pass -u to linker correctly.

2021-07-13 Thread 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 rG5635d2a56dab: [RISCV] Pass -u to linker correctly. (authored by Kito Cheng ). Repository: rG LLVM Github Monorepo CHANGES

[clang] 5635d2a - [RISCV] Pass -u to linker correctly.

2021-07-13 Thread Kito Cheng via cfe-commits
Author: Kito Cheng Date: 2021-07-14T14:25:02+08:00 New Revision: 5635d2a56dab6dc64d3a3f185d68f676b81dc736 URL: https://github.com/llvm/llvm-project/commit/5635d2a56dab6dc64d3a3f185d68f676b81dc736 DIFF: https://github.com/llvm/llvm-project/commit/5635d2a56dab6dc64d3a3f185d68f676b81dc736.diff LO

[PATCH] D105564: Fix for DWARF parsing to better handle auto return type for member functions

2021-07-13 Thread Jonas Devlieghere via Phabricator via cfe-commits
JDevlieghere added inline comments. Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:402-403 case DW_AT_type: - type = form_value; + if (!type.IsValid()) +type = form_value; break; What's the purpose of this?

[PATCH] D104420: thread_local support for AIX

2021-07-13 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: clang/lib/CodeGen/ItaniumCXXABI.cpp:2966 +// other TUs will not know whether the initialization routine exists +// so create a weak, empty, init function to satisfy the linker. +// This is needed whenever a thr

[PATCH] D105960: [clang][driver][darwin] Add driver support for Mac Catalyst

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. arphaman added reviewers: dexonsmith, Bigcheese. Herald added a subscriber: ributzka. arphaman requested review of this revision. Herald added a project: clang. This patch is the last patch in the series of patches for the Mac Catalyst support in clang. It adds dri

[PATCH] D105958: [clang][darwin] add support for version remapping to the Darwin SDK Info class

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. This patch depends on a small NFC commit that moves DarwinSDKInfo over to lib/Basic from lib/Driver, which isn't up on phabricator. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105958/new/ https://reviews.llvm.org/D105958

[PATCH] D105257: [clang][darwin] add support for remapping macOS availability to Mac Catalyst availability

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added a comment. In D105257#2853438 , @dexonsmith wrote: > Could the DarwinSDKInfo changes be tested directly with C++ unit tests? Since > this stuff is in Basic it'd be nice to test it separately from the driver. If > so, maybe they could als

[PATCH] D105257: [clang][darwin] add support for remapping macOS availability to Mac Catalyst availability

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman added inline comments. Comment at: clang/include/clang/Basic/DarwinSDKInfo.h:129 + static Optional + parseDarwinSDKSettingsJSON(StringRef FilePath, const llvm::json::Object *Obj); + dexonsmith wrote: > Should this take the VFS? No, the Filepath is not

[PATCH] D105257: [clang][darwin] add support for remapping macOS availability to Mac Catalyst availability

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 358511. arphaman marked 11 inline comments as done. arphaman added a comment. Split patch and address review comments CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105257/new/ https://reviews.llvm.org/D105257 Files: clang/include/clang/Basic/Dia

[PATCH] D105958: [clang][darwin] add support for version remapping to the Darwin SDK Info class

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 358510. arphaman added a comment. fix typo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105958/new/ https://reviews.llvm.org/D105958 Files: clang/include/clang/Basic/DarwinSDKInfo.h clang/lib/Basic/DarwinSDKInfo.cpp clang/lib/Driver/ToolCha

[PATCH] D105958: [clang][darwin] add support for version remapping to the Darwin SDK Info class

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman created this revision. arphaman added reviewers: dexonsmith, Bigcheese. Herald added subscribers: ributzka, mgorny. arphaman requested review of this revision. Herald added projects: clang, LLVM. Herald added a subscriber: llvm-commits. This patch is a pre-commit for https://reviews.llvm.

[PATCH] D105637: [clang][Analyzer] Add symbol uninterestingness to bug report.

2021-07-13 Thread Artem Dergachev via Phabricator via cfe-commits
NoQ added inline comments. Comment at: clang/lib/StaticAnalyzer/Core/BugReporter.cpp:2260-2261 + InterestingSymbols.erase(sym); + if (const auto *meta = dyn_cast(sym)) +markNotInteresting(meta->getRegion()); +} balazske wrote: > balazske wrote: > > NoQ wrot

[PATCH] D105939: [OpenMP] Add IDs to OpenMP remarks

2021-07-13 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert accepted this revision. jdoerfert added a comment. This revision is now accepted and ready to land. LG Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105939/new/ https://reviews.llvm.org/D105939 ___

[PATCH] D105909: [clang][CallGraphSection] Add type id metadata to indirect call and targets

2021-07-13 Thread Necip Fazil Yildiran via Phabricator via cfe-commits
necipfazil updated this revision to Diff 358505. necipfazil added a comment. Several review comments are addressed - Don't emit type metadata for Objective-C - Don't emit metadata for function definitions, which leads to duplicates - Improve the test case - Add C struct parameter test - Fix v

[PATCH] D105909: [clang][CallGraphSection] Add type id metadata to indirect call and targets

2021-07-13 Thread Necip Fazil Yildiran via Phabricator via cfe-commits
necipfazil added inline comments. Comment at: clang/lib/CodeGen/CGObjCMac.cpp:2288 +} + } morehouse wrote: > This is for Objective C? I don't think we care about Objective C. I will remove this. Comment at: clang/lib/CodeGen/CodeGenModu

[PATCH] D105937: [OpenMP] Encode `omp [...] assume[...]` assumptions with `omp[x]` prefix

2021-07-13 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert updated this revision to Diff 358502. jdoerfert added a comment. Fix lifetime problem, update one more test Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105937/new/ https://reviews.llvm.org/D105937 Files: clang/include/clang/Sema/Sema

[clang] 40ce58d - Revert "[clang] Refactor AST printing tests to share more infrastructure"

2021-07-13 Thread David Green via cfe-commits
Author: David Green Date: 2021-07-14T04:40:47+01:00 New Revision: 40ce58d0ca10a1195da82895749b67f30f000243 URL: https://github.com/llvm/llvm-project/commit/40ce58d0ca10a1195da82895749b67f30f000243 DIFF: https://github.com/llvm/llvm-project/commit/40ce58d0ca10a1195da82895749b67f30f000243.diff L

[PATCH] D105091: [RISCV] Pass -u to linker correctly.

2021-07-13 Thread Kito Cheng via Phabricator via cfe-commits
kito-cheng updated this revision to Diff 358494. kito-cheng added a comment. Changes: - Update testcase again. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105091/new/ https://reviews.llvm.org/D105091 Files: clang/lib/Driver/ToolChains/RISCVTo

[PATCH] D105926: [PowerPC] Extra test case for LDARX

2021-07-13 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai added inline comments. Comment at: clang/test/CodeGen/builtins-ppc-xlcompat-check-ldarx-opt.ll:149 + +attributes #0 = { noinline nounwind optnone uwtable "frame-pointer"="all" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "tar

[PATCH] D105926: [PowerPC] Extra test case for LDARX

2021-07-13 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai requested changes to this revision. nemanjai added inline comments. This revision now requires changes to proceed. Comment at: clang/test/CodeGen/builtins-ppc-xlcompat-check-ldarx-opt.ll:1 +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py +;

[PATCH] D99487: [CodeGen] Port basic block sections from ELF to COFF

2021-07-13 Thread TaoPan via Phabricator via cfe-commits
TaoPan added inline comments. Comment at: llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp:1712 + COFF::IMAGE_SCN_MEM_READ | COFF::IMAGE_SCN_LNK_COMDAT, + SectionKind::getText(), COMDATSymName, + COFF::IMAGE_COMDAT_SELECT_NODUPLICATES, UniqueID); -

[PATCH] D105957: [PowerPC] Implement intrinsics for mtfsf[i]

2021-07-13 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai added inline comments. Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.td:4484 +// as an implicit def for all of them. +let Predicates = [HasFPU] in { +let Defs = [RM] in { @ZhangKang You modified this code most recently. Please provide your opinion he

[PATCH] D105930: [PowerPC] Implement XL compact math builtins

2021-07-13 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai added a subscriber: ZhangKang. nemanjai added inline comments. Comment at: llvm/lib/Target/PowerPC/PPCInstrInfo.td:3087 // RM should be set. +let hasSideEffects = 1 in { def MTFSB0 : XForm_43<63, 70, (outs), (ins u5imm:$FM), I think we should conservat

[PATCH] D105957: [PowerPC] Implement intrinsics for mtfsf[i]

2021-07-13 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai created this revision. nemanjai added reviewers: PowerPC, ZhangKang. Herald added subscribers: shchenz, kbarton, hiraditya. nemanjai requested review of this revision. Herald added projects: clang, LLVM. Herald added a subscriber: cfe-commits. This provides intrinsics for emitting instruc

[clang] 8a0f116 - Fix test trying to write a spurious output file into the source

2021-07-13 Thread Richard Smith via cfe-commits
Author: Richard Smith Date: 2021-07-13T18:58:24-07:00 New Revision: 8a0f1163d02c77c6e764929b66c26ba196cfc549 URL: https://github.com/llvm/llvm-project/commit/8a0f1163d02c77c6e764929b66c26ba196cfc549 DIFF: https://github.com/llvm/llvm-project/commit/8a0f1163d02c77c6e764929b66c26ba196cfc549.diff

[PATCH] D105951: [clang] P2266 implicit moves STL workaround

2021-07-13 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov updated this revision to Diff 358488. mizvekov added a comment. . Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105951/new/ https://reviews.llvm.org/D105951 Files: clang/lib/Frontend/InitPreprocessor.cpp clang/lib/Sema/SemaStmt.cpp

[PATCH] D105951: [clang] P2266 implicit moves STL workaround

2021-07-13 Thread Matheus Izvekov via Phabricator via cfe-commits
mizvekov created this revision. mizvekov updated this revision to Diff 358468. mizvekov added a comment. mizvekov updated this revision to Diff 358483. mizvekov published this revision for review. Herald added a project: clang. Herald added a subscriber: cfe-commits. . mizvekov added a comment.

[PATCH] D99487: [CodeGen] Port basic block sections from ELF to COFF

2021-07-13 Thread TaoPan via Phabricator via cfe-commits
TaoPan updated this revision to Diff 358481. TaoPan added a comment. Change select of BB sections to IMAGE_COMDAT_SELECT_NODUPLICATES Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99487/new/ https://reviews.llvm.org/D99487 Files: clang/include/c

[PATCH] D105328: [Frontend] Only compile modules if not already finalized

2021-07-13 Thread Ben Barham via Phabricator via cfe-commits
bnbarham updated this revision to Diff 358465. bnbarham edited the summary of this revision. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105328/new/ https://reviews.llvm.org/D105328 Files: clang/include/clang/Basic/DiagnosticCommonKinds.td cla

[PATCH] D105328: [Frontend] Only compile modules if not already finalized

2021-07-13 Thread Ben Barham via Phabricator via cfe-commits
bnbarham marked 5 inline comments as done. bnbarham added inline comments. Comment at: clang/lib/Frontend/CompilerInstance.cpp:1063 +<< ModuleName; +return ImportingInstance.getFrontendOpts().AllowPCMWithCompilerErrors; + } bnbarham wrote: > vsapsai

[PATCH] D105950: [WebAssembly] Codegen for v128.loadX_lane instructions

2021-07-13 Thread Thomas Lively via Phabricator via cfe-commits
tlively created this revision. tlively added reviewers: aheejin, dschuff. Herald added subscribers: wingo, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100. tlively requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. R

[PATCH] D105907: [CallGraphSection] Add call graph section options and documentation

2021-07-13 Thread Necip Fazil Yildiran via Phabricator via cfe-commits
necipfazil updated this revision to Diff 358463. necipfazil added a comment. rebase, fix nits in docs Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105907/new/ https://reviews.llvm.org/D105907 Files: clang/docs/CallGraphSection.rst clang/inclu

[PATCH] D105939: [OpenMP] Add IDs to OpenMP remarks

2021-07-13 Thread Joseph Huber via Phabricator via cfe-commits
jhuber6 updated this revision to Diff 358461. jhuber6 added a comment. Herald added a project: clang. Herald added a subscriber: cfe-commits. Adding test case for IDs. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105939/new/ https://reviews.llvm.o

[PATCH] D105909: [clang][CallGraphSection] Add type id metadata to indirect call and targets

2021-07-13 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added a comment. I think we want a C++ test as well, with class functions, templates, etc. Also, please rebase the patch onto any parent commits, so that it builds properly and the clang-tidy warnings go away. Comment at: clang/lib/CodeGen/CGObjCMac.cpp:2288 +}

[PATCH] D105869: [Driver] fix PowerPC SPE musl dynamic linker name

2021-07-13 Thread Patrick Oppenlander via Phabricator via cfe-commits
pattop added a comment. Here is the corresponding gcc patch: https://github.com/richfelker/musl-cross-make/commit/5b405688ee23df621e5b33911e2aa7b046ef632e Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105869/new/ https://reviews.llvm.org/D105869

[PATCH] D105052: [clang][darwin] add support for Mac Catalyst availability

2021-07-13 Thread Alex Lorenz via Phabricator via cfe-commits
arphaman updated this revision to Diff 358457. arphaman added a comment. Sorry, took a bit longer than anticipated. I updated the patch to address reviewer's comments CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105052/new/ https://reviews.llvm.org/D105052 Files: clang/include/clan

[PATCH] D105328: [Frontend] Only compile modules if not already finalized

2021-07-13 Thread Ben Barham via Phabricator via cfe-commits
bnbarham added inline comments. Comment at: clang/lib/Frontend/CompilerInstance.cpp:1063 +<< ModuleName; +return ImportingInstance.getFrontendOpts().AllowPCMWithCompilerErrors; + } vsapsai wrote: > Can we get in infinite loop with `AllowPCMWithCompil

[PATCH] D105946: [PowerPC] Store, load, move from and to registers related builtins

2021-07-13 Thread Albion Fung via Phabricator via cfe-commits
Conanap created this revision. Herald added subscribers: shchenz, kbarton, hiraditya, nemanjai. Conanap requested review of this revision. Herald added projects: clang, LLVM. Herald added subscribers: llvm-commits, cfe-commits. This patch implements store, load, move from and to registers relate

[PATCH] D105457: [clang] Refactor AST printing tests to share more infrastructure

2021-07-13 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. In D105457#2874783 , @nridge wrote: > To be honest, I don't really understand this error. It seems to come from a > compile step (not a link step), and it comes from the assembler and says > "symbol ... is already defined"? I d

[PATCH] D69764: [clang-format] Add East/West Const fixer capability

2021-07-13 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. Because I don't want to move this review on other than to maintain it for future rebasing, I've created a new review for the concept of the new tool D105943: [clang-format++] Create a new variant of the clang-format tool to allow additional code mutating behavi

[PATCH] D105943: [clang-format++] Create a new variant of the clang-format tool to allow additional code mutating behaviour such as East/West Const Fixer

2021-07-13 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay created this revision. MyDeveloperDay added reviewers: curdeius, HazardyKnusperkeks, aaron.ballman. MyDeveloperDay added projects: clang-format, clang. Herald added a subscriber: mgorny. MyDeveloperDay requested review of this revision. There has been much discussion about the relat

[PATCH] D102107: [OpenMP] Codegen aggregate for outlined function captures

2021-07-13 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added a comment. In D102107#2874123 , @jdoerfert wrote: > In D102107#2867693 , @ABataev wrote: > >> In D102107#2867670 , >> @josemonsalve2 wrote: >> >>> In D10210

[PATCH] D102875: [PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for XL compatibility

2021-07-13 Thread Victor Huang 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 rG18c19414eb70: [PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for… (authored by NeHuang). Changed prior to commit: htt

[clang] 18c1941 - [PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for XL compatibility

2021-07-13 Thread Victor Huang via cfe-commits
Author: Victor Huang Date: 2021-07-13T16:55:09-05:00 New Revision: 18c19414eb70578d4c487d6f4b0f438aead71d6a URL: https://github.com/llvm/llvm-project/commit/18c19414eb70578d4c487d6f4b0f438aead71d6a DIFF: https://github.com/llvm/llvm-project/commit/18c19414eb70578d4c487d6f4b0f438aead71d6a.diff

[PATCH] D105564: Fix for DWARF parsing to better handle auto return type for member functions

2021-07-13 Thread Raphael Isemann via Phabricator via cfe-commits
teemperor requested changes to this revision. teemperor added a comment. This revision now requires changes to proceed. I guess Phabricator just sent this back to review automatically when you updated the diff? Just mark this as 'needs review' again when this is ready for review. I'll send this

[PATCH] D105629: [TSan] Add SystemZ support

2021-07-13 Thread Ilya Leoshkevich via Phabricator via cfe-commits
iii updated this revision to Diff 358431. iii added a comment. - Fix style issues (seems like arc diff is linting only the top commit?). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105629/new/ https://reviews.llvm.org/D105629 Files: clang/lib/

[PATCH] D105749: WebAssembly: Update datalayout to match fp128 ABI change

2021-07-13 Thread Derek Schuff via Phabricator via cfe-commits
dschuff added inline comments. Comment at: llvm/test/CodeGen/WebAssembly/varargs.ll:5 -target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128" -target triple = "wasm32-unknown-unknown" +target triple = "wasm32-unknown-emscripten" sunfish wrote: > It appears th

[PATCH] D102875: [PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for XL compatibility

2021-07-13 Thread Nemanja Ivanovic via Phabricator via cfe-commits
nemanjai accepted this revision. nemanjai added a comment. This revision is now accepted and ready to land. LGTM aside from a formatting nit. Comment at: llvm/include/llvm/IR/IntrinsicsPowerPC.td:1574 + : GCCBuiltin<"__builtin_ppc_cmprb">, +Intrinsic<[llvm_i32_ty],

[PATCH] D105726: Added fsanitize-address-instrument-via-callback, which controls if address sanitizer will always use a callback.

2021-07-13 Thread Kirill Stoimenov via Phabricator via cfe-commits
kstoimenov updated this revision to Diff 358422. kstoimenov added a comment. Modified UsersManual.rst and added a test. Couldn't find a relevant section in AddressSanitizer.rst and adding a new one is outside of the scope of this change. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST

[PATCH] D105876: OMPIRBuilder for Interop directive

2021-07-13 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: clang/lib/CodeGen/CGStmtOpenMP.cpp:6310-6311 + int DependClauseCount = 0; + for (const auto *DC : S.getClausesOfKind()) +DependClauseCount++; + assert(DependClauseCount <= 1 && "Multiple OMPDependClause not supported."); -

[PATCH] D105907: [CallGraphSection] Add call graph section options and documentation

2021-07-13 Thread Necip Fazil Yildiran via Phabricator via cfe-commits
necipfazil added inline comments. Comment at: clang/docs/CallGraphSection.rst:58 + +A type identifier may be repeated in different entries. The id value 0 is +reserved for unknown and used for indirect targets with unknown type. morehouse wrote: > Why would a typ

[PATCH] D105937: [OpenMP] Encode `omp [...] assume[...]` assumptions with `omp[x]` prefix

2021-07-13 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert created this revision. jdoerfert added a reviewer: jhuber6. Herald added subscribers: guansong, bollu, yaxunl. jdoerfert requested review of this revision. Herald added subscribers: cfe-commits, sstefan1. Herald added a project: clang. Since these assumptions are coming from OpenMP it ma

[PATCH] D69764: [clang-format] Add East/West Const fixer capability

2021-07-13 Thread Mateusz Furdyna via Phabricator via cfe-commits
furdyna added a comment. > I think its worth mentioning, that my personal preference would STILL be to > land this inside clang-format with default configuration of "OFF", > I would be interested to know how many people would be unhappy if we stated > that "sorting includes" and "namespace comm

[PATCH] D105930: [PowerPC] Implement XL compact math builtins

2021-07-13 Thread Lei Huang via Phabricator via cfe-commits
lei updated this revision to Diff 358409. lei added a comment. update tc to only check for pwr7 and up Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105930/new/ https://reviews.llvm.org/D105930 Files: clang/include/clang/Basic/BuiltinsPPC.def

[PATCH] D102875: [PowerPC] Add PowerPC compare and multiply related builtins and instrinsics for XL compatibility

2021-07-13 Thread Victor Huang via Phabricator via cfe-commits
NeHuang updated this revision to Diff 358397. NeHuang marked 4 inline comments as done. NeHuang added a comment. Addressed review comments from Nemanja. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D102875/new/ https://reviews.llvm.org/D102875 Fil

[PATCH] D105907: [CallGraphSection] Add call graph section options and documentation

2021-07-13 Thread Matt Morehouse via Phabricator via cfe-commits
morehouse added inline comments. Comment at: clang/docs/CallGraphSection.rst:58 + +A type identifier may be repeated in different entries. The id value 0 is +reserved for unknown and used for indirect targets with unknown type. Why would a type ID be repeated?

[PATCH] D20689: [clang-tidy] Add 'readability-suspicious-call-argument' check

2021-07-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. In D20689#2874473 , @whisperity wrote: > Bump. 🙂 I would prefer this check to be able to go into Clang-Tidy 13 if it's > okay, together with the other check I implemented. @alexfh has h

[PATCH] D105930: [PowerPC] Implement XL compact math builtins

2021-07-13 Thread Lei Huang via Phabricator via cfe-commits
lei created this revision. lei added reviewers: stefanp, nemanjai, power-llvm-team. Herald added subscribers: shchenz, hiraditya. lei requested review of this revision. Herald added projects: clang, LLVM. Implement a subset of builtins required for compatiblilty with AIX XL compiler. Repository:

[PATCH] D94098: [Clang][AArch64] Inline assembly support for the ACLE type 'data512_t'.

2021-07-13 Thread Eli Friedman via Phabricator via cfe-commits
efriedma added a comment. In D94098#2874976 , @labrinea wrote: > In D94098#2868751 , @efriedma wrote: > >> > > but in my honest opinion I don't see the benefit. The problem is, there isn't really any point to supp

[PATCH] D105564: Fix for DWARF parsing to better handle auto return type for member functions

2021-07-13 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik added inline comments. Comment at: lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.h:406 + virtual lldb::TypeSP + FindTypeForAutoReturnForDIE(const DWARFDIE &die, teemperor wrote: > If this is virtual then I guess `SymbolFileDWARFDwo` should overl

[PATCH] D105457: [clang] Refactor AST printing tests to share more infrastructure

2021-07-13 Thread Douglas Yung via Phabricator via cfe-commits
dyung added a comment. In D105457#2875058 , @glaubitz wrote: > In D105457#2874516 , @dblaikie > wrote: > >> Any ideas what version of the standard library these buildbots are using? >> This /looks/ a bit like a

[PATCH] D105457: [clang] Refactor AST printing tests to share more infrastructure

2021-07-13 Thread John Paul Adrian Glaubitz via Phabricator via cfe-commits
glaubitz added a comment. In D105457#2874516 , @dblaikie wrote: > Any ideas what version of the standard library these buildbots are using? > This /looks/ a bit like a bug in the standard library in use, perhaps? (also > because it's not showing up in l

[PATCH] D105439: [clang] protects users from relying on libc++ detail headers

2021-07-13 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb added a comment. In D105439#2874805 , @cjdb wrote: > In D105439#2874733 , @lebedev.ri > wrote: > >> In D105439#2874706 , @ldionne >> wrote: >> >>> I'm not entirely

[PATCH] D105295: [CUDA] Only allow NVIDIA offload-arch during CUDA compilation.

2021-07-13 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. In D105295#2874935 , @tra wrote: > Ugh. I broke the cuda-bad-arch.cu test. Should be fixed in 25629bb45f0a4b8c8e99dbde4f4a7e3d980b9fd7 Repository: rG LLVM Git

[clang] 25629bb - Fix cuda-bad-arch.cu test.

2021-07-13 Thread Artem Belevich via cfe-commits
Author: Artem Belevich Date: 2021-07-13T11:57:25-07:00 New Revision: 25629bb45f0a4b8c8e99dbde4f4a7e3d980b9fd7 URL: https://github.com/llvm/llvm-project/commit/25629bb45f0a4b8c8e99dbde4f4a7e3d980b9fd7 DIFF: https://github.com/llvm/llvm-project/commit/25629bb45f0a4b8c8e99dbde4f4a7e3d980b9fd7.diff

[PATCH] D105295: [CUDA] Only allow NVIDIA offload-arch during CUDA compilation.

2021-07-13 Thread Douglas Yung via Phabricator via cfe-commits
dyung added a comment. I think your change also broke cuda-flush-denormals-to-zero.cu: https://lab.llvm.org/buildbot/#/builders/139/builds/7048 Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105295/new/ https://reviews.llvm.org/D105295 ___

[PATCH] D105926: [PowerPC] Extra test case for LDARX

2021-07-13 Thread Albion Fung via Phabricator via cfe-commits
Conanap created this revision. Herald added subscribers: shchenz, kbarton, nemanjai. Conanap requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. An extra test case added for the builtin __LDARX. Repository: rG LLVM Github Monorepo https://

[PATCH] D94098: [Clang][AArch64] Inline assembly support for the ACLE type 'data512_t'.

2021-07-13 Thread Alexandros Lamprineas via Phabricator via cfe-commits
labrinea added a comment. In D94098#2868751 , @efriedma wrote: > The part I'm confused about is that you're forcing it to use "*r". At the IR > level, LLVM handles something like `call void asm sideeffect "#$0", "r"([8 x > i64] %c)` fine. You'll have t

[PATCH] D69764: [clang-format] Add East/West Const fixer capability

2021-07-13 Thread Björn Schäpers via Phabricator via cfe-commits
HazardyKnusperkeks added a comment. I already said I would like that in `clang-format` and would directly add that to my config. I also think that there should be no problem in having that in `clang-format`, include sorting has a bigger chance of breaking code, yeah only with poorly designed h

[PATCH] D105876: OMPIRBuilder for Interop directive

2021-07-13 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a subscriber: mikerice. jdoerfert added a comment. There are 3 clang tidy warnings to address. Overall this is a good first step. @ABataev @mikerice is there any major problem with this? If not we should try to get it in asap and improve it in tree. Comment at

[PATCH] D105295: [CUDA] Only allow NVIDIA offload-arch during CUDA compilation.

2021-07-13 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. Ugh. I broke the cuda-bad-arch.cu test. Comment at: clang/test/Driver/cuda-bad-arch.cu:30 // RUN: | FileCheck -check-prefix OK %s // RUN: %clang -### -target x86_64-linux-gnu --cuda-gpu-arch=gfx90a -c %s 2>&1 \ // RUN: | FileCheck -check-prefix OK %s --

[PATCH] D69764: [clang-format] Add East/West Const fixer capability

2021-07-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D69764#2874790 , @MyDeveloperDay wrote: >> so there's something like precedent here > > I think its worth mentioning, that my personal preference would STILL be to > land this inside clang-format with default configurati

[PATCH] D105726: Added fsanitize-address-instrument-via-callback, which controls if address sanitizer will always use a callback.

2021-07-13 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka requested changes to this revision. vitalybuka added a comment. This revision now requires changes to proceed. I took another looks and noticed: also clang/docs/UsersManual.rst and maybe clang/docs/AddressSanitizer.rst also could you add some trivial test that the flag affects generated

[PATCH] D105564: Fix for DWARF parsing to better handle auto return type for member functions

2021-07-13 Thread Shafik Yaghmour via Phabricator via cfe-commits
shafik updated this revision to Diff 358373. shafik added a comment. - Modified `FindTypeForAutoReturnForDIE` to take into account if we have multiple symbols with the same name. - Modified `ParseSubroutine` to take into account that case we get the definition first, this can happen when we set

[PATCH] D103096: [analyzer] Implement cast for ranges of symbolic integers.

2021-07-13 Thread Denys Petrov via Phabricator via cfe-commits
ASDenysPetrov added inline comments. Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:1203 +if (!Opts.ShouldSupportSymbolicIntegerCasts) + return VisitSymExpr(Sym); + vsavchenko wrote: > ASDenysPetrov wrote: > > vsavchenko wrote: > >

[clang] 781929b - [PowerPC][NFC] Power ISA features for Semachecking

2021-07-13 Thread Victor Huang via cfe-commits
Author: Victor Huang Date: 2021-07-13T13:13:34-05:00 New Revision: 781929b4236bc34681fb0783cf7b6021109fe28b URL: https://github.com/llvm/llvm-project/commit/781929b4236bc34681fb0783cf7b6021109fe28b DIFF: https://github.com/llvm/llvm-project/commit/781929b4236bc34681fb0783cf7b6021109fe28b.diff

[clang] e4585d3 - Revert "[PowerPC][NFC] Power ISA features for Semachecking"

2021-07-13 Thread Victor Huang via cfe-commits
Author: Victor Huang Date: 2021-07-13T13:13:34-05:00 New Revision: e4585d3f4e1f076ff12db65259924492f5912b19 URL: https://github.com/llvm/llvm-project/commit/e4585d3f4e1f076ff12db65259924492f5912b19 DIFF: https://github.com/llvm/llvm-project/commit/e4585d3f4e1f076ff12db65259924492f5912b19.diff

[PATCH] D105384: [NVPTX, CUDA] Add .and.popc variant of the b1 MMA instruction.

2021-07-13 Thread Artem Belevich via Phabricator via cfe-commits
tra updated this revision to Diff 358365. tra added a comment. Updated LD/ST generation. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105384/new/ https://reviews.llvm.org/D105384 Files: clang/include/clang/Basic/BuiltinsNVPTX.def clang/lib/Co

[PATCH] D104058: ThinLTO: Fix inline assembly references to static functions with CFI

2021-07-13 Thread Sami Tolvanen via Phabricator via cfe-commits
samitolvanen updated this revision to Diff 358364. samitolvanen added a comment. Moved the alias creation to module level inline assembly to avoid issues with LowerTypeTestsModule, based on pcc's suggestion. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm

[PATCH] D105629: [TSan] Add SystemZ support

2021-07-13 Thread Ilya Leoshkevich via Phabricator via cfe-commits
iii updated this revision to Diff 358363. iii added a comment. Based on Ulrich's feedback I tested the series on RHEL7, which, in addition to an old kernel, contains an old glibc and an old toolchain. This uncovered a few extra issues, which are fixed here: - Call __tls_get_offset() in order to f

[PATCH] D105439: [clang] protects users from relying on libc++ detail headers

2021-07-13 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb added a comment. In D105439#2874733 , @lebedev.ri wrote: > In D105439#2874706 , @ldionne wrote: > >> I'm not entirely sure I understand the purpose of this patch. So the idea is >> that let's say a tool sug

[PATCH] D105439: [clang] protects users from relying on libc++ detail headers

2021-07-13 Thread Christopher Di Bella via Phabricator via cfe-commits
cjdb added a comment. In D105439#2874706 , @ldionne wrote: > I'm not entirely sure I understand the purpose of this patch. So the idea is > that let's say a tool suggests including `<__algorithm/find.h>` to get the > definition of `std::find` as a IWYU

[PATCH] D69764: [clang-format] Add East/West Const fixer capability

2021-07-13 Thread MyDeveloperDay via Phabricator via cfe-commits
MyDeveloperDay added a comment. > so there's something like precedent here I think its worth mentioning, that my personal preference would STILL be to land this inside clang-format with default configuration of "OFF", where there is also significant existing precedent for passes that change non

[PATCH] D105295: [CUDA] Only allow NVIDIA offload-arch during CUDA compilation.

2021-07-13 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 rG01d3a3dcabaf: [CUDA] Only allow NVIDIA offload-arch during CUDA compilation. (authored by tra). Repository: rG LLVM Github Monorepo CHANGES SINCE

[clang] 01d3a3d - [CUDA] Only allow NVIDIA offload-arch during CUDA compilation.

2021-07-13 Thread Artem Belevich via cfe-commits
Author: Artem Belevich Date: 2021-07-13T11:09:14-07:00 New Revision: 01d3a3dcabaf862581b1d1aee604fcee6a18b240 URL: https://github.com/llvm/llvm-project/commit/01d3a3dcabaf862581b1d1aee604fcee6a18b240 DIFF: https://github.com/llvm/llvm-project/commit/01d3a3dcabaf862581b1d1aee604fcee6a18b240.diff

[PATCH] D105457: [clang] Refactor AST printing tests to share more infrastructure

2021-07-13 Thread Nathan Ridge via Phabricator via cfe-commits
nridge added a comment. To be honest, I don't really understand this error. It seems to come from a compile step (not a link step), and it comes from the assembler and says "symbol ... is already defined"? I don't think I've seen an error like that before. (Typically, errors about duplicate def

[PATCH] D105693: [analyzer][solver][NFC] Refactor how we detect (dis)equalities

2021-07-13 Thread Valeriy Savchenko 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 rG60bd8cbc0c84: [analyzer][solver][NFC] Refactor how we detect (dis)equalities (authored by vsavchenko). Repository: rG LLVM Github Monorepo CHANGE

[PATCH] D105692: [analyzer][solver][NFC] Introduce ConstraintAssignor

2021-07-13 Thread Valeriy Savchenko 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 rGf26deb4e6ba7: [analyzer][solver][NFC] Introduce ConstraintAssignor (authored by vsavchenko). Repository: rG LLVM Github Monorepo CHANGES SINCE LA

[clang] f26deb4 - [analyzer][solver][NFC] Introduce ConstraintAssignor

2021-07-13 Thread Valeriy Savchenko via cfe-commits
Author: Valeriy Savchenko Date: 2021-07-13T21:00:30+03:00 New Revision: f26deb4e6ba7e00c57b4be888c4d20c95a881154 URL: https://github.com/llvm/llvm-project/commit/f26deb4e6ba7e00c57b4be888c4d20c95a881154 DIFF: https://github.com/llvm/llvm-project/commit/f26deb4e6ba7e00c57b4be888c4d20c95a881154.d

[clang] 60bd8cb - [analyzer][solver][NFC] Refactor how we detect (dis)equalities

2021-07-13 Thread Valeriy Savchenko via cfe-commits
Author: Valeriy Savchenko Date: 2021-07-13T21:00:30+03:00 New Revision: 60bd8cbc0c84a41146b1ad6c832fa75f48cd2568 URL: https://github.com/llvm/llvm-project/commit/60bd8cbc0c84a41146b1ad6c832fa75f48cd2568 DIFF: https://github.com/llvm/llvm-project/commit/60bd8cbc0c84a41146b1ad6c832fa75f48cd2568.d

[PATCH] D105439: [clang] protects users from relying on libc++ detail headers

2021-07-13 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri added a comment. In D105439#2874706 , @ldionne wrote: > I'm not entirely sure I understand the purpose of this patch. So the idea is > that let's say a tool suggests including `<__algorithm/find.h>` to get the > definition of `std::find` as a

[PATCH] D105873: Fix utils/update_cc_test_checks/check-globals.test on stand-alone builds

2021-07-13 Thread Tom Stellard 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 rG303ddb60a2d2: Fix utils/update_cc_test_checks/check-globals.test on stand-alone builds (authored by tstellar). Repository: rG LLVM Github Monorep

[clang] 303ddb6 - Fix utils/update_cc_test_checks/check-globals.test on stand-alone builds

2021-07-13 Thread Tom Stellard via cfe-commits
Author: Tom Stellard Date: 2021-07-13T10:47:30-07:00 New Revision: 303ddb60a2d28fb7603266d8977f69ac77b194dd URL: https://github.com/llvm/llvm-project/commit/303ddb60a2d28fb7603266d8977f69ac77b194dd DIFF: https://github.com/llvm/llvm-project/commit/303ddb60a2d28fb7603266d8977f69ac77b194dd.diff

[PATCH] D105439: [clang] protects users from relying on libc++ detail headers

2021-07-13 Thread Louis Dionne via Phabricator via cfe-commits
ldionne added a comment. I'm not entirely sure I understand the purpose of this patch. So the idea is that let's say a tool suggests including `<__algorithm/find.h>` to get the definition of `std::find` as a IWYU fix-it sort of suggestion, the user would naively do that, and then the compiler (

[PATCH] D103096: [analyzer] Implement cast for ranges of symbolic integers.

2021-07-13 Thread Valeriy Savchenko via Phabricator via cfe-commits
vsavchenko added a comment. OK, thanks for putting a summary. I now got a good idea why you need both. At the same time, take a look at D105692 . I'm about to land it and I think it's going to be useful for you. CHANGES SINCE LAST ACTION https://reviews.llv

[PATCH] D105693: [analyzer][solver][NFC] Refactor how we detect (dis)equalities

2021-07-13 Thread Valeriy Savchenko via Phabricator via cfe-commits
vsavchenko added inline comments. Comment at: clang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp:687 /// A small helper structure representing symbolic equality. /// martong wrote: > This is no longer a `structure`. Good catch! Repository: rG LLVM G

[PATCH] D105693: [analyzer][solver][NFC] Refactor how we detect (dis)equalities

2021-07-13 Thread Valeriy Savchenko via Phabricator via cfe-commits
vsavchenko updated this revision to Diff 358341. vsavchenko marked an inline comment as done. vsavchenko added a comment. Fix comments Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D105693/new/ https://reviews.llvm.org/D105693 Files: clang/lib/St

[PATCH] D69764: [clang-format] Add East/West Const fixer capability

2021-07-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D69764#2874464 , @atomgalaxy wrote: > It's very difficult to use a compile_commands database if you can't > actually check out all the code and a remote service builds it for you. In D69764#2874514

  1   2   3   >