-
Notifications
You must be signed in to change notification settings - Fork 15.2k
[MLIR][Python] Add bindings for PDL native rewrite function registering #159926
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
Changes from all commits
118e4c7
f1315a6
2f3da2e
b2de4ec
d6db1e5
c2f727e
6435084
0653ac6
9165e13
e9845d6
bf79409
e821fd4
b08315f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. one random q: why is this file named |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ public: | |
/// value is not an instance of `T`. | ||
template <typename T, | ||
typename ResultT = std::conditional_t< | ||
std::is_convertible<T, bool>::value, T, std::optional<T>>> | ||
std::is_constructible_v<bool, T>, T, std::optional<T>>> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Some classes like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sorry I don't understand this one - also is this needed for this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup. Due to this review suggestion #159926 (comment), now we use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can change the API back to the origin form if we want to avoid touching that header. Maybe @jpienaar has idea for this : ) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nah it's fine I just didn't see that comment about dyn_cast |
||
ResultT dyn_cast() const { | ||
return isa<T>() ? castImpl<T>() : ResultT(); | ||
} | ||
|
Uh oh!
There was an error while loading. Please reload this page.