Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DUtils.cpp300 const MachineOperand &CstVal = MI.getOperand(1); in getConstantVRegValWithLookThrough() local
301 if (!CstVal.isImm() && !CstVal.isCImm() && in getConstantVRegValWithLookThrough()
302 (!HandleFConstant || !CstVal.isFPImm())) in getConstantVRegValWithLookThrough()
304 if (!CstVal.isFPImm()) { in getConstantVRegValWithLookThrough()
307 APInt Val = CstVal.isImm() ? APInt(BitWidth, CstVal.getImm()) in getConstantVRegValWithLookThrough()
308 : CstVal.getCImm()->getValue(); in getConstantVRegValWithLookThrough()
313 return CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in getConstantVRegValWithLookThrough()
H A DGISelKnownBits.cpp248 auto CstVal = getConstantVRegVal(R, MRI); in computeKnownBitsImpl() local
249 if (!CstVal) in computeKnownBitsImpl()
251 Known = KnownBits::makeConstant(*CstVal); in computeKnownBitsImpl()
H A DCombinerHelper.cpp2103 const MachineOperand &CstVal = SrcInstr->getOperand(1); in matchCombineUnmergeConstant() local
2105 ? CstVal.getCImm()->getValue() in matchCombineUnmergeConstant()
2106 : CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in matchCombineUnmergeConstant()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h90 auto &CstVal = SrcMI->getOperand(1); in tryCombineAnyExt() local
92 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
150 auto &CstVal = SrcMI->getOperand(1); in tryCombineZExt() local
152 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt()
205 auto &CstVal = SrcMI->getOperand(1); in tryCombineSExt() local
207 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineSExt()
232 auto &CstVal = SrcMI->getOperand(1); in tryCombineTrunc() local
234 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp425 int64_t CstVal = in checkIfSafeAddSequence() local
428 IdxDiff.getSExtValue() == CstVal) in checkIfSafeAddSequence()
435 int64_t CstVal = in checkIfSafeAddSequence() local
438 IdxDiff.getSExtValue() == -CstVal) in checkIfSafeAddSequence()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp6055 Optional<int64_t> CstVal = in renderTruncImm() local
6057 assert(CstVal && "Expected constant value"); in renderTruncImm()
6058 MIB.addImm(CstVal.getValue()); in renderTruncImm()
6065 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm32() local
6066 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 32); in renderLogicalImm32()
6074 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm64() local
6075 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 64); in renderLogicalImm64()
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4396 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local
4398 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
7196 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local
7197 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()