-
Notifications
You must be signed in to change notification settings - Fork 229
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
Rewrite OpenCL explicit conversion builtins handling #2464
Conversation
Check that builtin is valid mostly by matching the regular expression
Please take a look @MrSidims @LU-JOHN @asudarsa @bwlodarcz @VyacheslavLevytskyy |
std::smatch DestTyMatch; | ||
if (!std::regex_match(TargetTyName, DestTyMatch, Expr)) | ||
if (!std::regex_match(ConversionFunc, DestTyMatch, Expr)) | ||
return; | ||
|
||
// The first sub_match is the whole string; the next |
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.
This comment might need to be rewritten and also appear before the line defining DestTy?
Thanks
Test fail reported here: #2467 Thanks |
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.
LGTM
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.
LGTM, @asudarsa were your questions addressed?
Check that builtin is valid mostly by matching the regular expression - remove unneeded checks.
This is a follow-up to #2443