-
Notifications
You must be signed in to change notification settings - Fork 126
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
Fail when clang FE returned an error #377
Conversation
aobolensk
commented
Jan 1, 2024
•
edited
Loading
edited
- Add check if clang diagnostics engine reported any errors
- Fix tests that started to fail after clang FE diagnostics checks enabling
- Add basic tests for handling invalid C++ code by cgeist
49999da
to
2e3f418
Compare
- Add check if clang diagnostics engine reported any errors - Add basic tests for handling invalid C++ code by cgeist
2e3f418
to
603f5a7
Compare
@@ -0,0 +1,3 @@ | |||
// RUN: not cgeist %s --function=* -S | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
change this to instead check for failure with // XFAIL: *
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
tools/cgeist/driver.cc
Outdated
gpuTriple, gpuDL); | ||
if (!parseMLIR(argv[0], files, cfunction, includeDirs, defines, module, | ||
triple, DL, gpuTriple, gpuDL)) { | ||
llvm::errs() << "parseMLIR failed\n"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this print and presumably we'll still print the error message from the original clang?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it will be printed. Removed additional parseMLIR failed
printing