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

"mlir-clang" cannot support file name with suffix "cpp"? #42

Open
Oxygen-Chu opened this issue Apr 5, 2022 · 1 comment
Open

"mlir-clang" cannot support file name with suffix "cpp"? #42

Oxygen-Chu opened this issue Apr 5, 2022 · 1 comment

Comments

@Oxygen-Chu
Copy link

If the design is a file with suffix ".cpp" (like test_gemm.cpp), "mlir-clang" will not be executed normally, the generated "test_gemm.mlir" is wrong, and cannot be processed by later command "scalehls-opt" and "scalehls-translate"

"mlir-clang test_gemm.cpp -function=test_gemm -S -memref-fullrank -raise-scf-to-affine > test_gemm.mlir"
image

@hanchenye
Copy link
Collaborator

Right, currently you cannot directly parse the c++ file generated by scalehls-translate using mlir-clang. You'll need to strip the c++ includes and rename to .c suffix. You may also want to submit an issue to Polygeist to figure out whether this is intended.

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