Home
last modified time | relevance | path

Searched refs:BaseExpr (Results 1 – 19 of 19) sorted by relevance

/external/clang/lib/Sema/
DSemaExprMember.cpp457 Sema::ActOnDependentMemberExpr(Expr *BaseExpr, QualType BaseType, in ActOnDependentMemberExpr() argument
477 assert(BaseExpr && "cannot happen with implicit member accesses"); in ActOnDependentMemberExpr()
479 << BaseType << BaseExpr->getSourceRange() << NameInfo.getSourceRange(); in ActOnDependentMemberExpr()
491 Context, BaseExpr, BaseType, IsArrow, OpLoc, in ActOnDependentMemberExpr()
500 Expr *BaseExpr, in DiagnoseQualifiedMemberReference() argument
507 if (!BaseExpr) in DiagnoseQualifiedMemberReference()
526 bool Sema::CheckQualifiedMemberReference(Expr *BaseExpr, in CheckQualifiedMemberReference() argument
542 if (!BaseExpr && !(*I)->isCXXInstanceMember()) in CheckQualifiedMemberReference()
559 DiagnoseQualifiedMemberReference(*this, BaseExpr, BaseType, SS, in CheckQualifiedMemberReference()
615 Expr *BaseExpr, in LookupMemberExprInRecord() argument
[all …]
DSemaPseudoObject.cpp1136 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexGetter() local
1137 QualType BaseT = BaseExpr->getType(); in findAtIndexGetter()
1155 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexGetter()
1156 << BaseExpr->getType() << arrayRef; in findAtIndexGetter()
1206 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_method_not_found) in findAtIndexGetter()
1207 << BaseExpr->getType() << 0 << arrayRef; in findAtIndexGetter()
1242 Expr *BaseExpr = RefExpr->getBaseExpr(); in findAtIndexSetter() local
1243 QualType BaseT = BaseExpr->getType(); in findAtIndexSetter()
1262 S.Diag(BaseExpr->getExprLoc(), diag::err_objc_subscript_base_type) in findAtIndexSetter()
1263 << BaseExpr->getType() << arrayRef; in findAtIndexSetter()
[all …]
DSemaExprObjC.cpp736 ExprResult Sema::BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr, in BuildObjCSubscriptExpression() argument
744 assert((!BaseExpr->isTypeDependent() && !IndexExpr->isTypeDependent()) && in BuildObjCSubscriptExpression()
755 Result = DefaultLvalueConversion(BaseExpr); in BuildObjCSubscriptExpression()
758 BaseExpr = Result.get(); in BuildObjCSubscriptExpression()
762 BaseExpr, IndexExpr, Context.PseudoObjectTy, VK_LValue, OK_ObjCSubscript, in BuildObjCSubscriptExpression()
1757 Expr *BaseExpr, SourceLocation OpLoc, in HandleExprPropertyRefExpr() argument
1774 : BaseExpr->getSourceRange(); in HandleExprPropertyRefExpr()
1792 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr()
1809 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr()
1878 OK_ObjCProperty, MemberLoc, BaseExpr); in HandleExprPropertyRefExpr()
[all …]
DSemaChecking.cpp9574 void Sema::CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr, in CheckArrayAccess() argument
9582 BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess()
9583 BaseExpr = BaseExpr->IgnoreParenCasts(); in CheckArrayAccess()
9585 Context.getAsConstantArrayType(BaseExpr->getType()); in CheckArrayAccess()
9596 if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(BaseExpr)) in CheckArrayAccess()
9598 if (const MemberExpr *ME = dyn_cast<MemberExpr>(BaseExpr)) in CheckArrayAccess()
9606 const Type *BaseType = BaseExpr->getType()->getPointeeOrArrayElementType(); in CheckArrayAccess()
9659 DiagRuntimeBehavior(BaseExpr->getLocStart(), BaseExpr, in CheckArrayAccess()
9671 DiagRuntimeBehavior(BaseExpr->getLocStart(), BaseExpr, in CheckArrayAccess()
9679 dyn_cast<ArraySubscriptExpr>(BaseExpr)) in CheckArrayAccess()
[all …]
DSemaExpr.cpp4382 Expr *BaseExpr, *IndexExpr; in CreateBuiltinArraySubscriptExpr() local
4385 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
4389 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
4394 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
4400 return BuildObjCSubscriptExpression(RLoc, BaseExpr, IndexExpr, nullptr, in CreateBuiltinArraySubscriptExpr()
4406 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
4412 BaseExpr = RHSExp; in CreateBuiltinArraySubscriptExpr()
4417 << ResultType << BaseExpr->getSourceRange(); in CreateBuiltinArraySubscriptExpr()
4421 BaseExpr = LHSExp; // vectors: V[123] in CreateBuiltinArraySubscriptExpr()
4441 BaseExpr = LHSExp; in CreateBuiltinArraySubscriptExpr()
[all …]
/external/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp502 const SCEV *BaseExpr = SE->getGEPExpr(GEP->getSourceElementType(), in allocateCandidatesAndFindBasisForGEP() local
511 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
522 factorArrayIndex(TruncatedArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/
DStraightLineStrengthReduce.cpp538 const SCEV *BaseExpr = SE->getGEPExpr(cast<GEPOperator>(GEP), IndexExprs); in allocateCandidatesAndFindBasisForGEP() local
545 factorArrayIndex(ArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
556 factorArrayIndex(TruncatedArrayIdx, BaseExpr, ElementSize, GEP); in allocateCandidatesAndFindBasisForGEP()
/external/clang/lib/CodeGen/
DCGExpr.cpp3243 Expr *BaseExpr = E->getBase(); in EmitMemberExpr() local
3249 Address Addr = EmitPointerWithAlignment(BaseExpr, &AlignSource); in EmitMemberExpr()
3250 QualType PtrTy = BaseExpr->getType()->getPointeeType(); in EmitMemberExpr()
3254 BaseLV = EmitCheckedLValue(BaseExpr, TCK_MemberAccess); in EmitMemberExpr()
3762 Expr *BaseExpr = PseudoDtor->getBase(); in EmitCallExpr() local
3768 BaseValue = EmitPointerWithAlignment(BaseExpr); in EmitCallExpr()
3769 const PointerType *PTy = BaseExpr->getType()->getAs<PointerType>(); in EmitCallExpr()
3772 LValue BaseLV = EmitLValue(BaseExpr); in EmitCallExpr()
3774 QualType BaseTy = BaseExpr->getType(); in EmitCallExpr()
3956 const Expr *BaseExpr = E->getBase(); in EmitObjCIvarRefLValue() local
[all …]
DCGExprCXX.cpp289 const Expr *BaseExpr = BO->getLHS(); in EmitCXXMemberPointerCallExpr() local
306 This = EmitPointerWithAlignment(BaseExpr); in EmitCXXMemberPointerCallExpr()
308 This = EmitLValue(BaseExpr).getAddress(); in EmitCXXMemberPointerCallExpr()
DCGExprScalar.cpp3483 Expr *BaseExpr = E->getBase(); in EmitObjCIsaExpr() local
3485 if (BaseExpr->isRValue()) { in EmitObjCIsaExpr()
3486 Addr = Address(EmitScalarExpr(BaseExpr), getPointerAlign()); in EmitObjCIsaExpr()
3488 Addr = EmitLValue(BaseExpr).getAddress(); in EmitObjCIsaExpr()
/external/clang/include/clang/AST/
DExprCXX.h664 Expr *BaseExpr; variable
679 BaseExpr(baseExpr), TheDecl(decl), in MSPropertyRefExpr()
693 return BaseExpr->getLocStart(); in getLocStart()
702 return child_range((Stmt**)&BaseExpr, (Stmt**)&BaseExpr + 1); in children()
708 Expr *getBaseExpr() const { return BaseExpr; } in getBaseExpr()
/external/clang/lib/Frontend/Rewrite/
DRewriteObjC.cpp5803 Expr *BaseExpr = IV->getBase(); in RewriteObjCIvarRefExpr() local
5808 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr)); in RewriteObjCIvarRefExpr()
5809 IV->setBase(BaseExpr); in RewriteObjCIvarRefExpr()
5816 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr()
5818 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr()
5857 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr()
5859 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr()
DRewriteModernObjC.cpp7454 Expr *BaseExpr = IV->getBase(); in RewriteObjCIvarRefExpr() local
7459 BaseExpr = cast<Expr>(RewriteFunctionBodyOrGlobalInitializer(BaseExpr)); in RewriteObjCIvarRefExpr()
7460 IV->setBase(BaseExpr); in RewriteObjCIvarRefExpr()
7467 if (BaseExpr->getType()->isObjCObjectPointerType()) { in RewriteObjCIvarRefExpr()
7469 dyn_cast<ObjCInterfaceType>(BaseExpr->getType()->getPointeeType()); in RewriteObjCIvarRefExpr()
7490 BaseExpr); in RewriteObjCIvarRefExpr()
/external/clang/lib/StaticAnalyzer/Core/
DExprEngine.cpp2024 Expr *BaseExpr = M->getBase(); in VisitMemberExpr() local
2029 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr); in VisitMemberExpr()
2039 state = createTemporaryRegionIfNeeded(state, LCtx, BaseExpr); in VisitMemberExpr()
2040 SVal baseExprVal = state->getSVal(BaseExpr, LCtx); in VisitMemberExpr()
/external/llvm/include/llvm/Analysis/
DScalarEvolution.h1241 const SCEV *getGEPExpr(Type *PointeeType, const SCEV *BaseExpr,
/external/clang/include/clang/Sema/
DSema.h3966 bool CheckQualifiedMemberReference(Expr *BaseExpr, QualType BaseType,
5227 ExprResult BuildObjCSubscriptExpression(SourceLocation RB, Expr *BaseExpr,
7567 Expr *BaseExpr,
9330 void CheckArrayAccess(const Expr *BaseExpr, const Expr *IndexExpr,
/external/llvm/lib/Analysis/
DScalarEvolution.cpp2973 ScalarEvolution::getGEPExpr(Type *PointeeType, const SCEV *BaseExpr, in getGEPExpr() argument
2978 Type *IntPtrTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr()
3020 return getAddExpr(BaseExpr, TotalOffset, Wrap); in getGEPExpr()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DScalarEvolution.cpp3442 const SCEV *BaseExpr = getSCEV(GEP->getPointerOperand()); in getGEPExpr() local
3445 Type *IntPtrTy = getEffectiveSCEVType(BaseExpr->getType()); in getGEPExpr()
3488 return getAddExpr(BaseExpr, TotalOffset, Wrap); in getGEPExpr()
/external/clang/lib/Serialization/
DASTReaderStmt.cpp1679 E->BaseExpr = Reader.ReadSubExpr(); in VisitMSPropertyRefExpr()