Re: [PATCH] D13980: Add "x87" in x86 target feature map

2016-02-26 Thread Eric Christopher via cfe-commits
echristo added a comment. Can you add an explicit test for soft/hard-float. One inline comment as well, waiting on Richard to pipe up. -eric Comment at: lib/Basic/Targets.cpp:2603 @@ -2599,3 +2602,3 @@ case CK_i386: case CK_i486: case CK_i586: Waiting

Re: [PATCH] D13980: Add "x87" in x86 target feature map

2016-02-26 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. This revision is now accepted and ready to land. LGTM. Thanks! -eric http://reviews.llvm.org/D13980 ___ cfe-commits mailing list cfe-commits@lists.llvm

Re: [PATCH] D19072: [CodeGen] Split CGDebugInfo into CGDebugInfo and CGDebugDwarf

2016-04-27 Thread Eric Christopher via cfe-commits
This appears to be a different direction from what we'd agreed upon. Please update the original thread with discussion and your intentions and a breakdown of costs, long-term maintainability, and your plans here. Thanks. On Mon, Apr 18, 2016 at 2:07 PM Eric Christopher via cfe-commits

Re: [PATCH] D19708: [CGDebugInfo] Generate debug info for member calls in the context of the callee expression

2016-04-29 Thread Eric Christopher via cfe-commits
Seems a much more principled solution yes. On Fri, Apr 29, 2016, 9:19 AM Hal Finkel wrote: > hfinkel updated this revision to Diff 55610. > hfinkel added a comment. > > Use David's suggested approach: Modify the preferred expression location > for member calls. If the callee has a valid location

Re: [PATCH] D19708: [CGDebugInfo] Generate debug info for member calls in the context of the callee expression

2016-04-29 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Seems a much more principled solution yes. http://reviews.llvm.org/D19708 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-com

Re: [PATCH] D19658: [X86] Add -m[no-]x87 and -m[no-]80387 options to control FeatureX87

2016-04-30 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Nice. If you wouldn't mind splitting out into 3 patches (all ok): a) The initial testcase, b) the mno-cx16 patch and associated test c) The x87 part and associated test. You'll also want t

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-05-01 Thread Eric Christopher via cfe-commits
echristo added a comment. Hi, Couple of inline comments. The direction is getting there, but there's some overall architecture issues to sort out I think. Thanks! -eric Comment at: include/clang/AST/Stmt.h:1555 @@ +1554,3 @@ + // target feature (by attribute or invocation o

Re: [PATCH] D19684: Power9 - Support for -mcpu=pwr9 in the front end

2016-05-03 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. Please do add tests before committing. Otherwise ok. Thanks. -eric Comment at: lib/Basic/Targets.cpp:1239 @@ -1227,1 +1238,3 @@ + if (defs & ArchDefinePwr9) +Builder.defineMacr

Re: [PATCH] D19658: [X86] Add -m[no-]x87 and -m[no-]80387 options to control FeatureX87

2016-05-04 Thread Eric Christopher via cfe-commits
Sounds great. Thanks! -eric On Wed, May 4, 2016 at 4:36 AM Andrey Turetskiy wrote: > aturetsk added a comment. > > Hi, > Thanks for the review. > > Committed: > > 1. Add a test for driver options from m_x86_Features_Group ( > http://reviews.llvm.org/rL268487) > 2. Add missing -mno-cx16 driver o

Re: [PATCH] D19796: Add new intrinsic support for MONITORX and MWAITX instructions.

2016-05-09 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM. Thanks. -eric http://reviews.llvm.org/D19796 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

Re: r269675 - [ms] Reintroduce feature guards in intrinsic headers in Microsoft mode

2016-05-17 Thread Eric Christopher via cfe-commits
So, why are you doing this for more than just the avx512 headers? I understand that you're unhappy with all of the intrinsics, but you've added an incompatibility here for MS mode. Does MS use header guards locking off particular intrinsics? What "better intrinsic story" are you looking for? This

Re: [PATCH] D18629: [CUDA] Don't initialize the CUDA toolchain if we don't have any CUDA inputs.

2016-03-30 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. This revision is now accepted and ready to land. Not sure if that's clang-formatted, but please do so if not :) -eric http://reviews.llvm.org/D18629 ___

Re: r263051 - [PPC] FE support for generating VSX [negated] absolute value instructions

2016-04-04 Thread Eric Christopher via cfe-commits
Nah, just worth knowing. It was probably more useful to know last month. -eric On Mon, Apr 4, 2016 at 11:56 AM Kit Barton wrote: > I forgot to edit the message. > Do you think it's worth going back and fixing the log message at this > point? > > Kit Barton, Ph.D. > LLVM Development on POWER > I

Re: [PATCH] D18700: [Inline asm][GCC compatibility] Handle %v-prefixed code in inline assembly

2016-04-04 Thread Eric Christopher via cfe-commits
echristo added a comment. That's fascinating and terrifying all at once. Can you rename the test to avx-v-modifier-inline-asm.c please? One inline comment as well. Thanks! -eric Comment at: lib/AST/Stmt.cpp:639 @@ +638,3 @@ + // into "pcmpestri" otherwise. + if (C.

Re: [PATCH] D18651: [X86] Introduction of -march=lakemont

2016-04-04 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. I'm not real fond of the testcase being in attr-target-x86, but there's not a better place at the moment either. -eric http://reviews.llvm.org/D18651 _

Re: [PATCH] D18808: Use the NoDebug emission kind to identify compile units that no debug info should be created from.

2016-04-05 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/CodeGen/AsmPrinter/DwarfDebug.cpp:477-479 @@ -476,2 +476,5 @@ + unsigned DebugCUs = 0; for (MDNode *N : CU_Nodes->operands()) { auto *CUNode = cast(N); +if (CUNode->getEmissionKind() == DICompileUnit::NoDebug) + con

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-07 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This all seems reasonable to me, one inline rewording comment, and check with rjmccall before committing. Thanks! Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-07 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute. ELF targets support this attribute when using binutils v2.20.1 or higher and glibc v2.11.1 or higher. Non-ELF targets currently do not supp

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-08 Thread Eric Christopher via cfe-commits
On Fri, Apr 8, 2016, 10:45 AM Paul Robinson < paul_robin...@playstation.sony.com> wrote: > probinson added inline comments. > > > Comment at: include/clang/Basic/AttrDocs.td:2371 > @@ +2370,3 @@ > + > +Not all targets support this attribute. ELF targets support this > attribute w

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-08 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute. ELF targets support this attribute when using binutils v2.20.1 or higher and glibc v2.11.1 or higher. Non-ELF targets currently do not supp

Re: [PATCH] D15524: [GCC] Attribute ifunc support in clang

2016-04-08 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: include/clang/Basic/AttrDocs.td:2371 @@ +2370,3 @@ + +Not all targets support this attribute. ELF targets support this attribute when using binutils v2.20.1 or higher and glibc v2.11.1 or higher. Non-ELF targets currently do not supp

r266122 - Add a couple of missing vsx load and store intrinsics.

2016-04-12 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Apr 12 16:08:54 2016 New Revision: 266122 URL: http://llvm.org/viewvc/llvm-project?rev=266122&view=rev Log: Add a couple of missing vsx load and store intrinsics. Patch by Jing Yu! Modified: cfe/trunk/lib/Headers/altivec.h cfe/trunk/test/CodeGen/builtins-ppc-vs

Re: [PATCH] D19072: [CodeGen] Split CGDebugInfo into CGDebugInfo and CGDebugDwarf

2016-04-13 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/CodeGen/CodeGenModule.h:292 @@ -291,3 +291,3 @@ CGCUDARuntime* CUDARuntime; - CGDebugInfo* DebugInfo; + std::unique_ptr DebugInfo; ObjCEntrypoints *ObjCData; aprantl wrote: > This could be a separate useful N

Re: [PATCH] D19072: [CodeGen] Split CGDebugInfo into CGDebugInfo and CGDebugDwarf

2016-04-18 Thread Eric Christopher via cfe-commits
echristo requested changes to this revision. echristo added a comment. This revision now requires changes to proceed. As a note I'm going to want to review this before it goes in. http://reviews.llvm.org/D19072 ___ cfe-commits mailing list cfe-commi

r270625 - Make the altivec intrinsics that require immediate constant propagation

2016-05-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue May 24 17:25:06 2016 New Revision: 270625 URL: http://llvm.org/viewvc/llvm-project?rev=270625&view=rev Log: Make the altivec intrinsics that require immediate constant propagation macros rather than functions. Unfortunately couldn't come up with a simple testcase that d

Re: [PATCH] D21066: Pass MCSubtargetInfo instead of CPU and Triple to createMCAsmBackend

2016-06-07 Thread Eric Christopher via cfe-commits
echristo requested changes to this revision. echristo added a comment. This revision now requires changes to proceed. I followed up in the original thread, I don't think this is going to be the right direction. Thanks. -eric http://reviews.llvm.org/D21066 __

Re: [PATCH] D17516: AMDGPU: Verify subtarget specific builtins

2016-06-07 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Seems pretty reasonable. If I missed anything we can pick it up later. -eric Comment at: lib/Basic/Targets.cpp:2010 @@ +2009,3 @@ + + // XXX - What does the member GPU m

Re: [llvm-dev] [RFC] Embedded bitcode and related upstream (Part II)

2016-06-12 Thread Eric Christopher via cfe-commits
Hi Steven, Great to see the commentary and updates here. I've got a few questions about some of this work. It might be nice to see some separate RFCs for a couple of things, but we'll figure that out after you send out patches probably :) What needs to be improved: > 1. Whitelist for command line

Re: [PATCH] D21306: [x86] AVX FP compare builtins should require AVX target feature (PR28112)

2016-06-13 Thread Eric Christopher via cfe-commits
echristo added a comment. The 128 bit versions should only be selecting for sse functions and shouldn't need avx to work? What instructions are getting emitted here? http://reviews.llvm.org/D21306 ___ cfe-commits mailing list cfe-commits@lists.llvm

Re: [PATCH] D21277: Resubmit r270688: Using new TargetParser in Clang.

2016-06-13 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Basic/Targets.cpp:5709 @@ -5715,1 +5708,3 @@ + +return false; } compnerd wrote: > Please collapse this: > > return Name == "generic" || llvm::AArch64::parseCPUArch(Name) != > llvm::ARM::AK_INVALID; ... w

