/netbsd/external/apache2/llvm/dist/llvm/tools/llvm-c-test/ |
H A D | echo.cpp | 238 if (!LLVMIsAConstant(Cst)) in clone_constant_impl() 242 if (LLVMIsAGlobalValue(Cst)) { in clone_constant_impl() 247 if (LLVMIsAFunction(Cst)) { in clone_constant_impl() 275 if (LLVMIsAGlobalAlias(Cst)) { in clone_constant_impl() 288 if (LLVMIsAConstantInt(Cst)) { in clone_constant_impl() 301 if (LLVMIsAConstantArray(Cst)) { in clone_constant_impl() 344 if (LLVMIsUndef(Cst)) { in clone_constant_impl() 350 if (LLVMIsPoison(Cst)) { in clone_constant_impl() 356 if (LLVMIsNull(Cst)) { in clone_constant_impl() 363 if (LLVMIsAConstantFP(Cst)) { in clone_constant_impl() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/ |
H A D | AArch64PromoteConstant.cpp | 272 static bool shouldConvertUse(const Constant *Cst, const Instruction *Instr, in shouldConvertUse() argument 338 static bool shouldConvertImpl(const Constant *Cst) { in shouldConvertImpl() argument 339 if (isa<const UndefValue>(Cst)) in shouldConvertImpl() 349 if (Cst->isZeroValue()) in shouldConvertImpl() 356 if (Cst->getType()->isVectorTy()) in shouldConvertImpl() 358 return isConstantUsingVectorTy(Cst->getType()); in shouldConvertImpl() 565 Constant *Cst = dyn_cast<Constant>(U); in runOnFunction() local 570 if (!Cst || isa<GlobalValue>(Cst) || !containsOnlyConstantData(Cst)) in runOnFunction() 574 if (!shouldConvert(*Cst, PromotionCache)) in runOnFunction() 579 if (!shouldConvertUse(Cst, &I, OpNo)) in runOnFunction() [all …]
|
H A D | AArch64StackTagging.cpp | 149 uint64_t Cst = 0x0101010101010101UL; in applyMemSet() local 152 Cst = (Cst >> LowBits) << LowBits; in applyMemSet() 155 Cst = (Cst << HighBits) >> HighBits; in applyMemSet() 157 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue()); in applyMemSet()
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/MC/ |
H A D | MCValue.h | 39 int64_t Cst = 0; variable 44 int64_t getConstant() const { return Cst; } in getConstant() 64 R.Cst = Val; 73 R.Cst = Val; in get()
|
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | Utils.h | 308 int64_t Cst; variable 314 explicit RegOrConstant(int64_t Cst) : Cst(Cst), IsReg(false) {} in RegOrConstant() argument 323 return Cst; in getCst()
|
H A D | CombinerHelper.h | 297 Optional<APFloat> &Cst); 299 Optional<APFloat> &Cst);
|
H A D | MIPatternMatch.h | 74 inline ConstantMatch m_ICst(int64_t &Cst) { return ConstantMatch(Cst); } in m_ICst() argument
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/ |
H A D | AArch64PostLegalizerLowering.cpp | 410 auto Cst = in applyEXT() local 413 {MatchInfo.SrcOps[0], MatchInfo.SrcOps[1], Cst}); in applyEXT() 480 auto Cst = getAArch64VectorSplatScalar(*MI, MRI); in isVShiftRImm() local 481 if (!Cst) in isVShiftRImm() 483 Cnt = *Cst; in isVShiftRImm() 635 auto Cst = MIB.buildConstant(MRI.cloneVirtualRegister(RHS.getReg()), in applyAdjustICmpImmAndPred() local 638 RHS.setReg(Cst->getOperand(0).getReg()); in applyAdjustICmpImmAndPred() 731 int64_t Cst = Splat->getCst(); in matchBuildVectorToDup() local 732 return (Cst != 0 && Cst != -1); in matchBuildVectorToDup()
|
H A D | AArch64PreLegalizerCombiner.cpp | 149 auto Cst = in matchFoldGlobalOffset() local 151 if (!Cst) in matchFoldGlobalOffset() 153 MinOffset = std::min(MinOffset, Cst->Value.getZExtValue()); in matchFoldGlobalOffset()
|
H A D | AArch64PostLegalizerCombiner.cpp | 57 auto Cst = getConstantVRegValWithLookThrough(Src2, MRI); in matchExtractVecEltPairwiseAdd() local 58 if (!Cst || Cst->Value != 0) in matchExtractVecEltPairwiseAdd()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/GlobalISel/ |
H A D | CombinerHelper.cpp | 1641 return Cst.hasValue(); in matchCombineConstantFoldFpUnary() 2366 int64_t Cst; in matchCombineConstPtrAddToI2P() local 2368 NewCst = Cst + *RHSCst; in matchCombineConstPtrAddToI2P() 3112 return (ScalarSizeBits == 1 && Cst == -1) || in isConstValidTrue() 3113 isConstTrueVal(TLI, Cst, IsVector, IsFP); in isConstValidTrue() 3175 int64_t Cst; in matchNotCmp() local 3184 if (!mi_match(CstReg, MRI, m_ICst(Cst))) in matchNotCmp() 3775 if (!Cst || Cst->Value.getZExtValue() >= SrcTy.getNumElements()) in matchExtractVecEltBuildVec() 3778 unsigned VecIdx = Cst->Value.getZExtValue(); in matchExtractVecEltBuildVec() 3848 if (!Cst) in matchExtractAllEltsFromBuildVector() [all …]
|
H A D | CSEMIRBuilder.cpp | 190 if (Optional<APInt> Cst = ConstantFoldBinOp(Opc, SrcOps[0].getReg(), in buildInstr() local 192 return buildConstant(DstOps[0], *Cst); in buildInstr()
|
H A D | IRTranslator.cpp | 792 auto Cst = getOrCreateVReg( in emitJumpTableHeader() local 794 Cst = MIB.buildZExtOrTrunc(PtrScalarTy, Cst).getReg(0); in emitJumpTableHeader() 795 auto Cmp = MIB.buildICmp(CmpInst::ICMP_UGT, LLT::scalar(1), Sub, Cst); in emitJumpTableHeader() 2088 ConstantInt *Cst = cast<ConstantInt>(CI.getArgOperand(1)); in translateKnownIntrinsic() local 2091 ? Cst->isZero() ? TargetOpcode::G_CTTZ in translateKnownIntrinsic() 2093 : Cst->isZero() ? TargetOpcode::G_CTLZ in translateKnownIntrinsic()
|
H A D | MachineIRBuilder.cpp | 204 auto Cst = buildConstant(ValueTy, Value); in materializePtrAdd() local 205 return buildPtrAdd(Res, Op0, Cst.getReg(0)); in materializePtrAdd()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Scalar/ |
H A D | Reassociate.cpp | 1936 Constant *Cst = nullptr; in OptimizeExpression() local 1940 Cst = Cst ? ConstantExpr::get(Opcode, C, Cst) : C; in OptimizeExpression() 1944 return Cst; in OptimizeExpression() 1949 if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) { in OptimizeExpression() 1950 if (Cst == ConstantExpr::getBinOpAbsorber(Opcode, I->getType())) in OptimizeExpression() 1951 return Cst; in OptimizeExpression() 1952 Ops.push_back(ValueEntry(0, Cst)); in OptimizeExpression()
|
H A D | JumpThreading.cpp | 1593 if (Constant *Cst = dyn_cast<Constant>(V)) { in evaluateOnPredecessorEdge() local 1594 return Cst; in evaluateOnPredecessorEdge()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/Mips/ |
H A D | MipsISelLowering.h | 458 SDValue Cst = DAG.getConstant(16, DL, MVT::i32); in getAddrNonPICSym64() local 459 SDValue Shift = DAG.getNode(ISD::SHL, DL, Ty, HigherPart, Cst); in getAddrNonPICSym64() 462 SDValue Shift2 = DAG.getNode(ISD::SHL, DL, Ty, Add, Cst); in getAddrNonPICSym64()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/M68k/ |
H A D | M68kISelDAGToDAG.cpp | 412 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N)) in matchAddressRecursively() local 413 if (foldOffsetIntoAddress(Cst->getSExtValue(), AM)) in matchAddressRecursively()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AMDGPU/ |
H A D | R600ISelLowering.cpp | 829 if(ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) { in isZero() local 830 return Cst->isNullValue(); in isZero() 2038 ConstantSDNode *Cst in FoldOperand() local 2040 Consts.push_back(Cst->getZExtValue()); in FoldOperand() 2045 ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset); in FoldOperand() local 2046 Consts.push_back(Cst->getZExtValue()); in FoldOperand()
|
H A D | AMDGPUISelDAGToDAG.cpp | 3049 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) { in SelectGlobalValueConstantOffset() local 3050 IntPtr = CurDAG->getIntPtrConstant(Cst->getZExtValue() / 4, SDLoc(Addr), in SelectGlobalValueConstantOffset()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/X86/ |
H A D | X86ISelDAGToDAG.cpp | 2136 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N)) in matchAddressRecursively() local 2137 if (!foldOffsetIntoAddress(Cst->getSExtValue(), AM)) in matchAddressRecursively() 3935 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1); in tryShrinkShlLogicImm() local 3936 if (!Cst) in tryShrinkShlLogicImm() 3939 int64_t Val = Cst->getSExtValue(); in tryShrinkShlLogicImm() 4008 unsigned ZExtWidth = Cst->getAPIntValue().getActiveBits(); in tryShrinkShlLogicImm() 4014 NeededMask &= ~Cst->getAPIntValue(); in tryShrinkShlLogicImm() 4866 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1); in Select() local 4867 if (!Cst) in Select() 4870 int64_t Val = Cst->getSExtValue(); in Select()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/ |
H A D | SelectionDAG.cpp | 309 if (auto *Cst = dyn_cast<ConstantSDNode>(Op)) in matchUnaryPredicate() local 310 return Match(Cst); in matchUnaryPredicate() 325 auto *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(i)); in matchUnaryPredicate() local 326 if (!Cst || Cst->getValueType(0) != SVT || !Match(Cst)) in matchUnaryPredicate() 3195 const Constant *Cst = TLI->getTargetConstantFromLoad(LD); in computeKnownBits() local 3196 if (ISD::isNON_EXTLoad(LD) && Cst) { in computeKnownBits() 3198 Type *CstTy = Cst->getType(); in computeKnownBits() 3204 Cst = Splat; in computeKnownBits() 3205 CstTy = Cst->getType(); in computeKnownBits() 3235 if (auto *CInt = dyn_cast<ConstantInt>(Cst)) { in computeKnownBits() [all …]
|
H A D | DAGCombiner.cpp | 6858 return Cst && (Cst->getAPIntValue() == Imm); in MatchFunnelPosNeg() 8960 if (ConstantSDNode *Cst = isConstOrConstSplat(N2)) { in visitFunnelShift() local 8964 if (Cst->getAPIntValue().uge(BitWidth)) { in visitFunnelShift() 8970 unsigned ShAmt = Cst->getZExtValue(); in visitFunnelShift() 12593 SDValue Cst = DAG.getBitcast(VT, N0.getOperand(0)); in visitBITCAST() local 12594 AddToWorklist(Cst.getNode()); in visitBITCAST() 12618 SDValue Cst = DAG.getBitcast(VT, N0.getOperand(0)); in visitBITCAST() local 12619 Cst = DAG.getNode(ISD::AND, SDLoc(Cst), VT, in visitBITCAST() 12620 Cst, DAG.getConstant(~SignBit, SDLoc(Cst), VT)); in visitBITCAST() 12621 AddToWorklist(Cst.getNode()); in visitBITCAST() [all …]
|
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/ |
H A D | CodeGenPrepare.cpp | 4184 const ConstantInt *Cst = dyn_cast<ConstantInt>(Inst->getOperand(1)); in canGetThrough() local 4186 if (Cst && !Cst->getValue().isAllOnesValue()) in canGetThrough() 4208 const auto *Cst = dyn_cast<ConstantInt>(AndInst->getOperand(1)); in canGetThrough() local 4209 if (Cst && in canGetThrough() 4210 Cst->getValue().isIntN(Inst->getType()->getIntegerBitWidth())) in canGetThrough() 4389 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) { in promoteOperandForOther() local 4392 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() 4393 : Cst->getValue().zext(BitWidth); in promoteOperandForOther()
|
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCasts.cpp | 913 ConstantInt *Cst; in visitTrunc() local 914 if (match(Src, m_OneUse(m_ExtractElt(m_Value(VecOp), m_ConstantInt(Cst))))) { in visitTrunc() 922 uint64_t VecOpIdx = Cst->getZExtValue(); in visitTrunc()
|