Home
last modified time | relevance | path

Searched refs:ToWidth (Results 1 – 4 of 4) sorted by relevance

/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp154 unsigned ToWidth) const { in shouldChangeType()
156 bool ToLegal = ToWidth == 1 || DL.isLegalInteger(ToWidth); in shouldChangeType()
160 if (ToWidth < FromWidth && (ToWidth == 8 || ToWidth == 16 || ToWidth == 32)) in shouldChangeType()
170 if (!FromLegal && !ToLegal && ToWidth > FromWidth) in shouldChangeType()
185 unsigned ToWidth = To->getPrimitiveSizeInBits(); in shouldChangeType() local
186 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp94 unsigned ToWidth) const { in ShouldChangeType()
96 bool ToLegal = DL.isLegalInteger(ToWidth); in ShouldChangeType()
105 if (!FromLegal && !ToLegal && ToWidth > FromWidth) in ShouldChangeType()
118 unsigned ToWidth = To->getPrimitiveSizeInBits(); in ShouldChangeType() local
119 return ShouldChangeType(FromWidth, ToWidth); in ShouldChangeType()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstructionCombining.cpp95 unsigned ToWidth = To->getPrimitiveSizeInBits(); in ShouldChangeType() local
97 bool ToLegal = TD->isLegalInteger(ToWidth); in ShouldChangeType()
106 if (!FromLegal && !ToLegal && ToWidth > FromWidth) in ShouldChangeType()
/external/clang/lib/Sema/
DSemaOverload.cpp393 const unsigned ToWidth = Ctx.getIntWidth(ToType); in getNarrowingKind() local
395 if (FromWidth > ToWidth || in getNarrowingKind()
396 (FromWidth == ToWidth && FromSigned != ToSigned) || in getNarrowingKind()
406 if (FromWidth < ToWidth) { in getNarrowingKind()
418 ConvertedValue = ConvertedValue.trunc(ToWidth); in getNarrowingKind()