Re: [llvm-dev] [RFC] Embedded bitcode and related upstream (Part II)

2016-06-14 Thread Eric Christopher via cfe-commits
On Mon, Jun 13, 2016 at 9:37 AM Steven Wu wrote: > Thanks for the feedback! Replies inline. > > On Jun 12, 2016, at 11:44 PM, Eric Christopher wrote: > > Hi Steven, > > Great to see the commentary and updates here. I've got a few questions > about some of this work. It might be nice to see some

Re: [llvm-dev] [RFC] Embedded bitcode and related upstream (Part II)

2016-06-14 Thread Eric Christopher via cfe-commits
On Tue, Jun 14, 2016 at 6:09 PM Adrian Prantl wrote: > On Jun 13, 2016, at 9:37 AM, Steven Wu wrote: > > Thanks for the feedback! Replies inline. > > On Jun 12, 2016, at 11:44 PM, Eric Christopher wrote: > > Hi Steven, > > Great to see the commentary and updates here. I've got a few questions >

Re: [PATCH] D21277: Resubmit r270688: Using new TargetParser in Clang.

2016-06-16 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Fine with me. -eric Comment at: lib/Basic/Targets.cpp:5709 @@ -5716,3 +5708,3 @@ void getTargetDefines(const LangOptions &Opts, MacroBuilder

Re: [PATCH] D21469: Add -mno-iamcu option

2016-06-17 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. OK. -eric http://reviews.llvm.org/D21469 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listi

Re: [PATCH] D20352: Add XRay flags to Clang

2016-06-21 Thread Eric Christopher via cfe-commits
echristo added a reviewer: aaron.ballman. echristo added a comment. Couple of inline comments. Also adding Aaron since he normally reviews the attributes :) -eric Comment at: include/clang/Driver/Options.td:753 @@ +752,3 @@ + HelpText<"Generate XRay instrumentation sleds on f

Re: [PATCH] D21542: CodeGen: Replace test/CodeGen/thinlto_backend.c with a functional test.

2016-06-24 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Why is this in clang rather than in llvm? Repository: rL LLVM http://reviews.llvm.org/D21542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

Re: [PATCH] D21542: CodeGen: Replace test/CodeGen/thinlto_backend.c with a functional test.

2016-06-24 Thread Eric Christopher via cfe-commits
echristo added a comment. OK, that works for me. :) Repository: rL LLVM http://reviews.llvm.org/D21542 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21334: Add TargetInfo for 32-bit and 64-bit RenderScript

2016-06-30 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Please reformat with clang-format and then OK. -eric http://reviews.llvm.org/D21334 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D21334: Add TargetInfo for 32-bit and 64-bit RenderScript

2016-07-01 Thread Eric Christopher via cfe-commits
echristo added a comment. In http://reviews.llvm.org/D21334#472548, @pirama wrote: > Reformatted with clang-format for just the parts I added. I ignored > clang-format-suggested changes in code unrelated to this patch. Yep. > Is there a policy or practise on periodically fixing format-relate

Re: [PATCH] D20352: Add XRay flags to Clang

2016-07-07 Thread Eric Christopher via cfe-commits
echristo added a comment. In http://reviews.llvm.org/D20352#477203, @rnk wrote: > In http://reviews.llvm.org/D20352#477084, @aaron.ballman wrote: > > > No, I'm not. I am worried about how this conflicts with another in-flight > > patch for supporting MS hotpatchable functions since it seems thes

Re: [PATCH] D22338: Use hasFlag instead of hasArg

2016-07-13 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM. -eric http://reviews.llvm.org/D22338 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

r275655 - Remove extra semi-colon. Fixes warning and Werror bots.

2016-07-15 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Jul 15 19:58:34 2016 New Revision: 275655 URL: http://llvm.org/viewvc/llvm-project?rev=275655&view=rev Log: Remove extra semi-colon. Fixes warning and Werror bots. Modified: cfe/trunk/lib/Driver/Action.cpp Modified: cfe/trunk/lib/Driver/Action.cpp URL: http://llvm

Re: [PATCH] D17550: Adding doxygen comments to the LLVM intrinsics (part 6, popcntintrin.h)

2016-03-01 Thread Eric Christopher via cfe-commits
That's fine, thanks. On Tue, Mar 1, 2016 at 10:52 AM Romanova, Katya < katya_roman...@playstation.sony.com> wrote: > Hi Dmitri, > Thank you for your reply. I have double-checked that compiling a test > invoking an intrinsic that has C++ style doxygen comments in the > corresponding header doesn't

Re: [PATCH] D17183: Make TargetInfo store an actual DataLayout instead of a string.

2016-03-02 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Sorry, I've been waffling on this, but I think this is fine. Thanks! -eric http://reviews.llvm.org/D17183 ___ cfe-commits mailing list cfe-

Re: r262691 - [MIPS] initFeatureMap() to handle empty string argument

2016-03-04 Thread Eric Christopher via cfe-commits
Test case? On Fri, Mar 4, 2016, 4:02 AM Bhushan D. Attarde via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: bhushan.attarde > Date: Fri Mar 4 00:56:29 2016 > New Revision: 262691 > > URL: http://llvm.org/viewvc/llvm-project?rev=262691&view=rev > Log: > [MIPS] initFeatureMap() to ha

Re: r262691 - [MIPS] initFeatureMap() to handle empty string argument

2016-03-04 Thread Eric Christopher via cfe-commits
I've followed up to the original thread, but I'm fairly certain this isn't the right patch here. -eric On Fri, Mar 4, 2016 at 10:28 AM Eric Christopher wrote: > Test case? > > On Fri, Mar 4, 2016, 4:02 AM Bhushan D. Attarde via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: bhu

Re: [PATCH] D16139: [MIPS] initFeatureMap() to handle empty string argument

2016-03-04 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. This seems wrong. You should fix setCPU instead or set a default CPU. Repository: rL LLVM http://reviews.llvm.org/D16139 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

Re: [PATCH] D17952: [Clang] Accept absolute paths in the -fuse-ld option

2016-03-08 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Needs a testcase, but otherwise should be fine. Repository: rL LLVM http://reviews.llvm.org/D17952 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-

Re: [PATCH] D17952: [Clang] Accept absolute paths in the -fuse-ld option

2016-03-08 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. This revision is now accepted and ready to land. LGTM, thanks. -eric Repository: rL LLVM http://reviews.llvm.org/D17952 ___ cfe-commits mailing list

Re: [PATCH] D16139: [MIPS] initFeatureMap() to handle empty string argument

2016-03-08 Thread Eric Christopher via cfe-commits
On Sat, Mar 5, 2016 at 6:16 AM Daniel Sanders wrote: > dsanders added a comment. > > In http://reviews.llvm.org/D16139#368217, @echristo wrote: > > > This seems wrong. You should fix setCPU instead or set a default CPU. > > > We already set a default CPU in the constructor (e.g. > Mips32TargetInf

Re: [PATCH] D17516: AMDGPU: Verify subtarget specific builtins

2016-03-08 Thread Eric Christopher via cfe-commits
echristo added a comment. Replied inline, I hope this is helpful :) Comment at: lib/Basic/Targets.cpp:2059-2063 @@ +2058,7 @@ + + if (Has16BitInsts) +Features["16-bit-insts"] = true; + + if (hasSMemRealTime) +Features["s-memrealtime"] = true; + arsenm

Re: [PATCH] D17999: Rewrite ARM & AArch64 tests to check LLVM IR rather than assembly

