This is an archive of the discontinued LLVM Phabricator instance.

[mlir][NFC] Wrap the cl::opts in JitRunner within a struct to avoid global initializers.
ClosedPublic

Authored by rriddle on Apr 8 2020, 3:18 PM.

Details

Summary

This avoids the need for having global static initializers within the JITRunner support library, and only constructs the options when the runner is invoked.

Diff Detail

Event Timeline

rriddle created this revision.Apr 8 2020, 3:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 8 2020, 3:18 PM
mehdi_amini accepted this revision.Apr 8 2020, 5:47 PM
This revision is now accepted and ready to land.Apr 8 2020, 5:47 PM
This revision was automatically updated to reflect the committed changes.