Home
last modified time | relevance | path

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

12

/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp111 ConstMI->getOperand(1).getCImm()->getZExtValue())); in foldConstantsIntoIntrinsics()
158 Type *Ty = MI->getOperand(1).getCImm()->getType(); in propagateSPIRVType()
260 Ty = MI.getOperand(1).getCImm()->getType(); in generateAssignInstrs()
270 ElemTy = ElemMI->getOperand(1).getCImm()->getType(); in generateAssignInstrs()
468 Vals.push_back(ConstInstr->getOperand(1).getCImm()); in processSwitches()
H A DSPIRVUtils.cpp228 return MI->getOperand(1).getCImm()->getValue().getZExtValue(); in getIConstVal()
H A DSPIRVInstructionSelector.cpp257 return selectConst(ResVReg, ResType, I.getOperand(1).getCImm()->getValue(), in spvSelect()
868 addNumImm(I.getOperand(1).getCImm()->getValue(), MIB); in renderImm32()
1067 return ImmInst->getOperand(1).getCImm()->getZExtValue(); in foldImm()
1214 addNumImm(I.getOperand(i).getCImm()->getValue(), MIB); in selectIntrinsic()
/llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp392 return CstVal.getCImm()->getValue(); in getCImmAsAPInt()
399 return CstVal.getCImm()->getValue(); in getCImmOrFPImmAsAPInt()
819 const ConstantInt *CI = MI.getOperand(1).getCImm(); in isKnownToBeAPowerOfTwo()
1214 return MI.getOperand(1).getCImm()->isNullValue(); in isNullOrNullSplat()
1233 return MI.getOperand(1).getCImm()->isAllOnesValue(); in isAllOnesOrAllOnesSplat()
1251 return Match(Def->getOperand(1).getCImm()); in matchUnaryPredicate()
1266 !Match(SrcDef->getOperand(1).getCImm())) in matchUnaryPredicate()
H A DCSEInfo.cpp412 ID.AddPointer(MO.getCImm()); in addNodeIDMachineOperand()
H A DGISelKnownBits.cpp617 return MI.getOperand(1).getCImm()->getValue().getNumSignBits(); in computeNumSignBits()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUGlobalISelUtils.cpp30 Offset = Op.getCImm()->getZExtValue(); in getBaseWithConstantOffset()
H A DAMDGPUInstructionSelector.cpp1436 ImmOffset = OffsetDef->getOperand(1).getCImm()->getZExtValue(); in selectDSGWSIntrinsic()
2197 ImmOp.ChangeToImmediate(ImmOp.getCImm()->getSExtValue()); in selectG_CONSTANT()
2382 GEPInfo.Imm = OpDef->getOperand(1).getCImm()->getSExtValue(); in getAddrModeInfo()
4917 MIB.addImm(MI.getOperand(1).getCImm()->getSExtValue()); in renderTruncImm32()
4925 MIB.addImm(-MI.getOperand(1).getCImm()->getSExtValue()); in renderNegateImm()
4938 MIB.addImm(Op.getCImm()->getSExtValue()); in renderBitcastImm()
4947 MIB.addImm(MI.getOperand(1).getCImm()->getValue().countPopulation()); in renderPopcntImm()
/llvm-project-15.0.7/llvm/unittests/CodeGen/
H A DMachineOperandTest.cpp97 ASSERT_TRUE(MO.getCImm() == CImm); in TEST()
98 ASSERT_TRUE(MO.getCImm()->getValue() == Int); in TEST()
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DMIRVRegNamerUtils.cpp73 MO.getCImm()->getZExtValue()); in getInstructionOpcodeHash()
H A DMachineOperand.cpp297 return getCImm() == Other.getCImm(); in isIdenticalTo()
362 return hash_combine(MO.getType(), MO.getTargetFlags(), MO.getCImm()); in hash_value()
822 getCImm()->printAsOperand(OS, /*PrintType=*/true, MST); in print()
H A DMachineStableHash.cpp81 auto Val = MO.isCImm() ? MO.getCImm()->getValue() in stableHashValue()
H A DMachineVerifier.cpp1043 const ConstantInt *CI = MI->getOperand(1).getCImm(); in verifyPreISelGenericInstruction()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h100 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
163 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt()
219 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineSExt()
247 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
H A DInstructionSelectorImpl.h285 Value = State.MIs[InsnID]->getOperand(OpIdx).getCImm()->getSExtValue(); in executeMatchTable()
309 Value = State.MIs[InsnID]->getOperand(1).getCImm()->getValue(); in executeMatchTable()
742 if (MO.isCImm() && MO.getCImm()->equalsInt(Value)) in executeMatchTable()
1021 State.MIs[OldInsnID]->getOperand(1).getCImm()->getSExtValue()); in executeMatchTable()
/llvm-project-15.0.7/llvm/unittests/CodeGen/GlobalISel/
H A DCSETest.cpp182 EXPECT_TRUE(CtlzDef->getOperand(1).getCImm()->getZExtValue() == 28); in TEST_F()
/llvm-project-15.0.7/llvm/lib/Target/Mips/
H A DMipsInstructionSelector.cpp456 APInt OffsetValue = Offset->getOperand(1).getCImm()->getValue(); in select()
586 I.getOperand(1).getCImm()->getValue(), B)) in select()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DMachineOperand.h551 const ConstantInt *getCImm() const { in getCImm() function
/llvm-project-15.0.7/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp686 Immed = Root.getCImm()->getZExtValue(); in getImmedFromMO()
2193 IsZero = I.getOperand(1).getCImm()->getZExtValue() == 0; in earlySelect()
2608 uint64_t Val = I.getOperand(1).getCImm()->getZExtValue(); in select()
5431 const_cast<ConstantInt *>(OpMI->getOperand(1).getCImm())); in tryOptConstantBuildVec()
6388 if (!RHSOp1.isCImm() || RHSOp1.getCImm()->getBitWidth() > 64) in selectAddrModeUnscaled()
6390 RHSC = RHSOp1.getCImm()->getSExtValue(); in selectAddrModeUnscaled()
6473 int64_t RHSC = (int64_t)RHSDef->getOperand(1).getCImm()->getZExtValue(); in selectAddrModeIndexed()
6716 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm32()
6725 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm64()
/llvm-project-15.0.7/llvm/lib/Target/ARM/
H A DARMInstructionSelector.cpp970 if (!Val.getCImm()->isZero()) { in select()
/llvm-project-15.0.7/llvm/lib/Target/Hexagon/
H A DHexagonBitSimplify.cpp2668 return !Op.getCImm()->isZero(); in simplifyRCmp0()
2680 return Op.getCImm()->isZero(); in simplifyRCmp0()
/llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp431 Loc.CImm = Op.getCImm(); in GetLocForOp()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstructionSelector.cpp650 Val = I.getOperand(1).getCImm()->getZExtValue(); in selectConstant()
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDwarfDebug.cpp251 DbgValueLocEntries.push_back(DbgValueLocEntry(Op.getCImm())); in getDebugLocValue()
H A DAsmPrinter.cpp1168 Op.getCImm()->getValue().print(OS, false /*isSigned*/); in emitDebugValueComment()

12