2016-03-09 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. This revision is now accepted and ready to land. This is a compromise I can live with :) Thanks for doing this Tim. -eric http://reviews.llvm.org/D17999 ___

Re: r263048 - ARM & AArch64: convert asm tests to LLVM IR and restrict optimizations.

2016-03-09 Thread Eric Christopher via cfe-commits
On Wed, Mar 9, 2016 at 1:32 PM Tim Northover via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On 9 March 2016 at 13:20, David Blaikie via cfe-commits > wrote: > > If we are touching these tests at all, as a cleanup, why aren't we > adjusting > > them to not pass through the llvm optimizers/

Re: r263051 - [PPC] FE support for generating VSX [negated] absolute value instructions

2016-03-09 Thread Eric Christopher via cfe-commits
On Wed, Mar 9, 2016 at 11:33 AM Kit Barton via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: kbarton > Date: Wed Mar 9 13:28:31 2016 > New Revision: 263051 > > URL: http://llvm.org/viewvc/llvm-project?rev=263051&view=rev > Log: > [PPC] FE support for generating VSX [negated] absolute

Re: [PATCH] D18015: Make functions in altivec.h be inline.

2016-03-11 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM, nice catch Daniel. (Yes, weird that nothing changed in the IR, but the patch is correct). -eric http://reviews.llvm.org/D18015 ___ cf

Re: [PATCH] D18015: Make functions in altivec.h be inline.

2016-03-11 Thread Eric Christopher via cfe-commits
echristo added a comment. Since you're changing everything anyways? Sure why not! :) -eric http://reviews.llvm.org/D18015 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r263320 - Temporarily revert these patches:

2016-03-11 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Mar 11 19:47:11 2016 New Revision: 263320 URL: http://llvm.org/viewvc/llvm-project?rev=263320&view=rev Log: Temporarily revert these patches: commit 60d9845f6a037122d9be9a6d92d4de617ef45b04 Author: Mehdi Amini Date: Fri Mar 11 18:48:02 2016 + Fix clang crash

Re: r263320 - Temporarily revert these patches:

2016-03-11 Thread Eric Christopher via cfe-commits
To be clear these were due to test failures under Release (no Asserts) coming from clang. Mehdi already has a fix in mind. The bot I mention in followup to the original patch has the test failures. -eric On Fri, Mar 11, 2016 at 5:52 PM Eric Christopher via cfe-commits < cfe-comm

r263410 - Give the test a temporary output so it can be cleaned up.

2016-03-13 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Mar 14 01:21:07 2016 New Revision: 263410 URL: http://llvm.org/viewvc/llvm-project?rev=263410&view=rev Log: Give the test a temporary output so it can be cleaned up. Modified: cfe/trunk/test/Driver/cl-pch-showincludes.cpp Modified: cfe/trunk/test/Driver/cl-pch-show

r263412 - Temporarily make discard value names depend on whether or not we're

2016-03-14 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Mar 14 03:10:47 2016 New Revision: 263412 URL: http://llvm.org/viewvc/llvm-project?rev=263412&view=rev Log: Temporarily make discard value names depend on whether or not we're trying to track origins in the memory sanitizer since the backend instrumentation pass currentl

Re: r263394 - Remove compile time PreserveName in favor of a runtime cc1 -discard-value-names option

2016-03-14 Thread Eric Christopher via cfe-commits
Hi Mehdi, Just letting you know that I committed a bit of a workaround for -fsanitize-memory-track-origins after this, the backend instrumentation pass was depending on the name of the alloca as a way of getting the name of the variable. I figured though that reverting was probably a bit overkill

Re: [PATCH] D9888: [OPENMP] Driver support for OpenMP offloading

2016-03-22 Thread Eric Christopher via cfe-commits
echristo added a comment. First I'd like to note that the code quality here is really high, most of my comments are higher level design decisions going with the driver and the implementation here rather than that. One meta comment: offload appears to be something that could be used for CUDA an

Re: [PATCH] D16139: [MIPS] initFeatureMap() to handle empty string argument

2016-03-22 Thread Eric Christopher via cfe-commits
Hi Daniel, Sorry for the delay, but I've been both away and catching up: On Wed, Mar 9, 2016 at 4:00 AM Daniel Sanders wrote: > > > From: Eric Christopher [echri...@gmail.com] > > > Sent: 09 March 2016 06:50 > > > To: reviews+d16139+public+275805419034a...@reviews.llvm.org; Bhushan > Attarde; V

r264227 - Modules builds are necessarily compile actions, but they don't

