[PATCH] D76066: [ARM][MachineOutliner] Add Machine Outliner support for ARM

2020-04-08 Thread Sam Parker via Phabricator via cfe-commits
samparker added inline comments. Comment at: llvm/lib/Target/ARM/ARMTargetMachine.cpp:553 addPass(createARMConstantIslandPass()); - addPass(createARMLowOverheadLoopsPass()); + if (!MachineOutlinerEnabled) +addPass(createARMLowOverheadLoopsPass()); yroux

[clang] c7ff5b3 - [FPEnv] Use single enum to represent rounding mode

2020-04-08 Thread Serge Pavlov via cfe-commits
Author: Serge Pavlov Date: 2020-04-09T13:26:47+07:00 New Revision: c7ff5b38f27f812dcd6e2e8732208a39232dc284 URL: https://github.com/llvm/llvm-project/commit/c7ff5b38f27f812dcd6e2e8732208a39232dc284 DIFF: https://github.com/llvm/llvm-project/commit/c7ff5b38f27f812dcd6e2e8732208a39232dc284.diff

[PATCH] D77705: [Driver] Forward pass plugin arguments to gold

2020-04-08 Thread Dominic Chen via Phabricator via cfe-commits
ddcc added a comment. Originally, I tried forwarding the `-Xclang -load` arguments, but couldn't access the `options::OPT_plugin` arguments from the argument list. I'm not familiar with tablegen and argument processing, there was some issue with the group not being available causing the argumen

[PATCH] D77637: [SanitizerCoverage] Add -fsanitize-coverage=inline-bool-flag

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. With this patch check-fuzzer does not work FAIL: libFuzzer :: value-profile-load.test (63806 of 66139) TEST 'libFuzzer :: value-profile-load.test' FAILED Script: -- : 'RUN: at line 2'; /us

[PATCH] D77229: [Analyzer][WIP] Avoid handling of LazyCompundVals in IteratorModeling

2020-04-08 Thread Balogh, Ádám via Phabricator via cfe-commits
baloghadamsoftware added a comment. In D77229#1969524 , @NoQ wrote: > In D77229#1969455 , > @baloghadamsoftware wrote: > > > The problem is that the `CFGElement` for function `iterator begin() { > > return iterato

[PATCH] D75591: [OpenMP] Add firstprivate as a default data-sharing attribute to clang

2020-04-08 Thread Roman Lebedev via Phabricator via cfe-commits
lebedev.ri resigned from this revision. lebedev.ri added a comment. This revision is now accepted and ready to land. No further comments. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D75591/new/ https://reviews.llvm.org/D75591 __

[PATCH] D77777: [nvptx] Add `nvvm.texsurf.handle` internalizer.

2020-04-08 Thread Michael Liao via Phabricator via cfe-commits
hliao created this revision. hliao added a reviewer: tra. Herald added subscribers: cfe-commits, hiraditya, mgorny, jholewinski. Herald added a project: clang. - Replace them with the internal version, i.e. `nvvm.texsurf.handle.internal` just before the instruction selector. - Teach clang codegen

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGe8d1c6529b95: [SanitizerCoverage] sancov/inline-bool-flag instrumentation. (authored by pratyai, committed by vitalybuka). Changed prior to commit: https://reviews.llvm.org/D77244?vs=256182&id=256190#to

[PATCH] D77205: [X86] Add TSXLDTRK instructions.

2020-04-08 Thread Xiang Zhang via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGa3dc9490004c: [X86] Add TSXLDTRK instructions. (authored by tianqing, committed by xiangzhangllvm). Changed prior to commit: https://reviews.llvm.org/D77205?vs=256170&id=256189#toc Repository: rG LLV

[clang] a3dc949 - [X86] Add TSXLDTRK instructions.

2020-04-08 Thread Xiang1 Zhang via cfe-commits
Author: WangTianQing Date: 2020-04-09T13:17:29+08:00 New Revision: a3dc9490004ce1601fb1bc67cf218b86a6fdf652 URL: https://github.com/llvm/llvm-project/commit/a3dc9490004ce1601fb1bc67cf218b86a6fdf652 DIFF: https://github.com/llvm/llvm-project/commit/a3dc9490004ce1601fb1bc67cf218b86a6fdf652.diff

[PATCH] D70366: Add new 'flatten' LLVM attribute to fix clang's 'flatten' function attribute

2020-04-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In D70366#1970758 , @jdoerfert wrote: > In D70366#1970526 , @dexonsmith > wrote: > > > In D70366#1970299 , > > @LevitatingLion wrote: > > > > >

[PATCH] D77717: [clang][index] index the missing LabelDecl in libindex.

