Home
last modified time | relevance | path

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

/netbsd/external/apache2/llvm/dist/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.cpp233 auto CstVal = getConstantVRegVal(R, MRI); in computeKnownBitsImpl() local
234 if (!CstVal) in computeKnownBitsImpl()
236 Known = KnownBits::makeConstant(*CstVal); in computeKnownBitsImpl()
H A DCombinerHelper.cpp2043 const MachineOperand &CstVal = SrcInstr->getOperand(1); in matchCombineUnmergeConstant() local
2045 ? CstVal.getCImm()->getValue() in matchCombineUnmergeConstant()
2046 : CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in matchCombineUnmergeConstant()
/netbsd/external/apache2/llvm/dist/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizationArtifactCombiner.h88 auto &CstVal = SrcMI->getOperand(1); in tryCombineAnyExt() local
90 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
148 auto &CstVal = SrcMI->getOperand(1); in tryCombineZExt() local
150 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt()
203 auto &CstVal = SrcMI->getOperand(1); in tryCombineSExt() local
205 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineSExt()
230 auto &CstVal = SrcMI->getOperand(1); in tryCombineTrunc() local
232 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Vectorize/
H A DLoadStoreVectorizer.cpp483 int64_t CstVal = cast<ConstantInt>(OpRHSB->getOperand(1))->getSExtValue(); in lookThroughComplexAddresses() local
484 if (OpRHSB->getOperand(0) == RHSA && IdxDiff.getSExtValue() == CstVal) in lookThroughComplexAddresses()
490 int64_t CstVal = cast<ConstantInt>(OpRHSA->getOperand(1))->getSExtValue(); in lookThroughComplexAddresses() local
491 if (OpRHSA->getOperand(0) == RHSB && IdxDiff.getSExtValue() == -CstVal) in lookThroughComplexAddresses()
/netbsd/external/apache2/llvm/dist/llvm/lib/Target/AArch64/GISel/
H A DAArch64InstructionSelector.cpp5895 Optional<int64_t> CstVal = in renderTruncImm() local
5897 assert(CstVal && "Expected constant value"); in renderTruncImm()
5898 MIB.addImm(CstVal.getValue()); in renderTruncImm()
5905 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm32() local
5906 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 32); in renderLogicalImm32()
5914 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm64() local
5915 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 64); in renderLogicalImm64()
/netbsd/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4392 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local
4394 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
7166 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local
7167 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()