search for: canloslesslybitcastto

Displaying 4 results from an estimated 4 matches for "canloslesslybitcastto".

Did you mean: canlosslesslybitcastto
2012 Jul 03
2
[LLVMdev] question about Type::canLoslesslyBitCastTo
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 sa...
2012 Jul 10
0
[LLVMdev] question about Type::canLoslesslyBitCastTo
...r2 = bitcast i32* %ptr to v2i16* %dst = load v2i16* %ptr2 I am trying to change all vector types (v2i16 and v4i8) in include/llvm/IntrinsicsMips.td to i32, but I can't do that because the code in CodeGenFunction::EmitBuiltinExpr (in clang/CGBuiltin.cpp) raises an assertion when it calls Type::canLoslesslyBitCastTo to check whether conversion between v2i16 (or v4i8) and i32 is legal. To work around this problem, I can put back CodeGenFunction::EmitMipsBuiltinExpr which was removed in r159368 and add code to do type conversions, but I prefer not to do this. On Mon, Jul 2, 2012 at 5:40 PM, Akira Hatanaka &lt...
2012 Jul 10
2
[LLVMdev] question about Type::canLoslesslyBitCastTo
...the following sequence of instructions (which I think is lossless)? > > store i32 %src, i32* %ptr > %ptr2 = bitcast i32* %ptr to v2i16* > %dst = load v2i16* %ptr2 while there has been some discussion about changing the definition of bitcast, yes, this is currently the definition. That canLoslesslyBitCastTo returns false for bitcast of i32 to <2 x i16> is probably just an oversight. Please feel free to send in a patch fixing it. Ciao, Duncan. > > > I am trying to change all vector types (v2i16 and v4i8) in > include/llvm/IntrinsicsMips.td to i32, but I can't do that because th...
2012 Jul 16
0
[LLVMdev] question about Type::canLoslesslyBitCastTo
...h I think > is lossless)? > > > > store i32 %src, i32* %ptr > > %ptr2 = bitcast i32* %ptr to v2i16* > > %dst = load v2i16* %ptr2 > > while there has been some discussion about changing the definition of > bitcast, > yes, this is currently the definition. That canLoslesslyBitCastTo returns > false for bitcast of i32 to <2 x i16> is probably just an oversight. > Please > feel free to send in a patch fixing it. > > Ciao, Duncan. > > > > > > > I am trying to change all vector types (v2i16 and v4i8) in > > include/llvm/IntrinsicsMi...