This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][libomptarget] Improve NextGen plugin interface for initialization
ClosedPublic

Authored by kevinsala on Nov 23 2022, 3:47 PM.

Details

Summary

This patch modifies the PluginInterface to define functions for initializing
and deinitializing GenericPluginTy instances instead of using the constructor
and destructor. This way, we can return errors from these functions. Also, it
defines some functions that each plugin should implement for creating
plugin-specific objects.

This patch prepares the PluginInterface for the new AMDGPU NextGen plugin.

Diff Detail

Event Timeline

kevinsala created this revision.Nov 23 2022, 3:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 23 2022, 3:47 PM
kevinsala requested review of this revision.Nov 23 2022, 3:47 PM
jhuber6 accepted this revision.Nov 28 2022, 1:29 PM

LGTM overall, we probably should stand up CI testing for this stuff however.

This revision is now accepted and ready to land.Nov 28 2022, 1:29 PM