2016-03-23 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Mar 23 19:34:02 2016 New Revision: 264227 URL: http://llvm.org/viewvc/llvm-project?rev=264227&view=rev Log: Modules builds are necessarily compile actions, but they don't necessarily produce object files. Turn off split dwarf if we're not producing a file that the driver

r264235 - The time when -faltivec (or, on clang only, -maltivec) will magically

2016-03-23 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Mar 23 20:26:08 2016 New Revision: 264235 URL: http://llvm.org/viewvc/llvm-project?rev=264235&view=rev Log: The time when -faltivec (or, on clang only, -maltivec) will magically include altivec.h has come and gone. Rationale: This causes modules, rewrite-includes, etc t

r264236 - Add release notes for the removal of the silent include of altivec.h.

2016-03-23 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Mar 23 20:28:25 2016 New Revision: 264236 URL: http://llvm.org/viewvc/llvm-project?rev=264236&view=rev Log: Add release notes for the removal of the silent include of altivec.h. Modified: cfe/trunk/docs/ReleaseNotes.rst Modified: cfe/trunk/docs/ReleaseNotes.rst URL

Re: r259975 - Fix a crash when emitting dbeug info for forward-declared scoped enums.

2016-03-24 Thread Eric Christopher via cfe-commits
Great, thanks! On Thu, Mar 24, 2016, 5:26 PM Adrian Prantl wrote: > I added a testcase that demonstrates the problem with this commit in > r264366. > > -- adrian > > On Feb 23, 2016, at 11:07 AM, Eric Christopher > wrote: > > > > Thanks Adrian! > > > > On Tue, Feb 23, 2016 at 9:19 AM Adrian Pra

Re: [PATCH] D17002: [lanai] Add Lanai backend to clang driver

2016-03-28 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. LGTM, thanks. -eric http://reviews.llvm.org/D17002 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http:/

r256508 - Fix up comment in header.

2015-12-28 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Dec 28 13:07:46 2015 New Revision: 256508 URL: http://llvm.org/viewvc/llvm-project?rev=256508&view=rev Log: Fix up comment in header. Modified: cfe/trunk/lib/Headers/altivec.h Modified: cfe/trunk/lib/Headers/altivec.h URL: http://llvm.org/viewvc/llvm-project/cfe/t

r256509 - Comment and reorganize some of the target feature option sets.

2015-12-28 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Dec 28 13:07:48 2015 New Revision: 256509 URL: http://llvm.org/viewvc/llvm-project?rev=256509&view=rev Log: Comment and reorganize some of the target feature option sets. Modified: cfe/trunk/include/clang/Driver/Options.td Modified: cfe/trunk/include/clang/Driver/O

r256516 - We check for dwarf 5 in the backend, so go ahead and pass it along via

2015-12-28 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Dec 28 13:58:44 2015 New Revision: 256516 URL: http://llvm.org/viewvc/llvm-project?rev=256516&view=rev Log: We check for dwarf 5 in the backend, so go ahead and pass it along via the front end as well. Note that DWARF5 isn't finalized and any feature support is subject

r256525 - Fix up a comment and a bit of trailing whitespace.

2015-12-28 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Dec 28 15:57:05 2015 New Revision: 256525 URL: http://llvm.org/viewvc/llvm-project?rev=256525&view=rev Log: Fix up a comment and a bit of trailing whitespace. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.org/vi

Re: [PATCH] D15223: [ARM] [AARCH64] Add CodeGen IR tests for {VS}QRDML{AS}H v8.1a intrinsics.

2016-01-04 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM, and thanks for all of the iteration. -eric http://reviews.llvm.org/D15223 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

Re: [PATCH] D15899: Add -fno-movt frontend option, to disable movt/movw on ARM

2016-01-05 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. Sure. -eric http://reviews.llvm.org/D15899 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D15899: Add -fno-movt frontend option, to disable movt/movw on ARM

2016-01-05 Thread Eric Christopher via cfe-commits
On Tue, Jan 5, 2016 at 12:29 PM Joerg Sonnenberger via cfe-commits < cfe-commits@lists.llvm.org> wrote: > On Tue, Jan 05, 2016 at 08:12:34PM +, Dimitry Andric via cfe-commits > wrote: > > In rL256641, @davide turned off movt generation by default for FreeBSD. > > This was because our ld is ver

Re: [PATCH] D15899: Add -fno-movt frontend option, to disable movt/movw on ARM

2016-01-05 Thread Eric Christopher via cfe-commits
On Tue, Jan 5, 2016 at 12:43 PM Ed Maste wrote: > >> Is there a precendent for the option name? It should be -m* and not -f*, > >> since it is not target independent. > > > > Yes, agreed, thanks for the catch Joerg. > > Presumably -ffixed_r9 should become -mfixed_r9 as well? > That's a bit diffe

r256919 - Change the set of actions built for external gcc tools.

2016-01-05 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Jan 6 01:24:45 2016 New Revision: 256919 URL: http://llvm.org/viewvc/llvm-project?rev=256919&view=rev Log: Change the set of actions built for external gcc tools. A gcc tool has an "integrated" assembler (usually gas) that it will call to produce an object. Let it use

r257009 - Test that we're not forwarding on -g options to the non integrated assembler.

2016-01-06 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Jan 6 19:23:12 2016 New Revision: 257009 URL: http://llvm.org/viewvc/llvm-project?rev=257009&view=rev Log: Test that we're not forwarding on -g options to the non integrated assembler. This is adding a test for an old fixed PR to make sure we don't regress. Modified:

r257011 - Remove leading space added in r227312.

2016-01-06 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Jan 6 19:23:21 2016 New Revision: 257011 URL: http://llvm.org/viewvc/llvm-project?rev=257011&view=rev Log: Remove leading space added in r227312. Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaKinds.td Modified: cfe/trunk/include/clang/Basic/DiagnosticSemaK

r257010 - Use an actual real architecture and massage a couple of comments.

2016-01-06 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Jan 6 19:23:19 2016 New Revision: 257010 URL: http://llvm.org/viewvc/llvm-project?rev=257010&view=rev Log: Use an actual real architecture and massage a couple of comments. Modified: cfe/trunk/test/Driver/gcc_forward.c Modified: cfe/trunk/test/Driver/gcc_forward.c

r257014 - Replace a loop with the call that does the same thing.

2016-01-06 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Jan 6 20:00:55 2016 New Revision: 257014 URL: http://llvm.org/viewvc/llvm-project?rev=257014&view=rev Log: Replace a loop with the call that does the same thing. Modified: cfe/trunk/lib/Driver/Tools.cpp Modified: cfe/trunk/lib/Driver/Tools.cpp URL: http://llvm.or

Re: [PATCH] D15881: [DWARF] Omitting the explicit import of an anonymous namespace is a debugger-tuning decision, not a target decision.

2016-01-07 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:363-370 @@ -362,2 +362,10 @@ +// Convenience functions for debugger tuning. +static bool tuneForGDB(CodeGenOptions &Opts) { + return Opts.getDebuggerTuning() == CodeGenOptions::DebuggerKindGDB; +} +

Re: [PATCH] D15881: [DWARF] Omitting the explicit import of an anonymous namespace is a debugger-tuning decision, not a target decision.

2016-01-07 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:446-448 @@ -445,3 +445,5 @@ Opts.DebugTypeExtRefs = Args.hasArg(OPT_dwarf_ext_refs); - Opts.DebugExplicitImport = Triple.isPS4CPU(); + Opts.DebugExplicitImport = + Opts.getDebuggerTuning() !

Re: [PATCH] D15881: [DWARF] Omitting the explicit import of an anonymous namespace is a debugger-tuning decision, not a target decision.

2016-01-07 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Frontend/CompilerInvocation.cpp:446-448 @@ -445,3 +445,5 @@ Opts.DebugTypeExtRefs = Args.hasArg(OPT_dwarf_ext_refs); - Opts.DebugExplicitImport = Triple.isPS4CPU(); + Opts.DebugExplicitImport = + Opts.getDebuggerTuning() !

Re: [PATCH] D16079: [CUDA] Reject values for --cuda-gpu-arch that are not of the form /sm_\d+/.

2016-01-11 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. This revision is now accepted and ready to land. LGTM. -eric http://reviews.llvm.org/D16079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http

Re: [PATCH] D16082: [CUDA] Invoke ptxas and fatbinary during compilation.

2016-01-11 Thread Eric Christopher via cfe-commits
echristo added a comment. One question inline, one nit, and one more question here: You've got a couple of checks inline for null names/architectures, where do you expect those to come from and can you test for them? Or, another question, is if they're multiple architectures shouldn't we be abl

Re: [PATCH] D16078: Add an Action* member to InputInfo.

2016-01-11 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Sure. Seems reasonable. -eric http://reviews.llvm.org/D16078 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/c

Re: [PATCH] D15911: Move ownership of Action objects into Compilation.

2016-01-11 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. LGTM. Thanks for doing this :) -eric http://reviews.llvm.org/D15911 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llv

