[Mlir-commits] [llvm] [mlir] [mlir][tosa] Add profile-based operation validation (PR #126992)

Luke Hutton llvmlistbot at llvm.org
Wed Feb 19 07:54:42 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";
----------------
lhutton1 wrote:

These should be updated to `pro_int` and `pro_fp`

https://github.com/llvm/llvm-project/pull/126992


More information about the Mlir-commits mailing list