1 #ifndef GLOBAL_REDUCTION_H 2 #define GLOBAL_REDUCTION_H 6 #include "clang/AST/RecursiveASTVisitor.h" 23 void Initialize(clang::ASTContext &Ctx);
25 void HandleTranslationUnit(clang::ASTContext &Ctx);
34 std::vector<clang::Decl *> Decls;
35 std::map<clang::Decl *, bool> UseInfo;
40 :
public clang::RecursiveASTVisitor<GlobalElementCollectionVisitor> {
47 bool VisitEmptyDecl(clang::EmptyDecl *ED);
53 #endif // GLOBAL_REDUCTION_H Represents a general reduction step.
Definition: Reduction.h:14
clang::DeclGroupRef DeclGroupRef
Definition: LocalReduction.cpp:16
Represents a global reduction phase.
Definition: GlobalReduction.h:15
std::vector< DDElement > DDElementVector
Definition: ProbabilisticModel.h:12
clang::VarDecl VarDecl
Definition: LocalReduction.cpp:28
Definition: GlobalReduction.h:39
clang::FunctionDecl FunctionDecl
Definition: LocalReduction.cpp:18
clang::DeclRefExpr DeclRefExpr
Definition: LocalReduction.cpp:32
~GlobalReduction()
Definition: GlobalReduction.h:20
clang::Decl Decl
Definition: LocalReduction.cpp:29
GlobalElementCollectionVisitor(GlobalReduction *R)
Definition: GlobalReduction.h:42
GlobalReduction()
Definition: GlobalReduction.h:19
llvm::PointerUnion< clang::Decl *, clang::Stmt * > DDElement
Definition: ProbabilisticModel.h:11