[Mlir-commits] [llvm] [mlir] [mlir][tosa] Add profile-based operation validation (PR #126992)
TatWai Chong
llvmlistbot at llvm.org
Wed Feb 19 11:50:34 PST 2025
================
@@ -401,27 +406,39 @@ struct TosaValidation : public tosa::impl::TosaValidationBase<TosaValidation> {
if (!profile.empty()) {
for (std::string &prof : profile) {
- auto profSymbol = symbolizeTosaProfileEnum(prof);
+ auto profSymbol = symbolizeProfile(prof);
if (profSymbol) {
- enabled_profiles.push_back(profSymbol.value());
+ targetEnv.addProfile(profSymbol.value());
+ } else {
+ llvm::errs() << "warning: unknown profile name passed in, supported "
+ "profile are bi and mi\n";
+ }
----------------
tatwaichong wrote:
Yes, fair enough. I forgot to add it back.
https://github.com/llvm/llvm-project/pull/126992
More information about the Mlir-commits
mailing list