Home
last modified time | relevance | path

Searched refs:Bop (Results 1 – 4 of 4) sorted by relevance

/external/clang/lib/Analysis/
DCFG.cpp454 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in tryEvaluateBool() local
455 if (Bop->isLogicalOp()) { in tryEvaluateBool()
473 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(E)) { in evaluateAsBooleanConditionNoCache() local
474 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()
/external/llvm/lib/VMCore/
DInstructions.cpp1914 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNeg() local
1915 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() local
1923 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() local
1931 return (Bop->getOpcode() == Instruction::Xor && in isNot()
1932 (isConstantAllOnes(Bop->getOperand(1)) || in isNot()
1933 isConstantAllOnes(Bop->getOperand(0)))); in isNot()
/external/clang/lib/Sema/
DSemaExpr.cpp8078 BinaryOperator *Bop) { in EmitDiagnosticForBitwiseAndInBitwiseOr() argument
8079 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() argument
8093 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 …]
/external/clang/lib/AST/
DExprConstant.cpp4804 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(job.E)) { in process() local
4805 if (shouldEnqueue(Bop)) { in process()
4807 enqueue(Bop->getLHS()); in process()
4818 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local
4820 if (!VisitBinOpLHSOnly(Result, Bop, SuppressRHSDiags)) { in process()
4828 enqueue(Bop->getRHS()); in process()
4833 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local
4836 Result.Failed = !VisitBinOp(job.LHSResult, RHS, Bop, Result.Val); in process()