Searched refs:Bop (Results 1 – 4 of 4) sorted by relevance
454 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in tryEvaluateBool() local455 if (Bop->isLogicalOp()) { in tryEvaluateBool()473 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(E)) { in evaluateAsBooleanConditionNoCache() local474 if (Bop->isLogicalOp()) { in evaluateAsBooleanConditionNoCache()475 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache()479 if (LHS.isTrue() == (Bop->getOpcode() == BO_LOr)) in evaluateAsBooleanConditionNoCache()482 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache()484 if (Bop->getOpcode() == BO_LOr) in evaluateAsBooleanConditionNoCache()490 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache()494 if (RHS.isTrue() == (Bop->getOpcode() == BO_LOr)) in evaluateAsBooleanConditionNoCache()
1914 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNeg() local1915 if (Bop->getOpcode() == Instruction::Sub) in isNeg()1916 if (Constant* C = dyn_cast<Constant>(Bop->getOperand(0))) in isNeg()1922 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isFNeg() local1923 if (Bop->getOpcode() == Instruction::FSub) in isFNeg()1924 if (Constant* C = dyn_cast<Constant>(Bop->getOperand(0))) in isFNeg()1930 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNot() local1931 return (Bop->getOpcode() == Instruction::Xor && in isNot()1932 (isConstantAllOnes(Bop->getOperand(1)) || in isNot()1933 isConstantAllOnes(Bop->getOperand(0)))); in isNot()
8078 BinaryOperator *Bop) { in EmitDiagnosticForBitwiseAndInBitwiseOr() argument8079 assert(Bop->getOpcode() == BO_And); in EmitDiagnosticForBitwiseAndInBitwiseOr()8080 Self.Diag(Bop->getOperatorLoc(), diag::warn_bitwise_and_in_bitwise_or) in EmitDiagnosticForBitwiseAndInBitwiseOr()8081 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForBitwiseAndInBitwiseOr()8082 SuggestParentheses(Self, Bop->getOperatorLoc(), in EmitDiagnosticForBitwiseAndInBitwiseOr()8084 Bop->getSourceRange()); in EmitDiagnosticForBitwiseAndInBitwiseOr()8092 BinaryOperator *Bop) { in EmitDiagnosticForLogicalAndInLogicalOr() argument8093 assert(Bop->getOpcode() == BO_LAnd); in EmitDiagnosticForLogicalAndInLogicalOr()8094 Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or) in EmitDiagnosticForLogicalAndInLogicalOr()8095 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForLogicalAndInLogicalOr()[all …]
4804 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(job.E)) { in process() local4805 if (shouldEnqueue(Bop)) { in process()4807 enqueue(Bop->getLHS()); in process()4818 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local4820 if (!VisitBinOpLHSOnly(Result, Bop, SuppressRHSDiags)) { in process()4828 enqueue(Bop->getRHS()); in process()4833 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local4836 Result.Failed = !VisitBinOp(job.LHSResult, RHS, Bop, Result.Val); in process()