Home
last modified time | relevance | path

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

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DUtils.cpp229 const MachineOperand &CstVal = MI.getOperand(1); in getConstantVRegValWithLookThrough() local
230 if (!CstVal.isImm() && !CstVal.isCImm() && in getConstantVRegValWithLookThrough()
231 (!HandleFConstant || !CstVal.isFPImm())) in getConstantVRegValWithLookThrough()
233 if (!CstVal.isFPImm()) { in getConstantVRegValWithLookThrough()
236 APInt Val = CstVal.isImm() ? APInt(BitWidth, CstVal.getImm()) in getConstantVRegValWithLookThrough()
237 : CstVal.getCImm()->getValue(); in getConstantVRegValWithLookThrough()
242 return CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in getConstantVRegValWithLookThrough()
DGISelKnownBits.cpp143 auto CstVal = getConstantVRegVal(R, MRI); in computeKnownBitsImpl() local
144 if (!CstVal) in computeKnownBitsImpl()
146 Known.One = *CstVal; in computeKnownBitsImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DLegalizationArtifactCombiner.h86 auto &CstVal = SrcMI->getOperand(1); in tryCombineAnyExt() local
88 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt()
130 auto &CstVal = SrcMI->getOperand(1); in tryCombineZExt() local
132 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt()
183 auto &CstVal = SrcMI->getOperand(1); in tryCombineTrunc() local
185 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64InstructionSelector.cpp4859 Optional<int64_t> CstVal = getConstantVRegVal(MI.getOperand(0).getReg(), MRI); in renderTruncImm() local
4860 assert(CstVal && "Expected constant value"); in renderTruncImm()
4861 MIB.addImm(CstVal.getValue()); in renderTruncImm()
4868 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm32() local
4869 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 32); in renderLogicalImm32()
4877 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm64() local
4878 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 64); in renderLogicalImm64()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUInstructionSelector.cpp2276 Optional<int64_t> CstVal = getConstantVRegVal(MI.getOperand(0).getReg(), *MRI); in renderTruncImm32() local
2277 assert(CstVal && "Expected constant value"); in renderTruncImm32()
2278 MIB.addImm(CstVal.getValue()); in renderTruncImm32()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp4072 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local
4074 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther()
6537 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local
6538 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()