Go to the documentation of this file.
9 #ifndef LLVM_TRANSFORMS_IPO_OPENMPOPT_H
10 #define LLVM_TRANSFORMS_IPO_OPENMPOPT_H
28 Value = OpenMPInModule::OpenMP::FOUND;
30 Value = OpenMPInModule::OpenMP::NOT_FOUND;
34 operator bool() {
return Value != OpenMP::NOT_FOUND; }
38 return FuncsWithOMPRuntimeCalls.contains(
F);
48 enum class OpenMP { FOUND, NOT_FOUND, UNKNOWN }
Value = OpenMP::UNKNOWN;
76 #endif // LLVM_TRANSFORMS_IPO_OPENMPOPT_H
A set of analyses that are preserved following a run of a transformation pass.
This class represents lattice values for constants.
PreservedAnalyses run(LazyCallGraph::SCC &C, CGSCCAnalysisManager &AM, LazyCallGraph &CG, CGSCCUpdateResult &UR)
A CRTP mix-in to automatically provide informational APIs needed for passes.
void identifyKernels(Module &M)
Identify kernels in the module and populate the Kernels set.
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
An SCC of the call graph.
(vector float) vec_cmpeq(*A, *B) C
SmallPtrSetImpl< Kernel > & getKernels()
Return the known kernels (=GPU entry points) in the module.
bool containsOpenMP(Module &M, OpenMPInModule &OMPInModule)
Helper to determine if M contains OpenMP (runtime calls).
OpenMPInModule & operator=(bool Found)
bool containsOMPRuntimeCalls(Function *F) const
Does this function F contain any OpenMP runtime calls?
friend bool containsOpenMP(Module &M, OpenMPInModule &OMPInModule)
Helper to determine if M contains OpenMP (runtime calls).
A Module instance is used to store all the information related to an LLVM module.
Machine Check Debug Module
Support structure for SCC passes to communicate updates the call graph back to the CGSCC pass manager...
OpenMP optimizations pass.
Helper to remember if the module contains OpenMP (runtime calls), to be used foremost with containsOp...
A templated base class for SmallPtrSet which provides the typesafe interface that is common across al...
A container for analyses that lazily runs them and caches their results.
A lazily constructed view of the call graph of a module.
LLVM Value Representation.