Re: [PATCH] D12917: [CUDA] Allow parsing of host and device code simultaneously.

2015-09-17 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Works for me. Thanks! -eric http://reviews.llvm.org/D12917 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi

r248046 - Reduce indentation in the TargetInfo implementations and fix up

2015-09-18 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Sep 18 16:26:24 2015 New Revision: 248046 URL: http://llvm.org/viewvc/llvm-project?rev=248046&view=rev Log: Reduce indentation in the TargetInfo implementations and fix up a couple of macro builtin redefines. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/

Re: [PATCH] D12982: Move routines for guessing mode/target from driver to ToolChain

2015-09-21 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Looks like a straight move? If so, LGTM, if not can you explain what changed? Repository: rL LLVM http://reviews.llvm.org/D12982 ___ cfe-c

Re: [PATCH] D12982: Move routines for guessing mode/target from driver to ToolChain

2015-09-21 Thread Eric Christopher via cfe-commits
echristo added a comment. Nothing comes to mind. Thanks! -eric Repository: rL LLVM http://reviews.llvm.org/D12982 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D12989: [CUDA] Added CUDA installation detector class.

2015-09-21 Thread Eric Christopher via cfe-commits
echristo added a comment. Make one of those big input directory sets of tests and run with/without that option on it? -eric http://reviews.llvm.org/D12989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

Re: [PATCH] D12989: [CUDA] Added CUDA installation detector class.

2015-09-21 Thread Eric Christopher via cfe-commits
echristo added a comment. In http://reviews.llvm.org/D12989#250247, @tra wrote: > I'll add tests for install dir detection. As for detection of bitcode files, > perhaps I should remove it from this patch and commit it along with the code > that's going to use it and where I can test it. Seems

Re: [PATCH] D12989: [CUDA] Added CUDA installation detector class.

2015-09-22 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/D12989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/ma

Re: [PATCH] D13067: [CUDA] __global__ functions should always be visible externally.

2015-09-22 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Seems to be what we were chatting about. Thanks! -eric http://reviews.llvm.org/D13067 ___ cfe-commits mailing list cfe-commits@lists.llvm.o

Re: [PATCH] D12989: [CUDA] Added CUDA installation detector class.

2015-09-23 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Aha, nice catch! -eric Repository: rL LLVM http://reviews.llvm.org/D12989 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe

Re: [PATCH] D12989: [CUDA] Added CUDA installation detector class.

