Skip to content

[tests] Enable MLIR C++ unittest with lit #50

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

Merged
merged 6 commits into from
May 11, 2024
Merged

[tests] Enable MLIR C++ unittest with lit #50

merged 6 commits into from
May 11, 2024

Conversation

Menooker
Copy link

@Menooker Menooker commented May 9, 2024

Add an example gtest unittest for MLIR and let it be driven by lit. The required cmake and lit configs are also added.

@Menooker
Copy link
Author

Menooker commented May 9, 2024

This PR requires a new build of LLVM -DLLVM_INSTALL_GTEST=ON, otherwise it will fail to find gtest header and static library. I have updated LLVM version to trigger re-build of LLVM.

@Menooker Menooker changed the title [tests] Add example MLIR-unittest in lit [tests] Enable MLIR C++ unittest with lit May 9, 2024
@@ -0,0 +1,50 @@
# -*- Python -*-
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we don't need the multiple directories like gc-dialects to share the lit python files for other components like transforms/passes, runtime and others?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The C++-based unittest is a special case. Filecheck tests don't need this lit config file.

@Menooker Menooker merged commit 23a4bba into main May 11, 2024
3 checks passed
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.

3 participants