/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaExprMember.cpp | 556 Sema::ActOnDependentMemberExpr(Expr *BaseExpr, QualType BaseType, in ActOnDependentMemberExpr() argument 576 assert(BaseExpr && "cannot happen with implicit member accesses"); in ActOnDependentMemberExpr() 578 << BaseType << BaseExpr->getSourceRange() << NameInfo.getSourceRange(); in ActOnDependentMemberExpr() 593 Context, BaseExpr, BaseType, IsArrow, OpLoc, in ActOnDependentMemberExpr() 602 Expr *BaseExpr, in DiagnoseQualifiedMemberReference() argument 609 if (!BaseExpr) in DiagnoseQualifiedMemberReference() 616 bool Sema::CheckQualifiedMemberReference(Expr *BaseExpr, in CheckQualifiedMemberReference() argument 632 if (!BaseExpr && !(*I)->isCXXInstanceMember()) in CheckQualifiedMemberReference() 646 DiagnoseQualifiedMemberReference(*this, BaseExpr, BaseType, SS, in CheckQualifiedMemberReference() 705 Expr *BaseExpr, QualType RTy, in LookupMemberExprInRecord() argument [all …]
|
H A D | SemaPseudoObject.cpp | 1074 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter() local 1075 QualType BaseT = BaseExpr->getType(); in findAtIndexGetter() 1093 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexGetter() 1094 << BaseExpr->getType() << arrayRef; in findAtIndexGetter() 1139 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_method_not_found) in findAtIndexGetter() 1140 << BaseExpr->getType() << 0 << arrayRef; in findAtIndexGetter() 1173 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter() local 1174 QualType BaseT = BaseExpr->getType(); in findAtIndexSetter() 1193 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexSetter() 1194 << BaseExpr->getType() << arrayRef; in findAtIndexSetter() [all …]
|
H A D | SemaExprObjC.cpp | 771 SourceLocation RB, Expr *BaseExpr, Expr *IndexExpr, in BuildObjCSubscriptExpression() argument 778 assert((!BaseExpr->isTypeDependent() && !IndexExpr->isTypeDependent()) && in BuildObjCSubscriptExpression() 789 Result = SemaRef.DefaultLvalueConversion(BaseExpr); in BuildObjCSubscriptExpression() 792 BaseExpr = Result.get(); in BuildObjCSubscriptExpression() 796 BaseExpr, IndexExpr, Context.PseudoObjectTy, VK_LValue, OK_ObjCSubscript, in BuildObjCSubscriptExpression() 1990 const ObjCObjectPointerType *OPT, Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr() argument 2006 : BaseExpr->getSourceRange(); in HandleExprPropertyRefExpr() 2024 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr() 2041 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr() 2110 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr() [all …]
|
H A D | SemaChecking.cpp | 13072 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument 13084 BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess() 13085 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess() 13087 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess() 13095 BaseType == nullptr || BaseExpr->isFlexibleArrayMemberLike( in CheckArrayAccess() 13155 DiagRuntimeBehavior(BaseExpr->getBeginLoc(), BaseExpr, in CheckArrayAccess() 13166 while (const auto *ASE = dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess() 13167 BaseExpr = ASE->getBase()->IgnoreParenCasts(); in CheckArrayAccess() 13168 if (const auto *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess() 13170 if (const auto *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess() [all …]
|
H A D | SemaExpr.cpp | 5126 Expr *BaseExpr, *IndexExpr; in CreateBuiltinArraySubscriptExpr() local 5129 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5134 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5139 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr() 5145 return ObjC().BuildObjCSubscriptExpression(RLoc, BaseExpr, IndexExpr, in CreateBuiltinArraySubscriptExpr() 5151 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr() 5157 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr() 5162 << ResultType << BaseExpr->getSourceRange(); in CreateBuiltinArraySubscriptExpr() 5178 BaseExpr = LHSExp; // vectors: V[123] in CreateBuiltinArraySubscriptExpr() 5191 QualType BaseType = BaseExpr->getType(); in CreateBuiltinArraySubscriptExpr() [all …]
|
H A D | SemaInit.cpp | 8187 Expr *BaseExpr = new (S.Context) in Perform() local 8193 BaseExpr, Kind.getLocation(), IndexExpr, Kind.getLocation()); in Perform() 8194 ArrayLoopCommonExprs.push_back(BaseExpr); in Perform()
|
H A D | SemaOpenMP.cpp | 5858 Expr *BaseExpr = OE; in processImplicitMapsWithDefaultMappers() local 5861 BaseExpr = S.BuildMemberExpr( in processImplicitMapsWithDefaultMappers() 5862 BaseExpr, /*IsArrow=*/false, E->getExprLoc(), in processImplicitMapsWithDefaultMappers() 5867 BaseExpr = S.DefaultLvalueConversion(BaseExpr).get(); in processImplicitMapsWithDefaultMappers() 5871 BaseExpr = S.BuildMemberExpr( in processImplicitMapsWithDefaultMappers() 5872 BaseExpr, /*IsArrow=*/false, E->getExprLoc(), in processImplicitMapsWithDefaultMappers() 5877 SubExprs.push_back(BaseExpr); in processImplicitMapsWithDefaultMappers()
|
H A D | SemaDeclCXX.cpp | 17301 Expr *BaseExpr = AssertExpr; in BuildStaticAssertDeclaration() local 17312 BaseExpr, &Cond, in BuildStaticAssertDeclaration()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 542 const SCEV *BaseExpr = SE->getGEPExpr(cast<GEPOperator>(GEP), IndexExprs); in allocateCandidatesAndFindBasisForGEP() local 549 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP() 560 factorArrayIndex(TruncatedArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
|
H A D | ConstantHoisting.cpp | 650 ConstInfo.BaseExpr = ConstExpr; in findAndMakeBaseConstant() 892 if (ConstInfo.BaseExpr) { in emitBaseConstants() 894 Type *Ty = ConstInfo.BaseExpr->getType(); in emitBaseConstants() 895 Base = new BitCastInst(ConstInfo.BaseExpr, Ty, "const", IP); in emitBaseConstants()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGExprCXX.cpp | 134 Expr *BaseExpr = E->getBase(); in EmitCXXPseudoDestructorExpr() local 140 BaseValue = EmitPointerWithAlignment(BaseExpr); in EmitCXXPseudoDestructorExpr() 141 const auto *PTy = BaseExpr->getType()->castAs<PointerType>(); in EmitCXXPseudoDestructorExpr() 144 LValue BaseLV = EmitLValue(BaseExpr); in EmitCXXPseudoDestructorExpr() 146 QualType BaseTy = BaseExpr->getType(); in EmitCXXPseudoDestructorExpr() 446 const Expr *BaseExpr = BO->getLHS(); in EmitCXXMemberPointerCallExpr() local 457 This = EmitPointerWithAlignment(BaseExpr, nullptr, nullptr, KnownNonNull); in EmitCXXMemberPointerCallExpr() 459 This = EmitLValue(BaseExpr, KnownNonNull).getAddress(); in EmitCXXMemberPointerCallExpr()
|
H A D | CGExpr.cpp | 4641 Expr *BaseExpr = E->getBase(); in EmitMemberExpr() local 4647 Address Addr = EmitPointerWithAlignment(BaseExpr, &BaseInfo, &TBAAInfo); in EmitMemberExpr() 4648 QualType PtrTy = BaseExpr->getType()->getPointeeType(); in EmitMemberExpr() 4650 bool IsBaseCXXThis = IsWrappedCXXThis(BaseExpr); in EmitMemberExpr() 4653 if (IsBaseCXXThis || isa<DeclRefExpr>(BaseExpr)) in EmitMemberExpr() 4659 BaseLV = EmitCheckedLValue(BaseExpr, TCK_MemberAccess); in EmitMemberExpr() 4669 if ((IsWrappedCXXThis(BaseExpr) && in EmitMemberExpr() 5781 const Expr *BaseExpr = E->getBase(); in EmitObjCIvarRefLValue() local 5785 BaseValue = EmitScalarExpr(BaseExpr); in EmitObjCIvarRefLValue() 5786 ObjectTy = BaseExpr->getType()->getPointeeType(); in EmitObjCIvarRefLValue() [all …]
|
H A D | CGExprScalar.cpp | 5547 Expr *BaseExpr = E->getBase(); in EmitObjCIsaExpr() local 5549 if (BaseExpr->isPRValue()) { in EmitObjCIsaExpr() 5551 ConvertTypeForMem(BaseExpr->getType()->getPointeeType()); in EmitObjCIsaExpr() 5552 Addr = Address(EmitScalarExpr(BaseExpr), BaseTy, getPointerAlign()); in EmitObjCIsaExpr() 5554 Addr = EmitLValue(BaseExpr).getAddress(); in EmitObjCIsaExpr()
|
H A D | CGOpenMPRuntime.cpp | 7237 const Expr *BaseExpr = E->getBase(); in generateInfoForComponentList() local 7245 CGF.EmitPointerWithAlignment(BaseExpr, &BaseInfo, &TBAAInfo); in generateInfoForComponentList() 7246 QualType PtrTy = BaseExpr->getType()->getPointeeType(); in generateInfoForComponentList() 7249 BaseLV = CGF.EmitOMPSharedLValue(BaseExpr); in generateInfoForComponentList()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Scalar/ |
H A D | ConstantHoisting.h | 120 ConstantExpr *BaseExpr; member
|
/freebsd/contrib/llvm-project/clang/include/clang/Sema/ |
H A D | SemaObjC.h | 647 Expr *BaseExpr, SourceLocation OpLoc, 679 ExprResult BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr,
|
H A D | Sema.h | 2437 void CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, 8614 bool CheckQualifiedMemberReference(Expr *BaseExpr, QualType BaseType, 8645 ExprResult BuildFieldReferenceExpr(Expr *BaseExpr, bool IsArrow,
|
/freebsd/contrib/llvm-project/clang/include/clang/AST/ |
H A D | ExprCXX.h | 934 Expr *BaseExpr; variable 946 : Expr(MSPropertyRefExprClass, ty, VK, OK_Ordinary), BaseExpr(baseExpr), in MSPropertyRefExpr() 964 return BaseExpr->getBeginLoc(); in getBeginLoc() 974 return child_range((Stmt**)&BaseExpr, (Stmt**)&BaseExpr + 1); in children() 986 Expr *getBaseExpr() const { return BaseExpr; } in getBaseExpr()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngine.cpp | 3376 Expr *BaseExpr = M->getBase(); in VisitMemberExpr() local 3381 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr); in VisitMemberExpr() 3392 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr, in VisitMemberExpr() 3396 MR ? loc::MemRegionVal(MR) : state->getSVal(BaseExpr, LCtx); in VisitMemberExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/Rewrite/ |
H A D | RewriteModernObjC.cpp | 7440 Expr *BaseExpr = IV->getBase(); in RewriteObjCIvarRefExpr() local 7445 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr)); in RewriteObjCIvarRefExpr() 7446 IV->setBase(BaseExpr); in RewriteObjCIvarRefExpr() 7453 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr() 7455 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr() 7476 BaseExpr); in RewriteObjCIvarRefExpr()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | AsmPrinter.cpp | 4374 const auto BaseExpr = in getCodeViewJumpTableInfo() local 4376 const auto Base = &cast<MCSymbolRefExpr>(BaseExpr)->getSymbol(); in getCodeViewJumpTableInfo()
|
/freebsd/contrib/llvm-project/clang/lib/AST/Interp/ |
H A D | Compiler.cpp | 3795 if (const Expr *BaseExpr = Base.dyn_cast<const Expr *>()) in visitAPValue() local 3796 return this->visit(BaseExpr); in visitAPValue()
|
/freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | ScalarEvolution.cpp | 3745 const SCEV *BaseExpr = getSCEV(GEP->getPointerOperand()); in getGEPExpr() local 3748 Type *IntIdxTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr() 3804 return BaseExpr; in getGEPExpr() 3814 auto *GEPExpr = getAddExpr(BaseExpr, Offset, BaseWrap); in getGEPExpr() 3815 assert(BaseExpr->getType() == GEPExpr->getType() && in getGEPExpr()
|
/freebsd/contrib/llvm-project/clang/lib/Serialization/ |
H A D | ASTReaderStmt.cpp | 2311 E->BaseExpr = Record.readSubExpr(); in VisitMSPropertyRefExpr()
|