This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Remove uses of LLVM's legacy pass manager
ClosedPublic

Authored by aeubanks on Apr 8 2022, 3:21 PM.

Details

Summary

Use the new pass manager.

This also removes the ability to run arbitrary sets of passes. Not sure if this functionality is used, but it doesn't seem to be tested.

No need to initialize passes outside of constructing the PassBuilder with the new pass manager.

Diff Detail

Event Timeline

aeubanks created this revision.Apr 8 2022, 3:21 PM
Herald added a reviewer: ctetreau. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
aeubanks requested review of this revision.Apr 8 2022, 3:21 PM
mehdi_amini accepted this revision.Apr 8 2022, 5:18 PM
This revision is now accepted and ready to land.Apr 8 2022, 5:18 PM

Pre-merge checks are failing:

mlir-cpu-runner: /var/lib/buildkite-agent/builds/llvm-project/llvm/lib/Passes/PassBuilderPipelines.cpp:1286: llvm::ModulePassManager llvm::PassBuilder::buildPerModuleDefaultPipeline(llvm::OptimizationLevel, bool): Assertion `Level != OptimizationLevel::O0 && "Must request optimizations for the default pipeline!"' failed.
aeubanks updated this revision to Diff 422050.Apr 11 2022, 3:29 PM

check optLevel in JitRunner.cpp

This revision was landed with ongoing or failed builds.Apr 11 2022, 4:19 PM
This revision was automatically updated to reflect the committed changes.