/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | Utils.cpp | 229 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()
|
D | GISelKnownBits.cpp | 143 auto CstVal = getConstantVRegVal(R, MRI); in computeKnownBitsImpl() local 144 if (!CstVal) in computeKnownBitsImpl() 146 Known.One = *CstVal; in computeKnownBitsImpl()
|
/external/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
D | Utils.cpp | 280 const MachineOperand &CstVal = MI.getOperand(1); in getConstantVRegValWithLookThrough() local 281 if (!CstVal.isImm() && !CstVal.isCImm() && in getConstantVRegValWithLookThrough() 282 (!HandleFConstant || !CstVal.isFPImm())) in getConstantVRegValWithLookThrough() 284 if (!CstVal.isFPImm()) { in getConstantVRegValWithLookThrough() 287 APInt Val = CstVal.isImm() ? APInt(BitWidth, CstVal.getImm()) in getConstantVRegValWithLookThrough() 288 : CstVal.getCImm()->getValue(); in getConstantVRegValWithLookThrough() 293 return CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in getConstantVRegValWithLookThrough()
|
D | GISelKnownBits.cpp | 217 auto CstVal = getConstantVRegVal(R, MRI); in computeKnownBitsImpl() local 218 if (!CstVal) in computeKnownBitsImpl() 220 Known.One = *CstVal; in computeKnownBitsImpl()
|
D | CombinerHelper.cpp | 1881 const MachineOperand &CstVal = SrcInstr->getOperand(1); in matchCombineUnmergeConstant() local 1883 ? CstVal.getCImm()->getValue() in matchCombineUnmergeConstant() 1884 : CstVal.getFPImm()->getValueAPF().bitcastToAPInt(); in matchCombineUnmergeConstant()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | LegalizationArtifactCombiner.h | 86 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()
|
/external/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
D | LegalizationArtifactCombiner.h | 86 auto &CstVal = SrcMI->getOperand(1); in tryCombineAnyExt() local 88 DstReg, CstVal.getCImm()->getValue().sext(DstTy.getSizeInBits())); in tryCombineAnyExt() 147 auto &CstVal = SrcMI->getOperand(1); in tryCombineZExt() local 149 DstReg, CstVal.getCImm()->getValue().zext(DstTy.getSizeInBits())); in tryCombineZExt() 216 auto &CstVal = SrcMI->getOperand(1); in tryCombineTrunc() local 218 DstReg, CstVal.getCImm()->getValue().trunc(DstTy.getSizeInBits())); in tryCombineTrunc()
|
/external/llvm-project/llvm/lib/Transforms/Vectorize/ |
D | LoadStoreVectorizer.cpp | 475 int64_t CstVal = cast<ConstantInt>(OpRHSB->getOperand(1))->getSExtValue(); in lookThroughComplexAddresses() local 476 if (OpRHSB->getOperand(0) == RHSA && IdxDiff.getSExtValue() == CstVal) in lookThroughComplexAddresses() 482 int64_t CstVal = cast<ConstantInt>(OpRHSA->getOperand(1))->getSExtValue(); in lookThroughComplexAddresses() local 483 if (OpRHSA->getOperand(0) == RHSB && IdxDiff.getSExtValue() == -CstVal) in lookThroughComplexAddresses()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/ |
D | AArch64InstructionSelector.cpp | 4859 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()
|
/external/llvm-project/llvm/lib/Target/AArch64/GISel/ |
D | AArch64InstructionSelector.cpp | 5824 Optional<int64_t> CstVal = getConstantVRegVal(MI.getOperand(0).getReg(), MRI); in renderTruncImm() local 5825 assert(CstVal && "Expected constant value"); in renderTruncImm() 5826 MIB.addImm(CstVal.getValue()); in renderTruncImm() 5833 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm32() local 5834 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 32); in renderLogicalImm32() 5842 uint64_t CstVal = I.getOperand(1).getCImm()->getZExtValue(); in renderLogicalImm64() local 5843 uint64_t Enc = AArch64_AM::encodeLogicalImmediate(CstVal, 64); in renderLogicalImm64()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUInstructionSelector.cpp | 2276 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()
|
/external/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 3066 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local 3068 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther() 4959 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local 4960 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 4072 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()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | CodeGenPrepare.cpp | 4220 APInt CstVal = IsSExt ? Cst->getValue().sext(BitWidth) in promoteOperandForOther() local 4222 TPT.setOperand(ExtOpnd, OpIdx, ConstantInt::get(Ext->getType(), CstVal)); in promoteOperandForOther() 6991 if (ConstantInt *CstVal = dyn_cast<ConstantInt>(ValExtractIdx)) in getConstantVector() local 6992 ExtractIdx = CstVal->getSExtValue(); in getConstantVector()
|