Home
last modified time | relevance | path

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

/external/clang/lib/ARCMigrate/
DTransRetainReleaseDealloc.cpp221 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in isPlusOneAssignToVar() local
222 return (RefD == getReferencedDecl(Bop->getLHS())) && isPlusOneAssign(Bop); in isPlusOneAssignToVar()
/external/clang/lib/Analysis/
DCFG.cpp869 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(S)) { in tryEvaluateBool() local
870 if (Bop->isLogicalOp()) { in tryEvaluateBool()
882 switch (Bop->getOpcode()) { in tryEvaluateBool()
891 if (Bop->getLHS()->EvaluateAsInt(IntVal, *Context)) { in tryEvaluateBool()
896 if (Bop->getRHS()->EvaluateAsInt(IntVal, *Context)) { in tryEvaluateBool()
912 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(E)) { in evaluateAsBooleanConditionNoCache() local
913 if (Bop->isLogicalOp()) { in evaluateAsBooleanConditionNoCache()
914 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache()
918 if (LHS.isTrue() == (Bop->getOpcode() == BO_LOr)) in evaluateAsBooleanConditionNoCache()
921 TryResult RHS = tryEvaluateBool(Bop->getRHS()); in evaluateAsBooleanConditionNoCache()
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DInstructions.cpp1906 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNeg() local
1907 if (Bop->getOpcode() == Instruction::Sub) in isNeg()
1908 if (Constant* C = dyn_cast<Constant>(Bop->getOperand(0))) in isNeg()
1914 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isFNeg() local
1915 if (Bop->getOpcode() == Instruction::FSub) in isFNeg()
1916 if (Constant* C = dyn_cast<Constant>(Bop->getOperand(0))) in isFNeg()
1922 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNot() local
1923 return (Bop->getOpcode() == Instruction::Xor && in isNot()
1924 (isConstantAllOnes(Bop->getOperand(1)) || in isNot()
1925 isConstantAllOnes(Bop->getOperand(0)))); in isNot()
/external/clang/lib/Sema/
DSemaExpr.cpp11032 BinaryOperator *Bop) { in EmitDiagnosticForLogicalAndInLogicalOr() argument
11033 assert(Bop->getOpcode() == BO_LAnd); in EmitDiagnosticForLogicalAndInLogicalOr()
11034 Self.Diag(Bop->getOperatorLoc(), diag::warn_logical_and_in_logical_or) in EmitDiagnosticForLogicalAndInLogicalOr()
11035 << Bop->getSourceRange() << OpLoc; in EmitDiagnosticForLogicalAndInLogicalOr()
11036 SuggestParentheses(Self, Bop->getOperatorLoc(), in EmitDiagnosticForLogicalAndInLogicalOr()
11038 << Bop->getOpcodeStr(), in EmitDiagnosticForLogicalAndInLogicalOr()
11039 Bop->getSourceRange()); in EmitDiagnosticForLogicalAndInLogicalOr()
11061 if (BinaryOperator *Bop = dyn_cast<BinaryOperator>(LHSExpr)) { in DiagnoseLogicalAndInLogicalOrLHS() local
11062 if (Bop->getOpcode() == BO_LAnd) { in DiagnoseLogicalAndInLogicalOrLHS()
11067 if (!EvaluatesAsTrue(S, Bop->getLHS())) in DiagnoseLogicalAndInLogicalOrLHS()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DInstructions.cpp2079 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNeg() local
2080 if (Bop->getOpcode() == Instruction::Sub) in isNeg()
2081 if (Constant *C = dyn_cast<Constant>(Bop->getOperand(0))) in isNeg()
2087 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isFNeg() local
2088 if (Bop->getOpcode() == Instruction::FSub) in isFNeg()
2089 if (Constant *C = dyn_cast<Constant>(Bop->getOperand(0))) { in isFNeg()
2098 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNot() local
2099 return (Bop->getOpcode() == Instruction::Xor && in isNot()
2100 (isConstantAllOnes(Bop->getOperand(1)) || in isNot()
2101 isConstantAllOnes(Bop->getOperand(0)))); in isNot()
/external/llvm/lib/IR/
DInstructions.cpp2234 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNeg() local
2235 if (Bop->getOpcode() == Instruction::Sub) in isNeg()
2236 if (Constant *C = dyn_cast<Constant>(Bop->getOperand(0))) in isNeg()
2242 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isFNeg() local
2243 if (Bop->getOpcode() == Instruction::FSub) in isFNeg()
2244 if (Constant *C = dyn_cast<Constant>(Bop->getOperand(0))) { in isFNeg()
2253 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(V)) in isNot() local
2254 return (Bop->getOpcode() == Instruction::Xor && in isNot()
2255 (isConstantAllOnes(Bop->getOperand(1)) || in isNot()
2256 isConstantAllOnes(Bop->getOperand(0)))); in isNot()
/external/clang/lib/AST/
DExprConstant.cpp7419 if (const BinaryOperator *Bop = dyn_cast<BinaryOperator>(job.E)) { in process() local
7420 if (shouldEnqueue(Bop)) { in process()
7422 enqueue(Bop->getLHS()); in process()
7433 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local
7435 if (!VisitBinOpLHSOnly(Result, Bop, SuppressRHSDiags)) { in process()
7443 enqueue(Bop->getRHS()); in process()
7448 const BinaryOperator *Bop = cast<BinaryOperator>(job.E); in process() local
7451 Result.Failed = !VisitBinOp(job.LHSResult, RHS, Bop, Result.Val); in process()