Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/libc/src/__support/fixed_point/
H A Dfx_bits.h64 template <typename XType> LIBC_INLINE constexpr explicit FXBits(XType x) { in FXBits()
65 using Unqual = typename cpp::remove_cv_t<XType>; in FXBits()
73 static_assert(cpp::always_false<XType>); in FXBits()
199 template <typename T, typename XType>
200 LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_fixed_point_v<T>, XType>
202 return cpp::bit_cast<XType, T>(f); in bitsfx()
206 template <typename T, typename XType>
207 LIBC_INLINE constexpr cpp::enable_if_t<cpp::is_fixed_point_v<T>, XType>
224 return static_cast<XType>(result); in idiv()
/freebsd/contrib/llvm-project/libc/src/__support/FPUtil/
H A DFPBits.h837 template <typename XType> LIBC_INLINE constexpr explicit FPBits(XType x) {
838 using Unqual = typename cpp::remove_cv_t<XType>;
846 static_assert(cpp::always_false<XType>);
/freebsd/contrib/llvm-project/llvm/lib/Transforms/AggressiveInstCombine/
H A DAggressiveInstCombine.cpp600 Type *XType = X1->getType(); in tryToRecognizeTableBasedCttz() local
601 auto Cttz = B.CreateIntrinsic(Intrinsic::cttz, {XType}, {X1, BoolConst}); in tryToRecognizeTableBasedCttz()
609 auto Cmp = B.CreateICmpEQ(X1, ConstantInt::get(XType, 0)); in tryToRecognizeTableBasedCttz()
611 B.CreateSelect(Cmp, ConstantInt::get(XType, ZeroTableElem), Cttz); in tryToRecognizeTableBasedCttz()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp1971 Type *XType = X->getType(); in foldItoFPtoI() local
1992 if (DestType->getScalarSizeInBits() > XType->getScalarSizeInBits()) { in foldItoFPtoI()
1998 if (DestType->getScalarSizeInBits() < XType->getScalarSizeInBits()) in foldItoFPtoI()
2001 assert(XType == DestType && "Unexpected types for int to FP to int casts"); in foldItoFPtoI()
H A DInstCombineVectorOps.cpp2921 auto *XType = cast<FixedVectorType>(X->getType()); in visitShuffleVectorInst() local
2922 unsigned XNumElts = XType->getNumElements(); in visitShuffleVectorInst()
2927 if (auto *V = simplifyShuffleVectorInst(X, UndefValue::get(XType), in visitShuffleVectorInst()
2928 ScaledMask, XType, ShufQuery)) in visitShuffleVectorInst()
H A DInstCombineCompares.cpp1683 Type *XType = X->getType(); in foldICmpXorShiftConst() local
1686 Value *Add = Builder.CreateAdd(X, ConstantInt::get(XType, PowerOf2)); in foldICmpXorShiftConst()
1689 return new ICmpInst(Pred, Add, ConstantInt::get(XType, Bound)); in foldICmpXorShiftConst()
3463 Type *XType = X->getType(); in foldICmpBitCast() local
3466 if (!(XType->isPPC_FP128Ty() || SrcType->isPPC_FP128Ty())) { in foldICmpBitCast()
3467 Type *NewType = Builder.getIntNTy(XType->getScalarSizeInBits()); in foldICmpBitCast()
3468 if (auto *XVTy = dyn_cast<VectorType>(XType)) in foldICmpBitCast()
4678 auto *XType = X->getType(); in foldICmpWithTruncSignExtendedVal() local
4679 const unsigned XBitWidth = XType->getScalarSizeInBits(); in foldICmpWithTruncSignExtendedVal()
4694 Value *T0 = Builder.CreateAdd(X, ConstantInt::get(XType, AddCst)); in foldICmpWithTruncSignExtendedVal()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaTemplateDeduction.cpp219 QualType XType = X.getNonTypeTemplateArgumentType(); in checkDeducedTemplateArguments() local
220 if (!XType.isNull()) { in checkDeducedTemplateArguments()
222 if (YType.isNull() || !Context.hasSameType(XType, YType)) in checkDeducedTemplateArguments()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMISelDAGToDAG.cpp3488 EVT XType = SRASrc0.getValueType(); in tryABSOp() local
3489 unsigned Size = XType.getSizeInBits() - 1; in tryABSOp()
3491 if (XORSrc1 == SUBSrc1 && XORSrc0 == SRASrc0 && XType.isInteger() && in tryABSOp()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DDAGCombiner.cpp28566 EVT XType = N0.getValueType(); in foldSelectCCToShiftAnd() local
28568 if (!isNullConstant(N3) || !XType.bitsGE(AType)) in foldSelectCCToShiftAnd()
28592 unsigned ShCt = XType.getSizeInBits() - N2C->getAPIntValue().logBase2() - 1; in foldSelectCCToShiftAnd()
28593 if (!TLI.shouldAvoidTransformToShift(XType, ShCt)) { in foldSelectCCToShiftAnd()
28594 SDValue ShiftAmt = DAG.getShiftAmountConstant(ShCt, XType, DL); in foldSelectCCToShiftAnd()
28595 SDValue Shift = DAG.getNode(ISD::SRL, DL, XType, N0, ShiftAmt); in foldSelectCCToShiftAnd()
28598 if (XType.bitsGT(AType)) { in foldSelectCCToShiftAnd()
28610 unsigned ShCt = XType.getSizeInBits() - 1; in foldSelectCCToShiftAnd()
28611 if (TLI.shouldAvoidTransformToShift(XType, ShCt)) in foldSelectCCToShiftAnd()
28614 SDValue ShiftAmt = DAG.getShiftAmountConstant(ShCt, XType, DL); in foldSelectCCToShiftAnd()
[all …]