This is an archive of the discontinued LLVM Phabricator instance.

[CMake] Change -DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=off to -DLLVM_ENABLE_NEW_PASS_MANAGER=off
ClosedPublic

Authored by MaskRay on Aug 26 2021, 11:20 AM.

Details

Summary

LLVM_ENABLE_NEW_PASS_MANAGER is set to ENABLE_EXPERIMENTAL_NEW_PASS_MANAGER, so
-DLLVM_ENABLE_NEW_PASS_MANAGER=off has no effect.

Change the cache variable to LLVM_ENABLE_NEW_PASS_MANAGER instead.
An user opting out the new PM needs to switch from
-DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=off to
-DLLVM_ENABLE_NEW_PASS_MANAGER=off.

Also give a warning that -DLLVM_ENABLE_NEW_PASS_MANAGER=off is deprecated.

Intended for main and release/13.x

Diff Detail

Event Timeline

MaskRay created this revision.Aug 26 2021, 11:20 AM
MaskRay requested review of this revision.Aug 26 2021, 11:20 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 26 2021, 11:20 AM
aeubanks accepted this revision.Aug 26 2021, 11:34 AM

this is good, but IMO it's not clear enough in the description that this is a breaking change in terms of CMake flags (use -DLLVM_ENABLE_NEW_PASS_MANAGER instead of -DEXPERIMENTAL_NEW_PASS_MANAGER)

This revision is now accepted and ready to land.Aug 26 2021, 11:34 AM
MaskRay edited the summary of this revision. (Show Details)Aug 26 2021, 12:02 PM

lg, thanks for doing this!

The Fuchsia change is quite obvious. Committing. If stable for some time, will push to release/13.x

phosek accepted this revision.Aug 26 2021, 2:21 PM

LGTM

@aeubanks I have cherry picked this into release/13.x