Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: an API to register externally defined tapir target #26

Open
wants to merge 1 commit into
base: release/9.x
Choose a base branch
from

Conversation

tkf
Copy link
Contributor

@tkf tkf commented Nov 2, 2020

This is a feature request/question on the API for using externally defined tapir target. IIUC, opencilk does not have an API for this. Can we have, for example, a method

using TapirTargetFactory = std::function<TapirTarget *(Module &)>;
TargetLibraryInfoImpl::setTapirTarget(TapirTargetFactory target)

where targetis a function that takes a module and return a target? This is how I actually use it.

I'm not suggesting this particular API and this PR is just to concretely illustrate what functionality I'd like to access. Also, this implementation is terrible and have to be written in such a way that you don't need to use a global variable (This patch is optimized for minimal diff ATM). If this API is OK to add, I can try moving the state into TargetLibraryInfoImpl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant