Home
last modified time | relevance | path

Searched refs:BinaryOperatorKind (Results 1 – 25 of 40) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
H A DUndefResultChecker.cpp119 if ((B->getOpcode() == BinaryOperatorKind::BO_Shl || in checkPostStmt()
120 B->getOpcode() == BinaryOperatorKind::BO_Shr) && in checkPostStmt()
123 << ((B->getOpcode() == BinaryOperatorKind::BO_Shl) ? "left" in checkPostStmt()
127 } else if ((B->getOpcode() == BinaryOperatorKind::BO_Shl || in checkPostStmt()
128 B->getOpcode() == BinaryOperatorKind::BO_Shr) && in checkPostStmt()
132 << ((B->getOpcode() == BinaryOperatorKind::BO_Shl) ? "left" in checkPostStmt()
149 } else if (B->getOpcode() == BinaryOperatorKind::BO_Shl && in checkPostStmt()
154 } else if (B->getOpcode() == BinaryOperatorKind::BO_Shl && in checkPostStmt()
H A DIterator.h156 bool isAccessOperator(BinaryOperatorKind OK);
159 bool isDereferenceOperator(BinaryOperatorKind OK);
165 bool isRandomIncrOrDecrOperator(BinaryOperatorKind OK);
H A DIterator.cpp136 bool isAccessOperator(BinaryOperatorKind OK) { in isAccessOperator()
149 bool isDereferenceOperator(BinaryOperatorKind OK) { in isDereferenceOperator()
174 bool isRandomIncrOrDecrOperator(BinaryOperatorKind OK) { in isRandomIncrOrDecrOperator()
H A DMallocOverflowSecurityChecker.cpp60 static inline bool EvaluatesToZero(APSInt &Val, BinaryOperatorKind op) { in EvaluatesToZero()
82 BinaryOperatorKind opc = binop->getOpcode(); in CheckMallocArgument()
H A DInvalidatedIteratorChecker.cpp92 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DIteratorModeling.cpp162 bool isSimpleComparisonOperator(BinaryOperatorKind OK);
266 const BinaryOperatorKind OK = BO->getOpcode(); in checkPostStmt()
774 bool isSimpleComparisonOperator(BinaryOperatorKind OK) { in isSimpleComparisonOperator()
H A DPointerArithChecker.cpp319 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt()
H A DIteratorRangeChecker.cpp165 BinaryOperatorKind OK = BO->getOpcode(); in checkPreStmt()
H A DIvarInvalidationChecker.cpp673 BinaryOperatorKind Opcode = BO->getOpcode(); in VisitBinaryOperator()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DOperationKinds.h25 enum BinaryOperatorKind { enum
H A DExprCXX.h307 BinaryOperatorKind Opcode;
322 BinaryOperatorKind getOperator() const { return getDecomposedForm().Opcode; } in getOperator()
323 BinaryOperatorKind getOpcode() const { return getOperator(); } in getOpcode()
324 static StringRef getOpcodeStr(BinaryOperatorKind Op) { in getOpcodeStr()
4589 BinaryOperatorKind Opcode;
4593 SourceLocation LParenLoc, Expr *LHS, BinaryOperatorKind Opcode, in CXXFoldExpr()
4630 BinaryOperatorKind getOperator() const { return Opcode; } in getOperator()
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaPseudoObject.cpp211 BinaryOperatorKind opcode,
284 BinaryOperatorKind opcode,
323 BinaryOperatorKind opcode,
425 BinaryOperatorKind opcode, in buildAssignmentOperation()
459 BinaryOperatorKind nonCompound = in buildAssignmentOperation()
886 BinaryOperatorKind opcode, in buildAssignmentOperation()
994 BinaryOperatorKind opcode, in buildAssignmentOperation()
1583 BinaryOperatorKind opcode, in checkPseudoObjectAssignment()
H A DSemaTemplateVariadic.cpp1227 BinaryOperatorKind Opc = ConvertTokenKindToBinaryOpcode(Operator); in ActOnCXXFoldExpr()
1252 BinaryOperatorKind Operator, in BuildCXXFoldExpr()
1262 BinaryOperatorKind Operator) { in BuildEmptyCXXFoldExpr()
H A DSemaExpr.cpp8539 static bool IsArithmeticOp(BinaryOperatorKind Opc) { in IsArithmeticOp()
8554 static bool IsArithmeticBinaryExpr(Expr *E, BinaryOperatorKind *Opcode, in IsArithmeticBinaryExpr()
8586 BinaryOperatorKind OpKind = BinaryOperator::getOverloadedOpcode(OO); in IsArithmeticBinaryExpr()
8626 BinaryOperatorKind CondOpcode; in DiagnoseConditionalPrecedence()
10600 SourceLocation Loc, BinaryOperatorKind Opc, in CheckAdditionOperands()
10830 SourceLocation Loc, BinaryOperatorKind Opc, in DiagnoseBadShiftValues()
11012 SourceLocation Loc, BinaryOperatorKind Opc, in CheckShiftOperands()
11275 BinaryOperatorKind Opc) { in diagnoseLogicalNotOnLHSofCheck()
11331 BinaryOperatorKind Opc) { in diagnoseTautologicalComparison()
11621 BinaryOperatorKind Opc) { in checkArithmeticOrEnumeralCompare()
[all …]
H A DSemaOpenMP.cpp126 using BOKPtrType = llvm::PointerEmbeddedInt<BinaryOperatorKind, 16>;
130 void set(BinaryOperatorKind BO, SourceRange RR) { in set()
528 BinaryOperatorKind BOK);
537 BinaryOperatorKind &BOK,
1427 BinaryOperatorKind BOK) { in addTaskgroupReductionData()
1479 const ValueDecl *D, SourceRange &SR, BinaryOperatorKind &BOK, in getTopMostTaskgroupReductionData()
8434 BinaryOperatorKind BOK = (OOK == OO_Plus) ? BO_Add : BO_Sub; in buildOrderedLoopData()
10419 BinaryOperatorKind Op;
16318 static BinaryOperatorKind
16319 getRelatedCompoundReductionOp(BinaryOperatorKind BOK) { in getRelatedCompoundReductionOp()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DRangeConstraintManager.cpp84 static size_t getIndexFromOp(BinaryOperatorKind OP) { in getIndexFromOp()
91 static BinaryOperatorKind getOpFromIndex(size_t Index) { in getOpFromIndex()
92 return static_cast<BinaryOperatorKind>(Index + BO_LT); in getOpFromIndex()
95 TriStateKind getCmpOpState(BinaryOperatorKind CurrentOP, in getCmpOpState()
96 BinaryOperatorKind QueriedOP) const { in getCmpOpState()
100 TriStateKind getCmpOpStateForUnknownX2(BinaryOperatorKind CurrentOP) const { in getCmpOpStateForUnknownX2()
1108 BinaryOperatorKind CurrentOP = SSE->getOpcode(); in getRangeForComparisonSymbol()
1129 BinaryOperatorKind QueriedOP = OperatorRelationsTable::getOpFromIndex(i); in getRangeForComparisonSymbol()
1136 const BinaryOperatorKind ROP = in getRangeForComparisonSymbol()
H A DCheckerContext.cpp101 static bool evalComparison(SVal LHSVal, BinaryOperatorKind ComparisonOp, in evalComparison()
H A DExplodedGraph.cpp363 BinaryOperatorKind Op = cast<BinaryOperator>(S)->getOpcode(); in getNextStmtForDiagnostics()
H A DSValBuilder.cpp426 if (op == BinaryOperatorKind::BO_Cmp) { in evalBinOp()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/Sema/
H A DSema.h3842 BinaryOperatorKind Opc,
5442 static BinaryOperatorKind ConvertTokenKindToBinaryOpcode(tok::TokenKind Kind);
5448 BinaryOperatorKind Opc, Expr *LHSExpr, Expr *RHSExpr);
5449 ExprResult CreateBuiltinBinOp(SourceLocation OpLoc, BinaryOperatorKind Opc,
5451 void LookupBinOp(Scope *S, SourceLocation OpLoc, BinaryOperatorKind Opc,
6103 BinaryOperatorKind Operator,
6108 BinaryOperatorKind Operator);
11561 BinaryOperatorKind Opc, QualType* CompLHSTy = nullptr);
11567 BinaryOperatorKind Opc, bool IsCompAssign = false);
11571 BinaryOperatorKind Opc);
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DCFG.cpp113 static std::tuple<const Expr *, BinaryOperatorKind, const Expr *>
115 BinaryOperatorKind Op = B->getOpcode(); in tryNormalizeBinaryOperator()
943 BinaryOperatorKind Bok = B->getOpcode(); in checkIncorrectRelationalOperator()
1008 TryResult analyzeLogicOperatorCondition(BinaryOperatorKind Relation, in analyzeLogicOperatorCondition()
1048 BinaryOperatorKind BO1; in checkIncorrectLogicOperator()
1056 BinaryOperatorKind BO2; in checkIncorrectLogicOperator()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h2004 inline Optional<BinaryOperatorKind>
2010 inline Optional<BinaryOperatorKind>
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DStmtProfile.cpp1530 BinaryOperatorKind &BinaryOp) { in DecodeOperatorCall()
1742 BinaryOperatorKind BinaryOp = BO_Comma; in VisitCXXOperatorCallExpr()
H A DExprConstant.cpp2731 BinaryOperatorKind Opcode, APSInt RHS, in handleIntIntBinOp()
2833 APFloat &LHS, BinaryOperatorKind Opcode, in handleFloatFloatBinOp()
2873 BinaryOperatorKind Opcode, in handleLogicalOpForVector()
2885 BinaryOperatorKind Opcode, in handleLogicalOpForVector()
2898 BinaryOperatorKind Opcode, in handleLogicalOpForVector()
2911 handleCompareOpForVectorHelper(const APTy &LHSValue, BinaryOperatorKind Opcode, in handleCompareOpForVectorHelper()
2940 BinaryOperatorKind Opcode, in handleCompareOpForVector()
2953 BinaryOperatorKind Opcode, in handleVectorVectorBinOp()
4284 BinaryOperatorKind Opcode;
4408 BinaryOperatorKind Opcode, in handleCompoundAssignment()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGExprComplex.cpp1163 static CompoundFunc getComplexOp(BinaryOperatorKind Op) { in getComplexOp()

12