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

References

tools/clang/lib/CodeGen/CGExprScalar.cpp
 1444       Value *Zero = llvm::Constant::getNullValue(Result->getType());
 1445       Value *IsNegative = Builder.CreateICmpSLT(Result, Zero);
 1448       Value *Rounded = Builder.CreateAdd(Result, LowBits);
 1449       Result = Builder.CreateSelect(IsNegative, Rounded, Result);
 1449       Result = Builder.CreateSelect(IsNegative, Rounded, Result);
 1452     Result = SrcIsSigned
 1453                  ? Builder.CreateAShr(Result, SrcScale - DstScale, "downscale")
 1454                  : Builder.CreateLShr(Result, SrcScale - DstScale, "downscale");
 1459     Result = Builder.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize");
 1459     Result = Builder.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize");
 1463       Result = Builder.CreateShl(Result, DstScale - SrcScale, "upscale");
 1463       Result = Builder.CreateShl(Result, DstScale - SrcScale, "upscale");
 1470       Result = Builder.CreateIntCast(Result, UpscaledTy, SrcIsSigned, "resize");
 1470       Result = Builder.CreateIntCast(Result, UpscaledTy, SrcIsSigned, "resize");
 1471       Result = Builder.CreateShl(Result, DstScale - SrcScale, "upscale");
 1471       Result = Builder.CreateShl(Result, DstScale - SrcScale, "upscale");
 1480       Value *TooHigh = SrcIsSigned ? Builder.CreateICmpSGT(Result, Max)
 1481                                    : Builder.CreateICmpUGT(Result, Max);
 1482       Result = Builder.CreateSelect(TooHigh, Max, Result, "satmax");
 1482       Result = Builder.CreateSelect(TooHigh, Max, Result, "satmax");
 1490       Value *TooLow = Builder.CreateICmpSLT(Result, Min);
 1491       Result = Builder.CreateSelect(TooLow, Min, Result, "satmin");
 1491       Result = Builder.CreateSelect(TooLow, Min, Result, "satmin");
 1496       Result = Builder.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize");
 1496       Result = Builder.CreateIntCast(Result, DstIntTy, SrcIsSigned, "resize");
 1498   return Result;