Lines Matching defs:OpenMPOpt
1 //===-- IPO/OpenMPOpt.cpp - Collection of OpenMP specific optimizations ---===//
20 #include "llvm/Transforms/IPO/OpenMPOpt.h"
920 struct OpenMPOpt {
925 OpenMPOpt(SmallVectorImpl<Function *> &SCC, CallGraphUpdater &CGUpdater,
1656 /// TODO: Move this to a unittest when unittests are available for OpenMPOpt.
2073 Kernel OpenMPOpt::getUniqueKernelFor(Function &F) {
2120 if (OpenMPOpt::getCallIfRegularCall(*U.getUser(), &KernelParallelRFI))
2144 bool OpenMPOpt::rewriteDeviceCodeStateMachine() {
2179 OpenMPOpt::getCallIfRegularCall(*U.getUser(), &KernelParallelRFI);
2324 CallInst *CI = OpenMPOpt::getCallIfRegularCall(U);
2937 CB = CB ? OpenMPOpt::getCallIfRegularCall(*CB, &RFI) : nullptr;
3714 CallBase *CB = OpenMPOpt::getCallIfRegularCall(U, &RFI);
4108 if (OpenMPOpt::getCallIfRegularCall(*I, &AllocSharedRFI))
5472 void OpenMPOpt::registerFoldRuntimeCall(RuntimeFunction RF) {
5475 CallInst *CI = OpenMPOpt::getCallIfRegularCall(U, &RFI);
5486 void OpenMPOpt::registerAAs(bool IsModulePass) {
5520 CallInst *CI = OpenMPOpt::getCallIfRegularCall(U, &GetterRFI);
5559 void OpenMPOpt::registerAAsForFunction(Attributor &A, const Function &F) {
5725 LLVM_DEBUG(dbgs() << TAG << "Module before OpenMPOpt Module Pass:\n" << M);
5801 AC.InitializationCallback = OpenMPOpt::registerAAsForFunction;
5808 OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
5819 LLVM_DEBUG(dbgs() << TAG << "Module after OpenMPOpt Module Pass:\n" << M);
5849 LLVM_DEBUG(dbgs() << TAG << "Module before OpenMPOpt CGSCC Pass:\n" << M);
5882 AC.InitializationCallback = OpenMPOpt::registerAAsForFunction;
5886 OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
5890 LLVM_DEBUG(dbgs() << TAG << "Module after OpenMPOpt CGSCC Pass:\n" << M);