Home
last modified time | relevance | path

Searched refs:TruncBits (Results 1 – 9 of 9) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp270 unsigned TruncBits = 0; member
276 unsigned TruncBits, bool IsNonNegative) in CastedValue()
277 : V(V), ZExtBits(ZExtBits), SExtBits(SExtBits), TruncBits(TruncBits), in CastedValue()
281 return V->getType()->getPrimitiveSizeInBits() - TruncBits + ZExtBits + in getBitWidth()
286 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits, in withValue()
294 if (ExtendBy <= TruncBits) in withZExtOfValue()
297 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withZExtOfValue()
301 ExtendBy -= TruncBits; in withZExtOfValue()
314 if (ExtendBy <= TruncBits) in withSExtOfValue()
317 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withSExtOfValue()
[all …]
H A DScalarEvolution.cpp1607 unsigned TruncBits = getTypeSizeInBits(ST->getType()); in getZeroExtendExprImpl() local
1609 if (CR.truncate(TruncBits).zeroExtend(NewBits).contains( in getZeroExtendExprImpl()
1948 unsigned TruncBits = getTypeSizeInBits(ST->getType()); in getSignExtendExprImpl() local
1950 if (CR.truncate(TruncBits).signExtend(NewBits).contains( in getSignExtendExprImpl()
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/
H A DIntegral.h151 Integral truncate(unsigned TruncBits) const {
152 if (TruncBits >= Bits)
154 const ReprT BitMask = (ReprT(1) << ReprT(TruncBits)) - 1;
155 const ReprT SignBit = ReprT(1) << (TruncBits - 1);
H A DBoolean.h80 Boolean truncate(unsigned TruncBits) const { return *this; } in truncate() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1077 unsigned TruncBits = 0; in isFoldableLoad() local
1083 TruncBits = UserBits; in isFoldableLoad()
1089 if (TruncBits || SExtBits || ZExtBits) { in isFoldableLoad()
1102 ((SExtBits || ZExtBits) ? 0 : (TruncBits ? TruncBits : LoadedBits)); in isFoldableLoad()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp306 APInt TruncBits = APInt::getZero(NumElts * SrcEltBitWidth); in rebuildExtCst() local
312 TruncBits.insertBits(Elt.trunc(SrcEltBitWidth), I * SrcEltBitWidth); in rebuildExtCst()
316 return rebuildConstant(Ty->getContext(), Ty->getScalarType(), TruncBits, in rebuildExtCst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp2626 uint64_t TruncBits = 0; in isBitfieldExtractOpFromShr() local
2636 TruncBits = Opd0->getValueType(0).getSizeInBits() - VT.getSizeInBits(); in isBitfieldExtractOpFromShr()
2664 Imms = VT.getSizeInBits() - ShlImm - TruncBits - 1; in isBitfieldExtractOpFromShr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1543 unsigned TruncBits = TruncTy->getScalarSizeInBits(); in foldICmpTruncWithTruncOrExt() local
1547 if (isDesirableIntType(TruncBits) && in foldICmpTruncWithTruncOrExt()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp10482 unsigned TruncBits = LargeVT.getScalarSizeInBits() - OpSizeInBits; in visitSRA() local
10483 if (LargeShift->getAPIntValue() == TruncBits) { in visitSRA()
10487 DAG.getConstant(TruncBits, DL, LargeShiftVT)); in visitSRA()