Skip to content

Commit

Permalink
Remove OpenCilk support for old pass manager
Browse files Browse the repository at this point in the history
  • Loading branch information
VoxSciurorum committed Jan 11, 2025
1 parent ef3cdc8 commit 2950335
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 96 deletions.
3 changes: 0 additions & 3 deletions llvm/include/llvm/InitializePasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,6 @@ void initializeGlobalISel(PassRegistry&);
/// Initialize all passes linked into the CodeGen library.
void initializeTarget(PassRegistry&);

/// Initialize all passes linked into the TapirOpts library.
void initializeTapirOpts(PassRegistry&);

void initializeAAResultsWrapperPassPass(PassRegistry&);
void initializeAlwaysInlinerLegacyPassPass(PassRegistry&);
void initializeAssignmentTrackingAnalysisPass(PassRegistry &);
Expand Down
1 change: 0 additions & 1 deletion llvm/include/llvm/LinkAllPasses.h
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ namespace {
(void) llvm::createLowerGlobalDtorsLegacyPass();
(void) llvm::createLowerInvokePass();
(void) llvm::createLowerSwitchPass();
(void) llvm::createLowerTapirToTargetPass();
(void) llvm::createNaryReassociatePass();
(void) llvm::createObjCARCContractPass();
(void) llvm::createPromoteMemoryToRegisterPass();
Expand Down
1 change: 0 additions & 1 deletion llvm/lib/Transforms/Tapir/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ add_llvm_component_library(LLVMTapirOpts
QthreadsABI.cpp
SerialABI.cpp
SerializeSmallTasks.cpp
Tapir.cpp
TapirToTarget.cpp
TapirLoopInfo.cpp

Expand Down
30 changes: 0 additions & 30 deletions llvm/lib/Transforms/Tapir/Tapir.cpp

This file was deleted.

59 changes: 0 additions & 59 deletions llvm/lib/Transforms/Tapir/TapirToTarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,62 +509,3 @@ PreservedAnalyses TapirToTargetPass::run(Module &M, ModuleAnalysisManager &AM) {
return PreservedAnalyses::none();
return PreservedAnalyses::all();
}

namespace {
struct LowerTapirToTarget : public ModulePass {
static char ID; // Pass identification, replacement for typeid
explicit LowerTapirToTarget() : ModulePass(ID) {
initializeLowerTapirToTargetPass(*PassRegistry::getPassRegistry());
}

StringRef getPassName() const override { return "Lower Tapir to target"; }

bool runOnModule(Module &M) override;

void getAnalysisUsage(AnalysisUsage &AU) const override {
AU.addRequired<AssumptionCacheTracker>();
AU.addRequired<DominatorTreeWrapperPass>();
AU.addRequired<TargetLibraryInfoWrapperPass>();
AU.addRequired<TaskInfoWrapperPass>();
}
};
} // End of anonymous namespace

char LowerTapirToTarget::ID = 0;
INITIALIZE_PASS_BEGIN(LowerTapirToTarget, "tapir2target",
"Lower Tapir to Target ABI", false, false)
INITIALIZE_PASS_DEPENDENCY(AssumptionCacheTracker)
INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass)
INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfoWrapperPass)
INITIALIZE_PASS_DEPENDENCY(TaskInfoWrapperPass)
INITIALIZE_PASS_END(LowerTapirToTarget, "tapir2target",
"Lower Tapir to Target ABI", false, false)

bool LowerTapirToTarget::runOnModule(Module &M) {
if (skipModule(M))
return false;
auto GetAA = [this](Function &F) -> AAResults & {
return this->getAnalysis<AAResultsWrapperPass>(F).getAAResults();
};
auto GetDT = [this](Function &F) -> DominatorTree & {
return this->getAnalysis<DominatorTreeWrapperPass>(F).getDomTree();
};
auto GetTI = [this](Function &F) -> TaskInfo & {
return this->getAnalysis<TaskInfoWrapperPass>(F).getTaskInfo();
};
AssumptionCacheTracker *ACT = &getAnalysis<AssumptionCacheTracker>();
auto GetAC = [&ACT](Function &F) -> AssumptionCache & {
return ACT->getAssumptionCache(F);
};
auto GetTLI = [this](Function &F) -> TargetLibraryInfo & {
return this->getAnalysis<TargetLibraryInfoWrapperPass>().getTLI(F);
};

return TapirToTargetImpl(M, GetAA, GetDT, GetTI, GetAC, GetTLI).run();
}

// createLowerTapirToTargetPass - Provide an entry point to create this pass.
//
namespace llvm {
ModulePass *createLowerTapirToTargetPass() { return new LowerTapirToTarget(); }
} // namespace llvm
1 change: 0 additions & 1 deletion llvm/tools/bugpoint/bugpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ int main(int argc, char **argv) {
initializeCore(Registry);
initializeScalarOpts(Registry);
initializeVectorization(Registry);
initializeTapirOpts(Registry);
initializeIPO(Registry);
initializeAnalysis(Registry);
initializeTransformUtils(Registry);
Expand Down
1 change: 0 additions & 1 deletion llvm/tools/opt/opt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,6 @@ int main(int argc, char **argv) {
initializeCore(Registry);
initializeScalarOpts(Registry);
initializeVectorization(Registry);
initializeTapirOpts(Registry);
initializeIPO(Registry);
initializeAnalysis(Registry);
initializeTransformUtils(Registry);
Expand Down

0 comments on commit 2950335

Please sign in to comment.