[LLVMdev] Adding NonTemporal

David Greene dag at cray.com
Fri Feb 12 15:19:56 PST 2010


On Friday 12 February 2010 15:55:52 Jeffrey Yasskin wrote:

> > I have a patch ready to track nontemporal semantics but I'm waiting for
> > an opinion on this.  I'd really like to get this integrated for 2.7.  In
> > my opinion default arguments are a bad idea in this context.  It's very
> > easy to make coding errors.  I found a couple more today.
>
> FWIW, I'm happy with removing default arguments. I'm not happy with
> long strings of simply-typed arguments like "NULL, 4, false, false, 0"
> that don't give a reader any indication of what the arguments mean,
> but that's trickier to fix.

I agree.  It's not all that hard to implement.  It's just giving a name to a
constant.  Doing strong typechecking would be even better but that
requires wrapper classes.

                                                 -Dave





More information about the llvm-dev mailing list