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

about pdll inculded cpp function #1253

Open
callmelaoyi opened this issue Sep 12, 2023 · 2 comments
Open

about pdll inculded cpp function #1253

callmelaoyi opened this issue Sep 12, 2023 · 2 comments

Comments

@callmelaoyi
Copy link

I greatly appreciate your team's work. I have a question regarding the PDLL language in MLIR: How can I import C++ functions into PDLL? I haven't found this mechanism in the MLIR documentation. Is there any relevant information available?

@qiuxiafei
Copy link
Collaborator

Take a look at this:

pdlPatterns.registerRewriteFunction("PackValue_" #N, packValues<N>); \

@callmelaoyi
Copy link
Author

Thank you very much. This method resolved my question regarding the conversion between value and valueRange. Additionally, if possible, I would like to inquire whether such functionality can be directly implemented in PDLL without C++?

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

No branches or pull requests

2 participants