-
Notifications
You must be signed in to change notification settings - Fork 397
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rework pipeline registration example
The HelloWorld pass includes registration with the optimisation pipelines (on top of regular registration implemented for all other examples). That registration has been guarded with a CMake flag to optionally disable it. This is required on MacOS as for `opt` installed with HomeBrew, registering out-of-tree passes with optimisation pipelines leads to a seg-fault. Currently, in order for that coded to be disabled one has to specify: LT_LEGACY_SKIP_PIPELINE_REGISTRATION=On when calling CMake. In other words, the problematic code is _enabled_ by default. It would make more sense to have it _disabled_ by default so that it never causes an accidental seg-fault. With this patch, the problematic registration is disabled by default. LT_LEGACY_SKIP_PIPELINE_REGISTRATION is replaced with HELLOWORLD_OPT_PIPELINE_REG, which is to be set to ON when requesting registration with the optimisation pipelines. This was suggested by Amirahmad Khordadi in issue #8 - thank you! README.md was also updated to reflect the changes and with a few general edits.
- Loading branch information
1 parent
e463893
commit 0f74d2c
Showing
4 changed files
with
68 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters