| /freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPrepareFunctions.cpp | 172 if (auto *CInt = dyn_cast<ConstantInt>(Struct->getOperand(I))) in getAnnotation() local 174 std::to_string(CInt->getType()->getIntegerBitWidth() == 1 in getAnnotation() 175 ? CInt->getZExtValue() in getAnnotation() 176 : CInt->getSExtValue()); in getAnnotation()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | LowerExpectIntrinsic.cpp | 163 ConstantInt *CInt = dyn_cast<ConstantInt>(BinOp->getOperand(1)); in handlePhiDef() local 164 if (!CInt) in handlePhiDef()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86FixupVectorConstants.cpp | 90 if (auto *CInt = dyn_cast<ConstantInt>(C)) { in extractConstantBits() local 91 if (isa<VectorType>(CInt->getType())) in extractConstantBits() 92 return APInt::getSplat(NumBits, CInt->getValue()); in extractConstantBits() 94 return CInt->getValue(); in extractConstantBits()
|
| H A D | X86InstCombineIntrinsic.cpp | 1739 auto *CInt = dyn_cast<ConstantInt>(II.getArgOperand(2)); in simplifyX86insertps() local 1740 if (!CInt) in simplifyX86insertps() 1751 uint8_t Imm = CInt->getZExtValue(); in simplifyX86insertps()
|
| H A D | X86ISelLowering.cpp | 5071 if (auto *CInt = dyn_cast<ConstantInt>(Cst)) { in getTargetConstantBitsFromNode() local 5072 Mask = CInt->getValue(); in getTargetConstantBitsFromNode() 56327 const APInt &CInt = C->getAPIntValue(); in combineSetCC() local 56329 if (CInt.isPowerOf2() && !CInt.isMinSignedValue()) { in combineSetCC() 56333 DL, VT, BaseOp, DAG.getConstant(-CInt, DL, OpVT), CC); in combineSetCC()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | NumericalStabilitySanitizer.cpp | 1891 if (auto *CInt = dyn_cast<ConstantInt>(C)) { in propagateNonFTStore() local 1892 switch (CInt->getType()->getScalarSizeInBits()) { in propagateNonFTStore() 2185 auto *CInt = dyn_cast<ConstantInt>(C); in GetMemOpSize() local 2186 if (CInt && CInt->getValue().getBitWidth() <= 64) in GetMemOpSize() 2187 OpSize = CInt->getValue().getZExtValue(); in GetMemOpSize()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineAndOrXor.cpp | 3301 const APInt *CInt; in foldAndOrOfICmpEqConstantAndICmp() local 3303 !match(LHS->getOperand(1), m_APIntAllowPoison(CInt)) || in foldAndOrOfICmpEqConstantAndICmp() 3308 auto MatchRHSOp = [LHS0, CInt](const Value *RHSOp) { in foldAndOrOfICmpEqConstantAndICmp() 3310 m_Add(m_Specific(LHS0), m_SpecificIntAllowPoison(-*CInt))) || in foldAndOrOfICmpEqConstantAndICmp() 3311 (CInt->isZero() && RHSOp == LHS0); in foldAndOrOfICmpEqConstantAndICmp() 3327 Builder.CreateSub(LHS0, ConstantInt::get(LHS0->getType(), *CInt + 1)), in foldAndOrOfICmpEqConstantAndICmp()
|
| H A D | InstructionCombining.cpp | 781 const APInt *CInt; in tryFactorization() local 782 if (match(V, m_APInt(CInt)) && !CInt->isMinSignedValue()) in tryFactorization()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonISelDAGToDAG.cpp | 1971 const APInt &CInt = C->getAPIntValue(); in getPowerOf2Factor() local 1972 if (CInt.getBoolValue()) in getPowerOf2Factor() 1973 MaxFactor = CInt.countr_zero(); in getPowerOf2Factor()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | SelectionDAG.cpp | 3995 if (auto *CInt = dyn_cast<ConstantInt>(Elt)) { in computeKnownBits() local 3996 const APInt &Value = CInt->getValue(); in computeKnownBits() 4013 if (auto *CInt = dyn_cast<ConstantInt>(Cst)) { in computeKnownBits() local 4014 Known = KnownBits::makeConstant(CInt->getValue()); in computeKnownBits() 5353 if (auto *CInt = dyn_cast<ConstantInt>(Elt)) { in ComputeNumSignBits() local 5354 const APInt &Value = CInt->getValue(); in ComputeNumSignBits() 13533 auto *CInt = dyn_cast<ConstantSDNode>(Op); in getConstantRawBits() local 13535 assert((CInt || CFP) && "Unknown constant"); in getConstantRawBits() 13536 SrcBitElements[I] = CInt ? CInt->getAPIntValue().trunc(SrcEltSizeInBits) in getConstantRawBits()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SimplifyLibCalls.cpp | 3225 if (ConstantInt *CInt = dyn_cast<ConstantInt>(CI->getArgOperand(2))) { in optimizeStrToInt() local 3226 return convertStrToInt(CI, Str, EndPtr, CInt->getSExtValue(), AsSigned, B); in optimizeStrToInt()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/ARM/ |
| H A D | ARMISelLowering.cpp | 9648 const APInt &CInt = N->getConstantOperandAPInt(i); in SkipExtensionForVMULL() local 9651 Ops.push_back(DAG.getConstant(CInt.zextOrTrunc(32), dl, MVT::i32)); in SkipExtensionForVMULL()
|