2020-04-08 Thread Kadir Cetinkaya via Phabricator via cfe-commits
kadircet added inline comments. Comment at: clang/lib/Index/IndexBody.cpp:152 +if (auto *LabelDecl = Label->getDecl()) + IndexCtx.handleReference(LabelDecl, Label->getIdentLoc(), Parent, + ParentDC, argh, looks like Recursiv

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Pratyai Mazumder via Phabricator via cfe-commits
pratyai updated this revision to Diff 256182. pratyai added a comment. Adjusted the diff in the change (`align 1` is dropped from the llvm instruction of the CHECK). The reason is that it does not get set until setAlignment is explicitly called (ref: https://llvm.org/doxygen/Instructions_8cpp_s

[PATCH] D77776: [Driver] Drop support for FreeBSD < 10

2020-04-08 Thread Jan Beich via Phabricator via cfe-commits
jbeich created this revision. jbeich added reviewers: clang, dim. Herald added subscribers: cfe-commits, fedor.sergeev, krytarowski, arichardson, emaste. Herald added a project: clang. Downstream may naively translate between DSL and LLVM target triple. If OS version is lost in the process then

[PATCH] D76932: [AIX] emit .extern and .weak directive linkage

2020-04-08 Thread Hubert Tong via Phabricator via cfe-commits
hubert.reinterpretcast added inline comments. Comment at: llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp:403 switch (Linkage) { case GlobalValue::CommonLinkage: case GlobalValue::LinkOnceAnyLinkage: I have my doubts that `CommonLinkage` should produce `.weak

[PATCH] D77637: [part 2] sancov/inline-bool-flag clang flags.

2020-04-08 Thread Pratyai Mazumder via Phabricator via cfe-commits
pratyai marked 2 inline comments as done. pratyai added inline comments. Comment at: clang/test/Driver/fsanitize-coverage.c:114 +// RUN: %clang -target x86_64-linux-gnu -fsanitize-coverage=inline-8bit-counters,pc-table %s -### 2>&1 | FileCheck %s --check-prefix=CHECK_PC_TABLE_F

[PATCH] D77637: [part 2] sancov/inline-bool-flag clang flags.

2020-04-08 Thread Pratyai Mazumder via Phabricator via cfe-commits
pratyai updated this revision to Diff 256178. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77637/new/ https://reviews.llvm.org/D77637 Files: clang/docs/SanitizerCoverage.rst clang/include/clang/Basic/CodeGenOptions.def clang/include/clang/Dri

[PATCH] D77205: [X86] Add TSXLDTRK instructions.

2020-04-08 Thread Craig Topper via Phabricator via cfe-commits
craig.topper accepted this revision. craig.topper added a comment. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77205/new/ https://reviews.llvm.org/D77205 ___ cfe-commits mailing list cfe-commits

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Pratyai Mazumder via Phabricator via cfe-commits
pratyai updated this revision to Diff 256175. pratyai added a comment. oops; forgot that dropping the `alignment == 1 ? 1 : alignment / 8` bit off this diff wouldn't work with build. (running a --check-llvm, but it's a bit slow; if things break I'll update again) Repository: rG LLVM Github M

[PATCH] D77633: [Parser] Improve diagnostic and error recovery when C++ keywords are used as identifiers.

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. This is cool, thx! One case I stumbled upon recently is: `void explicit() {}` Which results in these rather confusing messages: /tmp/test.cpp:1:14: warning: explicit(bool) is a C++20 extension [-Wc++20-extensions] void explicit() { } ^ /tmp/test.

[PATCH] D77774: [OpenMP] Allow to go first in C++-mode in target regions

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert created this revision. jdoerfert added a reviewer: hfinkel. Herald added subscribers: guansong, bollu, yaxunl. Herald added a project: clang. If we are in C++ mode and include (not ) first, we still need to make sure is read first. The problem otherwise is that we haven't seen the decl

[PATCH] D77772: [Clang] Expose RequiresNullTerminator in FileManager.

2020-04-08 Thread Michael Spencer via Phabricator via cfe-commits
Bigcheese created this revision. Bigcheese added reviewers: dexonsmith, vsapsai, rdhindsa. Bigcheese added a project: clang. Herald added a subscriber: hiraditya. This is needed to fix the reason 0a2be46cfdb698fe (Modules: Invalidate out-of-date PCMs as they're discovered) and 5b44a4b07fc1d ([modu

[PATCH] D77205: [X86] Add TSXLDTRK instructions.

2020-04-08 Thread Wang Tianqing via Phabricator via cfe-commits
tianqing updated this revision to Diff 256170. tianqing added a comment. Rebase Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77205/new/ https://reviews.llvm.org/D77205 Files: clang/docs/ClangCommandLineReference.rst clang/include/clang/Basic/

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Pratyai Mazumder via Phabricator via cfe-commits
pratyai updated this revision to Diff 256167. pratyai marked 2 inline comments as done. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77244/new/ https://reviews.llvm.org/D77244 Files: llvm/include/llvm/Transforms/Instrumentation.h llvm/lib/Trans

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Pratyai Mazumder via Phabricator via cfe-commits
pratyai added a comment. In D77244#1970820 , @vitalybuka wrote: > In D77244#1956930 , @pratyai wrote: > > > It looks like I broke the tests after the `i8 `-> `i1` switch. > > > > I think it's because of an existing

[PATCH] D77728: [Driver][X86] Add an alias for -mpad-max-prefix-size

2020-04-08 Thread Kan Shengchen via Phabricator via cfe-commits
skan added a comment. In D77728#1970922 , @MaskRay wrote: > In D77728#1970912 , @skan wrote: > > > In D77728#1969788 , @MaskRay wrote: > > > > > > Make -malign-branch-prefix-

[PATCH] D77628: [Driver][X86] Add -mpad-max-prefix-size

2020-04-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay accepted this revision. MaskRay added inline comments. This revision is now accepted and ready to land. Comment at: clang/include/clang/Driver/Options.td:2190 HelpText<"Specify the boundary's size to align branches">; -def malign_branch_prefix_size_EQ : Joined<["-"],

[PATCH] D77628: [Driver][X86] Add -mpad-max-prefix-size

2020-04-08 Thread Kan Shengchen via Phabricator via cfe-commits
skan updated this revision to Diff 256164. skan added a comment. Remove the limit "max padding prefix size <=5" since MC doesn't have this limit. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77628/new/ https://reviews.llvm.org/D77628 Files: cla

[PATCH] D77341: [DomTree] Replace ChildrenGetter with GraphTraits over GraphDiff.

2020-04-08 Thread Jakub Kuderski via Phabricator via cfe-commits
kuhar accepted this revision. kuhar added a comment. This revision is now accepted and ready to land. Looks good to me overall. I don't want to block it over the cosmetic issues like allocating the empty GD object. Comment at: llvm/include/llvm/Support/GenericDomTreeConstructi

[PATCH] D77628: [Driver][X86] Add -mpad-max-prefix-size

2020-04-08 Thread Kan Shengchen via Phabricator via cfe-commits
skan added a comment. In D77628#1969856 , @MaskRay wrote: > This looks like it requires more thorough discussions, doesn't it? We will > also need discussions with the binutils side. We requested a GCC compiler > driver option long ago but we do not re

[PATCH] D77728: [Driver][X86] Add an alias for -mpad-max-prefix-size

2020-04-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay added a comment. In D77728#1970912 , @skan wrote: > In D77728#1969788 , @MaskRay wrote: > > > > Make -malign-branch-prefix-size an alias for -mpad-max-prefix-size (For > > > GCC compatibility) > > > > I can

[PATCH] D77728: [Driver][X86] Add an alias for -mpad-max-prefix-size

2020-04-08 Thread Kan Shengchen via Phabricator via cfe-commits
skan added a comment. In D77728#1969788 , @MaskRay wrote: > > Make -malign-branch-prefix-size an alias for -mpad-max-prefix-size (For GCC > > compatibility) > > I cannot find a discussion on -mpad-max-prefix-size. Is it a planned GNU as > option or GCC d

[PATCH] D77205: [X86] Add TSXLDTRK instructions.

2020-04-08 Thread Wang Tianqing via Phabricator via cfe-commits
tianqing added a comment. Can I just check it in after the rebase? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77205/new/ https://reviews.llvm.org/D77205 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-b

[PATCH] D73307: Unique Names for Functions with Internal Linkage

2020-04-08 Thread Sriraman Tallam via Phabricator via cfe-commits
tmsriram added a comment. We just noticed an issue with alias attribute and this option. Here is the code that exposes the problem: alias_global.c static int foo; extern int bar __attribute__((alias("foo"))) $ clang -c alias_global.c -funique-internal-linkage-names alias_global.c:4:31: error:

[PATCH] D77374: Fix -fsanitize=array-bounds with comma operator

2020-04-08 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added inline comments. Comment at: clang/lib/CodeGen/CGExpr.cpp:882-887 + while (const BinaryOperator *BO = dyn_cast(E)) { +if (!BO->isCommaOp()) + break; +E = BO->getRHS(); +E = E->IgnoreParens(); + } If we're going to further extend wh

[PATCH] D77628: [Driver][X86] Add -mpad-max-prefix-size

2020-04-08 Thread LuoYuanke via Phabricator via cfe-commits
LuoYuanke added a comment. > This looks like it requires more thorough discussions, doesn't it? We will > also need discussions with the binutils side. We requested a GCC compiler > driver option long ago but we do not reach a consensus > (https://gcc.gnu.org/legacy-ml/gcc/2020-01/msg00358.html

[PATCH] D77637: [part 2] sancov/inline-bool-flag clang flags.

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka accepted this revision. vitalybuka added inline comments. This revision is now accepted and ready to land. Comment at: clang/test/Driver/fsanitize-coverage.c:114 +// RUN: %clang -target x86_64-linux-gnu -fsanitize-coverage=inline-8bit-counters,pc-table %s -### 2>&1 |

[PATCH] D76768: [analyzer] Added support of scan-build and exploded-graph-rewriter regression tests for Windows

2020-04-08 Thread Nico Weber via Phabricator via cfe-commits
thakis added a comment. Sorry for the slow reply. I repro'd this locally now, and here I see this error: ''' command stderr: === 'perl' is not recognized as an internal or external command, operable program or batch file. ''' perl wasn't required to run tests on Win for a long time

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added inline comments. Comment at: llvm/lib/Transforms/Instrumentation/SanitizerCoverage.cpp:922 +auto Store = IRB.CreateStore(ConstantInt::getTrue(Int1Ty), FlagPtr); +Store->setAtomic(AtomicOrdering::NotAtomic); +Store->setAlignment(llvm::MaybeAlign(Functi

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. In D77244#1956930 , @pratyai wrote: > It looks like I broke the tests after the `i8 `-> `i1` switch. > > I think it's because of an existing bug. From > https://llvm.org/docs/LangRef.html > > > i1:8:8 - i1 is 8-bit (byte) align

[PATCH] D77244: [part 1] sancov/inline-bool-flag instrumentation.

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. In D77244#1956805 , @pratyai wrote: > Undid the `arc lint` on autocomplete.c. > `arc lint` does not seem to have an option --style, but it's just one line > diff anyway. yep. it had --style LLVM by mistake. I guess it's fixe

[PATCH] D77731: [OPENMP]Fix capturing of global variables in OpenMP regions.

2020-04-08 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev marked an inline comment as done. ABataev added inline comments. Comment at: clang/lib/Sema/SemaOpenMP.cpp:2117 +if (VD && !VD->hasLocalStorage() && DVarPrivate.CKind == OMPC_unknown && +(DSAStack->getDefaultDSA() != DSA_none || DVarTop.CKind == OMPC_shared))

[PATCH] D75591: [OpenMP] Add firstprivate as a default data-sharing attribute to clang

2020-04-08 Thread Atmn Patel via Phabricator via cfe-commits
atmnpatel updated this revision to Diff 256152. atmnpatel added a comment. Addresses D77731 and fixes the comment. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D75591/new/ https://reviews.llvm.org/D75591 Files:

[PATCH] D77683: [Docs] Make code review policy clearer about requested pre-commit reviews

2020-04-08 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added a comment. I am still not sure what "if someone has asked for extra review of a specific area" refers to? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77683/new/ https://reviews.llvm.org/D77683 ___

[PATCH] D68049: Propeller: Clang options for basic block sections

2020-04-08 Thread Sriraman Tallam via Phabricator via cfe-commits
tmsriram added a comment. Ping. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D68049/new/ https://reviews.llvm.org/D68049 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D77697: libc++: adjust modulemap for non-modular C

2020-04-08 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith added a comment. In D77697#1968998 , @joerg wrote: > This fixes the module build of clang for me. Are you building with or without `-fmodules-local-submodule-visibility` (`cmake -DLLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY=ON`)? If you don't use that

[PATCH] D77571: [clang-tidy] Add check to find calls to NSInvocation methods under ARC that don't have proper object argument lifetimes.

2020-04-08 Thread Stephane Moore via Phabricator via cfe-commits
stephanemoore accepted this revision. stephanemoore marked an inline comment as done. stephanemoore added inline comments. Comment at: clang-tools-extra/clang-tidy/objc/NSInvocationArgumentLifetimeCheck.cpp:49 + QT->getScalarTypeKind() == Type::STK_BlockPointer) && +

[PATCH] D77766: [clangd] Set up machinery for gtests of ClangdLSPServer.

2020-04-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall created this revision. sammccall added a reviewer: kadircet. Herald added subscribers: cfe-commits, usaxena95, arphaman, jkorous, MaskRay, ilya-biryukov, mgorny. Herald added a project: clang. sammccall added a comment. It seems fairly likely that this is a big complicated thing we end

[PATCH] D77697: libc++: adjust modulemap for non-modular C

2020-04-08 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added a comment. I think that a `clang-pcm` like tool would be **incredible**. Working with modules is somewhat frustrating because there is no good supported way to see what the module structure that clang actually sees. But that goes well beyond an attempt to repair the NetBSD buil

[PATCH] D77766: [clangd] Set up machinery for gtests of ClangdLSPServer.

2020-04-08 Thread Sam McCall via Phabricator via cfe-commits
sammccall added a comment. It seems fairly likely that this is a big complicated thing we end up using for 1 or 2 tests that are too hard to test with lit but can't be tested at a lower level than ClangdLSPServer. Suggestions on how to make it more lightweight would be welcome! Repository: r

[PATCH] D77373: Add more -fsanitize=array-bounds tests

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77373/new/ https://reviews.llvm.org/D77373 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[PATCH] D77374: Fix -fsanitize=array-bounds with comma operator

2020-04-08 Thread Vitaly Buka via Phabricator via cfe-commits
vitalybuka added a comment. ping Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77374/new/ https://reviews.llvm.org/D77374 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/

[PATCH] D77731: [OPENMP]Fix capturing of global variables in OpenMP regions.

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert accepted this revision. jdoerfert added a subscriber: atmnpatel. jdoerfert added a comment. This revision is now accepted and ready to land. LGTM. Comment at: clang/lib/Sema/SemaOpenMP.cpp:2117 +if (VD && !VD->hasLocalStorage() && DVarPrivate.CKind == OMPC_unknown

[PATCH] D77632: [TLI] Per-function fveclib for math library used for vectorization

2020-04-08 Thread Wenlei He via Phabricator via cfe-commits
wenlei added a comment. Thanks for taking a look and the suggestions, @tejohnson. Yeah, you're right about the potential conflict of attributes. Initially I thought even though we now allow this to be per-function, but since it comes from per-module switch, module level consistency can still be

[PATCH] D70366: Add new 'flatten' LLVM attribute to fix clang's 'flatten' function attribute

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. In D70366#1970526 , @dexonsmith wrote: > In D70366#1970299 , @LevitatingLion > wrote: > > > Maybe we can add an additional string attribute when adding the noinline > > attribute to func

[PATCH] D77697: libc++: adjust modulemap for non-modular C

2020-04-08 Thread Michael Spencer via Phabricator via cfe-commits
Bigcheese added a comment. In D77697#1970586 , @dexonsmith wrote: > In D77697#1969998 , @compnerd wrote: > > > @dexonsmith - yeah, sadly I dont think that there is a good way to audit > > that - any change to the p

[PATCH] D77731: [OPENMP]Fix capturing of global variables in OpenMP regions.

2020-04-08 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev marked an inline comment as done. ABataev added inline comments. Comment at: clang/lib/Sema/SemaOpenMP.cpp:2117 +if (VD && !VD->hasLocalStorage() && DVarPrivate.CKind == OMPC_unknown && +(DSAStack->getDefaultDSA() != DSA_none || DVarTop.CKind == OMPC_shared))

[PATCH] D77721: [ASTImporter] Add support for importing fixed point literals

2020-04-08 Thread Vince Bridgers via Phabricator via cfe-commits
vabridgers updated this revision to Diff 256131. vabridgers added a comment. Addressed comments from @balazske. Thanks for the tips and useful starting point from @martong Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77721/new/ https://reviews.llv

[PATCH] D77721: [ASTImporter] Add support for importing fixed point literals

2020-04-08 Thread Vince Bridgers via Phabricator via cfe-commits
vabridgers updated this revision to Diff 256133. vabridgers added a comment. Remove extraneous code :/ Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77721/new/ https://reviews.llvm.org/D77721 Files: clang/include/clang/AST/Expr.h clang/include

[PATCH] D77697: libc++: adjust modulemap for non-modular C

2020-04-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a subscriber: Bigcheese. dexonsmith added a comment. In D77697#1969998 , @compnerd wrote: > @dexonsmith - yeah, sadly I dont think that there is a good way to audit that > - any change to the public headers can cause issues. Furthermore,

[PATCH] D70366: Add new 'flatten' LLVM attribute to fix clang's 'flatten' function attribute

2020-04-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In D70366#1970526 , @dexonsmith wrote: > In D70366#1970299 , @LevitatingLion > wrote: > > > Maybe we can add an additional string attribute when adding the noinline > > attribute to fun

[PATCH] D70366: Add new 'flatten' LLVM attribute to fix clang's 'flatten' function attribute

2020-04-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In D70366#1970299 , @LevitatingLion wrote: > Maybe we can add an additional string attribute when adding the noinline > attribute to functions which are not marked noinline in the source code, > something like "noinline-added

[PATCH] D77731: [OPENMP]Fix capturing of global variables in OpenMP regions.

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a subscriber: fghanim. jdoerfert added inline comments. Comment at: clang/lib/Sema/SemaOpenMP.cpp:2117 +if (VD && !VD->hasLocalStorage() && DVarPrivate.CKind == OMPC_unknown && +(DSAStack->getDefaultDSA() != DSA_none || DVarTop.CKind == OMPC_shared))

[PATCH] D75591: [OpenMP] Add firstprivate as a default data-sharing attribute to clang

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert accepted this revision. jdoerfert added a comment. Apologies for my delay. LGTM. Wait for @lebedev.ri though. Comment at: clang-tools-extra/docs/clang-tidy/checks/openmp-use-default-none.rst:56 + // ``parallel`` directive can have ``default`` clause, and said claus

[PATCH] D70366: Add new 'flatten' LLVM attribute to fix clang's 'flatten' function attribute

2020-04-08 Thread Duncan P. N. Exon Smith via Phabricator via cfe-commits
dexonsmith added a comment. In D70366#1970375 , @jdoerfert wrote: > TBH, I would issue a warning if we see `flatten` in O0 that says this will > not work and be done with it. I would argue against diagnostics that depend on optimization level, since tha

[PATCH] D77451: Accept -x cu to indicate language is CUDA, transfer CUDA language flag to header-file arguments

2020-04-08 Thread Artem Belevich via Phabricator via cfe-commits
tra added a comment. Thank you for the patch. I assume you don't have commit access to LLVM. I can land the patch for you. How should I attribute it? Will `ADRA ` (used in phabricator emails) do or do you prefer some other form? CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77451/new/

[PATCH] D74387: [SYCL] Defer __float128 type usage diagnostics

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. In D74387#1969891 , @Fznamznon wrote: > In D74387#1967386 , @jdoerfert wrote: > > > In D74387#1967289 , @Fznamznon > > wrote: > > > > > In D74387#

[PATCH] D77697: libc++: adjust modulemap for non-modular C

2020-04-08 Thread Joerg Sonnenberger via Phabricator via cfe-commits
joerg added a comment. @ldionne I was updating libc++ from d42baff45d9700a199982ba0ac04dbc6c6d911bb and LLVM itself from 38aebe5c04ab4cb3695dc1bcc60b9a7b55215aff

[PATCH] D75917: Expose llvm fence instruction as clang intrinsic

2020-04-08 Thread Brian Sumner via Phabricator via cfe-commits
b-sumner added a comment. In addition to predefining `__ATOMIC_RELAXED`, etc., clang also predefines `__OPENCL_MEMORY_SCOPE_WORK_ITEM` and friends. So it doesn't really seem unreasonable for clang to also predefine its known syncscopes, and to require the argument to be one of those integers.

[PATCH] D70366: Add new 'flatten' LLVM attribute to fix clang's 'flatten' function attribute

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. In D70366#1970299 , @LevitatingLion wrote: > While adding tests to clang I realized the attribute is not working as > intended when using an optimization level of zero, because clang adds the > noinline attribute to all functi

[PATCH] D77751: [OPENMP50] Fix PR45469: Consider variable-category of defaultmap clause as optional.

2020-04-08 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. LGTM Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77751/new/ https://reviews.llvm.org/D77751 _

[PATCH] D77451: Accept -x cu to indicate language is CUDA, transfer CUDA language flag to header-file arguments

2020-04-08 Thread ADRA via Phabricator via cfe-commits
ADRAADRA updated this revision to Diff 256111. ADRAADRA added a comment. - Update Types.cpp comment - remove types::TY_CUDA_FATBIN from switch CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77451/new/ https://reviews.llvm.org/D77451 Files: clang/lib/Driver/Types.cpp clang/lib/Toolin

[PATCH] D77754: [MS] Fix packed struct layout for arrays of aligned non-record types

2020-04-08 Thread Reid Kleckner via Phabricator via cfe-commits
rnk created this revision. rnk added a reviewer: rjmccall. Herald added a subscriber: jfb. Herald added a project: clang. In particular, this affects Clang's vectors. Users encounter this issue when a struct contains an __m128 type. Fixes PR45420 Repository: rG LLVM Github Monorepo https://r

[PATCH] D77753: Change deprecated -fsanitize-recover flag to apply to all sanitizers, not just UBSan.

2020-04-08 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
rsmith created this revision. rsmith added a reviewer: kcc. Herald added a project: clang. Herald added a subscriber: cfe-commits. This flag has been deprecated, with an on-by-default warning encouraging users to explicitly specify whether they mean "all" or ubsan for 5 years (released in Clang 3.

[PATCH] D75936: Add a Pass to X86 that builds a Condensed CFG for Load Value Injection (LVI) Gadgets [4/6]

2020-04-08 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 256106. craig.topper added a comment. -Put llvm:: on the for_each calls in this patch instead of D75937 CHANGES SINCE LAST ACTION https://reviews.llvm.org/D75936/new/ https://reviews.llvm.org/D75936 Files: clang/

[PATCH] D77683: [Docs] Make code review policy clearer about requested pre-commit reviews

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert added a comment. I did like @lattner 's solution so I use that now. Wdyt? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77683/new/ https://reviews.llvm.org/D77683 ___ cfe-commits mailing list

[PATCH] D75181: [AArch64] Handle BTI/PAC in case of generated functions.

2020-04-08 Thread Daniel Kiss via Phabricator via cfe-commits
danielkiss added inline comments. Comment at: clang/lib/CodeGen/TargetInfo.cpp:5149-5152 + if (BPI.BranchTargetEnforcement) +Fn->addFnAttr("branch-target-enforcement", "true"); + else +Fn->addFnAttr("branch-target-enforcement", "false");

[PATCH] D77683: [Docs] Make code review policy clearer about requested pre-commit reviews

2020-04-08 Thread Johannes Doerfert via Phabricator via cfe-commits
jdoerfert updated this revision to Diff 256108. jdoerfert added a comment. Use @lattern 's wording which is more specific and has less spelling errors. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77683/new/ https://reviews.llvm.org/D77683 Files:

[PATCH] D75936: Add a Pass to X86 that builds a Condensed CFG for Load Value Injection (LVI) Gadgets [4/6]

2020-04-08 Thread Craig Topper via Phabricator via cfe-commits
craig.topper updated this revision to Diff 256103. craig.topper marked 5 inline comments as done. craig.topper added a comment. -Replace ARG_NODE and GADGET_EDGE defines with static constexpr members CHANGES SINCE LAST ACTION https://reviews.llvm.org/D75936/new/ https://reviews.llvm.org/D7593

[PATCH] D77743: [HIP] Emit symbols with kernel name in host binary

2020-04-08 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. In D77743#1970163 , @yaxunl wrote: > The kernel handle is a variable. Even if it has the same name as kernel, it > is OK for the debugger since the debugger

[PATCH] D70366: Add new 'flatten' LLVM attribute to fix clang's 'flatten' function attribute

2020-04-08 Thread LevitatingLion via Phabricator via cfe-commits
LevitatingLion added a comment. While adding tests to clang I realized the attribute is not working as intended when using an optimization level of zero, because clang adds the noinline attribute to all functions. In this case the optimizer cannot distinguish between functions originally marked

[PATCH] D74813: [RFC] Add hash of block contents to function block names

2020-04-08 Thread Erik Pilkington via Phabricator via cfe-commits
erik.pilkington added a comment. What do you think about using the block type instead of a hash? That should be stable across compiler versions, changes to the block body, and changes to referenced declarations. You'd still have to number blocks of the same type within the same function, but th

[clang] 30588a7 - Make target features check work with ctor and dtor-

2020-04-08 Thread Erich Keane via cfe-commits
Author: Erich Keane Date: 2020-04-08T13:19:55-07:00 New Revision: 30588a739584bb8ac41715d68656d22bd85198e7 URL: https://github.com/llvm/llvm-project/commit/30588a739584bb8ac41715d68656d22bd85198e7 DIFF: https://github.com/llvm/llvm-project/commit/30588a739584bb8ac41715d68656d22bd85198e7.diff L

[PATCH] D77502: [clang][CodeGen] Handle throw expression in conditional operator constant folding

2020-04-08 Thread Richard Smith - zygoloid via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG878d96011acc: [clang][CodeGen] Handle throw expression in conditional operator constant… (authored by tambre, committed by rsmith). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https

[PATCH] D75844: [clang] Set begin loc on GNU attribute parsed attrs

2020-04-08 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added a comment. In D75844#1951915 , @tbaeder wrote: > Sorry for taking so long but it seems like I've went down a rabbit hole a > bit. My previous patch sets the range in `parseGNUAttributes()` > unconditionally, but that seems to trigger

[PATCH] D74813: [RFC] Add hash of block contents to function block names

2020-04-08 Thread Alex Borcan via Phabricator via cfe-commits
alexbdv added a comment. @dexonsmith - any suggestions to move forward on this ? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D74813/new/ https://reviews.llvm.org/D74813 ___ cfe-commits mailing list cf

[clang] 878d960 - [clang][CodeGen] Handle throw expression in conditional operator constant folding

2020-04-08 Thread Richard Smith via cfe-commits
Author: Raul Tambre Date: 2020-04-08T12:32:21-07:00 New Revision: 878d96011acc0314ae7e5f87aca515286abbe4db URL: https://github.com/llvm/llvm-project/commit/878d96011acc0314ae7e5f87aca515286abbe4db DIFF: https://github.com/llvm/llvm-project/commit/878d96011acc0314ae7e5f87aca515286abbe4db.diff L

[PATCH] D77746: [Driver] Default arm-linux-androideabi to -z max-page-size=4096

2020-04-08 Thread Fangrui Song via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rG969b91af732d: [Driver] Default arm-linux-androideabi to -z max-page-size=4096 (authored by MaskRay). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77746/new/

[PATCH] D74813: [RFC] Add hash of block contents to function block names

2020-04-08 Thread Alex Borcan via Phabricator via cfe-commits
alexbdv marked an inline comment as done. alexbdv added inline comments. Comment at: clang/lib/AST/Mangle.cpp:56 + + // Strip out addresses + char *ptr = &strStmtBuff[1]; manmanren wrote: > Is this needed to have deterministic behavior? Correct. Repository:

[PATCH] D77743: [HIP] Emit symbols with kernel name in host binary

2020-04-08 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. In D77743#1970035 , @tra wrote: > Would not this scheme create a conflict between the device-side mangled > kernel name and the handle which we emit with the same name? I recall that > the distinct stub name was introduced specifi

[PATCH] D59321: AMDGPU: Teach toolchain to link rocm device libs

2020-04-08 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59321/new/ https://reviews.llvm.org/D59321 ___ cfe-commits mailing list cfe-

[PATCH] D77746: [Driver] Default arm-linux-androideabi to -z max-page-size=4096

2020-04-08 Thread Fangrui Song via Phabricator via cfe-commits
MaskRay updated this revision to Diff 256085. MaskRay added a comment. Clarify a comment Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77746/new/ https://reviews.llvm.org/D77746 Files: clang/lib/Driver/ToolChains/Linux.cpp clang/test/Driver/an

[clang] 969b91a - [Driver] Default arm-linux-androideabi to -z max-page-size=4096

2020-04-08 Thread Fangrui Song via cfe-commits
Author: Fangrui Song Date: 2020-04-08T12:05:28-07:00 New Revision: 969b91af732d83870bb17e1e0ca0202fe4b89965 URL: https://github.com/llvm/llvm-project/commit/969b91af732d83870bb17e1e0ca0202fe4b89965 DIFF: https://github.com/llvm/llvm-project/commit/969b91af732d83870bb17e1e0ca0202fe4b89965.diff

[PATCH] D77746: [Driver] Default arm-linux-androideabi to -z max-page-size=4096

2020-04-08 Thread Tobias Hieta via Phabricator via cfe-commits
thieta accepted this revision. thieta added a comment. Thanks for handling this! Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77746/new/ https://reviews.llvm.org/D77746 ___ cfe-commits mailing list cf

[PATCH] D77684: [Hexagon] Remove testcases that check for default linker.

2020-04-08 Thread Brian Cain via Phabricator via cfe-commits
bcain accepted this revision. bcain 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/D77684/new/ https://reviews.llvm.org/D77684 ___ c

[PATCH] D59321: AMDGPU: Teach toolchain to link rocm device libs

2020-04-08 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added a comment. ping CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59321/new/ https://reviews.llvm.org/D59321 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D77746: [Driver] Default arm-linux-androideabi to -z max-page-size=4096

2020-04-08 Thread Stephen Hines via Phabricator via cfe-commits
srhines accepted this revision. srhines added a comment. This revision is now accepted and ready to land. Thank you for making this clear. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77746/new/ https://reviews.llvm.org/D77746 _

[PATCH] D77682: [clang-format] Always break line after enum opening brace

2020-04-08 Thread Omar Sandoval via Phabricator via cfe-commits
osandov added a comment. The style guide I'm following (the Linux kernel style) wants `AfterEnum: false`. A cursory search suggests that people treat this trailing comma behavior as a feature (https://stackoverflow.com/questions/23072223/clang-format-style-options-for-enums). However, I think

[PATCH] D75936: Add a Pass to X86 that builds a Condensed CFG for Load Value Injection (LVI) Gadgets [4/6]

2020-04-08 Thread Craig Topper via Phabricator via cfe-commits
craig.topper marked 37 inline comments as done and an inline comment as not done. craig.topper added inline comments. Comment at: llvm/lib/Target/X86/ImmutableGraph.h:41 +class ImmutableGraph { + using Traits = GraphTraits *>; + template friend class ImmutableGraphBuilder; --

[PATCH] D77688: [CUDA] Improve testing of libdevice detection.

2020-04-08 Thread Artem Belevich via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGd2e498b1725d: [CUDA] Improve testing of libdevice detection. (authored by tra). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77688/new/ https://reviews.llv

  1   2   3   >