Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp1226 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) in visitAnd() local
1228 Type *SrcTy = Op0C->getOperand(0)->getType(); in visitAnd()
1229 if (Op0C->getOpcode() == Op1C->getOpcode() && // same cast kind ? in visitAnd()
1232 Value *Op0COp = Op0C->getOperand(0), *Op1COp = Op1C->getOperand(0); in visitAnd()
1235 if (ShouldOptimizeCast(Op0C->getOpcode(), Op0COp, I.getType()) && in visitAnd()
1238 return CastInst::Create(Op0C->getOpcode(), NewOp, I.getType()); in visitAnd()
1246 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
1253 return CastInst::Create(Op0C->getOpcode(), Res, I.getType()); in visitAnd()
2009 if (CastInst *Op0C = dyn_cast<CastInst>(Op0)) { in visitOr() local
2011 if (Op1C && Op0C->getOpcode() == Op1C->getOpcode()) {// same cast kind ? in visitOr()
[all …]
DInstCombineShifts.cpp484 if (ConstantInt *Op0C = dyn_cast<ConstantInt>(Op0BO->getOperand(1))) { in FoldShiftByConstant() local
509 isValid = Op0C->getValue()[TypeBits-1] == highBitSet; in FoldShiftByConstant()
512 Constant *NewRHS = ConstantExpr::get(I.getOpcode(), Op0C, Op1); in FoldShiftByConstant()
/external/swiftshader/third_party/LLVM/lib/Analysis/
DValueTracking.cpp1161 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
1163 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
1165 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
1166 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
1168 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
1171 Multiple = ConstantExpr::getMul(MulC, Op0C); in ComputeMultiple()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineShifts.cpp509 const APInt *Op0C; in FoldShiftByConstant() local
510 if (match(Op0BO->getOperand(1), m_APInt(Op0C))) { in FoldShiftByConstant()
511 if (canShiftBinOpWithConstantRHS(I, Op0BO, *Op0C)) { in FoldShiftByConstant()
528 match(Op0BO->getOperand(0), m_APInt(Op0C))) { in FoldShiftByConstant()
DInstCombineAddSub.cpp1663 const APInt *Op0C; in visitSub() local
1664 if (match(Op0, m_APInt(Op0C))) { in visitSub()
1669 if (Op0C->isNullValue()) { in visitSub()
1702 if (Op0C->isMask()) { in visitSub()
1704 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-7.0/llvm/lib/Analysis/
DConstantFolding.cpp2226 ConstantFP *Op0C = dyn_cast<ConstantFP>(CS.getArgOperand(0)); in isMathLibCallNoop() local
2228 if (Op0C && Op1C) { in isMathLibCallNoop()
2229 const APFloat &Op0 = Op0C->getValueAPF(); in isMathLibCallNoop()
2238 Type *Ty = Op0C->getType(); in isMathLibCallNoop()
2241 double Op0V = getValueAsDouble(Op0C); in isMathLibCallNoop()
DValueTracking.cpp2551 if (Constant *Op0C = dyn_cast<Constant>(Op0)) in ComputeMultiple() local
2553 if (Op0C->getType()->getPrimitiveSizeInBits() < in ComputeMultiple()
2555 Op0C = ConstantExpr::getZExt(Op0C, MulC->getType()); in ComputeMultiple()
2556 if (Op0C->getType()->getPrimitiveSizeInBits() > in ComputeMultiple()
2558 MulC = ConstantExpr::getZExt(MulC, Op0C->getType()); in ComputeMultiple()
2561 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()