[PATCH] D25157: [compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* for libs, headers and tests

2017-03-29 Thread Michał Górny via Phabricator via cfe-commits
mgorny updated this revision to Diff 93347. mgorny added a comment. Needed to rebase again. https://reviews.llvm.org/D25157 Files: cmake/config-ix.cmake include/CMakeLists.txt lib/CMakeLists.txt test/sanitizer_common/CMakeLists.txt Index: test/sanitizer_common/CMakeLists.txt ==

Re: D30739: [OpenMP] "declare simd" for AArch64 Advanced SIMD.

2017-03-29 Thread Francesco Petrogalli via cfe-commits
On 23 Mar 2017, at 17:31, Tian, Xinmin wrote: > What is the error in the spec? > Hi Xinmin - there is nothing wrong with the specs for x86. The problem is that the way the CDT is computed is not optimal for AArch64. We are in the process of re-defining it specifically for AArch64. Francesco

RE: r298976 - [OpenCL] Added parsing for OpenCL vector types.

2017-03-29 Thread Anastasia Stulova via cfe-commits
It seems like the following change causes the failures: diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp index 4dcdfbf..e1439d6 100644 --- a/lib/Parse/ParseExpr.cpp +++ b/lib/Parse/ParseExpr.cpp @@ -2379,10 +2427,13 @@ Parser::ParseParenExpression(ParenParseOption &ExprType, b

[PATCH] D26830: [libcxx] Add string_view literals

2017-03-29 Thread Anton Bikineev via Phabricator via cfe-commits
AntonBikineev added a comment. In https://reviews.llvm.org/D26830#711870, @EricWF wrote: > @AntonBikineev when will you be able to make he requested changes? I would > like to land this ASAP. Will do that today https://reviews.llvm.org/D26830 __

r298992 - Reapplied r298976 [OpenCL] Added parsing for OpenCL vector types.

2017-03-29 Thread Egor Churaev via cfe-commits
Author: echuraev Date: Wed Mar 29 07:09:39 2017 New Revision: 298992 URL: http://llvm.org/viewvc/llvm-project?rev=298992&view=rev Log: Reapplied r298976 [OpenCL] Added parsing for OpenCL vector types. Added: cfe/trunk/test/Parser/vector-cast-define.cl Modified: cfe/trunk/include/clang/Par

[PATCH] D31428: [x86] fix AVX FP cmp intrinsic documentation (PR28110)

2017-03-29 Thread Simon Pilgrim via Phabricator via cfe-commits
RKSimon added inline comments. Comment at: lib/Headers/avxintrin.h:1752 +///0x1e : Greater-than (ordered, non-signaling) +///0x1f : True (unordered, signaling) /// \returns A 128-bit vector of [4 x float] containing the comparison results. Minor: clean u

[PATCH] D31321: [OpenCL] Do not generate "kernel_arg_type_qual" metadata for non-pointer args

2017-03-29 Thread Egor Churaev via Phabricator via cfe-commits
echuraev added inline comments. Comment at: test/CodeGenOpenCL/kernel-arg-info.cl:66 // CHECK: ![[MD13]] = !{!"int*", !"int", !"int", !"float*"} -// CHECK: ![[MD14]] = !{!"restrict", !"const", !"volatile", !"restrict const"} // ARGINFO: ![[MD15]] = !{!"X", !"Y", !"anotherArg",

[PATCH] D31321: [OpenCL] Do not generate "kernel_arg_type_qual" metadata for non-pointer args

2017-03-29 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 93357. echuraev marked an inline comment as done. https://reviews.llvm.org/D31321 Files: lib/CodeGen/CodeGenFunction.cpp test/CodeGenOpenCL/kernel-arg-info.cl Index: test/CodeGenOpenCL/kernel-arg-info.cl

[PATCH] D31428: [x86] fix AVX FP cmp intrinsic documentation (PR28110)

2017-03-29 Thread Sanjay Patel via Phabricator via cfe-commits
spatel updated this revision to Diff 93366. spatel added a comment. Patch updated: Standardize the spelling of "non-signaling" and don't abbreviate "unordered". https://reviews.llvm.org/D31428 Files: lib/Headers/avxintrin.h Index: lib/Headers/avxintrin.h =

[PATCH] D30643: [OpenCL] Extended diagnostics for atomic initialization

2017-03-29 Thread Egor Churaev via Phabricator via cfe-commits
echuraev updated this revision to Diff 93368. echuraev marked 2 inline comments as done. https://reviews.llvm.org/D30643 Files: include/clang/Basic/DiagnosticSemaKinds.td lib/Sema/SemaExpr.cpp lib/Sema/SemaInit.cpp test/Parser/opencl-atomics-cl20.cl test/SemaOpenCL/atomic-init.cl Inde

[PATCH] D31460: [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body

2017-03-29 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov created this revision. - Use pushCleanup to emit freeing coroutine memory on normal and EH exits. - Surround emitted code with CodeGenFunction::RunCleanupsScope. https://reviews.llvm.org/D31460 Files: lib/CodeGen/CGCoroutine.cpp test/CodeGenCoroutines/coro-cleanup.cpp test/Cod

[Driver] Add option to print the resource directory

2017-03-29 Thread Moore, Catherine via cfe-commits
Hi, I tried to submit this patch via Phabricator yesterday, but I don't think it made it to the list: https://reviews.llvm.org/D31447 Thanks, Catherine ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

Re: r298913 - Added `applyAtomicChanges` function.

2017-03-29 Thread Eric Liu via cfe-commits
Hi Juergen, thanks for taking care of this, but I'm wondering if this build bot is using a different set of build rules? The error message says "Clang_Tooling -> Clang_Format -> Clang_Tooling"; however, the actual dependency is clangToolingRefactor -> clangFormat -> clangToolingCore, which seems fi

[PATCH] D31417: [OpenMP] Add support for omp simd pragmas without runtime

2017-03-29 Thread Renato Golin via Phabricator via cfe-commits
rengolin added a comment. Hi Graham, I don't know much about Clang's machinery, but would it be possible to have `-fopenmp-simd` generate the same handler, but with restrictions? I fear this slight duplication could get considerably worse as we support more and more "non-RT" OMP pragmas. Alte

[PATCH] D31417: [OpenMP] Add support for omp simd pragmas without runtime

2017-03-29 Thread Graham Hunter via Phabricator via cfe-commits
huntergr added a comment. Hi Renato, In https://reviews.llvm.org/D31417#713162, @rengolin wrote: > I don't know much about Clang's machinery, but would it be possible to have > `-fopenmp-simd` generate the same handler, but with restrictions? I fear this > slight duplication could get consider

[PATCH] D31422: Add builder for libunwind docs

2017-03-29 Thread Jonathan Roelofs via Phabricator via cfe-commits
jroelofs closed this revision. jroelofs added a comment. r299003 https://reviews.llvm.org/D31422 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31417: [OpenMP] Add support for omp simd pragmas without runtime

2017-03-29 Thread Renato Golin via Phabricator via cfe-commits
rengolin added a comment. In https://reviews.llvm.org/D31417#713171, @huntergr wrote: > The other alternative I thought of was to perform the filtering in > ParseOpenMP.cpp instead, but I need to figure out how to delete or skip > tokens there without cluttering up the rest of the OpenMP parsin

[PATCH] D31308: [clang-tidy] new check readability-no-alternative-tokens

2017-03-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/readability/OperatorsRepresentationCheck.cpp:34 + + if (const auto *B = Result.Nodes.getNodeAs("binary")) { +switch (B->getOpcode()) { mgehre wrote: > aaron.ballman wrote: > > alexfh wrote: > > > aa

[PATCH] D31378: [PCH] Attach instance's dependency collectors to PCH external AST sources.

2017-03-29 Thread Doug Gregor via Phabricator via cfe-commits
doug.gregor accepted this revision. doug.gregor added a comment. This revision is now accepted and ready to land. LGTM! https://reviews.llvm.org/D31378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[PATCH] D25157: [compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* for libs, headers and tests

2017-03-29 Thread Weiming Zhao via Phabricator via cfe-commits
weimingz added a comment. Looks good to me but I'm not very familiar with the build of sanitizer and xray. https://reviews.llvm.org/D25157 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

[PATCH] D31378: [PCH] Attach instance's dependency collectors to PCH external AST sources.

2017-03-29 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno accepted this revision. bruno added a comment. Thanks for working on this! LGTM too https://reviews.llvm.org/D31378 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D31241: [Modules][PCH] Serialize #pragma pack

2017-03-29 Thread Bruno Cardoso Lopes via Phabricator via cfe-commits
bruno accepted this revision. bruno added a comment. This revision is now accepted and ready to land. Thanks Alex. LGTM Repository: rL LLVM https://reviews.llvm.org/D31241 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.

Re: r298956 - Default enable the rtm feature only on skylake and later for now because Intel disabled the feature on some haswell and broadwell processors:

2017-03-29 Thread Eric Christopher via cfe-commits
OK, I went ahead and did this in the backend as well in: echristo@athyra ~/s/llvm> git svn dcommit Committing to https://llvm.org/svn/llvm-project/llvm/trunk ... M lib/Target/X86/X86.td Committed r298986 -eric On Tue, Mar 28, 2017 at 5:49 PM Jim Grosbach wrote: > SGTM > > Sent from my iPhone

r299007 - Test Commit

2017-03-29 Thread Brian Kelley via cfe-commits
Author: bkelley Date: Wed Mar 29 12:18:05 2017 New Revision: 299007 URL: http://llvm.org/viewvc/llvm-project?rev=299007&view=rev Log: Test Commit Remove trailing whitespace. Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp Modified: cfe/trunk/lib/Sema/SemaDeclCXX.cpp URL: http://llvm.org/viewv

[PATCH] D29642: [OpenMP] Make OpenMP generated code for the NVIDIA device relocatable by default

2017-03-29 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: test/Driver/openmp-offload.c:598 +// CHK-PTXAS: ptxas{{.*}}" "-c" +// CHK-PTXAS-NEXT: /bin/cp This path might not be correct on all systems. Do we really need this check? Repository: rL LLVM https://reviews.llvm.or

r299008 - [Objective-C] C++ Classes with __weak Members non-POD Types when using -fobjc-weak

2017-03-29 Thread Brian Kelley via cfe-commits
Author: bkelley Date: Wed Mar 29 12:31:42 2017 New Revision: 299008 URL: http://llvm.org/viewvc/llvm-project?rev=299008&view=rev Log: [Objective-C] C++ Classes with __weak Members non-POD Types when using -fobjc-weak Summary: When adding an Objective-C retainable type member to a C++ class, also

r299009 - [PCH] Attach instance's dependency collectors to PCH external AST sources.

2017-03-29 Thread Graydon Hoare via cfe-commits
Author: graydon Date: Wed Mar 29 12:33:09 2017 New Revision: 299009 URL: http://llvm.org/viewvc/llvm-project?rev=299009&view=rev Log: [PCH] Attach instance's dependency collectors to PCH external AST sources. Summary: When a PCH is included via -include-pch, clang should treat the current TU as d

[PATCH] D31378: [PCH] Attach instance's dependency collectors to PCH external AST sources.

2017-03-29 Thread Graydon Hoare via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL299009: [PCH] Attach instance's dependency collectors to PCH external AST sources. (authored by graydon). Changed prior to commit: https://reviews.llvm.org/D31378?vs=93089&id=93387#toc Repository: rL

[PATCH] D31440: PR32382: Adapt to LLVM changes in DIExpression.

2017-03-29 Thread David Blaikie via Phabricator via cfe-commits
dblaikie added a comment. I'm a bit confused - the alloca was only emitted at -O0, by the looks of it. Presumably it's pessimizing in some way at higher optimization levels? Or is that not the case? Also, it looks like this change lost the "if > gmlt" test, so might cause variable declarations

r299010 - [Objective-C] Fix __weak type traits with -fobjc-weak

2017-03-29 Thread Brian Kelley via cfe-commits
Author: bkelley Date: Wed Mar 29 12:40:35 2017 New Revision: 299010 URL: http://llvm.org/viewvc/llvm-project?rev=299010&view=rev Log: [Objective-C] Fix __weak type traits with -fobjc-weak Summary: Similar to ARC, in ObjCWeak Objective-C object pointers qualified with a weak lifetime are not POD

[PATCH] D29644: [OpenMP] Pass -v to PTXAS if it was passed to the driver.

2017-03-29 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added inline comments. Comment at: test/Driver/openmp-offload.c:607 +// CHK-VERBOSE: ptxas{{.*}}" "-v" +// CHK-VERBOSE-NEXT: /bin/cp This path might not be correct on all systems. Do we really need this check? Repository: rL LLVM https://reviews.llv

[PATCH] D29659: [OpenMP] Add flag for disabling the default generation of relocatable OpenMP target code for NVIDIA GPUs.

2017-03-29 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. Having something with dashes behind other used prefixes (`CHK-PTXAS`, `CHK-PTXAS-C`, `CHK-PTXAS-C-RELO`) might not be optimal and break when other suffixes like `-NOT` or `-SAME` are added to lit. Please see inline about my suggestions but feel free to use others...

r299011 - [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak

2017-03-29 Thread Brian Kelley via cfe-commits
Author: bkelley Date: Wed Mar 29 12:55:11 2017 New Revision: 299011 URL: http://llvm.org/viewvc/llvm-project?rev=299011&view=rev Log: [Objective-C] Fix "repeated use of weak" warning with -fobjc-weak Summary: -Warc-repeated-use-of-weak should produce the same warnings with -fobjc-weak as it does

[PATCH] D29904: [OpenMP] Prevent emission of exception handling code when using OpenMP to offload to NVIDIA devices.

2017-03-29 Thread Jonas Hahnfeld via Phabricator via cfe-commits
Hahnfeld added a comment. LGTM. Please run `clang-format` before committing! Comment at: test/OpenMP/target_parallel_no_exceptions.cpp:6-7 + +#define SIZE 100 +#define EPS 1e-10 + Not needed, please keep the test as small as possible Repository: rL LLVM

r299012 - Unbreak windows bot.

2017-03-29 Thread Graydon Hoare via cfe-commits
Author: graydon Date: Wed Mar 29 12:58:41 2017 New Revision: 299012 URL: http://llvm.org/viewvc/llvm-project?rev=299012&view=rev Log: Unbreak windows bot. Modified: cfe/trunk/test/PCH/emit-dependencies.c Modified: cfe/trunk/test/PCH/emit-dependencies.c URL: http://llvm.org/viewvc/llvm-proje

Re: r298956 - Default enable the rtm feature only on skylake and later for now because Intel disabled the feature on some haswell and broadwell processors:

2017-03-29 Thread Craig Topper via cfe-commits
Thanks, Eric. ~Craig On Wed, Mar 29, 2017 at 10:19 AM, Eric Christopher wrote: > OK, I went ahead and did this in the backend as well in: > > echristo@athyra ~/s/llvm> git svn dcommit > Committing to https://llvm.org/svn/llvm-project/llvm/trunk ... > M lib/Target/X86/X86.td > Committed r298986

[PATCH] D25157: [compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* for libs, headers and tests

2017-03-29 Thread Saleem Abdulrasool via Phabricator via cfe-commits
compnerd added inline comments. Comment at: cmake/config-ix.cmake:438-441 if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND +(COMPILER_RT_BUILD_SANITIZERS OR COMPILER_RT_BUILD_XRAY) AND (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD" OR (OS_NAME MA

r299014 - [Objective-C] Fix "weak-unavailable" warning with -fobjc-weak

2017-03-29 Thread Brian Kelley via cfe-commits
Author: bkelley Date: Wed Mar 29 13:09:02 2017 New Revision: 299014 URL: http://llvm.org/viewvc/llvm-project?rev=299014&view=rev Log: [Objective-C] Fix "weak-unavailable" warning with -fobjc-weak Summary: clang should produce the same errors Objective-C classes that cannot be assigned to weak po

[PATCH] D29904: [OpenMP] Prevent emission of exception handling code when using OpenMP to offload to NVIDIA devices.

2017-03-29 Thread Alexey Bataev via Phabricator via cfe-commits
ABataev added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:2167-2172 +// Set the flag to prevent the implementation from emitting device exception +// handling code for those requiring so. +if (Opts.OpenMPIsDevice && T.isNVPTX()) { + Opts.Exc

r299015 - [Objective-C] Miscellaneous -fobjc-weak Fixes

2017-03-29 Thread Brian Kelley via cfe-commits
Author: bkelley Date: Wed Mar 29 13:16:38 2017 New Revision: 299015 URL: http://llvm.org/viewvc/llvm-project?rev=299015&view=rev Log: [Objective-C] Miscellaneous -fobjc-weak Fixes Summary: After examining the remaining uses of LangOptions.ObjCAutoRefCount, found a some additional places to also

[PATCH] D31440: PR32382: Adapt to LLVM changes in DIExpression.

2017-03-29 Thread Adrian Prantl via Phabricator via cfe-commits
aprantl added a comment. In https://reviews.llvm.org/D31440#713308, @dblaikie wrote: > I'm a bit confused - the alloca was only emitted at -O0, by the looks of it. > Presumably it's pessimizing in some way at higher optimization levels? Or is > that not the case? I think it is really working

[PATCH] D25157: [compiler-rt] [cmake] Respect COMPILER_RT_BUILD_* for libs, headers and tests

2017-03-29 Thread Michał Górny via Phabricator via cfe-commits
mgorny added inline comments. Comment at: cmake/config-ix.cmake:438-441 if (SANITIZER_COMMON_SUPPORTED_ARCH AND NOT LLVM_USE_SANITIZER AND +(COMPILER_RT_BUILD_SANITIZERS OR COMPILER_RT_BUILD_XRAY) AND (OS_NAME MATCHES "Android|Darwin|Linux|FreeBSD" OR (OS_NAME MATC

[PATCH] D30547: [clang-tidy] Forwarding reference overload in constructors

2017-03-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: clang-tidy/misc/ForwardingReferenceOverloadCheck.cpp:119 + DisabledMove = false; + for (const auto *OtherCtor : Ctor->getParent()->ctors()) { +if (OtherCtor->isCopyConstructor()) { leanil wrote: > This i

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/Attr.td:1230 + let Spellings = [GCC<"alloc_align">]; + let Subjects = SubjectList<[ Function]>; + let Args = [IntArgument<"ParamIndex">]; There's a spurious space between [ and Function. If

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-29 Thread Zhizhou Yang via Phabricator via cfe-commits
zhizhouy updated this revision to Diff 93401. zhizhouy marked 2 inline comments as done. zhizhouy edited the summary of this revision. zhizhouy added a comment. Added two more testcases, one is options with both grecord-gcc-switches and gno-record-gcc-switches; the other one is testing if "-o -"

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-29 Thread Eric Christopher via Phabricator via cfe-commits
echristo added inline comments. Comment at: test/Driver/debug-options.c:201-202 // +// GRECORD: "-dwarf-debug-flags" +// GRECORD: -### -c -grecord-gcc-switches +// george.burgess.iv wrote: > echristo wrote: > > This seems a little light on the testing, would you

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-29 Thread Zhizhou Yang via Phabricator via cfe-commits
zhizhouy updated this revision to Diff 93403. zhizhouy marked 2 inline comments as done. zhizhouy added a comment. Added testcase for recording other useful options. https://reviews.llvm.org/D30760 Files: lib/Driver/ToolChains/Clang.cpp test/Driver/debug-options.c Index: test/Driver/debug

[PATCH] D31167: Use FPContractModeKind universally

2017-03-29 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. Aside from a minor comment nit, LGTM Comment at: include/clang/Basic/LangOptions.h:92 + enum FPContractModeKind { +FPC_Off,// Form fused FP ops onl

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-29 Thread Eric Christopher via Phabricator via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Sounds good. Do you have commit access? https://reviews.llvm.org/D30760 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

Re: [PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-29 Thread Zhizhou Yang via cfe-commits
Not really. Would you please help me commit it? Also there is another diff for LLVM part of this bug. Thanks. On Wed, Mar 29, 2017 at 1:16 PM, Eric Christopher via Phabricator < revi...@reviews.llvm.org> wrote: > echristo accepted this revision. > echristo added a comment. > This revision is no

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Erich Keane via Phabricator via cfe-commits
erichkeane marked 2 inline comments as done. erichkeane added inline comments. Comment at: include/clang/Basic/AttrDocs.td:252 +declaration to specify that the return value of the function (which must be a +pointer type) has an alignment specified by the indicated parameter, star

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 93404. erichkeane added a comment. Made the changes as requested. checkFunctionOrMethodParameterIndex corrects for 1->0 index and implicit this, which requires undoing, otherwise templates create a big hassle. Additionally, please note the AttrDocs chan

[PATCH] D31167: Use FPContractModeKind universally

2017-03-29 Thread Adam Nemet via Phabricator via cfe-commits
anemet added inline comments. Comment at: include/clang/Basic/LangOptions.h:92 + enum FPContractModeKind { +FPC_Off,// Form fused FP ops only where result will not be affected. +FPC_On, // Form fused FP ops according to FP_CONTRACT rules. ---

[PATCH] D31460: [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body

2017-03-29 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Comment at: lib/CodeGen/CGCoroutine.cpp:225 + void Emit(CodeGenFunction &CGF, Flags) override { +CGF.EmitStmt(Deallocate); + } This will be called twice

[PATCH] D31167: Use FPContractModeKind universally

2017-03-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/LangOptions.h:92 + enum FPContractModeKind { +FPC_Off,// Form fused FP ops only where result will not be affected. +FPC_On, // Form fused FP ops according to FP_CONTRACT rules.

r299027 - Use FPContractModeKind universally

2017-03-29 Thread Adam Nemet via cfe-commits
Author: anemet Date: Wed Mar 29 15:39:49 2017 New Revision: 299027 URL: http://llvm.org/viewvc/llvm-project?rev=299027&view=rev Log: Use FPContractModeKind universally FPContractModeKind is the codegen option flag which is already ternary (off, on, fast). This makes it universally the type for t

[PATCH] D31167: Use FPContractModeKind universally

2017-03-29 Thread Adam Nemet via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL299027: Use FPContractModeKind universally (authored by anemet). Changed prior to commit: https://reviews.llvm.org/D31167?vs=92423&id=93406#toc Repository: rL LLVM https://reviews.llvm.org/D31167 F

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman added inline comments. Comment at: include/clang/Basic/AttrDocs.td:252 +declaration to specify that the return value of the function (which must be a +pointer type) has an alignment specified by the indicated parameter. The +alignment parameter is one-indexed. In

r299029 - Revert "Use FPContractModeKind universally"

2017-03-29 Thread Adam Nemet via cfe-commits
Author: anemet Date: Wed Mar 29 16:24:19 2017 New Revision: 299029 URL: http://llvm.org/viewvc/llvm-project?rev=299029&view=rev Log: Revert "Use FPContractModeKind universally" This reverts commit r299027. It's causing a test failure in clang's CodeGenCUDE/fp-contract.cu Modified: cfe/trunk

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Erich Keane via Phabricator via cfe-commits
erichkeane marked 9 inline comments as done. erichkeane added inline comments. Comment at: lib/Sema/SemaDeclAttr.cpp:1608-1612 + IndexVal += 1 + isInstanceMethod(FuncDecl); + + if (!checkParamIsIntegerType(*this, FuncDecl, TmpAttr, ParamExpr, IndexVal, +

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 93409. https://reviews.llvm.org/D29599 Files: include/clang/Basic/Attr.td include/clang/Basic/AttrDocs.td include/clang/Sema/Sema.h lib/CodeGen/CGCall.cpp lib/CodeGen/CodeGenFunction.h lib/Sema/SemaDeclAttr.cpp lib/Sema/SemaTemplateInstantiat

r299033 - Use FPContractModeKind universally

2017-03-29 Thread Adam Nemet via cfe-commits
Author: anemet Date: Wed Mar 29 16:54:24 2017 New Revision: 299033 URL: http://llvm.org/viewvc/llvm-project?rev=299033&view=rev Log: Use FPContractModeKind universally FPContractModeKind is the codegen option flag which is already ternary (off, on, fast). This makes it universally the type for t

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread John McCall via Phabricator via cfe-commits
rjmccall added a comment. I see that GCC is up to its same parameter-indexing shenanigans again. Comment at: include/clang/Basic/AttrDocs.td:252 +declaration to specify that the return value of the function (which must be a +pointer type) has an alignment specified by the indic

[PATCH] D31460: [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body

2017-03-29 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added inline comments. Comment at: lib/CodeGen/CGCoroutine.cpp:225 + void Emit(CodeGenFunction &CGF, Flags) override { +CGF.EmitStmt(Deallocate); + } rnk wrote: > This will be called twice: once for a normal exit and once for exceptional > exit

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Erich Keane via Phabricator via cfe-commits
erichkeane marked 2 inline comments as done. erichkeane added inline comments. Comment at: include/clang/Basic/AttrDocs.td:252 +declaration to specify that the return value of the function (which must be a +pointer type) has an alignment specified by the indicated parameter. The

[PATCH] D31460: [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body

2017-03-29 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: lib/CodeGen/CGCoroutine.cpp:225 + void Emit(CodeGenFunction &CGF, Flags) override { +CGF.EmitStmt(Deallocate); + } GorNishanov wrote: > rnk wrote: > > This will be called twice: once for a normal exit and once for exce

[PATCH] D31482: [AMDGPU][GFX9] Set +fp32-denormals for >=gfx900 unless -cl-denorms-are-zero is set

2017-03-29 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl created this revision. Herald added subscribers: t-tye, tpr, dstuttard, yaxunl, wdng. https://reviews.llvm.org/D31482 Files: llvm/tools/clang/lib/Basic/Targets.cpp llvm/tools/clang/test/CodeGenOpenCL/gfx9-fp32-denorms.cl Index: llvm/tools/clang/test/CodeGenOpenCL/gfx9-fp32-denorms.

[PATCH] D31482: [AMDGPU][GFX9] Set +fp32-denormals for >=gfx900 unless -cl-denorms-are-zero is set

2017-03-29 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added inline comments. Comment at: llvm/tools/clang/lib/Basic/Targets.cpp:2114-2116 + static bool hasFullSpeedFP32Denorms(StringRef GPUName) { +return parseAMDGCNName(GPUName) >= GK_GFX9; + } This is misleading since it was true on VI as well. I thin

[PATCH] D31482: [AMDGPU][GFX9] Set +fp32-denormals for >=gfx900 unless -cl-denorms-are-zero is set

2017-03-29 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl added inline comments. Comment at: llvm/tools/clang/lib/Basic/Targets.cpp:2114-2116 + static bool hasFullSpeedFP32Denorms(StringRef GPUName) { +return parseAMDGCNName(GPUName) >= GK_GFX9; + } arsenm wrote: > This is misleading since it was true on

[PATCH] D31482: [AMDGPU][GFX9] Set +fp32-denormals for >=gfx900 unless -cl-denorms-are-zero is set

2017-03-29 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added inline comments. Comment at: llvm/tools/clang/lib/Basic/Targets.cpp:2114-2116 + static bool hasFullSpeedFP32Denorms(StringRef GPUName) { +return parseAMDGCNName(GPUName) >= GK_GFX9; + } kzhuravl wrote: > arsenm wrote: > > This is misleading sin

[PATCH] D31460: [coroutines] Add cleanup for compiler injected objects/allocations in coroutine body

2017-03-29 Thread Gor Nishanov via Phabricator via cfe-commits
GorNishanov added inline comments. Comment at: lib/CodeGen/CGCoroutine.cpp:225 + void Emit(CodeGenFunction &CGF, Flags) override { +CGF.EmitStmt(Deallocate); + } rnk wrote: > GorNishanov wrote: > > rnk wrote: > > > This will be called twice: once for a norm

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread Erich Keane via Phabricator via cfe-commits
erichkeane updated this revision to Diff 93421. erichkeane marked 2 inline comments as done. erichkeane added a comment. Fixes based on John's comments. A little bit of extra work was required to get the correct Value from the attribute, but impact was minimal. https://reviews.llvm.org/D29599

[PATCH] D31482: [AMDGPU][GFX9] Set +fp32-denormals for >=gfx900 unless -cl-denorms-are-zero is set

2017-03-29 Thread Konstantin Zhuravlyov via Phabricator via cfe-commits
kzhuravl updated this revision to Diff 93422. kzhuravl marked an inline comment as done. kzhuravl added a comment. Address review feedback. https://reviews.llvm.org/D31482 Files: lib/Basic/Targets.cpp test/CodeGenOpenCL/gfx9-fp32-denorms.cl Index: test/CodeGenOpenCL/gfx9-fp32-denorms.cl =

r299037 - Add the -grecord-gcc-switches option and pass the flags down on the compile unit.

2017-03-29 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Mar 29 18:34:20 2017 New Revision: 299037 URL: http://llvm.org/viewvc/llvm-project?rev=299037&view=rev Log: Add the -grecord-gcc-switches option and pass the flags down on the compile unit. Patch by Zhizhou Yang Modified: cfe/trunk/lib/Driver/ToolChains/Clang.cpp

[PATCH] D30760: Record command lines in objects built by clang, Clang part

2017-03-29 Thread Eric Christopher via Phabricator via cfe-commits
echristo added a comment. Committed thusly: echristo@athyra ~/s/l/t/clang> git svn dcommit Committing to https://llvm.org/svn/llvm-project/cfe/trunk ... M lib/Driver/ToolChains/Clang.cpp M test/Driver/debug-options.c Committed r299037 https://reviews.llvm.org/D30760

[PATCH] D30388: [XRay] Add -fxray-{always, never}-instrument= flags to clang

2017-03-29 Thread Reid Kleckner via Phabricator via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. lgtm Comment at: include/clang/Driver/XRayArgs.h:22 +class XRayArgs { + std::vector AlwaysInstrumenFiles; + std::vector NeverInstrumentFiles; Any reason to omit

[PATCH] D31167: Use FPContractModeKind universally

2017-03-29 Thread Reid Kleckner via Phabricator via cfe-commits
rnk added inline comments. Comment at: cfe/trunk/include/clang/Basic/LangOptions.h:217 /// Adjust BinaryOperator::FPFeatures to match the bit-field size of this. - unsigned fp_contract : 1; + LangOptions::FPContractModeKind fp_contract : 2; }; Please do not

r299041 - [XRay] Add -fxray-{always, never}-instrument= flags to clang

2017-03-29 Thread Dean Michael Berris via cfe-commits
Author: dberris Date: Wed Mar 29 19:29:36 2017 New Revision: 299041 URL: http://llvm.org/viewvc/llvm-project?rev=299041&view=rev Log: [XRay] Add -fxray-{always,never}-instrument= flags to clang Summary: The -fxray-always-instrument= and -fxray-never-instrument= flags take filenames that are used

[PATCH] D30388: [XRay] Add -fxray-{always, never}-instrument= flags to clang

2017-03-29 Thread Dean Michael Berris via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. dberris marked an inline comment as done. Closed by commit rL299041: [XRay] Add -fxray-{always,never}-instrument= flags to clang (authored by dberris). Changed prior to commit: https://reviews.llvm.org/D30388?vs=92766&id=

[PATCH] D30388: [XRay] Add -fxray-{always, never}-instrument= flags to clang

2017-03-29 Thread Dean Michael Berris via Phabricator via cfe-commits
dberris added inline comments. Comment at: include/clang/Driver/XRayArgs.h:22 +class XRayArgs { + std::vector AlwaysInstrumenFiles; + std::vector NeverInstrumentFiles; rnk wrote: > Any reason to omit the 't' in "InstrumentFiles"? Wow, good catch -- no good reas

[PATCH] D31482: [AMDGPU][GFX9] Set +fp32-denormals for >=gfx900 unless -cl-denorms-are-zero is set

2017-03-29 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm accepted this revision. arsenm added a comment. This revision is now accepted and ready to land. LGTM with f32 clarification Comment at: lib/Basic/Targets.cpp:2114 + static bool hasFullSpeedFMA(StringRef GPUName) { +return parseAMDGCNName(GPUName) >= GK_GFX9;

[PATCH] D31482: [AMDGPU][GFX9] Set +fp32-denormals for >=gfx900 unless -cl-denorms-are-zero is set

2017-03-29 Thread Matt Arsenault via Phabricator via cfe-commits
arsenm added inline comments. Comment at: lib/Basic/Targets.cpp:2114 + static bool hasFullSpeedFMA(StringRef GPUName) { +return parseAMDGCNName(GPUName) >= GK_GFX9; arsenm wrote: > FMAF32? Actually this also needs to specify full speed FMA with denorms. Fu

[PATCH] D30388: [XRay] Add -fxray-{always, never}-instrument= flags to clang

2017-03-29 Thread Andrew Ford via Phabricator via cfe-commits
andrewford added a comment. Hi, this breaks the android build due to use of std::to_string. llvm::to_string should be used instead. I would fix it myself, but don't have commit access. Thanks in advance! Repository: rL LLVM https://reviews.llvm.org/D30388 _

[PATCH] D31486: libc++ testing: allow to provide a path for `use_system_cxx_lib`

2017-03-29 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini created this revision. As we're trying to setup testing / bots for all shipping version of libc++ on macOS/iOS, we'll need to be able to pass a path to where to find the dylib for each previous version of the OS. https://reviews.llvm.org/D31486 Files: utils/libcxx/test/config.py

[PATCH] D29599: Clang Changes for alloc_align

2017-03-29 Thread John McCall via Phabricator via cfe-commits
rjmccall added inline comments. Comment at: include/clang/Basic/AttrDocs.td:252 +declaration to specify that the return value of the function (which must be a +pointer type) is at least as aligned as the value indicated parameter. The +parameter is given by its index in the list

Re: [PATCH] D30388: [XRay] Add -fxray-{always,never}-instrument= flags to clang

2017-03-29 Thread Dean Michael Berris via cfe-commits
Oops, thanks -- yes, I'll make that change now. On Thu, Mar 30, 2017 at 12:03 PM Andrew Ford via Phabricator < revi...@reviews.llvm.org> wrote: > andrewford added a comment. > > Hi, this breaks the android build due to use of std::to_string. > llvm::to_string should be used instead. I would fix

r299044 - [XRay][clang] Use llvm::to_string instead of std::string

2017-03-29 Thread Dean Michael Berris via cfe-commits
Author: dberris Date: Wed Mar 29 20:05:09 2017 New Revision: 299044 URL: http://llvm.org/viewvc/llvm-project?rev=299044&view=rev Log: [XRay][clang] Use llvm::to_string instead of std::string This should unbreak some bots. Follow-up on D30388. Modified: cfe/trunk/lib/Driver/XRayArgs.cpp Mod

Re: [PATCH] D30388: [XRay] Add -fxray-{always,never}-instrument= flags to clang

2017-03-29 Thread Dean Michael Berris via cfe-commits
Fix committed in r299044. On Thu, Mar 30, 2017 at 12:12 PM Dean Michael Berris wrote: > Oops, thanks -- yes, I'll make that change now. > > On Thu, Mar 30, 2017 at 12:03 PM Andrew Ford via Phabricator < > revi...@reviews.llvm.org> wrote: > > andrewford added a comment. > > Hi, this breaks the an

r299045 - Use 'unsigned' for enum bitfields

2017-03-29 Thread Reid Kleckner via cfe-commits
Author: rnk Date: Wed Mar 29 20:12:08 2017 New Revision: 299045 URL: http://llvm.org/viewvc/llvm-project?rev=299045&view=rev Log: Use 'unsigned' for enum bitfields Fixes this clang warning on Windows: warning: implicit truncation from 'clang::LangOptions::FPContractModeKind' to bit-field change

[PATCH] D31487: [coroutines] Fix rebuilding of implicit and dependent coroutine statements.

2017-03-29 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF created this revision. Certain implicitly generated coroutine statements, such as the calls to 'return_value()' or `return_void()` or `get_return_object_on_allocation_failure()`, cannot be built until the promise type is no longer dependent. This means they are not built until after the

[PATCH] D31272: Do not pass an explicit reexported symbol list when building libc++ dylib if also defining new/delete

2017-03-29 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added inline comments. This revision is now accepted and ready to land. Comment at: lib/CMakeLists.txt:155 +# We can't use the "-reexported_symbols_list" when we build the +# new/delete operators as part of the dylib: the link

[PATCH] D31487: [coroutines] Fix rebuilding of implicit and dependent coroutine statements.

2017-03-29 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF updated this revision to Diff 93441. EricWF added a comment. - Remove unneeded asserts. https://reviews.llvm.org/D31487 Files: include/clang/AST/StmtCXX.h lib/AST/StmtCXX.cpp lib/Sema/CoroutineBuilder.h lib/Sema/SemaCoroutine.cpp lib/Sema/TreeTransform.h test/SemaCXX/coroutin

Re: [libcxx] r281681 - [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility

2017-03-29 Thread Duncan P. N. Exon Smith via cfe-commits
Why are we propagating the use of always_inline? In other places, we use always_inline to avoid affecting ABI (a visibility hack). But you're not removing basic_string from the dylib here. It has major downsides: - It causes inlining at -O0, which causes major regressions in debugging experien

Re: [libcxx] r281681 - [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility

2017-03-29 Thread Eric Fiselier via cfe-commits
On Wed, Mar 29, 2017 at 9:00 PM, Duncan P. N. Exon Smith < dexonsm...@apple.com> wrote: > Why are we propagating the use of always_inline? > The intent of this change wasn't to propagate or remove always_inline from any functions. It was to fix incompatible dylibs built by GCC. The way it did tha

[PATCH] D31167: Use FPContractModeKind universally

2017-03-29 Thread Adam Nemet via Phabricator via cfe-commits
anemet added inline comments. Comment at: cfe/trunk/include/clang/Basic/LangOptions.h:217 /// Adjust BinaryOperator::FPFeatures to match the bit-field size of this. - unsigned fp_contract : 1; + LangOptions::FPContractModeKind fp_contract : 2; }; rnk wrote:

[PATCH] D31486: libc++ testing: allow to provide a path for `use_system_cxx_lib`

2017-03-29 Thread Eric Fiselier via Phabricator via cfe-commits
EricWF accepted this revision. EricWF added a comment. This revision is now accepted and ready to land. LGTM. https://reviews.llvm.org/D31486 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

Re: [libcxx] r281681 - [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility

2017-03-29 Thread Eric Fiselier via cfe-commits
On Wed, Mar 29, 2017 at 9:30 PM, Duncan P. N. Exon Smith < dexonsm...@apple.com> wrote: > > On Mar 29, 2017, at 20:16, Eric Fiselier wrote: > > > > On Wed, Mar 29, 2017 at 9:00 PM, Duncan P. N. Exon Smith < > dexonsm...@apple.com> wrote: > >> Why are we propagating the use of always_inline? >> >

Re: [libcxx] r281681 - [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility

2017-03-29 Thread Mehdi AMINI via cfe-commits
Hi, I don't understand clang's logic here, seems like a bug to me. I changed slightly the test-case, and I'm wondering why only foo() is emitted as hidden in the following: #define INLINE_VISIBILITY __attribute__((visibility("hidden"), always_inline)) template struct Foo { void INLINE_VISIBILI

Re: [libcxx] r281681 - [libc++] Add _LIBCPP_EXTERN_TEMPLATE_INLINE_VISIBILITY to support GCC ABI compatibility

2017-03-29 Thread Mehdi AMINI via cfe-commits
2017-03-29 20:30 GMT-07:00 Duncan P. N. Exon Smith : > > On Mar 29, 2017, at 20:16, Eric Fiselier wrote: > > > > On Wed, Mar 29, 2017 at 9:00 PM, Duncan P. N. Exon Smith < > dexonsm...@apple.com> wrote: > >> Why are we propagating the use of always_inline? >> > > The intent of this change wasn't

[PATCH] D31272: Do not pass an explicit reexported symbol list when building libc++ dylib if also defining new/delete

2017-03-29 Thread Mehdi AMINI via Phabricator via cfe-commits
mehdi_amini added inline comments. Comment at: lib/CMakeLists.txt:155 +# We can't use the "-reexported_symbols_list" when we build the +# new/delete operators as part of the dylib: the linker would fail. +set(OSX_RE_EXPORT_LINE "-Wl,-reexport_library,${CM

  1   2   >