Home
last modified time | relevance | path

Searched refs:Op0C (Results 1 – 13 of 13) sorted by relevance

/external/llvm-project/llvm/lib/Transforms/InstCombine/
DInstCombineCalls.cpp1915 ConstantInt *Op0C = dyn_cast<ConstantInt>(Call.getOperand(0)); in annotateAnyAllocSite() local
1920 if ((Op0C && Op0C->isNullValue()) || (Op1C && Op1C->isNullValue())) in annotateAnyAllocSite()
1923 if (isMallocLikeFn(&Call, TLI) && Op0C) { in annotateAnyAllocSite()
1927 Call.getContext(), Op0C->getZExtValue())); in annotateAnyAllocSite()
1931 Call.getContext(), Op0C->getZExtValue())); in annotateAnyAllocSite()
1937 if (Op0C && Op0C->getValue().ult(llvm::Value::MaximumAlignment)) { in annotateAnyAllocSite()
1938 uint64_t AlignmentVal = Op0C->getZExtValue(); in annotateAnyAllocSite()
1948 } else if (isCallocLikeFn(&Call, TLI) && Op0C && Op1C) { in annotateAnyAllocSite()
1950 const APInt &N = Op0C->getValue(); in annotateAnyAllocSite()
DInstCombineShifts.cpp804 const APInt *Op0C; in FoldShiftByConstant() local
805 if (match(Op0BO->getOperand(1), m_APInt(Op0C))) { in FoldShiftByConstant()
823 match(Op0BO->getOperand(0), m_APInt(Op0C))) { in FoldShiftByConstant()
DInstCombineAddSub.cpp1847 const APInt *Op0C; in visitSub() local
1848 if (match(Op0, m_APInt(Op0C)) && Op0C->isMask()) { in visitSub()
1852 if ((*Op0C | RHSKnown.Zero).isAllOnesValue()) in visitSub()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp501 if (ConstantInt *Op0C = dyn_cast<ConstantInt>(Op0BO->getOperand(1))) { in FoldShiftByConstant() local
526 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant()
529 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant()
DInstCombineAndOrXor.cpp2549 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitXor() local
2550 if (CmpInst *CI = dyn_cast<CmpInst>(Op0C->getOperand(0))) { in visitXor()
2551 if (CI->hasOneUse() && Op0C->hasOneUse()) { in visitXor()
2552 Instruction::CastOps Opcode = Op0C->getOpcode(); in visitXor()
2555 Op0C->getDestTy()))) { in visitXor()
2557 return CastInst::Create(Opcode, CI, Op0C->getType()); in visitXor()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineAddSub.cpp1779 const APInt *Op0C; in visitSub() local
1780 if (match(Op0, m_APInt(Op0C))) { in visitSub()
1782 if (Op0C->isNullValue()) { in visitSub()
1831 if (Op0C->isMask()) { in visitSub()
1833 if ((*Op0C | RHSKnown.Zero).isAllOnesValue()) in visitSub()
DInstCombineShifts.cpp844 const APInt *Op0C; in FoldShiftByConstant() local
845 if (match(Op0BO->getOperand(1), m_APInt(Op0C))) { in FoldShiftByConstant()
863 match(Op0BO->getOperand(0), m_APInt(Op0C))) { in FoldShiftByConstant()
DInstCombineCalls.cpp4353 ConstantInt *Op0C = dyn_cast<ConstantInt>(Call.getOperand(0)); in annotateAnyAllocSite() local
4357 if ((Op0C && Op0C->isNullValue()) || (Op1C && Op1C->isNullValue())) in annotateAnyAllocSite()
4360 if (isMallocLikeFn(&Call, TLI) && Op0C) { in annotateAnyAllocSite()
4364 Call.getContext(), Op0C->getZExtValue())); in annotateAnyAllocSite()
4368 Call.getContext(), Op0C->getZExtValue())); in annotateAnyAllocSite()
4373 } else if (isCallocLikeFn(&Call, TLI) && Op0C && Op1C) { in annotateAnyAllocSite()
4375 const APInt &N = Op0C->getValue(); in annotateAnyAllocSite()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp2603 ConstantFP *Op0C = dyn_cast<ConstantFP>(Call->getArgOperand(0)); in isMathLibCallNoop() local
2605 if (Op0C && Op1C) { in isMathLibCallNoop()
2606 const APFloat &Op0 = Op0C->getValueAPF(); in isMathLibCallNoop()
2615 Type *Ty = Op0C->getType(); in isMathLibCallNoop()
2618 double Op0V = getValueAsDouble(Op0C); in isMathLibCallNoop()
DValueTracking.cpp2852 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
2854 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2856 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
2857 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2859 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
2862 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()
/external/llvm/lib/Analysis/
DValueTracking.cpp2267 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
2269 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2271 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
2272 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2274 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
2277 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()
/external/llvm-project/llvm/lib/Analysis/
DConstantFolding.cpp3085 ConstantFP *Op0C = dyn_cast<ConstantFP>(Call->getArgOperand(0)); in isMathLibCallNoop() local
3087 if (Op0C && Op1C) { in isMathLibCallNoop()
3088 const APFloat &Op0 = Op0C->getValueAPF(); in isMathLibCallNoop()
3097 Type *Ty = Op0C->getType(); in isMathLibCallNoop()
3100 double Op0V = getValueAsDouble(Op0C); in isMathLibCallNoop()
DValueTracking.cpp3082 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
3084 if (Op0C->getType()->getPrimitiveSizeInBits().getFixedSize() < in ComputeMultiple()
3086 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
3087 if (Op0C->getType()->getPrimitiveSizeInBits().getFixedSize() > in ComputeMultiple()
3089 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
3092 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()