| /llvm-project-15.0.7/clang/lib/Sema/ |
| H A D | SemaExprMember.cpp | 533 if (!BaseExpr) in DiagnoseQualifiedMemberReference() 647 SourceRange BaseRange = BaseExpr ? BaseExpr->getSourceRange() : SourceRange(); in LookupMemberExprInRecord() 728 BaseExpr, BaseExpr->getType(), OpLoc, IsArrow, SS, SourceLocation(), in LookupMemberExprInRecord() 969 if (!IsArrow && BaseExpr && BaseExpr->isPRValue()) { in BuildMemberReferenceExpr() 1027 << (BaseExpr ? BaseExpr->getSourceRange() : SourceRange()); in BuildMemberReferenceExpr() 1076 if (!BaseExpr) { in BuildMemberReferenceExpr() 1157 BaseExpr, BaseExpr->getType(), IsArrow, OpLoc, SS, TemplateKWLoc, in BuildMemberReferenceExpr() 1252 BaseExpr = S.PerformMemberExprBaseConversion(BaseExpr.get(), IsArrow); in LookupMemberExpr() 1496 BaseExpr = S.DefaultLvalueConversion(BaseExpr.get()); in LookupMemberExpr() 1616 << (BaseExpr.get() ? BaseExpr.get()->getSourceRange() : SourceRange()); in LookupMemberExpr() [all …]
|
| H A D | SemaPseudoObject.cpp | 1141 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter() local 1142 QualType BaseT = BaseExpr->getType(); in findAtIndexGetter() 1160 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexGetter() 1161 << BaseExpr->getType() << arrayRef; in findAtIndexGetter() 1209 << BaseExpr->getType() << 0 << arrayRef; in findAtIndexGetter() 1244 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter() local 1245 QualType BaseT = BaseExpr->getType(); in findAtIndexSetter() 1264 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexSetter() 1265 << BaseExpr->getType() << arrayRef; in findAtIndexSetter() 1324 S.Diag(BaseExpr->getExprLoc(), in findAtIndexSetter() [all …]
|
| H A D | SemaExprObjC.cpp | 782 Result = DefaultLvalueConversion(BaseExpr); in BuildObjCSubscriptExpression() 785 BaseExpr = Result.get(); in BuildObjCSubscriptExpression() 1977 Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr() argument 1994 : BaseExpr->getSourceRange(); in HandleExprPropertyRefExpr() 2012 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr() 2029 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr() 2099 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr() 2120 << FixItHint::CreateReplacement(BaseExpr->getSourceRange(), in HandleExprPropertyRefExpr() 2127 return HandleExprPropertyRefExpr(OPT, BaseExpr, OpLoc, in HandleExprPropertyRefExpr() 2140 MemberName, BaseExpr)) in HandleExprPropertyRefExpr() [all …]
|
| H A D | SemaChecking.cpp | 15904 BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess() 15905 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess() 15907 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess() 15976 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess() 15988 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess() 15996 DiagRuntimeBehavior(ND->getBeginLoc(), BaseExpr, in CheckArrayAccess() 16071 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess() 16083 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess() 16091 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess() 16094 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess() [all …]
|
| H A D | SemaExpr.cpp | 5672 Expr *BaseExpr, *IndexExpr; in CreateBuiltinArraySubscriptExpr() local 5675 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5680 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5685 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5697 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr() 5703 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr() 5712 BaseExpr = LHSExp; // vectors: V[123] in CreateBuiltinArraySubscriptExpr() 5739 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5771 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5782 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr() [all …]
|
| H A D | SemaInit.cpp | 8715 Expr *BaseExpr = new (S.Context) in Perform() local 8721 BaseExpr, Kind.getLocation(), IndexExpr, Kind.getLocation()); in Perform() 8722 ArrayLoopCommonExprs.push_back(BaseExpr); in Perform()
|
| H A D | SemaOpenMP.cpp | 5981 Expr *BaseExpr = OE; in processImplicitMapsWithDefaultMappers() local 5984 BaseExpr = S.BuildMemberExpr( in processImplicitMapsWithDefaultMappers() 5985 BaseExpr, /*IsArrow=*/false, E->getExprLoc(), in processImplicitMapsWithDefaultMappers() 5990 BaseExpr = S.DefaultLvalueConversion(BaseExpr).get(); in processImplicitMapsWithDefaultMappers() 5994 BaseExpr = S.BuildMemberExpr( in processImplicitMapsWithDefaultMappers() 5995 BaseExpr, /*IsArrow=*/false, E->getExprLoc(), in processImplicitMapsWithDefaultMappers() 6000 SubExprs.push_back(BaseExpr); in processImplicitMapsWithDefaultMappers()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/ |
| H A D | StaticAccessedThroughInstanceCheck.cpp | 57 const Expr *BaseExpr = MemberExpression->getBase(); in check() local 60 if (isa<CXXOperatorCallExpr>(BaseExpr)) in check() 64 BaseExpr->getType()->isPointerType() in check() 65 ? BaseExpr->getType()->getPointeeType().getUnqualifiedType() in check() 66 : BaseExpr->getType().getUnqualifiedType(); in check() 74 !BaseExpr->getType()->isTypedefNameType(); in check() 87 if (BaseExpr->HasSideEffects(*AstContext) || in check()
|
| /llvm-project-15.0.7/polly/lib/CodeGen/ |
| H A D | IslExprBuilder.cpp | 244 isl_ast_expr *BaseExpr; in createAccessAddress() local 247 BaseExpr = isl_ast_expr_get_op_arg(Expr, 0); in createAccessAddress() 248 BaseId = isl_ast_expr_get_id(BaseExpr); in createAccessAddress() 249 isl_ast_expr_free(BaseExpr); in createAccessAddress()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ConstantHoisting.cpp | 649 ConstInfo.BaseExpr = ConstExpr; in findAndMakeBaseConstant() 894 if (ConstInfo.BaseExpr) { in emitBaseConstants() 896 Type *Ty = ConstInfo.BaseExpr->getType(); in emitBaseConstants() 897 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
|
| H A D | StraightLineStrengthReduce.cpp | 548 const SCEV *BaseExpr = SE->getGEPExpr(cast<GEPOperator>(GEP), IndexExprs); in allocateCandidatesAndFindBasisForGEP() local 555 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP() 566 factorArrayIndex(TruncatedArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
|
| /llvm-project-15.0.7/llvm/include/llvm/Transforms/Scalar/ |
| H A D | ConstantHoisting.h | 117 ConstantExpr *BaseExpr; member
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 127 Expr *BaseExpr = E->getBase(); in EmitCXXPseudoDestructorExpr() local 133 BaseValue = EmitPointerWithAlignment(BaseExpr); in EmitCXXPseudoDestructorExpr() 134 const auto *PTy = BaseExpr->getType()->castAs<PointerType>(); in EmitCXXPseudoDestructorExpr() 137 LValue BaseLV = EmitLValue(BaseExpr); in EmitCXXPseudoDestructorExpr() 139 QualType BaseTy = BaseExpr->getType(); in EmitCXXPseudoDestructorExpr() 435 const Expr *BaseExpr = BO->getLHS(); in EmitCXXMemberPointerCallExpr() local 446 This = EmitPointerWithAlignment(BaseExpr); in EmitCXXMemberPointerCallExpr() 448 This = EmitLValue(BaseExpr).getAddress(*this); in EmitCXXMemberPointerCallExpr()
|
| H A D | CGExpr.cpp | 4234 Expr *BaseExpr = E->getBase(); in EmitMemberExpr() local 4241 QualType PtrTy = BaseExpr->getType()->getPointeeType(); in EmitMemberExpr() 4243 bool IsBaseCXXThis = IsWrappedCXXThis(BaseExpr); in EmitMemberExpr() 4246 if (IsBaseCXXThis || isa<DeclRefExpr>(BaseExpr)) in EmitMemberExpr() 4252 BaseLV = EmitCheckedLValue(BaseExpr, TCK_MemberAccess); in EmitMemberExpr() 4262 if ((IsWrappedCXXThis(BaseExpr) && in EmitMemberExpr() 5285 const Expr *BaseExpr = E->getBase(); in EmitObjCIvarRefLValue() local 5289 BaseValue = EmitScalarExpr(BaseExpr); in EmitObjCIvarRefLValue() 5290 ObjectTy = BaseExpr->getType()->getPointeeType(); in EmitObjCIvarRefLValue() 5293 LValue BaseLV = EmitLValue(BaseExpr); in EmitObjCIvarRefLValue() [all …]
|
| H A D | CGExprScalar.cpp | 4910 Expr *BaseExpr = E->getBase(); in EmitObjCIsaExpr() local 4912 if (BaseExpr->isPRValue()) { in EmitObjCIsaExpr() 4914 ConvertTypeForMem(BaseExpr->getType()->getPointeeType()); in EmitObjCIsaExpr() 4915 Addr = Address(EmitScalarExpr(BaseExpr), BaseTy, getPointerAlign()); in EmitObjCIsaExpr() 4917 Addr = EmitLValue(BaseExpr).getAddress(*this); in EmitObjCIsaExpr()
|
| H A D | CGOpenMPRuntime.cpp | 7928 const Expr *BaseExpr = E->getBase(); in generateInfoForComponentList() local 7936 CGF.EmitPointerWithAlignment(BaseExpr, &BaseInfo, &TBAAInfo); in generateInfoForComponentList() 7937 QualType PtrTy = BaseExpr->getType()->getPointeeType(); in generateInfoForComponentList() 7940 BaseLV = CGF.EmitOMPSharedLValue(BaseExpr); in generateInfoForComponentList()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | ExprCXX.h | 924 Expr *BaseExpr; variable 936 : Expr(MSPropertyRefExprClass, ty, VK, OK_Ordinary), BaseExpr(baseExpr), in MSPropertyRefExpr() 954 return BaseExpr->getBeginLoc(); in getBeginLoc() 964 return child_range((Stmt**)&BaseExpr, (Stmt**)&BaseExpr + 1); in children() 976 Expr *getBaseExpr() const { return BaseExpr; } in getBaseExpr()
|
| /llvm-project-15.0.7/clang/lib/Frontend/Rewrite/ |
| H A D | RewriteObjC.cpp | 5796 Expr *BaseExpr = IV->getBase(); in RewriteObjCIvarRefExpr() local 5801 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr)); in RewriteObjCIvarRefExpr() 5802 IV->setBase(BaseExpr); in RewriteObjCIvarRefExpr() 5809 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr() 5811 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr() 5851 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr() 5853 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr()
|
| H A D | RewriteModernObjC.cpp | 7443 Expr *BaseExpr = IV->getBase(); in RewriteObjCIvarRefExpr() local 7448 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr)); in RewriteObjCIvarRefExpr() 7449 IV->setBase(BaseExpr); in RewriteObjCIvarRefExpr() 7456 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr() 7458 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr() 7479 BaseExpr); in RewriteObjCIvarRefExpr()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngine.cpp | 3022 Expr *BaseExpr = M->getBase(); in VisitMemberExpr() local 3027 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr); in VisitMemberExpr() 3038 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr, in VisitMemberExpr() 3042 MR ? loc::MemRegionVal(MR) : state->getSVal(BaseExpr, LCtx); in VisitMemberExpr()
|
| /llvm-project-15.0.7/clang/include/clang/Sema/ |
| H A D | Sema.h | 5649 ExprResult BuildFieldReferenceExpr(Expr *BaseExpr, bool IsArrow, 5657 bool CheckQualifiedMemberReference(Expr *BaseExpr, QualType BaseType, 7231 ExprResult BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr, 10097 Expr *BaseExpr, 13043 void CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr,
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ScalarEvolution.cpp | 3671 const SCEV *BaseExpr = getSCEV(GEP->getPointerOperand()); in getGEPExpr() local 3674 Type *IntIdxTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr() 3728 return BaseExpr; in getGEPExpr() 3737 auto *GEPExpr = getAddExpr(BaseExpr, Offset, BaseWrap); in getGEPExpr() 3738 assert(BaseExpr->getType() == GEPExpr->getType() && in getGEPExpr()
|
| /llvm-project-15.0.7/clang/lib/Serialization/ |
| H A D | ASTReaderStmt.cpp | 2200 E->BaseExpr = Record.readSubExpr(); in VisitMSPropertyRefExpr()
|