-
Notifications
You must be signed in to change notification settings - Fork 35
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
Try using c++20 throughout catalyst #1229
base: main
Are you sure you want to change the base?
Conversation
Hello. You may have forgotten to update the changelog!
|
@@ -4,7 +4,8 @@ project(catalyst LANGUAGES CXX C) | |||
set(CMAKE_BUILD_WITH_INSTALL_NAME_DIR ON) | |||
set(CMAKE_EXPORT_COMPILE_COMMANDS ON) | |||
|
|||
set(CMAKE_CXX_STANDARD 17 CACHE STRING "C++ standard to conform to") | |||
set(CMAKE_CXX_STANDARD 20) |
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.
put back cache
@@ -52,6 +53,8 @@ struct RemoveChainedSelfInversePass | |||
LLVM_DEBUG(dbgs() << "remove chained self inverse pass" | |||
<< "\n"); | |||
|
|||
llvm::errs() << std::numbers::pi << "\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.
Remember to remove this "unit test"!
What is the motivation, and status, for this pr? |
This first came up because we had hard-coded in the value of pi somewhere and noticed that mathematical constants are now included in the It turns out mathematical constants are already included in |
Context:
Try using c++20 throughout catalyst