2015-09-23 Thread Eric Christopher via cfe-commits
Aha, nice catch! -eric On Wed, Sep 23, 2015 at 9:32 PM NAKAMURA Takumi wrote: > chapuni added a subscriber: chapuni. > > > Comment at: cfe/trunk/lib/Driver/ToolChains.cpp:1492 > @@ +1491,3 @@ > +const llvm::opt::ArgList > &Args) { > +

r248539 - Move the darwin define static function to be close to the OS define.

2015-09-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Sep 24 16:17:04 2015 New Revision: 248539 URL: http://llvm.org/viewvc/llvm-project?rev=248539&view=rev Log: Move the darwin define static function to be close to the OS define. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL:

r248538 - Use just one larger anonymous namespace instead of a lot of smaller ones.

2015-09-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Sep 24 16:17:02 2015 New Revision: 248538 URL: http://llvm.org/viewvc/llvm-project?rev=248538&view=rev Log: Use just one larger anonymous namespace instead of a lot of smaller ones. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp

r248592 - The Clang gcc-compatible driver (clang/tools/driver/driver.cpp) has some

2015-09-25 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Sep 25 12:44:31 2015 New Revision: 248592 URL: http://llvm.org/viewvc/llvm-project?rev=248592&view=rev Log: The Clang gcc-compatible driver (clang/tools/driver/driver.cpp) has some logic to select an alternate target based on the executable it was called as. For instance

Re: [PATCH] D12982: Move routines for guessing mode/target from driver to ToolChain

2015-09-25 Thread Eric Christopher via cfe-commits
Oh, sure I can. Done thusly: dzur:~/sources/llvm/tools/clang> git svn dcommit Committing to https://llvm.org/svn/llvm-project/cfe/trunk ... M include/clang/Driver/ToolChain.h M lib/Driver/ToolChain.cpp M tools/driver/driver.cpp Committed r248592 -eric On Fri, Sep 25, 2015 at 10:20 AM Luke Zark

Re: [PATCH] D12982: Move routines for guessing mode/target from driver to ToolChain

2015-09-25 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Oh, sure I can. Done thusly: dzur:~/sources/llvm/tools/clang> git svn dcommit Committing to https://llvm.org/svn/llvm-project/cfe/trunk ... M include/clang/Driver/ToolChain.h M lib/Driver/ToolChain.cpp M tools/driver/driver.cpp Com

r248645 - Replace a loop and temporary string copying with llvm::join.

2015-09-25 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Sep 25 20:25:08 2015 New Revision: 248645 URL: http://llvm.org/viewvc/llvm-project?rev=248645&view=rev Log: Replace a loop and temporary string copying with llvm::join. Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp Modified: cfe/trunk/lib/CodeGen/BackendUtil.cpp

Re: [PATCH] D13171: [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-09-26 Thread Eric Christopher via cfe-commits
echristo added a comment. Bikeshed: it's part of the clang headers, do we really need "clang" in the header name? -eric http://reviews.llvm.org/D13171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [PATCH] D13223: Generate assume loads only with -fstrict-vtable-pointers

2015-09-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. One inline comment reword. Comment at: lib/CodeGen/CGClass.cpp:2111 @@ -2110,1 +2110,3 @@ + // FIXME: It looks like InstCombine is very ineffic

Re: r241035 - Pass HeaderSearchOptions and PreprocessorOptions into CodeGenModule.

2015-09-28 Thread Eric Christopher via cfe-commits
Actually using the right list now... On Mon, Sep 28, 2015 at 4:39 PM Eric Christopher wrote: > Hi Adrian, > > >>: CGO(new CodeGenOptions), >> -CGM(new CodeGen::CodeGenModule(C, *CGO, M, TD, C.getDiagnostics(), >> +HSO(new HeaderSearchOptions), >> +PPO(new PreprocessorOptions), >>

Re: [PATCH] D13171: [CUDA] Added a wrapper header for inclusion of stock CUDA headers.

2015-09-28 Thread Eric Christopher via cfe-commits
echristo added a comment. Why not just call it cuda.h and use #include next for it and then fix it up? -eric http://reviews.llvm.org/D13171 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-c

Re: [PATCH] D13318: Add a utility function to add target information to a command line

2015-09-30 Thread Eric Christopher via cfe-commits
This seems a little odd, could you explain in a bit more detail? Me not understanding I imagine. :) -eric On Wed, Sep 30, 2015, 7:48 PM Luke Zarko wrote: > zarko created this revision. > zarko added reviewers: rnk, echristo, klimek. > zarko added a subscriber: cfe-commits. > Herald added subscr

Re: [PATCH] D13318: Add a utility function to add target information to a command line

2015-09-30 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. This seems a little odd, could you explain in a bit more detail? Me not understanding I imagine. :) -eric http://reviews.llvm.org/D13318 ___ cfe-commits mailing list cfe-commits@lists

Re: [PATCH] D13318: Add a utility function to add target information to a command line

2015-10-01 Thread Eric Christopher via cfe-commits
echristo added a comment. BTW as Manuel is happy it's fine with me. Still curious though. http://reviews.llvm.org/D13318 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

r244695 - Untabify.

2015-08-11 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Aug 11 18:17:31 2015 New Revision: 244695 URL: http://llvm.org/viewvc/llvm-project?rev=244695&view=rev Log: Untabify. Modified: cfe/trunk/lib/CodeGen/CGCall.cpp Modified: cfe/trunk/lib/CodeGen/CGCall.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeG

Re: [PATCH] D11993: [CUDA] Make sure we emit all templated __global__ functions on device side. Again.

2015-08-12 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 working on this. -eric http://reviews.llvm.org/D11993 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.

r244959 - Fix some coding standard issues and delete a dead conditional.

2015-08-13 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 13 16:34:35 2015 New Revision: 244959 URL: http://llvm.org/viewvc/llvm-project?rev=244959&view=rev Log: Fix some coding standard issues and delete a dead conditional. Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp UR

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-13 Thread Eric Christopher via cfe-commits
echristo added a comment. Hi Hal, No, TargetOptions is exactly the wrong place to handle this due to wanting to have various functions compiled with and without a force aligned stack at the IR level that might not hold up at LTO time. -eric http://reviews.llvm.org/D11815 _

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-13 Thread Eric Christopher via cfe-commits
echristo added a comment. No, RESET_OPTION isn't the right way to do this either. For exactly this sort of reason. You can't actually represent all of the code and options this way in the IR. If you can't do that then it's a non-starter. -eric http://reviews.llvm.org/D11815 ___

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-13 Thread Eric Christopher via cfe-commits
On Thu, Aug 13, 2015 at 5:16 PM hfin...@anl.gov wrote: > hfinkel added a comment. > > In http://reviews.llvm.org/D11815#224169, @echristo wrote: > > > No, RESET_OPTION isn't the right way to do this either. For exactly this > sort of reason. You can't actually represent all of the code and option

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-13 Thread Eric Christopher via cfe-commits
> > > > Apologies, I'm really resistant to more things being used in > > TargetOptions and I was (perhaps mistakenly) under the impression > > that you wanted to move it to TargetOptions without an IR > > serialization. We need all options to have that sort of > > serialization right? :) > > Absolu

Re: [PATCH] D12036: We shouldn't need to pass -fno-strict-aliasing when building clang with clang.

2015-08-14 Thread Eric Christopher via cfe-commits
This is fine, but would you mind moving it to the cmake and autoconf checks respectively? Probably near the warning checks where we already check for compiler. On Fri, Aug 14, 2015, 10:41 AM Chris Bieneman wrote: > beanz updated this revision to Diff 32163. > beanz added a comment. > > Should ha

Re: [PATCH] D12052: [X86][SSE] Add _mm_undefined_* intrinsics

2015-08-17 Thread Eric Christopher via cfe-commits
On Sun, Aug 16, 2015 at 3:05 AM Simon Pilgrim wrote: > RKSimon added a comment. > > Yes using that uninitialized value has worried me as well. I originally > set it to zero (and considered using __ LINE __ or __ COUNTER __) but both > introduce defined behaviour that I could see causing all sorts

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-17 Thread Eric Christopher via cfe-commits
On Mon, Aug 17, 2015 at 11:57 AM Akira Hatanaka wrote: > On Thu, Aug 13, 2015 at 5:56 PM, Eric Christopher > wrote: > >> >>> > Apologies, I'm really resistant to more things being used in >>> > TargetOptions and I was (perhaps mistakenly) under the impression >>> > that you wanted to move it to

Re: r239883 - Update the intel intrinsic headers to use the target attribute support.

2015-08-17 Thread Eric Christopher via cfe-commits
There is nothing broken about not having the include guards there, it's just not helpful. I'm working on the infrastructure for an error if you call a function from within an incompatible routine at the moment (without duplicating a lot of code it's actually a bit annoying), but there's nothing act

r245251 - Remove dead code, there's no need for an override that just duplicates

2015-08-17 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Aug 17 17:22:28 2015 New Revision: 245251 URL: http://llvm.org/viewvc/llvm-project?rev=245251&view=rev Log: Remove dead code, there's no need for an override that just duplicates the default behavior. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/li

Re: [PATCH] D12036: We shouldn't need to pass -fno-strict-aliasing when building clang with clang.

2015-08-17 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. Sure I guess. I'm still not sure why we can't do this in the configure side of things, but I don't really care that much for now. http://reviews.llvm.org/D12036 ___

Re: r239883 - Update the intel intrinsic headers to use the target attribute support.

2015-08-18 Thread Eric Christopher via cfe-commits
On Tue, Aug 18, 2015 at 10:51 AM Dimitry Andric wrote: > The problems from my earlier mail still stand, even with trunk r245199. > > 1) Various configure scripts (e.g. lame and others) try to check for > intrinsics using fragments similar to the following: > > #include > > then running that thro

Re: r239883 - Update the intel intrinsic headers to use the target attribute support.

2015-08-18 Thread Eric Christopher via cfe-commits
On Tue, Aug 18, 2015 at 11:05 AM Dimitry Andric wrote: > > On 18 Aug 2015, at 19:52, Eric Christopher wrote: > > > > > > > > On Tue, Aug 18, 2015 at 10:51 AM Dimitry Andric > wrote: > > The problems from my earlier mail still stand, even with trunk r245199. > > > > 1) Various configure scripts

r245405 - Rename getDefaultFeatures -> initDefaultFeatures and update comment

2015-08-18 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Aug 18 21:24:21 2015 New Revision: 245405 URL: http://llvm.org/viewvc/llvm-project?rev=245405&view=rev Log: Rename getDefaultFeatures -> initDefaultFeatures and update comment with the current behavior as the name seems to match what's going on. Modified: cfe/trunk/

r245706 - Fix typo - symetric -> symmetric.

2015-08-21 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Aug 21 11:24:01 2015 New Revision: 245706 URL: http://llvm.org/viewvc/llvm-project?rev=245706&view=rev Log: Fix typo - symetric -> symmetric. Modified: cfe/trunk/lib/Sema/SemaOverload.cpp Modified: cfe/trunk/lib/Sema/SemaOverload.cpp URL: http://llvm.org/viewvc/ll

Re: [PATCH] D11664: [CUDA] Implemented additional processing steps needed to link with CUDA libdevice bitcode.

2015-08-24 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/CodeGen/CodeGenAction.cpp:166-170 @@ +165,7 @@ +std::vector ModuleFuncNames; +// We need to internalize contents of the linked module but it +// has to be done *after* the linking because internalized +

Re: [PATCH] D11280: [CUDA] Improve CUDA compilation pipeline creation.

2015-08-24 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. This seems like a decent incremental improvement. I think we still need to separate out the pipeline a bit further and have the cuda compilation just be separate actions that don't need th

Re: [PATCH] D11664: [CUDA] Implemented additional processing steps needed to link with CUDA libdevice bitcode.

2015-08-24 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/CodeGen/CodeGenAction.cpp:181-190 @@ -166,2 +180,12 @@ return; +if (LangOpts.CUDA && LangOpts.CUDAIsDevice && +LangOpts.CUDAUsesLibDevice) { + legacy::PassManager passes; + passes.add(

Re: [PATCH] D11737: Add -linker (and -linker=) alias for -fuse-ld=

2015-08-24 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: include/clang/Driver/Options.td:1853-1854 @@ -1853,1 +1852,4 @@ +def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, HelpText<"Use linker ">, Group; +def linker : Separate<["-"], "linker">, Alias, MetaVarName<"">; +def linker_EQ : Joined<["-"]

Re: [PATCH] D11737: Add -linker (and -linker=) alias for -fuse-ld=

2015-08-24 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. One inline comment and then OK. -eric Comment at: test/Driver/fuse-ld.c:27-33 @@ -26,1 +26,9 @@ +// -linker= is an alias to fuse-ld. Don't need to retry all combination

Re: [PATCH] D11737: Add -linker (and -linker=) alias for -fuse-ld=

2015-08-24 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: include/clang/Driver/Options.td:1853 @@ -1853,1 +1852,3 @@ +def fuse_ld_EQ : Joined<["-"], "fuse-ld=">, HelpText<"Use linker ">, Group; +def linker_EQ : Joined<["-"], "linker=">, Alias, MetaVarName<"">; thakis wrote:

r245914 - Reimplement the PPC explicit option checking to be a bit more obvious

2015-08-24 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Aug 24 19:59:11 2015 New Revision: 245914 URL: http://llvm.org/viewvc/llvm-project?rev=245914&view=rev Log: Reimplement the PPC explicit option checking to be a bit more obvious that we're looking for conflicting options and give an explanation. Modified: cfe/trunk/

Re: [PATCH] D12134: [DEBUG INFO] Source correlation for lambda captured values.

2015-08-24 Thread Eric Christopher via cfe-commits
echristo added a comment. How about: 13. [apple, 14. banana, 15. cherry]{ 16. printf("apple = %d\n",apple); 17. printf("banana = %d\n",banana); 18. printf("cherry = %d\n",cherry); Should be 13, 14, 15 yes? -eric http://reviews.llvm.org/D12134 ___

r245935 - Extract handling of user defined features into a function so we can

2015-08-25 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Aug 25 08:45:24 2015 New Revision: 245935 URL: http://llvm.org/viewvc/llvm-project?rev=245935&view=rev Log: Extract handling of user defined features into a function so we can specialize it on the targets. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h cfe

r245936 - Rewrite the PPC target feature handling to more resemble other targets.

2015-08-25 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Aug 25 08:45:28 2015 New Revision: 245936 URL: http://llvm.org/viewvc/llvm-project?rev=245936&view=rev Log: Rewrite the PPC target feature handling to more resemble other targets. This involved specializing handleUserFeatures so that we could perform diagnostics on -onl

Re: [PATCH] D12134: Improve debug info for implicitly captured vars in lambdas

2015-08-25 Thread Eric Christopher via cfe-commits
Yeah. I can't see a difference here being useful, and more likely harmful. On Tue, Aug 25, 2015, 8:48 AM David Blaikie wrote: > On Tue, Aug 25, 2015 at 8:44 AM, Bataev, Alexey > wrote: > >> Debug info points to the real place where it is captured, while >> diagnostics points to the first use of

Re: r245914 - Reimplement the PPC explicit option checking to be a bit more obvious

2015-08-25 Thread Eric Christopher via cfe-commits
c > Thanks again, > Hal > > ----- Original Message ----- > > From: "Eric Christopher via cfe-commits" > > To: cfe-commits@lists.llvm.org > > Sent: Monday, August 24, 2015 7:59:11 PM > > Subject: r245914 - Reimplement the PPC explicit option checking to be a > bi

r246006 - Update file comment to more accurately describe what's implemented.

2015-08-25 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Aug 25 23:23:11 2015 New Revision: 246006 URL: http://llvm.org/viewvc/llvm-project?rev=246006&view=rev Log: Update file comment to more accurately describe what's implemented. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL:

r246020 - Remove a TODO that isn't going to get fixed in this way.

2015-08-26 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Aug 26 02:01:30 2015 New Revision: 246020 URL: http://llvm.org/viewvc/llvm-project?rev=246020&view=rev Log: Remove a TODO that isn't going to get fixed in this way. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llv

r246021 - Remove dead code associated with parsing and setting ABI based on

2015-08-26 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Aug 26 02:01:33 2015 New Revision: 246021 URL: http://llvm.org/viewvc/llvm-project?rev=246021&view=rev Log: Remove dead code associated with parsing and setting ABI based on string name. Modified: cfe/trunk/include/clang/Basic/TargetCXXABI.h cfe/trunk/include/cl

r246024 - Group some of the inline assembly related function prototypes near

2015-08-26 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Aug 26 02:29:58 2015 New Revision: 246024 URL: http://llvm.org/viewvc/llvm-project?rev=246024&view=rev Log: Group some of the inline assembly related function prototypes near each other. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h Modified: cfe/trunk/inclu

r246027 - Convert a bunch of loops to ranged-for and clean up accordingly.

2015-08-26 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Aug 26 03:21:55 2015 New Revision: 246027 URL: http://llvm.org/viewvc/llvm-project?rev=246027&view=rev Log: Convert a bunch of loops to ranged-for and clean up accordingly. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: ht

r246122 - Pull out cpu string -> enum parsing for x86 as a separate function,

2015-08-26 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Aug 26 18:42:18 2015 New Revision: 246122 URL: http://llvm.org/viewvc/llvm-project?rev=246122&view=rev Log: Pull out cpu string -> enum parsing for x86 as a separate function, this is going to see use shortly in unifying feature set construction. Modified: cfe/trunk

r246127 - const-ify X86TargetInfo::getCPUKind.

2015-08-26 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Aug 26 19:05:50 2015 New Revision: 246127 URL: http://llvm.org/viewvc/llvm-project?rev=246127&view=rev Log: const-ify X86TargetInfo::getCPUKind. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llvm.org/viewvc/llvm-pr

r246128 - Pass in a cpu to initDefaultFeatures so that we can share this code

2015-08-26 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Aug 26 19:05:52 2015 New Revision: 246128 URL: http://llvm.org/viewvc/llvm-project?rev=246128&view=rev Log: Pass in a cpu to initDefaultFeatures so that we can share this code with multiple uses of feature map construction. Note: We could make this a static function on

r246180 - const-ify TargetInfo::handleUserFeatures.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 13:42:57 2015 New Revision: 246180 URL: http://llvm.org/viewvc/llvm-project?rev=246180&view=rev Log: const-ify TargetInfo::handleUserFeatures. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/includ

r246195 - Rewrite the code generation handling for function feature and cpu attributes.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 14:59:34 2015 New Revision: 246195 URL: http://llvm.org/viewvc/llvm-project?rev=246195&view=rev Log: Rewrite the code generation handling for function feature and cpu attributes. A couple of changes here: a) Do less work in the case where we don't have a target

r246197 - Target attribute syntax compatibility fix - gcc uses no- rather than mno-.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 15:05:48 2015 New Revision: 246197 URL: http://llvm.org/viewvc/llvm-project?rev=246197&view=rev Log: Target attribute syntax compatibility fix - gcc uses no- rather than mno-. Modified: cfe/trunk/lib/CodeGen/CGCall.cpp cfe/trunk/test/CodeGen/attr-target-p

r246196 - Rename this file to have a processor suffix to help identify.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 15:05:46 2015 New Revision: 246196 URL: http://llvm.org/viewvc/llvm-project?rev=246196&view=rev Log: Rename this file to have a processor suffix to help identify. Added: cfe/trunk/test/CodeGen/attr-target-x86.c - copied, changed from r246195, cfe/trunk/

Re: r246027 - Convert a bunch of loops to ranged-for and clean up accordingly.

2015-08-27 Thread Eric Christopher via cfe-commits
> > > > -assert(Features[i][0] == '+' && "Invalid target feature!"); > > +assert(Feature[0] == '+' && "Invalid target feature!"); > > This assert is kind of pointless now, since we'll have continued in that > case and the following code will DTRT anyway. > > Was fairly pointless to begin wi

r246202 - Remove a dead assert, we'd have gotten the case above.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 15:32:24 2015 New Revision: 246202 URL: http://llvm.org/viewvc/llvm-project?rev=246202&view=rev Log: Remove a dead assert, we'd have gotten the case above. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://llvm.

Re: r246027 - Convert a bunch of loops to ranged-for and clean up accordingly.

2015-08-27 Thread Eric Christopher via cfe-commits
On Thu, Aug 27, 2015 at 1:29 PM Eric Christopher wrote: > >> > -assert(Features[i][0] == '+' && "Invalid target feature!"); >> > +assert(Feature[0] == '+' && "Invalid target feature!"); >> >> This assert is kind of pointless now, since we'll have continued in that >> case and the followin

r246225 - Use an explicit assignment.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 17:20:03 2015 New Revision: 246225 URL: http://llvm.org/viewvc/llvm-project?rev=246225&view=rev Log: Use an explicit assignment. Modified: cfe/trunk/lib/CodeGen/CGCall.cpp Modified: cfe/trunk/lib/CodeGen/CGCall.cpp URL: http://llvm.org/viewvc/llvm-project/c

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + hfinkel wrote: > The code below for OPT_mstackrealign uses -mstackrealign as the nam

Re: [PATCH] D11815: Pass subtarget feature "force-align-stack"

2015-08-27 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Driver/Tools.cpp:4232 @@ +4231,3 @@ + false)) +CmdArgs.push_back(Args.MakeArgString("-force-align-stack")); + hfinkel wrote: > echristo wrote: > > hfinkel wrote: > > > The code below for OPT_mst

r246259 - Merge the two feature map setting functions into a single function

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 21:13:58 2015 New Revision: 246259 URL: http://llvm.org/viewvc/llvm-project?rev=246259&view=rev Log: Merge the two feature map setting functions into a single function and replace all callers. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h cfe/trunk

r246260 - Instead of duplicating code, call the base implementation.

2015-08-27 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Aug 27 21:14:00 2015 New Revision: 246260 URL: http://llvm.org/viewvc/llvm-project?rev=246260&view=rev Log: Instead of duplicating code, call the base implementation. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL: http://l

Re: r246229 - [X86] Conditionalize Darwin MaxVectorAlign on the presence of AVX.

2015-08-27 Thread Eric Christopher via cfe-commits
Hi Ahmed, A quick note: I think this is going to fail in the presence of the target attribute. I.e. if someone decorates a function with __attribute__((target("avx512"))) this is unlikely to catch that. Also, should we do this for all of the x86 OSes? -eric On Thu, Aug 27, 2015 at 3:31 PM Ahmed

r246346 - Fold TargetInfo::handleUserFeatures into TargetInfo::initFeatureMap.

2015-08-28 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Aug 28 17:32:01 2015 New Revision: 246346 URL: http://llvm.org/viewvc/llvm-project?rev=246346&view=rev Log: Fold TargetInfo::handleUserFeatures into TargetInfo::initFeatureMap. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h cfe/trunk/lib/Basic/Targets.cpp

r246355 - Add a check for a function we're not testing.

2015-08-28 Thread Eric Christopher via cfe-commits
Author: echristo Date: Fri Aug 28 21:59:37 2015 New Revision: 246355 URL: http://llvm.org/viewvc/llvm-project?rev=246355&view=rev Log: Add a check for a function we're not testing. Modified: cfe/trunk/test/CodeGen/attr-target-x86.c Modified: cfe/trunk/test/CodeGen/attr-target-x86.c URL: htt

r246468 - Pull the target attribute parsing out of CGCall and onto TargetInfo.

2015-08-31 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Aug 31 13:39:22 2015 New Revision: 246468 URL: http://llvm.org/viewvc/llvm-project?rev=246468&view=rev Log: Pull the target attribute parsing out of CGCall and onto TargetInfo. Also: - Add a typedef to make working with the result easier. - Update callers to use the

r246467 - Pull out the ppc incompatible features check into a separate function.

2015-08-31 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Aug 31 13:39:16 2015 New Revision: 246467 URL: http://llvm.org/viewvc/llvm-project?rev=246467&view=rev Log: Pull out the ppc incompatible features check into a separate function. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp UR

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-08-31 Thread Eric Christopher via cfe-commits
echristo added a subscriber: echristo. echristo added a comment. Some inline comments. Thanks! -eric Comment at: include/clang/Basic/TargetCXXABI.h:166 @@ -148,1 +165,3 @@ + /// \brief Are member functions differently aligned? + bool areMemberFunctionsAligned() const { ---

Re: r246468 - Pull the target attribute parsing out of CGCall and onto TargetInfo.

2015-08-31 Thread Eric Christopher via cfe-commits
903/steps/gclient%20runhooks/logs/stdio > > On Mon, Aug 31, 2015 at 11:39 AM, Eric Christopher via cfe-commits > wrote: > > Author: echristo > > Date: Mon Aug 31 13:39:22 2015 > > New Revision: 246468 > > > > URL: http://llvm.org/viewvc/llvm-project?rev=24

r246508 - Revert "Pull the target attribute parsing out of CGCall and onto TargetInfo."

2015-08-31 Thread Eric Christopher via cfe-commits
Author: echristo Date: Mon Aug 31 18:19:55 2015 New Revision: 246508 URL: http://llvm.org/viewvc/llvm-project?rev=246508&view=rev Log: Revert "Pull the target attribute parsing out of CGCall and onto TargetInfo." This reverts commit r246468 while we figure out what to do about Basic and AST. Mod

Re: r246468 - Pull the target attribute parsing out of CGCall and onto TargetInfo.

2015-08-31 Thread Eric Christopher via cfe-commits
On Mon, Aug 31, 2015 at 4:34 PM Richard Smith wrote: > On Mon, Aug 31, 2015 at 11:39 AM, Eric Christopher via cfe-commits < > cfe-commits@lists.llvm.org> wrote: > >> Author: echristo >> Date: Mon Aug 31 13:39:22 2015 >> New Revision: 246468 >> >>

Re: [PATCH] D11664: [CUDA] Implemented additional processing steps needed to link with CUDA libdevice bitcode.

2015-09-01 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. The ternary is a bit ugly, but LGTM. :) -eric http://reviews.llvm.org/D11664 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://

r246565 - Pull initFeatureMap out of line now that it's used in multiple places.

2015-09-01 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Sep 1 13:13:20 2015 New Revision: 246565 URL: http://llvm.org/viewvc/llvm-project?rev=246565&view=rev Log: Pull initFeatureMap out of line now that it's used in multiple places. Modified: cfe/trunk/include/clang/Basic/TargetInfo.h cfe/trunk/lib/Basic/TargetInfo

r246596 - Migrate the target attribute parsing code into an extension off of

2015-09-01 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Sep 1 17:03:58 2015 New Revision: 246596 URL: http://llvm.org/viewvc/llvm-project?rev=246596&view=rev Log: Migrate the target attribute parsing code into an extension off of the main attribute and cache the results so we don't have to parse a single attribute more than

r246595 - Use hasAttr, not getAttr if we're just checking for presence.

2015-09-01 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Sep 1 17:03:56 2015 New Revision: 246595 URL: http://llvm.org/viewvc/llvm-project?rev=246595&view=rev Log: Use hasAttr, not getAttr if we're just checking for presence. Modified: cfe/trunk/lib/CodeGen/CGCall.cpp Modified: cfe/trunk/lib/CodeGen/CGCall.cpp URL: htt

r246598 - Revert "Migrate the target attribute parsing code into an extension off of"

2015-09-01 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Sep 1 17:37:03 2015 New Revision: 246598 URL: http://llvm.org/viewvc/llvm-project?rev=246598&view=rev Log: Revert "Migrate the target attribute parsing code into an extension off of" This is failing in release mode. Revert while I figure out what's happening. This rev

r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-01 Thread Eric Christopher via cfe-commits
Author: echristo Date: Tue Sep 1 19:12:02 2015 New Revision: 246610 URL: http://llvm.org/viewvc/llvm-project?rev=246610&view=rev Log: Migrate the target attribute parsing code into an extension off of the main attribute and cache the results so we don't have to parse a single attribute more than

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Eric Christopher via cfe-commits
On Wed, Sep 2, 2015 at 7:24 AM Aaron Ballman wrote: > A few nits in addition to what Ben pointed out... > > On Tue, Sep 1, 2015 at 8:12 PM, Eric Christopher via cfe-commits > wrote: > > Author: echristo > > Date: Tue Sep 1 19:12:02 2015 > > New Revision: 24661

r246701 - Update comment for AdditionalMembers with a note to avoid using

2015-09-02 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Sep 2 15:13:41 2015 New Revision: 246701 URL: http://llvm.org/viewvc/llvm-project?rev=246701&view=rev Log: Update comment for AdditionalMembers with a note to avoid using additional data members in attributes as they'll leak and provide some guidance as to where they sh

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Eric Christopher via cfe-commits
gt; >> > >> On Tue, Sep 1, 2015 at 8:12 PM, Eric Christopher via cfe-commits > >> wrote: > >> > Author: echristo > >> > Date: Tue Sep 1 19:12:02 2015 > >> > New Revision: 246610 > >> > > >> > URL: http://llvm.org/viewvc/ll

r246706 - Migrate the target attribute parsing code to returning an instance

2015-09-02 Thread Eric Christopher via cfe-commits
Author: echristo Date: Wed Sep 2 15:40:12 2015 New Revision: 246706 URL: http://llvm.org/viewvc/llvm-project?rev=246706&view=rev Log: Migrate the target attribute parsing code to returning an instance every time it's called rather than attempting to cache the result. It's unlikely to be called fr

Re: r246610 - Migrate the target attribute parsing code into an extension off of

2015-09-02 Thread Eric Christopher via cfe-commits
Wed, Sep 2, 2015 at 1:07 PM, Eric Christopher >> wrote: >> > >> > >> > On Wed, Sep 2, 2015 at 7:24 AM Aaron Ballman >> wrote: >> >> >> >> A few nits in addition to what Ben pointed out... >> >> >> >> On Tue, Sep

Re: [PATCH] D11279: Initial patch for PS4 toolchain

2015-09-02 Thread Eric Christopher via cfe-commits
echristo added a comment. Replying to the inline comments. I know we're waiting on the linker stuff, but Katya made me realize I hadn't replied to your comments. -eric Comment at: include/clang/Basic/DiagnosticDriverKinds.td:203-208 @@ +202,8 @@ + InGroup; +def warn_drv_ps4_s

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-09-02 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a reviewer: echristo. echristo added a comment. A couple things inline that need changing, but feel free to commit after without a repost. -eric Comment at: lib/Basic/Targets.cpp:6943-6944 @@ +6942,4 @@ + + Diags.Report(diag

Re: [PATCH] D12594: [X86-64] Allow additional register names in inline assembler.

2015-09-03 Thread Eric Christopher via cfe-commits
echristo accepted this revision. echristo added a comment. This revision is now accepted and ready to land. If you could interleave the test and the check I'd really appreciate it, e.g.: __asm__ ("mov r8w, 100;"); // CHECK: call void asm sideeffect "mov r8w, 100;" Otherwise LGTM. Thanks! -er

Re: [PATCH] D12002: Initial WebAssembly support in clang

2015-09-03 Thread Eric Christopher via cfe-commits
echristo added inline comments. Comment at: lib/Basic/Targets.cpp:7643-7649 @@ +7642,9 @@ + case llvm::Triple::wasm64: +// Until specific variations are defined, don't permit any. +if (!(Triple == llvm::Triple("wasm64-unknown-unknown")) || +(!Triple.getVendorName(

r246826 - Untabify.

2015-09-03 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Sep 3 19:15:47 2015 New Revision: 246826 URL: http://llvm.org/viewvc/llvm-project?rev=246826&view=rev Log: Untabify. Modified: cfe/trunk/include/clang/Sema/Sema.h Modified: cfe/trunk/include/clang/Sema/Sema.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/inc

r249733 - Handle sse turning on mmx, but no -mmx not turning off SSE.

2015-10-08 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Oct 8 15:10:18 2015 New Revision: 249733 URL: http://llvm.org/viewvc/llvm-project?rev=249733&view=rev Log: Handle sse turning on mmx, but no -mmx not turning off SSE. Rationale : // sse3 __m128d test_mm_addsub_pd(__m128d A, __m128d B) { return _mm_addsub_pd(A, B); }

r249732 - Migrate most feature map inclusion to initFeatureMap for the x86 target so

2015-10-08 Thread Eric Christopher via cfe-commits
Author: echristo Date: Thu Oct 8 15:10:14 2015 New Revision: 249732 URL: http://llvm.org/viewvc/llvm-project?rev=249732&view=rev Log: Migrate most feature map inclusion to initFeatureMap for the x86 target so that we can build up an accurate set of features rather than relying on TargetInfo initi

Re: [PATCH] D13572: Use Triple.isAndroid() where possible.

2015-10-08 Thread Eric Christopher via cfe-commits
Pending naming from llvm review, LGTM. On Thu, Oct 8, 2015 at 1:55 PM Stephen Hines wrote: > srhines added a comment. > > LGTM > > > Repository: > rL LLVM > > http://reviews.llvm.org/D13572 > > > > ___ cfe-commits mailing list cfe-commits@lists.llvm.

<    1   2   3   4   5   6   >