reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CGCall.cpp
 1166   if (Val->getType() == Ty)
 1167     return Val;
 1169   if (isa<llvm::PointerType>(Val->getType())) {
 1172       return CGF.Builder.CreateBitCast(Val, Ty, "coerce.val");
 1175     Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi");
 1175     Val = CGF.Builder.CreatePtrToInt(Val, CGF.IntPtrTy, "coerce.val.pi");
 1182   if (Val->getType() != DestIntTy) {
 1187       uint64_t SrcSize = DL.getTypeSizeInBits(Val->getType());
 1191         Val = CGF.Builder.CreateLShr(Val, SrcSize - DstSize, "coerce.highbits");
 1191         Val = CGF.Builder.CreateLShr(Val, SrcSize - DstSize, "coerce.highbits");
 1192         Val = CGF.Builder.CreateTrunc(Val, DestIntTy, "coerce.val.ii");
 1192         Val = CGF.Builder.CreateTrunc(Val, DestIntTy, "coerce.val.ii");
 1194         Val = CGF.Builder.CreateZExt(Val, DestIntTy, "coerce.val.ii");
 1194         Val = CGF.Builder.CreateZExt(Val, DestIntTy, "coerce.val.ii");
 1195         Val = CGF.Builder.CreateShl(Val, DstSize - SrcSize, "coerce.highbits");
 1195         Val = CGF.Builder.CreateShl(Val, DstSize - SrcSize, "coerce.highbits");
 1199       Val = CGF.Builder.CreateIntCast(Val, DestIntTy, false, "coerce.val.ii");
 1199       Val = CGF.Builder.CreateIntCast(Val, DestIntTy, false, "coerce.val.ii");
 1204     Val = CGF.Builder.CreateIntToPtr(Val, Ty, "coerce.val.ip");
 1204     Val = CGF.Builder.CreateIntToPtr(Val, Ty, "coerce.val.ip");
 1205   return Val;