Searched refs:Bop (Results 1 – 5 of 5) sorted by relevance
/external/clang/lib/ARCMigrate/ |
D | TransRetainReleaseDealloc.cpp | 227 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in isPlusOneAssignToVar() local 228 if (RefD != getReferencedDecl(Bop->getLHS())) in isPlusOneAssignToVar() 230 if (isPlusOneAssign(Bop)) in isPlusOneAssignToVar()
|
/external/clang/lib/Analysis/ |
D | CFG.cpp | 496 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in tryEvaluateBool() local 497 if (Bop->isLogicalOp()) { in tryEvaluateBool() 509 switch (Bop->getOpcode()) { in tryEvaluateBool() 518 if (Bop->getLHS()->EvaluateAsInt(IntVal, *Context)) { in tryEvaluateBool() 523 if (Bop->getRHS()->EvaluateAsInt(IntVal, *Context)) { in tryEvaluateBool() 539 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(E)) { in evaluateAsBooleanConditionNoCache() local 540 if (Bop->isLogicalOp()) { in evaluateAsBooleanConditionNoCache() 541 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache() 545 if (LHS.isTrue() == (Bop->getOpcode() == BO_LOr)) in evaluateAsBooleanConditionNoCache() 548 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache() [all …]
|
/external/clang/lib/Sema/ |
D | SemaExpr.cpp | 9092 BinaryOperator *Bop) { in EmitDiagnosticForBitwiseAndInBitwiseOr() argument 9093 assert(Bop->getOpcode() == BO_And); in EmitDiagnosticForBitwiseAndInBitwiseOr() 9094 Self.Diag(Bop->getOperatorLoc(), diag::warn_bitwise_and_in_bitwise_or) in EmitDiagnosticForBitwiseAndInBitwiseOr() 9095 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForBitwiseAndInBitwiseOr() 9096 SuggestParentheses(Self, Bop->getOperatorLoc(), in EmitDiagnosticForBitwiseAndInBitwiseOr() 9098 << Bop->getOpcodeStr(), in EmitDiagnosticForBitwiseAndInBitwiseOr() 9099 Bop->getSourceRange()); in EmitDiagnosticForBitwiseAndInBitwiseOr() 9107 BinaryOperator *Bop) { in EmitDiagnosticForLogicalAndInLogicalOr() argument 9108 assert(Bop->getOpcode() == BO_LAnd); in EmitDiagnosticForLogicalAndInLogicalOr() 9109 Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or) in EmitDiagnosticForLogicalAndInLogicalOr() [all …]
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 1927 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNeg() local 1928 if (Bop->getOpcode() == Instruction::Sub) in isNeg() 1929 if (Constant* C = dyn_cast<Constant>(Bop->getOperand(0))) in isNeg() 1935 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isFNeg() local 1936 if (Bop->getOpcode() == Instruction::FSub) in isFNeg() 1937 if (Constant* C = dyn_cast<Constant>(Bop->getOperand(0))) { in isFNeg() 1946 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNot() local 1947 return (Bop->getOpcode() == Instruction::Xor && in isNot() 1948 (isConstantAllOnes(Bop->getOperand(1)) || in isNot() 1949 isConstantAllOnes(Bop->getOperand(0)))); in isNot()
|
/external/clang/lib/AST/ |
D | ExprConstant.cpp | 6352 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(job.E)) { in process() local 6353 if (shouldEnqueue(Bop)) { in process() 6355 enqueue(Bop->getLHS()); in process() 6366 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local 6368 if (!VisitBinOpLHSOnly(Result, Bop, SuppressRHSDiags)) { in process() 6376 enqueue(Bop->getRHS()); in process() 6381 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local 6384 Result.Failed = !VisitBinOp(job.LHSResult, RHS, Bop, Result.Val); in process()
|