[LLVMdev] question about Type::canLoslesslyBitCastTo
Akira Hatanaka
ahatanak at gmail.com
Mon Jul 2 17:40:07 PDT 2012
Type::canLoslesslyBitCastTo(Type *Ty) in lib/VMCore/Type.cpp always returns
false when it checks whether an integer can be bitcast to a vector or vice
versa.
For example, (i32 => v2i16) or (v2i16 => i32) is false.
But it seems that it returns true if it is checking conversion between two
vector types which have the same size.
For example, (v4i8 => v2i16) would return true.
What is the rationale behind this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120702/5c2d0e32/attachment.html>
More information about the llvm-dev
mailing list