Re: [PATCH] D15960: Don't build jobs for the same Action + ToolChain twice.

2016-01-11 Thread Eric Christopher via cfe-commits
echristo added a comment. So, how are you getting to the point where you're trying to create the same action twice? -eric http://reviews.llvm.org/D15960 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

Re: [PATCH] D16079: [CUDA] Reject values for --cuda-gpu-arch that are not of the form /sm_\d+/.

2016-01-11 Thread Eric Christopher via cfe-commits
echristo added a comment. Yep it's fine. Thanks! -eric http://reviews.llvm.org/D16079 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16097: [CUDA] Add explicit mapping from sm_XX to compute_YY.

2016-01-12 Thread Eric Christopher via cfe-commits
echristo added a comment. Seems reasonable. Why remove all of the tests though? http://reviews.llvm.org/D16097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16097: [CUDA] Add explicit mapping from sm_XX to compute_YY.

2016-01-12 Thread Eric Christopher via cfe-commits
echristo added a comment. As long as the list of BAD things is somewhat conclusive I don't mind either way. Just making sure that this was the reason :) -eric http://reviews.llvm.org/D16097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org h

Re: [PATCH] D16097: [CUDA] Add explicit mapping from sm_XX to compute_YY.

2016-01-12 Thread Eric Christopher via cfe-commits
echristo added a comment. Still good. much nicer now. http://reviews.llvm.org/D16097 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D16082: [CUDA] Invoke ptxas and fatbinary during compilation.

2016-01-14 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This is terrible, but the only other option is fixing bind arch and inverting the graph which is a major rewrite to the driver. So, LGTM. -eric http://reviews.llvm.org/D16082 ___ cfe-comm

Re: r257808 - Don't build jobs for the same Action + ToolChain twice.

2016-01-15 Thread Eric Christopher via cfe-commits
I'm afk at the moment please revert and add a test case if you can? On Fri, Jan 15, 2016, 5:24 PM Chris Bieneman wrote: > +Eric, > > If this patch can’t be quickly fixed, can it please be reverted? > > -Chris > > On Jan 15, 2016, at 4:36 PM, Chris Bieneman via cfe-commits < > cfe-commits@lists.l

Re: [PATCH] D16250: Respect bound archs, even when they don't alter the toolchain.

2016-01-15 Thread Eric Christopher via cfe-commits
echristo added a comment. Ultimately they probably shouldn't map to the same toolchain and we can use that as a key. Looks OK for now though. http://reviews.llvm.org/D16250 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.or

Re: [PATCH] D16250: Respect bound archs, even when they don't alter the toolchain.

2016-01-15 Thread Eric Christopher via cfe-commits
Ultimately they probably shouldn't map to the same toolchain and we can use that as a key. Looks OK for now though. On Fri, Jan 15, 2016, 5:48 PM Justin Lebar wrote: > jlebar created this revision. > jlebar added a reviewer: tra. > jlebar added subscribers: cfe-commits, beanz, echristo. > Herald

Re: [PATCH] D16307: [CUDA] Handle -O options (more) correctly.

2016-01-18 Thread Eric Christopher via cfe-commits
At a quick glance Os and Oz should probably map to O2. On Mon, Jan 18, 2016, 4:19 PM Justin Lebar wrote: > jlebar created this revision. > jlebar added a reviewer: tra. > jlebar added subscribers: jhen, echristo, cfe-commits. > > Previously we'd crash the driver if you passed -O0. Now we try to

Re: [PATCH] D15999: Adding doxygen comments to the LLVM intrinsics (part 2, _wmmintrin_pclmul.h)

2016-01-20 Thread Eric Christopher via cfe-commits
On Wed, Jan 20, 2016 at 2:32 PM Katya Romanova via cfe-commits < cfe-commits@lists.llvm.org> wrote: > kromanova added a comment. > > In http://reviews.llvm.org/D15999#330794, @silvas wrote: > > > This may sound stupid, but: can you benchmark the time it takes to build > some project (that actually

Re: [PATCH] D15999: Adding doxygen comments to the LLVM intrinsics (part 2, _wmmintrin_pclmul.h)

2016-01-20 Thread Eric Christopher via cfe-commits
On Wed, Jan 20, 2016 at 3:12 PM Sean Silva wrote: > silvas added a comment. > > In http://reviews.llvm.org/D15999#331601, @kromanova wrote: > > > In http://reviews.llvm.org/D15999#330794, @silvas wrote: > > > > > This may sound stupid, but: can you benchmark the time it takes to > build some proj

<    1   2   3   4   5   6   >