[Mlir-commits] [mlir] 243b847 - [mlir][tosa][NFC] Replace using namespace with nested namespaces in TosaPr… (#233543)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Mon Oct 19 12:55:21 PDT 2026
Author: DeanSturtevant1
Date: 2026-10-19T15:55:15-04:00
New Revision: 243b84788b8d5d5447a61f07ef746a400da26644
URL: https://github.com/llvm/llvm-project/commit/243b84788b8d5d5447a61f07ef746a400da26644
DIFF: https://github.com/llvm/llvm-project/commit/243b84788b8d5d5447a61f07ef746a400da26644.diff
LOG: [mlir][tosa][NFC] Replace using namespace with nested namespaces in TosaPr… (#233543)
…ofileCompliance
Added:
Modified:
mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
Removed:
################################################################################
diff --git a/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h b/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
index faff61c58a612..1b6006c9ee630 100644
--- a/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
+++ b/mlir/include/mlir/Dialect/Tosa/IR/TosaProfileCompliance.h
@@ -16,9 +16,8 @@
#include "mlir/Support/TypeID.h"
-using namespace mlir;
-using namespace mlir::tosa;
-
+namespace mlir {
+namespace tosa {
//===----------------------------------------------------------------------===//
// Type Compilance Definition
//===----------------------------------------------------------------------===//
@@ -174,5 +173,7 @@ class TosaProfileCompliance {
OperationProfileComplianceMap profileComplianceMap;
OperationExtensionComplianceMap extensionComplianceMap;
};
+} // namespace tosa
+} // namespace mlir
#endif // MLIR_DIALECT_TOSA_TRANSFORMS_TOSAPROFILECOMPILANCE_H
diff --git a/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp b/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
index 8a692280da682..c27e7d4f14a16 100644
--- a/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
+++ b/mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
@@ -11,9 +11,8 @@
#include "llvm/Support/Compiler.h"
#include "llvm/Support/raw_ostream.h"
-using namespace mlir;
-using namespace mlir::tosa;
-
+namespace mlir {
+namespace tosa {
// Building this ~5,000-line generated initializer map under AddressSanitizer,
// HWAddressSanitizer, or MemorySanitizer leads to extreme compile times (>3.5
// minutes) during InstCombine and greedy register allocation due to
@@ -755,3 +754,5 @@ TosaProfileCompliance::stringifyTypeInfo(const TypeInfo &typeInfo) {
return stringifyScalarTypeInfo(typeInfo);
}
+} // namespace tosa
+} // namespace mlir
More information about the Mlir-commits
mailing list