REPOSITORY
rL LLVM
================
Comment at: lib/CodeGen/CGBuiltin.cpp:6411
@@ +6410,3 @@
+ BuiltinID == PPC::BI__builtin_bpermd;
+ if(!getTarget().hasFeature("bpermd") && !getTarget().hasFeature("extdiv"))
{
+ CGM.Error(E->getExprLoc(),
----------------
hfinkel wrote:
> nemanjai wrote:
> > wschmidt wrote:
> > > You need to split these conditions so that the bpermd feature only
> > > controls BI_ _builtin_bpermd and the extdiv feature only controls BI_
> > > _builtin_div*.
> > Good point! We don't want to suppress the diagnostics for the other when
> > only one is enabled :-). Not sure what I was thinking here. I'll fix it in
> > the committed patch. Or would you like another review for just this (of
> > course, if there are other comments this question is moot)?
> Please note Richards comments on the HTM commit; these error checks should
> likely be moved into Sema. So, yes, another review round is probably
> necessary.
>
OK, I see what is needed. Kit is putting in the stuff for HTM. Rather than us
clobbering each other, I'll wait until he has that done and update this review
then. I'll also use the same framework for the crypto ones at that time. Thanks
Hal.
http://reviews.llvm.org/D8398
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits