/external/llvm-project/llvm/lib/Support/ |
D | APFixedPoint.cpp | 22 unsigned DstWidth = DstSema.getWidth(); in convert() local 59 NewVal = NewVal.extOrTrunc(DstWidth); in convert() 415 APSInt APFixedPoint::convertToInt(unsigned DstWidth, bool DstSign, in convertToInt() argument 420 APSInt DstMin = APSInt::getMinValue(DstWidth, !DstSign); in convertToInt() 421 APSInt DstMax = APSInt::getMaxValue(DstWidth, !DstSign); in convertToInt() 423 if (SrcWidth < DstWidth) { in convertToInt() 424 Result = Result.extend(DstWidth); in convertToInt() 425 } else if (SrcWidth > DstWidth) { in convertToInt() 441 return Result.extOrTrunc(DstWidth); in convertToInt()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | FixedPointBuilder.h | 36 unsigned DstWidth = DstSema.getWidth(); in Convert() local 42 Type *DstIntTy = B.getIntNTy(DstWidth); in Convert() 77 ResultWidth = std::max(SrcWidth + DstScale - SrcScale, DstWidth); in Convert() 104 if (ResultWidth != DstWidth) in Convert() 143 unsigned DstWidth, bool DstIsSigned) { in CreateFixedToInteger() argument 146 FixedPointSemantics::GetIntegerSemantics(DstWidth, DstIsSigned), true); in CreateFixedToInteger()
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | APFixedPoint.h | 168 APSInt convertToInt(unsigned DstWidth, bool DstSign,
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1274 unsigned DstWidth = CI.getType()->getFPMantissaWidth(); in visitFPTrunc() local 1297 if (OpWidth >= 2*DstWidth+1 && DstWidth >= SrcWidth) { in visitFPTrunc() 1314 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc() 1332 if (OpWidth >= 2*DstWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
|
/external/llvm-project/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1677 unsigned DstWidth = Ty->getFPMantissaWidth(); in visitFPTrunc() local 1700 if (OpWidth >= 2*DstWidth+1 && DstWidth >= SrcWidth) { in visitFPTrunc() 1714 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc() 1727 if (OpWidth >= 2*DstWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCasts.cpp | 1545 unsigned DstWidth = Ty->getFPMantissaWidth(); in visitFPTrunc() local 1568 if (OpWidth >= 2*DstWidth+1 && DstWidth >= SrcWidth) { in visitFPTrunc() 1582 if (OpWidth >= LHSWidth + RHSWidth && DstWidth >= SrcWidth) { in visitFPTrunc() 1595 if (OpWidth >= 2*DstWidth && DstWidth >= SrcWidth) { in visitFPTrunc()
|
/external/angle/src/libANGLE/renderer/vulkan/shaders/src/ |
D | BlitResolve.frag | 143 // T = SrcWidth / DstWidth
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 1054 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction() local 1057 APInt PossiblySetBits(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction() 1073 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction() local 1074 unsigned SrcWidth = std::min(DstWidth, Log2_32(GVAlign)); in ConstantFoldBinaryInstruction() 1075 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 1160 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction() local 1163 APInt PossiblySetBits(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction() 1198 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction() local 1199 unsigned SrcWidth = std::min(DstWidth, Log2(*GVAlign)); in ConstantFoldBinaryInstruction() 1200 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
|
/external/llvm-project/llvm/lib/IR/ |
D | ConstantFold.cpp | 1267 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction() local 1270 APInt PossiblySetBits(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction() 1306 unsigned DstWidth = CI2->getType()->getBitWidth(); in ConstantFoldBinaryInstruction() local 1307 unsigned SrcWidth = std::min(DstWidth, Log2(*GVAlign)); in ConstantFoldBinaryInstruction() 1308 APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth)); in ConstantFoldBinaryInstruction()
|
/external/clang/lib/Sema/ |
D | SemaStmt.cpp | 1193 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum() local 1197 AdjustAPSInt(RhsVal, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum() 1213 AdjustAPSInt(Val, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaStmt.cpp | 1321 unsigned DstWidth = Context.getIntWidth(DstType); in DiagnoseAssignmentEnum() local 1325 AdjustAPSInt(RhsVal, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum() 1344 AdjustAPSInt(Val, DstWidth, DstIsSigned); in DiagnoseAssignmentEnum()
|