Home
last modified time | relevance | path

Searched refs:getCImm (Results 1 – 25 of 40) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp536 auto C = RootDef->getOperand(1).getCImm(); in renderVLOp()
572 int64_t RHSC = RHSDef->getOperand(1).getCImm()->getSExtValue(); in selectAddrRegImm()
729 int64_t Imm = MI.getOperand(1).getCImm()->getSExtValue(); in select()
891 int64_t CstVal = MI.getOperand(1).getCImm()->getSExtValue(); in renderNegImm()
900 uint64_t CstVal = MI.getOperand(1).getCImm()->getZExtValue(); in renderImmSubFromXLen()
909 uint64_t CstVal = MI.getOperand(1).getCImm()->getZExtValue(); in renderImmSubFrom32()
918 int64_t CstVal = MI.getOperand(1).getCImm()->getSExtValue(); in renderImmPlus1()
935 uint64_t C = MI.getOperand(1).getCImm()->getZExtValue(); in renderTrailingZeros()
943 uint64_t C = MI.getOperand(1).getCImm()->getZExtValue(); in renderXLenSubTrailingOnes()
952 int64_t Imm = MI.getOperand(1).getCImm()->getSExtValue(); in renderAddiPairImmSmall()
[all …]
H A DRISCVLegalizerInfo.cpp856 uint64_t Val = MI.getOperand(1).getCImm()->getZExtValue(); in legalizeVScale()
1336 const ConstantInt *ConstVal = MI.getOperand(1).getCImm(); in legalizeCustom()
/freebsd/contrib/llvm-project/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp304 Type *Ty = MI->getOperand(1).getCImm()->getType(); in propagateSPIRVType()
398 const ConstantInt *CImmVal = MOP.getCImm(); in widenCImmType()
597 ? MI.getOperand(1).getCImm()->getType() in generateAssignInstrs()
599 const ConstantInt *OpCI = MI.getOperand(1).getCImm(); in generateAssignInstrs()
630 ElemTy = ElemMI->getOperand(1).getCImm()->getType(); in generateAssignInstrs()
900 MachineOperand::CreateCImm(ConstInstr->getOperand(1).getCImm())); in processSwitchesConstants()
H A DSPIRVIRMapping.h35 H = llvm::hash_combine(H, MO.getType(), MO.getCImm()); in to_hash()
H A DSPIRVUtils.cpp371 return MI->getOperand(1).getCImm()->getValue().getZExtValue(); in getIConstVal()
988 return Def->getOperand(1).getCImm()->getZExtValue(); in foldImm()
H A DSPIRVBuiltins.cpp396 return DefMI->getOperand(1).getCImm()->getValue().getZExtValue(); in getConstFromIntrinsic()
1198 uint64_t GrpOp = MI->getOperand(1).getCImm()->getValue().getZExtValue(); in generateGroupInst()
1423 addNumImm(ConstOperand.getCImm()->getValue(), MIB); in generateGroupUniformInst()
2278 Opcode = ConstOperand.getCImm()->getValue().getZExtValue() in generateSpecConstantInst()
2288 addNumImm(ConstOperand.getCImm()->getValue(), MIB); in generateSpecConstantInst()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp310 return Const->getOperand(1).getCImm()->getValue(); in getIConstantFromReg()
416 Result = CstVal.getCImm()->getValue(); in getCImmAsAPInt()
423 Result = CstVal.getCImm()->getValue(); in getCImmOrFPImmAsAPInt()
1120 const ConstantInt *CI = MI.getOperand(1).getCImm(); in isKnownToBeAPowerOfTwo()
1565 return MI.getOperand(1).getCImm()->isNullValue(); in isNullOrNullSplat()
1584 return MI.getOperand(1).getCImm()->isAllOnesValue(); in isAllOnesOrAllOnesSplat()
1602 return Match(Def->getOperand(1).getCImm()); in matchUnaryPredicate()
1617 !Match(SrcDef->getOperand(1).getCImm())) in matchUnaryPredicate()
H A DCSEInfo.cpp430 ID.AddPointer(MO.getCImm()); in addNodeIDMachineOperand()
H A DGISelValueTracking.cpp299 Known = KnownBits::makeConstant(MI.getOperand(1).getCImm()->getValue()); in computeKnownBitsImpl()
1791 return MI.getOperand(1).getCImm()->getValue().getNumSignBits(); in computeNumSignBits()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMIRVRegNamerUtils.cpp72 MO.getCImm()->getZExtValue()); in getInstructionOpcodeHash()
H A DMachineOperand.cpp343 return getCImm() == Other.getCImm(); in isIdenticalTo()
410 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getCImm()); in hash_value()
885 getCImm()->printAsOperand(OS, /*PrintType=*/true, MST); in print()
H A DMachineStableHash.cpp77 auto Val = MO.isCImm() ? MO.getCImm()->getValue() in stableHashValue()
H A DMachineVerifier.cpp1236 const ConstantInt *CI = MI->getOperand(1).getCImm(); in verifyPreISelGenericInstruction()
1749 if (MI->getOperand(1).getCImm()->isZero()) { in verifyPreISelGenericInstruction()
1761 if (!MI->getOperand(1).getCImm()->getValue().isStrictlyPositive()) { in verifyPreISelGenericInstruction()
1778 if (MI->getOperand(1).getCImm()->getBitWidth() != in verifyPreISelGenericInstruction()
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUGlobalISelUtils.cpp36 Offset = Op.getCImm()->getZExtValue(); in getBaseWithConstantOffset()
H A DAMDGPURegBankLegalizeHelper.cpp440 uint64_t ConstVal = MI.getOperand(1).getCImm()->getZExtValue(); in lower()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h109 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
184 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt()
248 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineSExt()
276 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
H A DGIMatchTableExecutorImpl.h360 Value = State.MIs[InsnID]->getOperand(OpIdx).getCImm()->getSExtValue(); in executeMatchTable()
386 State.MIs[InsnID]->getOperand(1).getCImm()->getValue(); in executeMatchTable()
901 if (MO.isCImm() && MO.getCImm()->equalsInt(Value)) in executeMatchTable()
1365 State.MIs[OldInsnID]->getOperand(1).getCImm()->getSExtValue()); in executeMatchTable()
H A DGenericMachineInstrs.h922 APInt getSrc() const { return getOperand(1).getCImm()->getValue(); } in getSrc()
933 return getOperand(1).getCImm()->getValue().getZExtValue(); in getStep()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsInstructionSelector.cpp450 APInt OffsetValue = Offset->getOperand(1).getCImm()->getValue(); in select()
581 I.getOperand(1).getCImm()->getValue(), B)) in select()
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/
H A DARMInstructionSelector.cpp845 int64_t CVal = MI.getOperand(1).getCImm()->getSExtValue(); in renderInvertedImm()
981 if (!Val.getCImm()->isZero()) { in select()
H A DARMLegalizerInfo.cpp442 const ConstantInt *ConstVal = MI.getOperand(1).getCImm(); in legalizeCustom()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DMachineOperand.h561 const ConstantInt *getCImm() const { in getCImm() function
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp756 Immed = Root.getCImm()->getZExtValue(); in getImmedFromMO()
2436 IsZero = I.getOperand(1).getCImm()->isZero(); in earlySelect()
2830 uint64_t Val = I.getOperand(1).getCImm()->getZExtValue(); in select()
5862 const_cast<ConstantInt *>(OpMI->getOperand(1).getCImm())); in tryOptConstantBuildVec()
6954 Offset = OffsetMI.getOperand(1).getCImm()->getSExtValue(); in selectPtrAuthGlobalValue()
7592 if (!RHSOp1.isCImm() || RHSOp1.getCImm()->getBitWidth() > 64) in selectAddrModeUnscaled()
7594 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled()
7679 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed()
7957 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm32()
7966 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm64()
H A DAArch64RegisterBankInfo.cpp391 auto CstVal = ConstMI->getOperand(1).getCImm()->getValue(); in applyMappingImpl()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/GISel/
H A DPPCInstructionSelector.cpp605 int64_t Imm = I.getOperand(1).getCImm()->getValue().getZExtValue(); in selectI64Imm()

12