[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cfe-dev
Subject:    [cfe-dev] About option `-flax-vector-conversions`
From:       Zeson Wu via cfe-dev <cfe-dev () lists ! llvm ! org>
Date:       2016-11-29 10:03:18
Message-ID: CALaRbYGAXXb5PUvO0avkRqsmtm7ssunnhq41-ir17nprXwverQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi, all.

I am considering that why the default value of -flax-vector-conversions is
open. I am supposed to turn off this option as default, which is forbidding
implicit vector conversions between different vector type. If you really
need conversion, use explicit conversion operator.

I think this option would cover potential bugs. I am developing in PPC
platform about altivec. With `-fno-lax-vector-conversions` option, I can
find some bugs in altivec.h easily in compile-time. There is also a related
bug report about this option.https://llvm.org/bugs/show_bug.cgi?id=17164

Anyway, it's better to forbid implicit vector conversions between different
vector type. Instead, use explicit conversion operation as needed. Now, the
altivec.h can not compiled successfully with
`-fno-lax-vector-conversions`since a lot of explicit conversion operators
are needed add.

-- 
Zeson

[Attachment #5 (text/html)]

<div dir="ltr"><div><div>Hi, all.<br><br></div>I am considering that why the default \
value of -flax-vector-conversions is open. I am supposed to turn off this option as \
default, which is forbidding implicit vector conversions between different vector \
type. If you really need conversion, use explicit conversion operator.<br><br>I think \
this option would cover potential bugs. I am developing in PPC platform about \
altivec. With `-fno-lax-vector-conversions` option, I can find some bugs in altivec.h \
easily in compile-time. There is also a related bug report about this option.<a \
href="https://llvm.org/bugs/show_bug.cgi?id=17164">https://llvm.org/bugs/show_bug.cgi?id=17164<br></a><br></div><div>Anyway, \
it&#39;s better to forbid implicit vector conversions between different vector type. \
Instead, use explicit conversion operation as needed. Now, the altivec.h can not \
compiled successfully with `-fno-lax-vector-conversions`since a lot of explicit \
conversion operators are needed add. <br></div><div><div><div><br>-- <br><div \
class="gmail_signature"><div dir="ltr">Zeson<br></div></div> </div></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
cfe-dev mailing list
cfe-dev@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic