/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | RangedConstraintManager.cpp | 41 return assumeSymRel(State, SIE->getLHS(), op, SIE->getRHS()); in assumeSym() 54 if (Loc::isLocType(SSE->getLHS()->getType()) && in assumeSym() 66 SymMgr.getSymSymExpr(SSE->getRHS(), BO_Sub, SSE->getLHS(), DiffTy); in assumeSym() 80 SymMgr.getSymSymExpr(SSE->getLHS(), BO_EQ, SSE->getRHS(), ExprType); in assumeSym() 223 Sym = SE->getLHS(); in computeAdjustment()
|
H A D | SymbolManager.cpp | 151 itr.push_back(cast<SymIntExpr>(SE)->getLHS()); in expand() 158 itr.push_back(x->getLHS()); in expand() 487 KnownLive = isLive(cast<SymIntExpr>(sym)->getLHS()); in isLive() 493 KnownLive = isLive(cast<SymSymExpr>(sym)->getLHS()) && in isLive()
|
H A D | BugReporterVisitors.cpp | 76 if (B->getLHS()->getType()->isPointerType()) { in peelOffPointerArithmetic() 77 return B->getLHS(); in peelOffPointerArithmetic() 119 E = B->getLHS(); in getDerefExpr() 335 N->getSVal(BO->getLHS()).getAsRegion())) in wasRegionOfInterestModifiedAt() 975 const MemRegion *R = N->getSVal(BO->getLHS()).getAsRegion(); in matchAssignment() 2612 SVal LHSV = RVState->getSVal(BO->getLHS(), RVNode->getLocationContext()); in handle() 2617 track(BO->getLHS()); in handle() 2622 track(BO->getLHS()); in handle() 2857 Cond = BO->getLHS(); in VisitTerminator() 3052 const auto *LhsME = dyn_cast<MemberExpr>(BExpr->getLHS()->IgnoreParenCasts()); in VisitTrueTest() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Lanai/AsmParser/ |
H A D | LanaiAsmParser.cpp | 242 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isHiImm16() 279 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16() 303 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm16Signed() 354 dyn_cast<LanaiMCExpr>(BinaryExpr->getLHS())) in isLoImm21() 357 dyn_cast<MCSymbolRefExpr>(BinaryExpr->getLHS())) in isLoImm21() 479 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addLoImm16Operands() 480 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addLoImm16Operands() 510 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addHiImm16Operands() 511 cast<LanaiMCExpr>(BinaryExpr->getLHS())->getKind() == in addHiImm16Operands() 549 assert(BinaryExpr && isa<LanaiMCExpr>(BinaryExpr->getLHS()) && in addLoImm21Operands() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | SMTConstraintManager.h | 176 LHS = getSymVal(State, SIE->getLHS()); in REGISTER_TRAIT_WITH_PROGRAMSTATE() 179 LHS = &ISE->getLHS(); in REGISTER_TRAIT_WITH_PROGRAMSTATE() 183 LHS = getSymVal(State, SSM->getLHS()); in REGISTER_TRAIT_WITH_PROGRAMSTATE() 283 return canReasonAbout(SVB.makeSymbolVal(SIE->getLHS())); in REGISTER_TRAIT_WITH_PROGRAMSTATE() 289 return canReasonAbout(SVB.makeSymbolVal(SSE->getLHS())) && in REGISTER_TRAIT_WITH_PROGRAMSTATE()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | MallocOverflowSecurityChecker.cpp | 91 const Expr *lhs = binop->getLHS(); in CheckMallocArgument() 200 const Expr *numerator = BOp->getLHS()->IgnoreParenImpCasts(); in CheckAssignmentExpr() 213 const Expr *lhs = AssignEx->getLHS(); in CheckAssignmentExpr() 231 const Expr * lhs = E->getLHS(); in VisitBinaryOperator()
|
H A D | InvalidatedIteratorChecker.cpp | 88 SVal LVal = State->getSVal(BO->getLHS(), C.getLocationContext()); in checkPreStmt() 98 SVal LVal = State->getSVal(ASE->getLHS(), C.getLocationContext()); in checkPreStmt()
|
H A D | PointerSubChecker.cpp | 112 SVal LV = C.getSVal(B->getLHS()); in checkPreStmt() 131 if (!checkArrayBounds(C, B->getLHS(), ElemLR, RR)) in checkPreStmt()
|
H A D | IdenticalExprChecker.cpp | 81 const Expr *LHS = B->getLHS(); in checkBitwiseOrLogicalOp() 96 LHS = B2->getLHS(); in checkBitwiseOrLogicalOp() 222 const Expr *LHS = B->getLHS()->IgnoreParenImpCasts(); in checkComparisonOp() 253 if (isIdenticalStmt(AC->getASTContext(), B->getLHS(), B->getRHS())) { in checkComparisonOp()
|
H A D | CStringSyntaxChecker.cpp | 133 const Expr *L = BE->getLHS(); in containsBadStrncatPattern() 190 DstArgDRE = dyn_cast<DeclRefExpr>(BE->getLHS()->IgnoreParenImpCasts()); in containsBadStrlcpyStrlcatPattern()
|
/freebsd/contrib/llvm-project/clang/lib/ARCMigrate/ |
H A D | TransZeroOutPropsInDealloc.cpp | 160 return isZeroingPropIvar(BOE->getLHS()) && in isZeroingPropIvar() 166 Expr *LHS = BOE->getLHS(); in isZeroingPropIvar() 196 dyn_cast<ObjCPropertyRefExpr>(BO->getLHS()->IgnoreParens()); in isZeroingPropIvar()
|
H A D | TransARCAssign.cpp | 45 Expr *E = Exp->getLHS(); in VisitBinaryOperator()
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaConcept.cpp | 48 LHS = BO->getLHS(); in LogicalBinOp() 66 const Expr *getLHS() const { return LHS; } in getLHS() function in __anon0c0fec810111::LogicalBinOp 101 return CheckConstraintExpression(BO.getLHS(), NextToken, in CheckConstraintExpression() 333 S, BO.getLHS(), BO.getOp(), BO.getRHS(), Satisfaction, Evaluator); in calculateConstraintSatisfaction() 1261 diagnoseWellFormedUnsatisfiedConstraintExpr(S, BO->getLHS(), First); in diagnoseWellFormedUnsatisfiedConstraintExpr() 1267 BO->getLHS()->EvaluateKnownConstInt(S.Context).getBoolValue(); in diagnoseWellFormedUnsatisfiedConstraintExpr() 1274 diagnoseWellFormedUnsatisfiedConstraintExpr(S, BO->getLHS(), First); in diagnoseWellFormedUnsatisfiedConstraintExpr() 1290 if (BO->getLHS()->getType()->isIntegerType() && in diagnoseWellFormedUnsatisfiedConstraintExpr() 1294 BO->getLHS()->EvaluateAsInt(SimplifiedLHS, S.Context, in diagnoseWellFormedUnsatisfiedConstraintExpr() 1434 if (substituteParameterMappings(S, N.getLHS(), Concept, MLTAL, in substituteParameterMappings() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCExpr.cpp | 117 if (isa<MCConstantExpr>(BE.getLHS()) || isa<MCSymbolRefExpr>(BE.getLHS())) { in print() 118 BE.getLHS()->print(OS, MAI); in print() 121 BE.getLHS()->print(OS, MAI); in print() 919 if (!ABE->getLHS()->evaluateAsRelocatableImpl(LHSValue, Asm, Fixup, Addrs, in evaluateAsRelocatableImpl() 924 if (const MCTargetExpr *L = dyn_cast<MCTargetExpr>(ABE->getLHS())) { in evaluateAsRelocatableImpl() 1050 MCFragment *LHS_F = BE->getLHS()->findAssociatedFragment(); in findAssociatedFragment()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprAgg.cpp | 977 CGF.EmitIgnoredExpr(E->getLHS()); in VisitBinComma() 996 QualType ArgTy = E->getLHS()->getType(); in EmitCompare() 1046 assert(CGF.getContext().hasSameType(E->getLHS()->getType(), in VisitBinCmp() 1053 QualType ArgTy = E->getLHS()->getType(); in VisitBinCmp() 1072 auto LHSValues = EmitOperand(E->getLHS()), in VisitBinCmp() 1154 return isBlockVarRef(op->getLHS()); in isBlockVarRef() 1204 assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(), in VisitBinAssign() 1212 if (isBlockVarRef(E->getLHS()) && in VisitBinAssign() 1219 LValue LHS = CGF.EmitCheckedLValue(E->getLHS(), CodeGenFunction::TCK_Store); in VisitBinAssign() 1228 EmitCopy(E->getLHS()->getType(), in VisitBinAssign() [all …]
|
H A D | CGExprScalar.cpp | 142 QualType LHSType = BinOp->getLHS()->getType(); in isFixedPointOp() 205 auto OptionalLHSTy = getUnwidenedIntegerType(Ctx, BO->getLHS()); in CanElideOverflowCheck() 763 BO->getLHS()->getType().getCanonicalType()); in EmitMul() 1753 CGF.EmitCheckTypeDescriptor(BO->getLHS()->getType())); in EmitBinOpCheck() 3503 Result.LHS = CGF.EmitPromotedScalarExpr(E->getLHS(), PromotionType); in EmitBinOps() 3519 QualType LHSTy = E->getLHS()->getType(); in EmitCompoundAssignLValue() 3543 LValue LHSLV = EmitCheckedLValue(E->getLHS(), CodeGenFunction::TCK_Store); in EmitCompoundAssignLValue() 3659 QualType DstType = E->getLHS()->getType(); in EmitCompoundAssignLValue() 3668 E->getLHS()); in EmitCompoundAssignLValue() 3706 !IsWidenedIntegerOp(CGF.getContext(), BO->getLHS()) && in EmitUndefinedBehaviorIntegerDivAndRemCheck() [all …]
|
H A D | CoverageMappingGen.cpp | 832 setCondID(E->getLHS(), getCondID(E)); in pushAndAssignIDs() 834 setCondID(E->getLHS(), NextID++); in pushAndAssignIDs() 1912 Visit(CS->getLHS()); in VisitSwitchCase() 2225 extendRegion(E->getLHS()); in VisitBinLAnd() 2226 propagateCounts(getRegion().getCounter(), E->getLHS()); in VisitBinLAnd() 2227 handleFileExit(getEnd(E->getLHS())); in VisitBinLAnd() 2250 createBranchRegion(E->getLHS(), RHSExecCnt, in VisitBinLAnd() 2286 extendRegion(E->getLHS()); in VisitBinLOr() 2287 Counter OutCount = propagateCounts(getRegion().getCounter(), E->getLHS()); in VisitBinLOr() 2288 handleFileExit(getEnd(E->getLHS())); in VisitBinLOr() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | ComputeDependence.cpp | 115 return E->getLHS()->getDependence() | E->getRHS()->getDependence(); in computeDependence() 161 return E->getLHS()->getDependence() | E->getRHS()->getDependence(); in computeDependence() 169 return E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence() 205 E->getCond()->getDependence() | E->getLHS()->getDependence() | in computeDependence() 209 auto Active = E->getLHS()->getDependence(); in computeDependence() 888 for (const auto *C : {E->getLHS(), E->getRHS()}) { in computeDependence()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/MCTargetDesc/ |
H A D | XCoreInstPrinter.cpp | 57 SRE = dyn_cast<MCSymbolRefExpr>(BE->getLHS()); in printExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CFG.cpp | 121 const Expr *MaybeDecl = B->getLHS(); in tryNormalizeBinaryOperator() 136 Constant = tryTransformToIntOrEnumConstant(B->getLHS()); in tryNormalizeBinaryOperator() 926 const Expr *LHSExpr = B->getLHS()->IgnoreParens(); in checkIncorrectRelationalOperator() 965 const Expr *LHSExpr = B->getLHS()->IgnoreParens(); in checkIncorrectEqualityOperator() 983 const Expr *LHSExpr2 = BitOp->getLHS()->IgnoreParens(); in checkIncorrectEqualityOperator() 1086 const Expr *LHSExpr = B->getLHS()->IgnoreParens(); in checkIncorrectLogicOperator() 1216 tryTransformToIntOrEnumConstant(B->getLHS()->IgnoreParenImpCasts()); in checkIncorrectBitwiseOrOperator() 1276 if (Bop->getLHS()->EvaluateAsInt(LHSResult, *Context)) { in tryEvaluateBool() 1302 TryResult LHS = tryEvaluateBool(Bop->getLHS()); in evaluateAsBooleanConditionNoCache() 1531 findConstructionContexts(Layer, CO->getLHS()); in findConstructionContexts() [all …]
|
H A D | UninitializedValues.cpp | 371 classify(BO->getLHS(), C); in classify() 402 classify(BO->getLHS(), Use); in VisitBinaryOperator() 404 classify(BO->getLHS(), Ignore); in VisitBinaryOperator() 759 FindVarResult Var = findVar(BO->getLHS()); in VisitBinaryOperator()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/ |
H A D | CSKYMCExpr.cpp | 80 fixELFSymbolsInTLSFixupsImpl(BE->getLHS(), Asm); in fixELFSymbolsInTLSFixupsImpl()
|
/freebsd/contrib/llvm-project/clang/lib/Index/ |
H A D | IndexBody.cpp | 81 if (BO->getLHS()->IgnoreParenCasts() == E) in getRolesForRef() 84 if (CA->getLHS()->IgnoreParenCasts() == E) { in getRolesForRef() 255 E = BinOp->getLHS(); in VisitObjCMessageExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonMCExpr.cpp | 51 fixELFSymbolsInTLSFixupsImpl(be->getLHS(), Asm); in fixELFSymbolsInTLSFixupsImpl()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/BPF/MCTargetDesc/ |
H A D | BPFInstPrinter.cpp | 42 SRE = dyn_cast<MCSymbolRefExpr>(BE->getLHS()); in printExpr()
|