Searched refs:Cst (Results 1 - 22 of 22) sorted by relevance

/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/MC/
H A DMCValue.h41 int64_t Cst = 0; member in class:llvm::MCValue
46 int64_t getConstant() const { return Cst; }
66 R.Cst = Val;
75 R.Cst = Val;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64PromoteConstant.cpp253 /// Check if the given use (Instruction + OpIdx) of Cst should be converted into
254 /// a load of a global variable initialized with Cst.
258 static bool shouldConvertUse(const Constant *Cst, const Instruction *Instr, argument
310 /// Check if the given Cst should be converted into
311 /// a load of a global variable initialized with Cst.
324 static bool shouldConvertImpl(const Constant *Cst) { argument
325 if (isa<const UndefValue>(Cst))
330 // E.g., when the type of Cst require more instructions than the
332 // instances of Cst.
335 if (Cst
551 Constant *Cst = dyn_cast<Constant>(U); local
[all...]
H A DAArch64StackTagging.cpp135 uint64_t Cst = 0x0101010101010101UL; local
138 Cst = (Cst >> LowBits) << LowBits;
141 Cst = (Cst << HighBits) >> HighBits;
143 ConstantInt::get(IRB.getInt64Ty(), Cst * V->getZExtValue());
H A DAArch64ISelLowering.cpp8228 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(1));
8229 if (!Cst)
8231 unsigned Val = Cst->getZExtValue();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DCSEMIRBuilder.cpp160 if (Optional<APInt> Cst = ConstantFoldBinOp(Opc, SrcOps[0].getReg(),
162 return buildConstant(DstOps[0], Cst->getSExtValue());
H A DIRTranslator.cpp554 auto Cst = getOrCreateVReg( local
556 Cst = MIB.buildZExtOrTrunc(PtrScalarTy, Cst).getReg(0);
557 auto Cmp = MIB.buildICmp(CmpInst::ICMP_UGT, LLT::scalar(1), Sub, Cst);
1504 ConstantInt *Cst = cast<ConstantInt>(CI.getArgOperand(1)); local
1507 ? Cst->isZero() ? TargetOpcode::G_CTTZ
1509 : Cst->isZero() ? TargetOpcode::G_CTLZ
H A DMachineIRBuilder.cpp236 auto Cst = buildConstant(ValueTy, Value); local
237 return buildPtrAdd(Res, Op0, Cst.getReg(0));
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DMIPatternMatch.h55 inline ConstantMatch m_ICst(int64_t &Cst) { return ConstantMatch(Cst); } argument
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DReassociate.cpp1838 Constant *Cst = nullptr;
1842 Cst = Cst ? ConstantExpr::get(Opcode, C, Cst) : C;
1846 return Cst;
1851 if (Cst && Cst != ConstantExpr::getBinOpIdentity(Opcode, I->getType())) {
1852 if (Cst == ConstantExpr::getBinOpAbsorber(Opcode, I->getType()))
1853 return Cst;
1854 Ops.push_back(ValueEntry(0, Cst));
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineCasts.cpp758 // Transform trunc(lshr (zext A), Cst) to eliminate one type conversion.
759 Value *A = nullptr; ConstantInt *Cst = nullptr; local
761 match(Src, m_LShr(m_ZExt(m_Value(A)), m_ConstantInt(Cst)))) {
770 if (Cst->getZExtValue() >= ASize)
776 Value *Shift = Builder.CreateLShr(A, Cst->getZExtValue());
782 // Transform trunc(lshr (sext A), Cst) to ashr A, Cst to eliminate type
788 match(Src, m_LShr(m_SExt(m_Value(A)), m_ConstantInt(Cst)))) {
794 unsigned ShiftAmt = Cst->getZExtValue();
826 if (match(Src, m_Shl(m_Value(A), m_ConstantInt(Cst)))
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsISelLowering.h472 SDValue Cst = DAG.getConstant(16, DL, MVT::i32); local
473 SDValue Shift = DAG.getNode(ISD::SHL, DL, Ty, HigherPart, Cst);
476 SDValue Shift2 = DAG.getNode(ISD::SHL, DL, Ty, Add, Cst);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DR600ISelLowering.cpp919 if(ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Op)) {
920 return Cst->isNullValue();
2127 ConstantSDNode *Cst local
2129 Consts.push_back(Cst->getZExtValue());
2134 ConstantSDNode *Cst = cast<ConstantSDNode>(CstOffset); local
2135 Consts.push_back(Cst->getZExtValue());
H A DAMDGPUISelDAGToDAG.cpp2759 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(Addr)) {
2760 IntPtr = CurDAG->getIntPtrConstant(Cst->getZExtValue() / 4, SDLoc(Addr),
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp1931 if (ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N))
1932 if (!foldOffsetIntoAddress(Cst->getSExtValue(), AM))
3796 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1); local
3797 if (!Cst)
3800 int64_t Val = Cst->getSExtValue();
3869 unsigned ZExtWidth = Cst->getAPIntValue().getActiveBits();
3875 NeededMask &= ~Cst->getAPIntValue();
4599 ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(N1); local
4600 if (!Cst)
4603 int64_t Val = Cst
[all...]
H A DX86ISelLowering.cpp6204 auto CollectConstantBits = [](const Constant *Cst, APInt &Mask, APInt &Undefs,
6206 if (!Cst)
6208 if (isa<UndefValue>(Cst)) {
6212 if (auto *CInt = dyn_cast<ConstantInt>(Cst)) {
6216 if (auto *CFP = dyn_cast<ConstantFP>(Cst)) {
6231 if (auto *Cst = dyn_cast<ConstantSDNode>(Op)) {
6233 SmallVector<APInt, 64> SrcEltBits(1, Cst->getAPIntValue());
6236 if (auto *Cst = dyn_cast<ConstantFPSDNode>(Op)) {
6238 APInt RawBits = Cst->getValueAPF().bitcastToAPInt();
6256 auto *Cst
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp3864 const ConstantInt *Cst = dyn_cast<ConstantInt>(Inst->getOperand(1)); local
3866 if (Cst && !Cst->getValue().isAllOnesValue())
3888 const auto *Cst = dyn_cast<ConstantInt>(AndInst->getOperand(1)); local
3889 if (Cst &&
3890 Cst->getValue().isIntN(Inst->getType()->getIntegerBitWidth()))
4069 if (const ConstantInt *Cst = dyn_cast<ConstantInt>(Opnd)) {
4072 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth)
4073 : Cst->getValue().zext(BitWidth);
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DSelectionDAG.cpp276 if (auto *Cst = dyn_cast<ConstantSDNode>(Op))
277 return Match(Cst);
291 auto *Cst = dyn_cast<ConstantSDNode>(Op.getOperand(i));
292 if (!Cst || Cst->getValueType(0) != SVT || !Match(Cst))
3012 const Constant *Cst = TLI->getTargetConstantFromLoad(LD);
3013 if (ISD::isNON_EXTLoad(LD) && Cst) {
3015 Type *CstTy = Cst->getType();
3020 if (const Constant *Splat = Cst
[all...]
H A DDAGCombiner.cpp2546 SDValue Cst; local
2550 Cst = DAG.getConstant(1, DL, VT);
2553 Cst = DAG.getAllOnesConstant(DL, VT);
2557 return DAG.getNode(ISD::XOR, DL, VT, V, Cst);
7416 if (ConstantSDNode *Cst = isConstOrConstSplat(N1)) {
7417 if (Cst->getAPIntValue().uge(Bitsize)) {
7418 uint64_t RotAmt = Cst->getAPIntValue().urem(Bitsize);
8144 if (ConstantSDNode *Cst = isConstOrConstSplat(N2)) {
8148 if (Cst->getAPIntValue().uge(BitWidth)) {
8149 uint64_t RotAmt = Cst
11309 SDValue Cst = DAG.getBitcast(VT, N0.getOperand(0)); local
11334 SDValue Cst = DAG.getBitcast(VT, N0.getOperand(0)); local
[all...]
H A DTargetLowering.cpp6138 SDValue Cst = DAG.getConstantFP(APF, dl, SrcVT);
6142 Sel = DAG.getSetCC(dl, SetCCVT, Src, Cst, ISD::SETLT,
6146 Sel = DAG.getSetCC(dl, SetCCVT, Src, Cst, ISD::SETLT);
6162 DAG.getConstantFP(0.0, dl, SrcVT), Cst);
6188 DAG.getNode(ISD::FSUB, dl, SrcVT, Src, Cst));
H A DLegalizeIntegerTypes.cpp2601 const APInt &Cst = Constant->getAPIntValue(); local
2605 Lo = DAG.getConstant(Cst.trunc(NBitWidth), dl, NVT, IsTarget, IsOpaque);
2606 Hi = DAG.getConstant(Cst.lshr(NBitWidth).trunc(NBitWidth), dl, NVT, IsTarget,
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp3379 Constant *Cst = dyn_cast<Constant>(ArgShadow);
3380 if (Cst && Cst->isNullValue()) ArgIsInitialized = true;
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DSimplifyCFG.cpp3658 ConstantInt *Cst = cast<ConstantInt>(ICI->getOperand(1)); local
3690 if (SI->findCaseValue(Cst) != SI->case_default()) {
3736 SIW.addCase(Cst, NewBB, NewW);

Completed in 665 milliseconds