-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Do some basic validation of Target Features (#7986) #7987
Conversation
src/Target.cpp
Outdated
WasmSimd128, | ||
WasmThreads, | ||
}; | ||
user_assert(!features_any_of(bad_features_x86)) << "At least os_entry of the features for " |
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.
"os_entry"?
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.
oops fixed
src/Target.cpp
Outdated
WasmSimd128, | ||
WasmThreads, | ||
}; | ||
user_assert(!features_any_of(bad_features_x86)) << "At least one of the features for " |
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.
A small code change would take the guesswork out of handling this error:
for (Feature f : bad_features_x86) {
user_assert(!has_feature(f)) << "Target feature " << f ...
}
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
Looks like a merge issue with the new wasm feature |
* Do some basic validation of Target Features (halide#7986) * Update Target.cpp * Update Target.cpp * Fixes * Update Target.cpp * Improve error messaging. * format * Update Target.cpp
No description provided.