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

Lower non-RCU macros #35

Open
PappasBrent opened this issue Jun 18, 2024 · 0 comments
Open

Lower non-RCU macros #35

PappasBrent opened this issue Jun 18, 2024 · 0 comments
Assignees
Labels
kernelize Lowering Linux kernel macros down to MLIR priority:low Low-priority tasks

Comments

@PappasBrent
Copy link
Collaborator

Once #30 is merged, PASTA will no longer be required to lower RCU macros down to the Kernel dialect; however we will also no longer lower non-RCU macros down to the Kernel dialect either.
It will be much harder to do so since non-RCU macros like get_user(), container_of(), and list_for_each() are defined differently in several places throughout the kernel, so we can't just write one AST matcher to match them and map them to their arguments for the kernel_visitor to have access to.

Currently we don't implement any analyses for these macros anyway though, so figuring out how to lower them to MLIR without PASTA is not urgent. Worst-case scenario, we make another dialect/visitor for these macros and make PASTA a dependency for it.

@PappasBrent PappasBrent added priority:low Low-priority tasks kernelize Lowering Linux kernel macros down to MLIR labels Jun 18, 2024
@PappasBrent PappasBrent self-assigned this Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kernelize Lowering Linux kernel macros down to MLIR priority:low Low-priority tasks
Projects
None yet
Development

No branches or pull requests

1 participant