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.cpp280 unsigned TruncBits = 0; member
286 unsigned TruncBits, bool IsNonNegative) in CastedValue()
287 : V(V), ZExtBits(ZExtBits), SExtBits(SExtBits), TruncBits(TruncBits), in CastedValue()
291 return V->getType()->getPrimitiveSizeInBits() - TruncBits + ZExtBits + in getBitWidth()
296 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits, in withValue()
304 if (ExtendBy <= TruncBits) in withZExtOfValue()
307 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withZExtOfValue()
311 ExtendBy -= TruncBits; in withZExtOfValue()
324 if (ExtendBy <= TruncBits) in withSExtOfValue()
327 return CastedValue(NewV, ZExtBits, SExtBits, TruncBits - ExtendBy, in withSExtOfValue()
[all …]
H A DScalarEvolution.cpp1611 unsigned TruncBits = getTypeSizeInBits(ST->getType()); in getZeroExtendExprImpl() local
1613 if (CR.truncate(TruncBits).zeroExtend(NewBits).contains( in getZeroExtendExprImpl()
1951 unsigned TruncBits = getTypeSizeInBits(ST->getType()); in getSignExtendExprImpl() local
1953 if (CR.truncate(TruncBits).signExtend(NewBits).contains( in getSignExtendExprImpl()
/freebsd/contrib/llvm-project/clang/lib/AST/ByteCode/
H A DIntegral.h191 Integral truncate(unsigned TruncBits) const {
192 assert(TruncBits >= 1);
193 if (TruncBits >= Bits)
195 const ReprT BitMask = (ReprT(1) << ReprT(TruncBits)) - 1;
196 const ReprT SignBit = ReprT(1) << (TruncBits - 1);
H A DBoolean.h76 Boolean truncate(unsigned TruncBits) const { return *this; } in truncate() argument
/freebsd/contrib/llvm-project/llvm/lib/Target/SystemZ/
H A DSystemZTargetTransformInfo.cpp1222 unsigned TruncBits = 0; in isFoldableLoad() local
1228 TruncBits = UserBits; in isFoldableLoad()
1234 if (TruncBits || SExtBits || ZExtBits) { in isFoldableLoad()
1247 ((SExtBits || ZExtBits) ? 0 : (TruncBits ? TruncBits : LoadedBits)); in isFoldableLoad()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86FixupVectorConstants.cpp313 APInt TruncBits = APInt::getZero(NumElts * SrcEltBitWidth); in rebuildExtCst() local
319 TruncBits.insertBits(Elt.trunc(SrcEltBitWidth), I * SrcEltBitWidth); in rebuildExtCst()
323 return rebuildConstant(Ty->getContext(), Ty->getScalarType(), TruncBits, in rebuildExtCst()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ISelDAGToDAG.cpp2726 uint64_t TruncBits = 0; in isBitfieldExtractOpFromShr() local
2736 TruncBits = Opd0->getValueType(0).getSizeInBits() - VT.getSizeInBits(); in isBitfieldExtractOpFromShr()
2764 Imms = VT.getSizeInBits() - ShlImm - TruncBits - 1; in isBitfieldExtractOpFromShr()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp1579 unsigned TruncBits = TruncTy->getScalarSizeInBits(); in foldICmpTruncWithTruncOrExt() local
1583 if (isDesirableIntType(TruncBits) && in foldICmpTruncWithTruncOrExt()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp10928 unsigned TruncBits = LargeVT.getScalarSizeInBits() - OpSizeInBits; in visitSRA() local
10929 if (LargeShift->getAPIntValue() == TruncBits) { in visitSRA()
10933 DAG.getConstant(TruncBits, DL, LargeShiftVT)); in visitSRA()