Home
last modified time | relevance | path

Searched refs:RHSExpr (Results 1 – 11 of 11) sorted by relevance

/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DNaryReassociate.cpp486 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateBinaryOp() local
487 if (BExpr != RHSExpr) { in tryReassociateBinaryOp()
489 tryReassociatedBinaryOp(getBinarySCEV(I, AExpr, RHSExpr), B, I)) in tryReassociateBinaryOp()
492 if (AExpr != RHSExpr) { in tryReassociateBinaryOp()
494 tryReassociatedBinaryOp(getBinarySCEV(I, BExpr, RHSExpr), A, I)) in tryReassociateBinaryOp()
644 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateMinOrMax() local
646 if (BExpr != RHSExpr) { in tryReassociateMinOrMax()
648 if (auto *NewMinMax = tryCombination(A, AExpr, RHS, RHSExpr, B, BExpr)) in tryReassociateMinOrMax()
652 if (AExpr != RHSExpr) { in tryReassociateMinOrMax()
654 if (auto *NewMinMax = tryCombination(RHS, RHSExpr, B, BExpr, A, AExpr)) in tryReassociateMinOrMax()
/llvm-project-15.0.7/clang/include/clang/AST/
H A DAPValue.h296 const AddrLabelExpr* RHSExpr;
354 APValue(const AddrLabelExpr* LHSExpr, const AddrLabelExpr* RHSExpr)
356 MakeAddrLabelDiff(); setAddrLabelDiff(LHSExpr, RHSExpr);
577 return ((const AddrLabelDiffData *)(const char *)&Data)->RHSExpr;
618 const AddrLabelExpr* RHSExpr) {
620 ((AddrLabelDiffData *)(char *)&Data)->RHSExpr = RHSExpr;
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DBranchCloneCheck.cpp27 const auto *RHSExpr = llvm::cast<Expr>(RHS); in areStatementsIdentical() local
28 if (LHSExpr->containsErrors() && RHSExpr->containsErrors()) { in areStatementsIdentical()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaExpr.cpp8120 NullExpr = RHSExpr; in DiagnoseConditionalForNull()
8172 Expr *RHSExpr = RHS.get(); in checkConditionalVoidType() local
9137 RHSExpr = RHSResult.get(); in ActOnConditionalOp()
10564 *RHSExpr = ImpCastExprToType(RHSExpr->get(), LHSType, CK_BitCast); in CheckVectorOperands()
11059 Expr* IndexExpr = RHSExpr; in diagnoseStringPlusInt()
11075 if (IndexExpr == RHSExpr) { in diagnoseStringPlusInt()
11094 StringRefExpr = RHSExpr; in diagnoseStringPlusChar()
14655 RHSExpr = RHSExpr->IgnoreParenImpCasts(); in DiagnoseSelfAssignment()
14838 RHSExpr->getBeginLoc(), RHSExpr->getBeginLoc(), RHSExpr->getEndLoc()); in CreateBuiltinBinOp()
14845 RHSExpr = Init.get(); in CreateBuiltinBinOp()
[all …]
H A DSemaChecking.cpp16863 void Sema::DiagnoseSelfMove(const Expr *LHSExpr, const Expr *RHSExpr, in DiagnoseSelfMove() argument
16873 RHSExpr = RHSExpr->IgnoreParenImpCasts(); in DiagnoseSelfMove()
16876 const CallExpr *CE = dyn_cast<CallExpr>(RHSExpr); in DiagnoseSelfMove()
16885 RHSExpr = CE->getArg(0); in DiagnoseSelfMove()
16888 const DeclRefExpr *RHSDeclRef = dyn_cast<DeclRefExpr>(RHSExpr); in DiagnoseSelfMove()
16900 << RHSExpr->getSourceRange(); in DiagnoseSelfMove()
16915 const Expr *RHSBase = RHSExpr; in DiagnoseSelfMove()
16917 const MemberExpr *RHSME = dyn_cast<MemberExpr>(RHSExpr); in DiagnoseSelfMove()
16943 << RHSExpr->getSourceRange(); in DiagnoseSelfMove()
16950 << RHSExpr->getSourceRange(); in DiagnoseSelfMove()
/llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp56 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() local
59 evalComplexExpr(evalSimpleExpr(RHSExpr, OutsideLoad), OutsideLoad); in evaluate()
63 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate()
/llvm-project-15.0.7/clang/lib/Analysis/
H A DCFG.cpp926 const Expr *RHSExpr = B->getRHS()->IgnoreParens(); in checkIncorrectRelationalOperator() local
929 const Expr *BoolExpr = RHSExpr; in checkIncorrectRelationalOperator()
932 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectRelationalOperator()
965 const Expr *RHSExpr = B->getRHS()->IgnoreParens(); in checkIncorrectEqualityOperator() local
968 const Expr *BoolExpr = RHSExpr; in checkIncorrectEqualityOperator()
971 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectEqualityOperator()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprConstant.cpp2138 const AddrLabelExpr *RHSExpr = Value.getAddrLabelDiffRHS(); in tryEmitPrivate() local
2140 llvm::Constant *RHS = tryEmitPrivate(RHSExpr, RHSExpr->getType()); in tryEmitPrivate()
H A DCGOpenMPRuntime.cpp5634 const Expr *RHSExpr = UpExpr; in emitReduction() local
5635 if (RHSExpr) { in emitReduction()
5638 RHSExpr->IgnoreParenImpCasts())) { in emitReduction()
5641 RHSExpr = ACO->getCond(); in emitReduction()
5644 dyn_cast<BinaryOperator>(RHSExpr->IgnoreParenImpCasts())) { in emitReduction()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DSema.h5183 void DiagnoseSelfMove(const Expr *LHSExpr, const Expr *RHSExpr,
5778 tok::TokenKind Kind, Expr *LHSExpr, Expr *RHSExpr);
5780 BinaryOperatorKind Opc, Expr *LHSExpr, Expr *RHSExpr);
5782 Expr *LHSExpr, Expr *RHSExpr);
5792 Expr *CondExpr, Expr *LHSExpr, Expr *RHSExpr);
5832 Expr *RHSExpr, SourceLocation RPLoc);
12224 bool DiagnoseConditionalForNull(Expr *LHSExpr, Expr *RHSExpr,
/llvm-project-15.0.7/clang/lib/AST/
H A DExprConstant.cpp12661 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() local
12662 if (!LHSExpr || !RHSExpr) in VisitBinOp()
12665 const AddrLabelExpr *RHSAddrExpr = dyn_cast<AddrLabelExpr>(RHSExpr); in VisitBinOp()
13172 const Expr *RHSExpr = RHSValue.Base.dyn_cast<const Expr *>(); in VisitBinaryOperator() local
13173 if (!LHSExpr || !RHSExpr) in VisitBinaryOperator()
13176 const AddrLabelExpr *RHSAddrExpr = dyn_cast<AddrLabelExpr>(RHSExpr); in VisitBinaryOperator()