Lines Matching defs:OpenMPOpt

1 //===-- IPO/OpenMPOpt.cpp - Collection of OpenMP specific optimizations ---===//
20 #include "llvm/Transforms/IPO/OpenMPOpt.h"
934 struct OpenMPOpt {
939 OpenMPOpt(SmallVectorImpl<Function *> &SCC, CallGraphUpdater &CGUpdater,
1659 /// TODO: Move this to a unittest when unittests are available for OpenMPOpt.
2076 Kernel OpenMPOpt::getUniqueKernelFor(Function &F) {
2123 if (OpenMPOpt::getCallIfRegularCall(*U.getUser(), &KernelParallelRFI))
2147 bool OpenMPOpt::rewriteDeviceCodeStateMachine() {
2182 OpenMPOpt::getCallIfRegularCall(*U.getUser(), &KernelParallelRFI);
2327 CallInst *CI = OpenMPOpt::getCallIfRegularCall(U);
2940 CB = CB ? OpenMPOpt::getCallIfRegularCall(*CB, &RFI) : nullptr;
3717 CallBase *CB = OpenMPOpt::getCallIfRegularCall(U, &RFI);
4116 if (OpenMPOpt::getCallIfRegularCall(*I, &AllocSharedRFI))
5474 void OpenMPOpt::registerFoldRuntimeCall(RuntimeFunction RF) {
5477 CallInst *CI = OpenMPOpt::getCallIfRegularCall(U, &RFI);
5488 void OpenMPOpt::registerAAs(bool IsModulePass) {
5522 CallInst *CI = OpenMPOpt::getCallIfRegularCall(U, &GetterRFI);
5561 void OpenMPOpt::registerAAsForFunction(Attributor &A, const Function &F) {
5731 LLVM_DEBUG(dbgs() << TAG << "Module before OpenMPOpt Module Pass:\n" << M);
5807 AC.InitializationCallback = OpenMPOpt::registerAAsForFunction;
5814 OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
5825 LLVM_DEBUG(dbgs() << TAG << "Module after OpenMPOpt Module Pass:\n" << M);
5855 LLVM_DEBUG(dbgs() << TAG << "Module before OpenMPOpt CGSCC Pass:\n" << M);
5888 AC.InitializationCallback = OpenMPOpt::registerAAsForFunction;
5892 OpenMPOpt OMPOpt(SCC, CGUpdater, OREGetter, InfoCache, A);
5896 LLVM_DEBUG(dbgs() << TAG << "Module after OpenMPOpt CGSCC Pass:\n" << M);