| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | AssertSideEffectCheck.cpp | 46 OverloadedOperatorKind OpKind = OpCallExpr->getOperator(); in AST_MATCHER_P2() local 47 return OpKind == OO_Equal || OpKind == OO_PlusEqual || in AST_MATCHER_P2() 48 OpKind == OO_MinusEqual || OpKind == OO_StarEqual || in AST_MATCHER_P2() 49 OpKind == OO_SlashEqual || OpKind == OO_AmpEqual || in AST_MATCHER_P2() 50 OpKind == OO_PipeEqual || OpKind == OO_CaretEqual || in AST_MATCHER_P2() 51 OpKind == OO_LessLessEqual || OpKind == OO_GreaterGreaterEqual || in AST_MATCHER_P2() 52 OpKind == OO_PlusPlus || OpKind == OO_MinusMinus || in AST_MATCHER_P2() 53 OpKind == OO_PercentEqual || OpKind == OO_New || in AST_MATCHER_P2() 54 OpKind == OO_Delete || OpKind == OO_Array_New || in AST_MATCHER_P2() 55 OpKind == OO_Array_Delete; in AST_MATCHER_P2()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | MachineOperand.h | 77 unsigned OpKind : 8; 202 : OpKind(K), SubReg_TargetFlags(0) { in MachineOperand() 320 bool isReg() const { return OpKind == MO_Register; } in isReg() 322 bool isImm() const { return OpKind == MO_Immediate; } in isImm() 324 bool isCImm() const { return OpKind == MO_CImmediate; } in isCImm() 326 bool isFPImm() const { return OpKind == MO_FPImmediate; } in isFPImm() 330 bool isFI() const { return OpKind == MO_FrameIndex; } in isFI() 336 bool isJTI() const { return OpKind == MO_JumpTableIndex; } in isJTI() 348 bool isMetadata() const { return OpKind == MO_Metadata; } in isMetadata() 349 bool isMCSymbol() const { return OpKind == MO_MCSymbol; } in isMCSymbol() [all …]
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | FastISelEmitter.cpp | 88 class OpKind { class 93 OpKind() : Repr(OK_Invalid) {} in OpKind() function in __anon7553c2e00311::OperandsSignature::OpKind 98 static OpKind getReg() { OpKind K; K.Repr = OK_Reg; return K; } in getReg() 99 static OpKind getFP() { OpKind K; K.Repr = OK_FP; return K; } in getFP() 100 static OpKind getImm(unsigned V) { in getImm() 103 OpKind K; K.Repr = OK_Imm+V; return K; in getImm() 128 SmallVector<OpKind, 3> Operands; 195 Operands.push_back(OpKind::getImm(0)); in initialize() 200 Operands.push_back(OpKind::getFP()); in initialize() 243 Operands.push_back(OpKind::getFP()); in initialize() [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/ |
| H A D | RedundantExpressionCheck.cpp | 338 OverloadedOperatorKind OpKind) { in checkOpKind() argument 340 if (AsTExpr && getOp(AsTExpr) == OpKind) in checkOpKind() 351 OverloadedOperatorKind OpKind) { in collectOperands() argument 352 if (const auto *BinOp = checkOpKind<TExpr>(Part, OpKind)) { in collectOperands() 366 OverloadedOperatorKind OpKind, in hasSameOperatorParent() argument 377 if (checkOpKind<TExpr>(Parent, OpKind)) in hasSameOperatorParent() 390 const OverloadedOperatorKind OpKind = getOp(TheExpr); in markDuplicateOperands() local 391 if (OpKind == OO_None) in markDuplicateOperands() 396 if (!(checkOpKind<TExpr>(Operands.first, OpKind) || in markDuplicateOperands() 397 checkOpKind<TExpr>(Operands.second, OpKind))) in markDuplicateOperands() [all …]
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | PointerArithChecker.cpp | 319 BinaryOperatorKind OpKind = BOp->getOpcode(); in checkPreStmt() local 320 if (!BOp->isAdditiveOp() && OpKind != BO_AddAssign && OpKind != BO_SubAssign) in checkPreStmt()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineOperand.cpp | 159 OpKind = MO_Immediate; in ChangeToImmediate() 170 OpKind = MO_FPImmediate; in ChangeToFPImmediate() 182 OpKind = MO_ExternalSymbol; in ChangeToES() 195 OpKind = MO_GlobalAddress; in ChangeToGA() 207 OpKind = MO_MCSymbol; in ChangeToMCSymbol() 218 OpKind = MO_FrameIndex; in ChangeToFrameIndex() 230 OpKind = MO_TargetIndex; in ChangeToTargetIndex() 259 OpKind = MO_Register; in ChangeToRegister()
|
| /llvm-project-15.0.7/clang/lib/Parse/ |
| H A D | ParseExpr.cpp | 1997 tok::TokenKind OpKind = Tok.getKind(); in ParsePostfixExpressionSuffix() local 2004 if (OpKind == tok::lesslessless) { in ParsePostfixExpressionSuffix() 2056 if (OpKind == tok::l_paren || !LHS.isInvalid()) { in ParsePostfixExpressionSuffix() 2117 tok::TokenKind OpKind = Tok.getKind(); in ParsePostfixExpressionSuffix() local 2134 << OpKind << Base->getSourceRange() in ParsePostfixExpressionSuffix() 2140 OpKind, ObjectType, in ParsePostfixExpressionSuffix() 2161 OpKind == tok::arrow ? tok::period : tok::arrow; in ParsePostfixExpressionSuffix() 2180 getCurScope(), Base, CorrectedBase, OpLoc, OpKind == tok::arrow, in ParsePostfixExpressionSuffix() 2188 LHS = ParseCXXPseudoDestructor(LHS.get(), OpLoc, OpKind, SS, in ParsePostfixExpressionSuffix() 2202 if (getLangOpts().ObjC && OpKind == tok::period && in ParsePostfixExpressionSuffix() [all …]
|
| H A D | ParseExprCXX.cpp | 1705 tok::TokenKind OpKind, in ParseCXXPseudoDestructor() argument 1740 return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind, in ParseCXXPseudoDestructor() 1770 return Actions.ActOnPseudoDestructorExpr(getCurScope(), Base, OpLoc, OpKind, in ParseCXXPseudoDestructor() 2486 OverloadedOperatorKind OpKind = in ParseUnqualifiedIdTemplateId() local 2492 TemplateKWLoc, Id.StartLocation, TemplateII, OpKind, Template, TNK, in ParseUnqualifiedIdTemplateId()
|
| H A D | ParseTemplate.cpp | 1383 OverloadedOperatorKind OpKind = in AnnotateTemplateIdToken() local 1389 TemplateKWLoc, TemplateNameLoc, TemplateII, OpKind, Template, TNK, in AnnotateTemplateIdToken()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/AsmParser/ |
| H A D | X86AsmParser.cpp | 1114 unsigned ParseIntelInlineAsmOperator(unsigned OpKind); 1116 bool ParseMasmOperator(unsigned OpKind, int64_t &Val); 2040 if (unsigned OpKind = IdentifyIntelInlineAsmOperator(Identifier)) { in ParseIntelExpression() local 2041 if (int64_t Val = ParseIntelInlineAsmOperator(OpKind)) { in ParseIntelExpression() 2061 if (unsigned OpKind = IdentifyMasmOperator(Identifier)) { in ParseIntelExpression() local 2063 if (ParseMasmOperator(OpKind, Val)) in ParseIntelExpression() 2391 unsigned X86AsmParser::ParseIntelInlineAsmOperator(unsigned OpKind) { in ParseIntelInlineAsmOperator() argument 2410 switch(OpKind) { in ParseIntelInlineAsmOperator() 2436 bool X86AsmParser::ParseMasmOperator(unsigned OpKind, int64_t &Val) { in ParseMasmOperator() argument 2442 if (OpKind == MOK_SIZEOF || OpKind == MOK_TYPE) { in ParseMasmOperator() [all …]
|
| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExprCXX.cpp | 7501 if (OpKind == tok::arrow) in ActOnStartCXXMemberReference() 7513 if (OpKind == tok::arrow) { in ActOnStartCXXMemberReference() 7548 OpKind = tok::period; in ActOnStartCXXMemberReference() 7574 if (OpKind == tok::arrow) { in ActOnStartCXXMemberReference() 7640 if (OpKind == tok::arrow) { in CheckArrow() 7663 OpKind = tok::period; in CheckArrow() 7699 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in BuildPseudoDestructorExpr() 7740 OpKind = tok::arrow; in BuildPseudoDestructorExpr() 7823 if (CheckArrow(*this, ObjectType, Base, OpKind, OpLoc)) in ActOnPseudoDestructorExpr() 7947 return BuildPseudoDestructorExpr(Base, OpLoc, OpKind, SS, in ActOnPseudoDestructorExpr() [all …]
|
| H A D | SemaExprMember.cpp | 1714 tok::TokenKind OpKind, in ActOnMemberAccessExpr() argument 1737 bool IsArrow = (OpKind == tok::arrow); in ActOnMemberAccessExpr()
|
| H A D | SemaCodeComplete.cpp | 577 tok::TokenKind OpKind, in enterUnary() argument 582 Type = getPreferredTypeOfUnaryArg(S, this->get(OpLoc), OpKind); in enterUnary()
|
| H A D | SemaExpr.cpp | 8987 BinaryOperatorKind OpKind = BinaryOperator::getOverloadedOpcode(OO); in IsArithmeticBinaryExpr() local 8988 if (IsArithmeticOp(OpKind)) { in IsArithmeticBinaryExpr() 8989 *Opcode = OpKind; in IsArithmeticBinaryExpr()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | ExprCXX.cpp | 537 CXXOperatorCallExpr::CXXOperatorCallExpr(OverloadedOperatorKind OpKind, in CXXOperatorCallExpr() argument 545 CXXOperatorCallExprBits.OperatorKind = OpKind; 547 (CXXOperatorCallExprBits.OperatorKind == static_cast<unsigned>(OpKind)) && 559 OverloadedOperatorKind OpKind, Expr *Fn, in Create() argument 569 return new (Mem) CXXOperatorCallExpr(OpKind, Fn, Args, Ty, VK, OperatorLoc, in Create()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | SimplifyBooleanExprCheck.cpp | 74 static StringRef getOperatorName(OverloadedOperatorKind OpKind) { in getOperatorName() argument 76 if (Name.first == OpKind) in getOperatorName()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 319 void enterUnary(Sema &S, SourceLocation Tok, tok::TokenKind OpKind, 5671 tok::TokenKind OpKind, 6680 tok::TokenKind OpKind, 6686 tok::TokenKind OpKind, 6695 tok::TokenKind OpKind, 6704 tok::TokenKind OpKind,
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprCXX.h | 93 CXXOperatorCallExpr(OverloadedOperatorKind OpKind, Expr *Fn, 102 Create(const ASTContext &Ctx, OverloadedOperatorKind OpKind, Expr *Fn,
|
| /llvm-project-15.0.7/clang/include/clang/Parse/ |
| H A D | Parser.h | 1935 tok::TokenKind OpKind,
|