This is an archive of the discontinued LLVM Phabricator instance.

[clang-offload-bundler] Library-ize ClangOffloadBundler (2/4)
AbandonedPublic

Authored by lamb-j on Jul 7 2022, 9:19 AM.

Details

Summary

Lifting the core functionalities of the clang-offload-bundler into a
user-facing library/API.

This patch (2/4) introduces a Config class that locally stores the
previously global cl::opt options and arrays. This localization
will allow users to call the APIs in a multi-threaded context. This
patch also introduces an OffloadBundler class to encapsulate the
top-level API functions.

Diff Detail