Home | History | Annotate | Download | only in VMCore

Lines Matching refs:BitCast

362   //       bitcast (i8* malloc(typeSize)) to type*
364 // bitcast (i8 *malloc(typeSize*arraySize)) to type*
437 /// 3. Bitcast the result of the malloc call to the specified type.
452 /// 3. Bitcast the result of the malloc call to the specified type.
453 /// Note: This function does not add the bitcast to the basic block, that is the
2009 case Instruction::BitCast:
2016 // Only BitCast can be lossless, exit fast if we're not BitCast
2017 if (getOpcode() != Instruction::BitCast)
2036 /// # bitcast i32* %x to i8*
2037 /// # bitcast <2 x i32> %x to <4 x i16>
2057 case Instruction::BitCast:
2058 return true; // BitCast never modifies bits.
2104 // BITCAST = FirstClass n/a FirstClass n/a
2132 { 5, 5, 5, 6, 6, 5, 5, 6, 6,11, 5, 1 }, // BitCast -+
2135 // If either of the casts are a bitcast from scalar to vector, disallow the
2136 // merging. However, bitcast of A->B->A are allowed.
2137 bool isFirstBitcast = (firstOp == Instruction::BitCast);
2138 bool isSecondBitcast = (secondOp == Instruction::BitCast);
2185 // ptrtoint, inttoptr -> bitcast (ptr -> ptr) if int size is >= ptr size
2191 return Instruction::BitCast;
2195 // ext, trunc -> bitcast, if the SrcTy and DstTy are same size
2201 return Instruction::BitCast;
2210 // the same as the original, in which case its just a bitcast
2212 return Instruction::BitCast;
2215 // bitcast followed by ptrtoint is allowed as long as the bitcast
2221 // inttoptr, bitcast -> intptr if bitcast is a ptr to ptr cast
2226 // inttoptr, ptrtoint -> bitcast if SrcSize<=PtrSize and SrcSize==DstSize
2233 return Instruction::BitCast;
2264 case BitCast: return new BitCastInst (S, Ty, Name, InsertBefore);
2287 case BitCast: return new BitCastInst (S, Ty, Name, InsertAtEnd);
2298 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2306 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
2314 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2322 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
2330 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2338 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
2351 return Create(Instruction::BitCast, S, Ty, Name, InsertAtEnd);
2354 /// @brief Create a BitCast or a PtrToInt cast instruction
2364 return Create(Instruction::BitCast, S, Ty, Name, InsertBefore);
2375 (SrcBits == DstBits ? Instruction::BitCast :
2389 (SrcBits == DstBits ? Instruction::BitCast :
2403 (SrcBits == DstBits ? Instruction::BitCast :
2416 (SrcBits == DstBits ? Instruction::BitCast :
2500 return BitCast;
2526 return BitCast; // Same size, No-op cast
2536 return BitCast; // Same size, no-op cast
2554 return BitCast; // same size, no-op cast
2559 return BitCast; // same size, no-op cast
2566 return BitCast;
2569 return BitCast; // ptr -> ptr
2578 return BitCast; // 64-bit vector to MMX
2588 // BitCast is as good a choice as any.
2589 return BitCast;
2651 case Instruction::BitCast:
2652 // BitCast implies a no-op cast of type only. No bits change.
2797 ) : CastInst(Ty, BitCast, S, Name, InsertBefore) {
2798 assert(castIsValid(getOpcode(), S, Ty) && "Illegal BitCast");
2803 ) : CastInst(Ty, BitCast, S, Name, InsertAtEnd) {
2804 assert(castIsValid(getOpcode(), S, Ty) && "Illegal BitCast");