Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DNaryReassociate.cpp487 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateBinaryOp() local
488 if (BExpr != RHSExpr) { in tryReassociateBinaryOp()
490 tryReassociatedBinaryOp(getBinarySCEV(I, AExpr, RHSExpr), B, I)) in tryReassociateBinaryOp()
493 if (AExpr != RHSExpr) { in tryReassociateBinaryOp()
495 tryReassociatedBinaryOp(getBinarySCEV(I, BExpr, RHSExpr), A, I)) in tryReassociateBinaryOp()
645 const SCEV *RHSExpr = SE->getSCEV(RHS); in tryReassociateMinOrMax() local
647 if (BExpr != RHSExpr) { in tryReassociateMinOrMax()
649 if (auto *NewMinMax = tryCombination(A, AExpr, RHS, RHSExpr, B, BExpr)) in tryReassociateMinOrMax()
653 if (AExpr != RHSExpr) { in tryReassociateMinOrMax()
655 if (auto *NewMinMax = tryCombination(RHS, RHSExpr, B, BExpr, A, AExpr)) in tryReassociateMinOrMax()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DAPValue.h304 const AddrLabelExpr* RHSExpr;
362 APValue(const AddrLabelExpr* LHSExpr, const AddrLabelExpr* RHSExpr)
364 MakeAddrLabelDiff(); setAddrLabelDiff(LHSExpr, RHSExpr);
585 return ((const AddrLabelDiffData *)(const char *)&Data)->RHSExpr;
626 const AddrLabelExpr* RHSExpr) {
628 ((AddrLabelDiffData *)(char *)&Data)->RHSExpr = RHSExpr;
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaExpr.cpp8701 NullExpr = RHSExpr; in DiagnoseConditionalForNull()
9723 RHSExpr = RHSResult.get(); in ActOnConditionalOp()
10084 ExprResult RHSPtr = &RHSExpr; in CheckAssignmentConstraints()
11259 *RHSExpr = ImpCastExprToType(RHSExpr->get(), LHSType, CK_BitCast); in CheckVectorOperands()
11754 Expr* IndexExpr = RHSExpr; in diagnoseStringPlusInt()
11770 if (IndexExpr == RHSExpr) { in diagnoseStringPlusInt()
11789 StringRefExpr = RHSExpr; in diagnoseStringPlusChar()
15421 RHSExpr = RHSExpr->IgnoreParenImpCasts(); in DiagnoseSelfAssignment()
15604 RHSExpr->getBeginLoc(), RHSExpr->getBeginLoc(), RHSExpr->getEndLoc()); in CreateBuiltinBinOp()
15611 RHSExpr = Init.get(); in CreateBuiltinBinOp()
[all …]
H A DSemaChecking.cpp18938 void Sema::DiagnoseSelfMove(const Expr *LHSExpr, const Expr *RHSExpr, in DiagnoseSelfMove() argument
18948 RHSExpr = RHSExpr->IgnoreParenImpCasts(); in DiagnoseSelfMove()
18951 const CallExpr *CE = dyn_cast<CallExpr>(RHSExpr); in DiagnoseSelfMove()
18960 RHSExpr = CE->getArg(0); in DiagnoseSelfMove()
18963 const DeclRefExpr *RHSDeclRef = dyn_cast<DeclRefExpr>(RHSExpr); in DiagnoseSelfMove()
18975 << RHSExpr->getSourceRange(); in DiagnoseSelfMove()
18990 const Expr *RHSBase = RHSExpr; in DiagnoseSelfMove()
18992 const MemberExpr *RHSME = dyn_cast<MemberExpr>(RHSExpr); in DiagnoseSelfMove()
19018 << RHSExpr->getSourceRange(); in DiagnoseSelfMove()
19025 << RHSExpr->getSourceRange(); in DiagnoseSelfMove()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldChecker.cpp76 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() local
79 evalComplexExpr(evalSimpleExpr(RHSExpr, OutsideLoad), OutsideLoad); in evaluate()
83 return handleError(Expr, unexpectedToken(RemainingExpr, RHSExpr, "")); in evaluate()
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DCFG.cpp927 const Expr *RHSExpr = B->getRHS()->IgnoreParens(); in checkIncorrectRelationalOperator() local
930 const Expr *BoolExpr = RHSExpr; in checkIncorrectRelationalOperator()
933 IntLiteral = dyn_cast<IntegerLiteral>(RHSExpr); in checkIncorrectRelationalOperator()
966 const Expr *RHSExpr = B->getRHS()->IgnoreParens(); in checkIncorrectEqualityOperator() local
970 const Expr *BoolExpr = RHSExpr; in checkIncorrectEqualityOperator()
973 IntLiteral1 = getIntegerLiteralSubexpressionValue(RHSExpr); in checkIncorrectEqualityOperator()
1087 const Expr *RHSExpr = B->getRHS()->IgnoreParens(); in checkIncorrectLogicOperator() local
1103 TryResult Result = CheckLogicalOpWithNegatedVariable(LHSExpr, RHSExpr); in checkIncorrectLogicOperator()
1106 Result = CheckLogicalOpWithNegatedVariable(RHSExpr, LHSExpr); in checkIncorrectLogicOperator()
1111 const auto *RHS = dyn_cast<BinaryOperator>(RHSExpr); in checkIncorrectLogicOperator()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCGExprConstant.cpp2156 const AddrLabelExpr *RHSExpr = Value.getAddrLabelDiffRHS(); in tryEmitPrivate() local
2158 llvm::Constant *RHS = tryEmitPrivate(RHSExpr, RHSExpr->getType()); in tryEmitPrivate()
H A DCGOpenMPRuntime.cpp5118 const Expr *RHSExpr = UpExpr; in emitReduction() local
5119 if (RHSExpr) { in emitReduction()
5122 RHSExpr->IgnoreParenImpCasts())) { in emitReduction()
5125 RHSExpr = ACO->getCond(); in emitReduction()
5128 dyn_cast<BinaryOperator>(RHSExpr->IgnoreParenImpCasts())) { in emitReduction()
/freebsd/contrib/llvm-project/clang/include/clang/Sema/
H A DSema.h5438 void DiagnoseSelfMove(const Expr *LHSExpr, const Expr *RHSExpr,
6075 tok::TokenKind Kind, Expr *LHSExpr, Expr *RHSExpr);
6077 BinaryOperatorKind Opc, Expr *LHSExpr, Expr *RHSExpr);
6079 Expr *LHSExpr, Expr *RHSExpr);
6089 Expr *CondExpr, Expr *LHSExpr, Expr *RHSExpr);
6129 Expr *RHSExpr, SourceLocation RPLoc);
13011 bool DiagnoseConditionalForNull(const Expr *LHSExpr, const Expr *RHSExpr,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DExprConstant.cpp13068 const Expr *RHSExpr = RHSVal.getLValueBase().dyn_cast<const Expr*>(); in VisitBinOp() local
13069 if (!LHSExpr || !RHSExpr) in VisitBinOp()
13072 const AddrLabelExpr *RHSAddrExpr = dyn_cast<AddrLabelExpr>(RHSExpr); in VisitBinOp()
13615 const Expr *RHSExpr = RHSValue.Base.dyn_cast<const Expr *>(); in VisitBinaryOperator() local
13616 if (!LHSExpr || !RHSExpr) in VisitBinaryOperator()
13619 const AddrLabelExpr *RHSAddrExpr = dyn_cast<AddrLabelExpr>(RHSExpr); in VisitBinaryOperator()