Lines Matching refs:ValueDecl

110   using DeclSAMapTy = llvm::SmallDenseMap<const ValueDecl *, DSAInfo, 8>;
111 using UsedRefMapTy = llvm::SmallDenseMap<const ValueDecl *, const Expr *, 8>;
114 llvm::SmallDenseMap<const ValueDecl *, LCDeclInfo, 8>;
122 llvm::DenseMap<const ValueDecl *, MappedExprComponentTy>;
140 llvm::SmallDenseMap<const ValueDecl *, ReductionData, 4>;
292 DSAVarData getDSA(const_iterator &Iter, ValueDecl *D) const;
479 const Expr *addUniqueAligned(const ValueDecl *D, const Expr *NewDE);
483 const Expr *addUniqueNontemporal(const ValueDecl *D, const Expr *NewDE);
486 void addLoopControlVariable(const ValueDecl *D, VarDecl *Capture);
491 const LCDeclInfo isLoopControlVariable(const ValueDecl *D) const;
496 const LCDeclInfo isParentLoopControlVariable(const ValueDecl *D) const;
501 const LCDeclInfo isLoopControlVariable(const ValueDecl *D,
505 const ValueDecl *getParentLoopControlVariable(unsigned I) const;
508 void markDeclAsUsedInScanDirective(ValueDecl *D) { in markDeclAsUsedInScanDirective()
514 bool isUsedInScanDirective(ValueDecl *D) const { in isUsedInScanDirective()
521 void addDSA(const ValueDecl *D, const Expr *E, OpenMPClauseKind A,
527 void addTaskgroupReductionData(const ValueDecl *D, SourceRange SR,
531 void addTaskgroupReductionData(const ValueDecl *D, SourceRange SR,
536 getTopMostTaskgroupReductionData(const ValueDecl *D, SourceRange &SR,
542 getTopMostTaskgroupReductionData(const ValueDecl *D, SourceRange &SR,
558 bool isTaskgroupReductionRef(const ValueDecl *VD, unsigned Level) const { in isTaskgroupReductionRef()
566 const DSAVarData getTopDSA(ValueDecl *D, bool FromParent);
568 const DSAVarData getImplicitDSA(ValueDecl *D, bool FromParent) const;
570 const DSAVarData getImplicitDSA(ValueDecl *D, unsigned Level) const;
575 hasDSA(ValueDecl *D,
583 hasInnermostDSA(ValueDecl *D,
591 hasExplicitDSA(const ValueDecl *D,
932 const ValueDecl *VD, bool CurrentRegionOnly, in checkMappableExprComponentListsForDecl()
964 const ValueDecl *VD, unsigned Level, in checkMappableExprComponentListsForDeclAtLevel()
985 const ValueDecl *VD, in addMappableExpressionComponents()
1129 static const ValueDecl *getCanonicalDecl(const ValueDecl *D) { in getCanonicalDecl()
1146 static ValueDecl *getCanonicalDecl(ValueDecl *D) { in getCanonicalDecl()
1147 return const_cast<ValueDecl *>( in getCanonicalDecl()
1148 getCanonicalDecl(const_cast<const ValueDecl *>(D))); in getCanonicalDecl()
1152 ValueDecl *D) const { in getDSA()
1272 const Expr *DSAStackTy::addUniqueAligned(const ValueDecl *D, in addUniqueAligned()
1287 const Expr *DSAStackTy::addUniqueNontemporal(const ValueDecl *D, in addUniqueNontemporal()
1302 void DSAStackTy::addLoopControlVariable(const ValueDecl *D, VarDecl *Capture) { in addLoopControlVariable()
1311 DSAStackTy::isLoopControlVariable(const ValueDecl *D) const { in isLoopControlVariable()
1322 DSAStackTy::isLoopControlVariable(const ValueDecl *D, unsigned Level) const { in isLoopControlVariable()
1335 DSAStackTy::isParentLoopControlVariable(const ValueDecl *D) const { in isParentLoopControlVariable()
1345 const ValueDecl *DSAStackTy::getParentLoopControlVariable(unsigned I) const { in getParentLoopControlVariable()
1356 void DSAStackTy::addDSA(const ValueDecl *D, const Expr *E, OpenMPClauseKind A, in addDSA()
1426 void DSAStackTy::addTaskgroupReductionData(const ValueDecl *D, SourceRange SR, in addTaskgroupReductionData()
1452 void DSAStackTy::addTaskgroupReductionData(const ValueDecl *D, SourceRange SR, in addTaskgroupReductionData()
1479 const ValueDecl *D, SourceRange &SR, BinaryOperatorKind &BOK, in getTopMostTaskgroupReductionData()
1506 const ValueDecl *D, SourceRange &SR, const Expr *&ReductionRef, in getTopMostTaskgroupReductionData()
1572 static bool rejectConstNotMutableType(Sema &SemaRef, const ValueDecl *D, in rejectConstNotMutableType()
1598 const DSAStackTy::DSAVarData DSAStackTy::getTopDSA(ValueDecl *D, in getTopDSA()
1759 const DSAStackTy::DSAVarData DSAStackTy::getImplicitDSA(ValueDecl *D, in getImplicitDSA()
1773 const DSAStackTy::DSAVarData DSAStackTy::getImplicitDSA(ValueDecl *D, in getImplicitDSA()
1783 DSAStackTy::hasDSA(ValueDecl *D, in hasDSA()
1807 ValueDecl *D, const llvm::function_ref<bool(OpenMPClauseKind, bool)> CPred, in hasInnermostDSA()
1827 const ValueDecl *D, in hasExplicitDSA()
1965 getVariableCategoryFromDecl(const LangOptions &LO, const ValueDecl *VD) { in getVariableCategoryFromDecl()
1978 bool Sema::isOpenMPCapturedByRef(const ValueDecl *D, unsigned Level, in isOpenMPCapturedByRef()
1986 D = cast<ValueDecl>(D->getCanonicalDecl()); in isOpenMPCapturedByRef()
2168 VarDecl *Sema::isOpenMPCapturedDecl(ValueDecl *D, bool CheckScopeInfo, in isOpenMPCapturedDecl()
2304 OpenMPClauseKind Sema::isOpenMPPrivateDecl(ValueDecl *D, unsigned Level, in isOpenMPPrivateDecl()
2385 void Sema::setOpenMPCaptureKind(FieldDecl *FD, const ValueDecl *D, in setOpenMPCaptureKind()
2423 bool Sema::isOpenMPTargetCapturedDecl(const ValueDecl *D, unsigned Level, in isOpenMPTargetCapturedDecl()
2437 bool Sema::isOpenMPGlobalCapturedDecl(ValueDecl *D, unsigned Level, in isOpenMPGlobalCapturedDecl()
2533 static std::pair<ValueDecl *, bool>
2590 ValueDecl *D = Res.first; in checkReductionClauses()
2605 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr,
2609 const ValueDecl *D,
2670 ValueDecl *D = Res.first; in EndOpenMPDSABlock()
2688 ValueDecl *VD = DRE->getDecl(); in EndOpenMPDSABlock()
3310 const ValueDecl *D, in reportOriginalDsa()
3423 llvm::SmallDenseSet<const ValueDecl *, 4> ImplicitDeclarations;
3749 const auto *VD = cast<ValueDecl>( in VisitMemberExpr()
4324 static DeclRefExpr *buildCapture(Sema &S, ValueDecl *D, Expr *CaptureExpr, in buildCapture()
4385 void Sema::tryCaptureOpenMPLambdas(ValueDecl *V) { in tryCaptureOpenMPLambdas()
4974 static std::pair<ValueDecl *, bool> getPrivateItem(Sema &S, Expr *&RefExpr, in getPrivateItem()
5161 ValueDecl *VD = Res.first; in checkAllocateClauses()
7195 ValueDecl *LCDecl = nullptr;
7216 const ValueDecl *DepDecl = nullptr;
7244 ValueDecl *getLoopDecl() const { return LCDecl; } in getLoopDecl()
7304 bool setLCDeclAndLB(ValueDecl *NewLCDecl, Expr *NewDeclRefExpr, Expr *NewLB,
7323 bool OpenMPIterationSpaceChecker::setLCDeclAndLB(ValueDecl *NewLCDecl, in setLCDeclAndLB()
7433 const ValueDecl *CurLCDecl = nullptr;
7434 const ValueDecl *DepDecl = nullptr;
7435 const ValueDecl *PrevDepDecl = nullptr;
7439 bool checkDecl(const Expr *E, const ValueDecl *VD) { in checkDecl()
7487 const ValueDecl *VD = E->getDecl(); in VisitDeclRefExpr()
7494 const ValueDecl *VD = E->getMemberDecl(); in VisitMemberExpr()
7507 const ValueDecl *CurLCDecl, bool IsInitializer, in LoopCounterRefChecker()
7508 const ValueDecl *PrevDepDecl = nullptr, in LoopCounterRefChecker()
7517 const ValueDecl *getDepDecl() const { in getDepDecl()
7624 static const ValueDecl *getInitLCDecl(const Expr *E) { in getInitLCDecl()
8473 if (ValueDecl *D = ISC.getLoopDecl()) { in ActOnOpenMPLoopInitialization()
8601 if (ValueDecl *LCDecl = ISC.getLoopDecl()) { in checkOpenMPIterationSpace()
13948 auto *VD = dyn_cast_or_null<ValueDecl>( in findOMPAllocatorHandleT()
15236 ValueDecl *D = Res.first; in ActOnOpenMPPrivateClause()
15403 ValueDecl *D = Res.first; in ActOnOpenMPFirstprivateClause()
15693 ValueDecl *D = Res.first; in ActOnOpenMPLastprivateClause()
15860 ValueDecl *D = Res.first; in ActOnOpenMPSharedClause()
15935 ValueDecl *Field = nullptr;
15939 TransformExprToCaptures(Sema &SemaRef, ValueDecl *FieldDecl) in TransformExprToCaptures()
15956 SmallVectorImpl<U> &Lookups, const llvm::function_ref<T(ValueDecl *)> Gen) { in filterLookupForUDReductionAndMapper()
15959 if (T Res = Gen(cast<ValueDecl>(D))) in filterLookupForUDReductionAndMapper()
16077 filterLookupForUDReductionAndMapper<bool>(Lookups, [](ValueDecl *D) { in buildDeclareReductionRef()
16127 if (auto *VD = filterLookupForUDReductionAndMapper<ValueDecl *>( in buildDeclareReductionRef()
16128 Lookups, [&SemaRef, Ty](ValueDecl *D) -> ValueDecl * { in buildDeclareReductionRef()
16137 if (auto *VD = filterLookupForUDReductionAndMapper<ValueDecl *>( in buildDeclareReductionRef()
16138 Lookups, [&SemaRef, Ty, Loc](ValueDecl *D) -> ValueDecl * { in buildDeclareReductionRef()
16464 ValueDecl *D = Res.first; in actOnOMPReductionKindClause()
17140 bool Sema::CheckOpenMPLinearDecl(const ValueDecl *D, SourceLocation ELoc, in CheckOpenMPLinearDecl()
17206 ValueDecl *D = Res.first; in ActOnOpenMPLinearClause()
17341 ValueDecl *D = Res.first; in FinishOpenMPLinearClause()
17435 ValueDecl *D = Res.first; in ActOnOpenMPAlignedClause()
17611 ValueDecl *D = Res.first; in ActOnOpenMPCopyprivateClause()
17873 ValueDecl *D = Res.first; in ActOnOpenMPDependClause()
17890 const ValueDecl *VD = in ActOnOpenMPDependClause()
18548 Sema &SemaRef, DSAStackTy *DSAS, const ValueDecl *VD, const Expr *E, in checkMapConflicts()
18836 filterLookupForUDReductionAndMapper<bool>(Lookups, [](ValueDecl *D) { in buildUserDefinedMapperRef()
18865 if (auto *VD = filterLookupForUDReductionAndMapper<ValueDecl *>( in buildUserDefinedMapperRef()
18866 Lookups, [&SemaRef, Type](ValueDecl *D) -> ValueDecl * { in buildUserDefinedMapperRef()
18875 if (auto *VD = filterLookupForUDReductionAndMapper<ValueDecl *>( in buildUserDefinedMapperRef()
18876 Lookups, [&SemaRef, Type, Loc](ValueDecl *D) -> ValueDecl * { in buildUserDefinedMapperRef()
18916 SmallVector<ValueDecl *, 16> VarBaseDeclarations;
19016 ValueDecl *CurDeclaration = nullptr; in checkMappableExpressionList()
19665 const ValueDecl *Sema::getOpenMPDeclareMapperVarName() const { in getOpenMPDeclareMapperVarName()
20083 auto *VD = cast<ValueDecl>(ND); in ActOnOpenMPDeclareTargetName()
20143 ValueDecl *VD) { in checkValueDeclInTarget()
20179 if (auto *VD = dyn_cast<ValueDecl>(D)) { in checkDeclIsAllowedInOpenMPTarget()
20302 ValueDecl *D = Res.first; in ActOnOpenMPUseDevicePtrClause()
20384 ValueDecl *D = Res.first; in ActOnOpenMPUseDeviceAddrClause()
20434 ValueDecl *D = Res.first; in ActOnOpenMPIsDevicePtrClause()
20545 ValueDecl *D = Res.first; in ActOnOpenMPAllocateClause()
20581 ValueDecl *D = Res.first; in ActOnOpenMPNontemporalClause()
20621 ValueDecl *D = Res.first; in ActOnOpenMPInclusiveClause()
20662 ValueDecl *D = Res.first; in ActOnOpenMPExclusiveClause()