Home
last modified time | relevance | path

Searched refs:CstVal (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/GISel/
H A DRISCVInstructionSelector.cpp797 int64_t CstVal = MI.getOperand(1).getCImm()->getSExtValue(); in renderNegImm() local
798 MIB.addImm(-CstVal); in renderNegImm()
806 uint64_t CstVal = MI.getOperand(1).getCImm()->getZExtValue(); in renderImmSubFromXLen() local
807 MIB.addImm(STI.getXLen() - CstVal); in renderImmSubFromXLen()
815 uint64_t CstVal = MI.getOperand(1).getCImm()->getZExtValue(); in renderImmSubFrom32() local
816 MIB.addImm(32 - CstVal); in renderImmSubFrom32()
824 int64_t CstVal = MI.getOperand(1).getCImm()->getSExtValue(); in renderImmPlus1() local
825 MIB.addImm(CstVal + 1); in renderImmPlus1()
833 int64_t CstVal = MI.getOperand(1).getCImm()->getSExtValue(); in renderImm() local
834 MIB.addImm(CstVal); in renderImm()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h102 auto &CstVal = SrcMI->getOperand(1); in tryCombineAnyExt() local
109 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
182 auto &CstVal = SrcMI->getOperand(1); in tryCombineZExt() local
184 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt()
246 auto &CstVal = SrcMI->getOperand(1); in tryCombineSExt() local
248 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineSExt()
274 auto &CstVal = SrcMI->getOperand(1); in tryCombineTrunc() local
276 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp406 const MachineOperand &CstVal = MI->getOperand(1); in getCImmAsAPInt() local
407 if (!CstVal.isCImm()) in getCImmAsAPInt()
409 Result = CstVal.getCImm()->getValue(); in getCImmAsAPInt()
414 const MachineOperand &CstVal = MI->getOperand(1); in getCImmOrFPImmAsAPInt() local
415 if (CstVal.isCImm()) in getCImmOrFPImmAsAPInt()
416 Result = CstVal.getCImm()->getValue(); in getCImmOrFPImmAsAPInt()
417 else if (CstVal.isFPImm()) in getCImmOrFPImmAsAPInt()
418 Result = CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in getCImmOrFPImmAsAPInt()
H A DCombinerHelper.cpp2177 const MachineOperand &CstVal = SrcInstr->getOperand(1); in matchCombineUnmergeConstant() local
2179 ? CstVal.getCImm()->getValue() in matchCombineUnmergeConstant()
2180 : CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in matchCombineUnmergeConstant()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp1128 int64_t CstVal = in checkIfSafeAddSequence() local
1131 IdxDiff.getSExtValue() == CstVal) in checkIfSafeAddSequence()
1138 int64_t CstVal = in checkIfSafeAddSequence() local
1141 IdxDiff.getSExtValue() == -CstVal) in checkIfSafeAddSequence()
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp7769 std::optional<int64_t> CstVal = in renderTruncImm() local
7771 assert(CstVal && "Expected constant value"); in renderTruncImm()
7772 MIB.addImm(*CstVal); in renderTruncImm()
7779 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm32() local
7780 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 32); in renderLogicalImm32()
7788 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm64() local
7789 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 64); in renderLogicalImm64()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4744 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local
4746 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
7706 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local
7707 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()