reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
503 auto *IntType = dyn_cast<IntegerType>(LoadTy); 514 if (LoadTy->isHalfTy()) 516 else if (LoadTy->isFloatTy()) 518 else if (LoadTy->isDoubleTy()) 520 else if (LoadTy->isVectorTy()) { 522 DL.getTypeSizeInBits(LoadTy)); 528 if (Res->isNullValue() && !LoadTy->isX86_MMXTy()) 530 return Constant::getNullValue(LoadTy); 531 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; 531 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; 531 Type *CastTy = LoadTy->isPtrOrPtrVectorTy() ? DL.getIntPtrType(LoadTy) : LoadTy; 533 if (LoadTy->isPtrOrPtrVectorTy()) { 535 if (Res->isNullValue() && !LoadTy->isX86_MMXTy()) 536 return Constant::getNullValue(LoadTy); 537 if (DL.isNonIntegralPointerType(LoadTy->getScalarType())) 540 Res = ConstantExpr::getCast(Instruction::IntToPtr, Res, LoadTy);