diff --git a/mlir/include/mlir/Dialect/CMakeLists.txt b/mlir/include/mlir/Dialect/CMakeLists.txt --- a/mlir/include/mlir/Dialect/CMakeLists.txt +++ b/mlir/include/mlir/Dialect/CMakeLists.txt @@ -5,7 +5,7 @@ add_subdirectory(LLVMIR) add_subdirectory(LoopOps) add_subdirectory(OpenMP) -add_subdirectory(QuantOps) +add_subdirectory(Quant) add_subdirectory(Shape) add_subdirectory(SPIRV) add_subdirectory(StandardOps) diff --git a/mlir/include/mlir/Dialect/FxpMathOps/FxpMathOps.td b/mlir/include/mlir/Dialect/FxpMathOps/FxpMathOps.td --- a/mlir/include/mlir/Dialect/FxpMathOps/FxpMathOps.td +++ b/mlir/include/mlir/Dialect/FxpMathOps/FxpMathOps.td @@ -15,7 +15,7 @@ #define DIALECT_FXPMATHOPS_FXPMATH_OPS_ include "mlir/IR/OpBase.td" -include "mlir/Dialect/QuantOps/QuantOpsBase.td" +include "mlir/Dialect/Quant/QuantOpsBase.td" include "mlir/Interfaces/SideEffects.td" def FxpMathOps_Dialect : Dialect { diff --git a/mlir/include/mlir/Dialect/QuantOps/CMakeLists.txt b/mlir/include/mlir/Dialect/Quant/CMakeLists.txt rename from mlir/include/mlir/Dialect/QuantOps/CMakeLists.txt rename to mlir/include/mlir/Dialect/Quant/CMakeLists.txt diff --git a/mlir/include/mlir/Dialect/QuantOps/FakeQuantSupport.h b/mlir/include/mlir/Dialect/Quant/FakeQuantSupport.h rename from mlir/include/mlir/Dialect/QuantOps/FakeQuantSupport.h rename to mlir/include/mlir/Dialect/Quant/FakeQuantSupport.h --- a/mlir/include/mlir/Dialect/QuantOps/FakeQuantSupport.h +++ b/mlir/include/mlir/Dialect/Quant/FakeQuantSupport.h @@ -34,10 +34,10 @@ // //===----------------------------------------------------------------------===// -#ifndef MLIR_DIALECT_QUANTOPS_FAKEQUANTSUPPORT_H_ -#define MLIR_DIALECT_QUANTOPS_FAKEQUANTSUPPORT_H_ +#ifndef MLIR_DIALECT_QUANT_FAKEQUANTSUPPORT_H_ +#define MLIR_DIALECT_QUANT_FAKEQUANTSUPPORT_H_ -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" namespace mlir { namespace quant { @@ -64,4 +64,4 @@ } // namespace quant } // namespace mlir -#endif // MLIR_DIALECT_QUANTOPS_FAKEQUANTSUPPORT_H_ +#endif // MLIR_DIALECT_QUANT_FAKEQUANTSUPPORT_H_ diff --git a/mlir/include/mlir/Dialect/QuantOps/Passes.h b/mlir/include/mlir/Dialect/Quant/Passes.h rename from mlir/include/mlir/Dialect/QuantOps/Passes.h rename to mlir/include/mlir/Dialect/Quant/Passes.h --- a/mlir/include/mlir/Dialect/QuantOps/Passes.h +++ b/mlir/include/mlir/Dialect/Quant/Passes.h @@ -13,14 +13,15 @@ // //===----------------------------------------------------------------------===// -#ifndef MLIR_DIALECT_QUANTOPS_PASSES_H -#define MLIR_DIALECT_QUANTOPS_PASSES_H +#ifndef MLIR_DIALECT_QUANT_PASSES_H +#define MLIR_DIALECT_QUANT_PASSES_H #include namespace mlir { class FuncOp; -template class OpPassBase; +template +class OpPassBase; namespace quant { @@ -38,4 +39,4 @@ } // namespace quant } // namespace mlir -#endif // MLIR_DIALECT_QUANTOPS_PASSES_H +#endif // MLIR_DIALECT_QUANT_PASSES_H diff --git a/mlir/include/mlir/Dialect/QuantOps/QuantOps.h b/mlir/include/mlir/Dialect/Quant/QuantOps.h rename from mlir/include/mlir/Dialect/QuantOps/QuantOps.h rename to mlir/include/mlir/Dialect/Quant/QuantOps.h --- a/mlir/include/mlir/Dialect/QuantOps/QuantOps.h +++ b/mlir/include/mlir/Dialect/Quant/QuantOps.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef MLIR_DIALECT_QUANTOPS_QUANTOPS_H_ -#define MLIR_DIALECT_QUANTOPS_QUANTOPS_H_ +#ifndef MLIR_DIALECT_QUANT_QUANT_H_ +#define MLIR_DIALECT_QUANT_QUANT_H_ #include "mlir/IR/Attributes.h" #include "mlir/IR/Builders.h" @@ -21,12 +21,12 @@ namespace mlir { namespace quant { -#include "mlir/Dialect/QuantOps/QuantOpsDialect.h.inc" +#include "mlir/Dialect/Quant/QuantOpsDialect.h.inc" #define GET_OP_CLASSES -#include "mlir/Dialect/QuantOps/QuantOps.h.inc" +#include "mlir/Dialect/Quant/QuantOps.h.inc" } // namespace quant } // namespace mlir -#endif // MLIR_DIALECT_QUANTOPS_QUANTOPS_H_ +#endif // MLIR_DIALECT_QUANT_QUANT_H_ diff --git a/mlir/include/mlir/Dialect/QuantOps/QuantOps.td b/mlir/include/mlir/Dialect/Quant/QuantOps.td rename from mlir/include/mlir/Dialect/QuantOps/QuantOps.td rename to mlir/include/mlir/Dialect/Quant/QuantOps.td --- a/mlir/include/mlir/Dialect/QuantOps/QuantOps.td +++ b/mlir/include/mlir/Dialect/Quant/QuantOps.td @@ -10,10 +10,10 @@ // //===----------------------------------------------------------------------===// -#ifndef DIALECT_QUANTOPS_QUANT_OPS_ -#define DIALECT_QUANTOPS_QUANT_OPS_ +#ifndef DIALECT_QUANT_QUANT_OPS_ +#define DIALECT_QUANT_QUANT_OPS_ -include "mlir/Dialect/QuantOps/QuantOpsBase.td" +include "mlir/Dialect/Quant/QuantOpsBase.td" include "mlir/Interfaces/SideEffects.td" //===----------------------------------------------------------------------===// @@ -251,4 +251,4 @@ let results = (outs quant_RealValueType); } -#endif // DIALECT_QUANTOPS_QUANT_OPS_ +#endif // DIALECT_QUANT_QUANT_OPS_ diff --git a/mlir/include/mlir/Dialect/QuantOps/QuantOpsBase.td b/mlir/include/mlir/Dialect/Quant/QuantOpsBase.td rename from mlir/include/mlir/Dialect/QuantOps/QuantOpsBase.td rename to mlir/include/mlir/Dialect/Quant/QuantOpsBase.td --- a/mlir/include/mlir/Dialect/QuantOps/QuantOpsBase.td +++ b/mlir/include/mlir/Dialect/Quant/QuantOpsBase.td @@ -10,8 +10,8 @@ // //===----------------------------------------------------------------------===// -#ifndef DIALECT_QUANTOPS_QUANT_OPS_BASE_ -#define DIALECT_QUANTOPS_QUANT_OPS_BASE_ +#ifndef DIALECT_QUANT_QUANT_OPS_BASE_ +#define DIALECT_QUANT_QUANT_OPS_BASE_ include "mlir/IR/OpBase.td" @@ -68,4 +68,4 @@ def quant_UniformQuantizedValueType : quant_TypedPrimitiveOrContainer; -#endif // DIALECT_QUANTOPS_QUANT_OPS_BASE_ +#endif // DIALECT_QUANT_QUANT_OPS_BASE_ diff --git a/mlir/include/mlir/Dialect/QuantOps/QuantTypes.h b/mlir/include/mlir/Dialect/Quant/QuantTypes.h rename from mlir/include/mlir/Dialect/QuantOps/QuantTypes.h rename to mlir/include/mlir/Dialect/Quant/QuantTypes.h --- a/mlir/include/mlir/Dialect/QuantOps/QuantTypes.h +++ b/mlir/include/mlir/Dialect/Quant/QuantTypes.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef MLIR_DIALECT_QUANTOPS_QUANT_TYPES_H_ -#define MLIR_DIALECT_QUANTOPS_QUANT_TYPES_H_ +#ifndef MLIR_DIALECT_QUANT_QUANT_TYPES_H_ +#define MLIR_DIALECT_QUANT_QUANT_TYPES_H_ #include "mlir/IR/Attributes.h" #include "mlir/IR/Builders.h" @@ -399,4 +399,4 @@ } // namespace quant } // namespace mlir -#endif // MLIR_DIALECT_QUANTOPS_QUANT_TYPES_H_ +#endif // MLIR_DIALECT_QUANT_QUANT_TYPES_H_ diff --git a/mlir/include/mlir/Dialect/QuantOps/QuantizeUtils.h b/mlir/include/mlir/Dialect/Quant/QuantizeUtils.h rename from mlir/include/mlir/Dialect/QuantOps/QuantizeUtils.h rename to mlir/include/mlir/Dialect/Quant/QuantizeUtils.h --- a/mlir/include/mlir/Dialect/QuantOps/QuantizeUtils.h +++ b/mlir/include/mlir/Dialect/Quant/QuantizeUtils.h @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#ifndef MLIR_DIALECT_QUANTOPS_QUANTIZEUTILS_H_ -#define MLIR_DIALECT_QUANTOPS_QUANTIZEUTILS_H_ +#ifndef MLIR_DIALECT_QUANT_QUANTIZEUTILS_H_ +#define MLIR_DIALECT_QUANT_QUANTIZEUTILS_H_ namespace mlir { class Attribute; @@ -58,4 +58,4 @@ } // namespace quant } // namespace mlir -#endif // MLIR_DIALECT_QUANTOPS_QUANTIZEUTILS_H_ +#endif // MLIR_DIALECT_QUANT_QUANTIZEUTILS_H_ diff --git a/mlir/include/mlir/Dialect/QuantOps/UniformSupport.h b/mlir/include/mlir/Dialect/Quant/UniformSupport.h rename from mlir/include/mlir/Dialect/QuantOps/UniformSupport.h rename to mlir/include/mlir/Dialect/Quant/UniformSupport.h --- a/mlir/include/mlir/Dialect/QuantOps/UniformSupport.h +++ b/mlir/include/mlir/Dialect/Quant/UniformSupport.h @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#ifndef MLIR_DIALECT_QUANTOPS_UNIFORMSUPPORT_H_ -#define MLIR_DIALECT_QUANTOPS_UNIFORMSUPPORT_H_ +#ifndef MLIR_DIALECT_QUANT_UNIFORMSUPPORT_H_ +#define MLIR_DIALECT_QUANT_UNIFORMSUPPORT_H_ -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/StandardTypes.h" #include "mlir/IR/Types.h" #include "llvm/ADT/APFloat.h" @@ -215,4 +215,4 @@ } // namespace quant } // namespace mlir -#endif // MLIR_DIALECT_QUANTOPS_UNIFORMSUPPORT_H_ +#endif // MLIR_DIALECT_QUANT_UNIFORMSUPPORT_H_ diff --git a/mlir/include/mlir/InitAllDialects.h b/mlir/include/mlir/InitAllDialects.h --- a/mlir/include/mlir/InitAllDialects.h +++ b/mlir/include/mlir/InitAllDialects.h @@ -23,7 +23,7 @@ #include "mlir/Dialect/Linalg/IR/LinalgOps.h" #include "mlir/Dialect/LoopOps/LoopOps.h" #include "mlir/Dialect/OpenMP/OpenMPDialect.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" +#include "mlir/Dialect/Quant/QuantOps.h" #include "mlir/Dialect/SDBM/SDBMDialect.h" #include "mlir/Dialect/SPIRV/SPIRVDialect.h" #include "mlir/Dialect/StandardOps/IR/Ops.h" diff --git a/mlir/include/mlir/InitAllPasses.h b/mlir/include/mlir/InitAllPasses.h --- a/mlir/include/mlir/InitAllPasses.h +++ b/mlir/include/mlir/InitAllPasses.h @@ -28,7 +28,7 @@ #include "mlir/Dialect/GPU/Passes.h" #include "mlir/Dialect/Linalg/Passes.h" #include "mlir/Dialect/LoopOps/Passes.h" -#include "mlir/Dialect/QuantOps/Passes.h" +#include "mlir/Dialect/Quant/Passes.h" #include "mlir/Dialect/SPIRV/Passes.h" #include "mlir/Quantizer/Transforms/Passes.h" #include "mlir/Transforms/LocationSnapshot.h" diff --git a/mlir/include/mlir/Quantizer/Support/Configuration.h b/mlir/include/mlir/Quantizer/Support/Configuration.h --- a/mlir/include/mlir/Quantizer/Support/Configuration.h +++ b/mlir/include/mlir/Quantizer/Support/Configuration.h @@ -17,7 +17,7 @@ #include -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/Identifier.h" #include "mlir/Quantizer/Support/ConstraintAnalysisGraph.h" #include "mlir/Quantizer/Support/Metadata.h" diff --git a/mlir/include/mlir/Quantizer/Support/Metadata.h b/mlir/include/mlir/Quantizer/Support/Metadata.h --- a/mlir/include/mlir/Quantizer/Support/Metadata.h +++ b/mlir/include/mlir/Quantizer/Support/Metadata.h @@ -17,7 +17,7 @@ #include -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/MLIRContext.h" #include "mlir/Quantizer/Support/Rules.h" #include "llvm/ADT/SmallBitVector.h" diff --git a/mlir/lib/Dialect/CMakeLists.txt b/mlir/lib/Dialect/CMakeLists.txt --- a/mlir/lib/Dialect/CMakeLists.txt +++ b/mlir/lib/Dialect/CMakeLists.txt @@ -5,7 +5,7 @@ add_subdirectory(LLVMIR) add_subdirectory(LoopOps) add_subdirectory(OpenMP) -add_subdirectory(QuantOps) +add_subdirectory(Quant) add_subdirectory(SDBM) #add_subdirectory(Shape) add_subdirectory(SPIRV) diff --git a/mlir/lib/Dialect/FxpMathOps/IR/FxpMathOps.cpp b/mlir/lib/Dialect/FxpMathOps/IR/FxpMathOps.cpp --- a/mlir/lib/Dialect/FxpMathOps/IR/FxpMathOps.cpp +++ b/mlir/lib/Dialect/FxpMathOps/IR/FxpMathOps.cpp @@ -7,7 +7,7 @@ //===----------------------------------------------------------------------===// #include "mlir/Dialect/FxpMathOps/FxpMathOps.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/StandardTypes.h" #include "llvm/ADT/StringRef.h" diff --git a/mlir/lib/Dialect/FxpMathOps/Transforms/UniformKernelUtils.h b/mlir/lib/Dialect/FxpMathOps/Transforms/UniformKernelUtils.h --- a/mlir/lib/Dialect/FxpMathOps/Transforms/UniformKernelUtils.h +++ b/mlir/lib/Dialect/FxpMathOps/Transforms/UniformKernelUtils.h @@ -9,9 +9,9 @@ #ifndef MLIR_FXPMATH_UNIFORM_KERNEL_UTILS_H_ #define MLIR_FXPMATH_UNIFORM_KERNEL_UTILS_H_ -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" -#include "mlir/Dialect/QuantOps/UniformSupport.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/QuantTypes.h" +#include "mlir/Dialect/Quant/UniformSupport.h" #include "mlir/IR/Operation.h" #include diff --git a/mlir/lib/Dialect/QuantOps/CMakeLists.txt b/mlir/lib/Dialect/Quant/CMakeLists.txt rename from mlir/lib/Dialect/QuantOps/CMakeLists.txt rename to mlir/lib/Dialect/Quant/CMakeLists.txt diff --git a/mlir/lib/Dialect/QuantOps/IR/QuantOps.cpp b/mlir/lib/Dialect/Quant/IR/QuantOps.cpp rename from mlir/lib/Dialect/QuantOps/IR/QuantOps.cpp rename to mlir/lib/Dialect/Quant/IR/QuantOps.cpp --- a/mlir/lib/Dialect/QuantOps/IR/QuantOps.cpp +++ b/mlir/lib/Dialect/Quant/IR/QuantOps.cpp @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantOps.h" +#include "mlir/Dialect/Quant/QuantOps.h" #include "TypeDetail.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/Matchers.h" #include "mlir/IR/PatternMatch.h" @@ -29,7 +29,7 @@ UniformQuantizedPerAxisType>(); addOperations< #define GET_OP_LIST -#include "mlir/Dialect/QuantOps/QuantOps.cpp.inc" +#include "mlir/Dialect/Quant/QuantOps.cpp.inc" >(); } @@ -43,4 +43,4 @@ } #define GET_OP_CLASSES -#include "mlir/Dialect/QuantOps/QuantOps.cpp.inc" +#include "mlir/Dialect/Quant/QuantOps.cpp.inc" diff --git a/mlir/lib/Dialect/QuantOps/IR/QuantTypes.cpp b/mlir/lib/Dialect/Quant/IR/QuantTypes.cpp rename from mlir/lib/Dialect/QuantOps/IR/QuantTypes.cpp rename to mlir/lib/Dialect/Quant/IR/QuantTypes.cpp --- a/mlir/lib/Dialect/QuantOps/IR/QuantTypes.cpp +++ b/mlir/lib/Dialect/Quant/IR/QuantTypes.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "TypeDetail.h" #include "mlir/IR/MLIRContext.h" diff --git a/mlir/lib/Dialect/QuantOps/IR/TypeDetail.h b/mlir/lib/Dialect/Quant/IR/TypeDetail.h rename from mlir/lib/Dialect/QuantOps/IR/TypeDetail.h rename to mlir/lib/Dialect/Quant/IR/TypeDetail.h --- a/mlir/lib/Dialect/QuantOps/IR/TypeDetail.h +++ b/mlir/lib/Dialect/Quant/IR/TypeDetail.h @@ -1,4 +1,4 @@ -//===- TypeDetail.h - QuantOps Type detail ----------------------*- C++ -*-===// +//===- TypeDetail.h - Quant Type detail -------------------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. diff --git a/mlir/lib/Dialect/QuantOps/IR/TypeParser.cpp b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp rename from mlir/lib/Dialect/QuantOps/IR/TypeParser.cpp rename to mlir/lib/Dialect/Quant/IR/TypeParser.cpp --- a/mlir/lib/Dialect/QuantOps/IR/TypeParser.cpp +++ b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/DialectImplementation.h" #include "mlir/IR/Location.h" #include "mlir/IR/StandardTypes.h" diff --git a/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp b/mlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp rename from mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp rename to mlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp --- a/mlir/lib/Dialect/QuantOps/Transforms/ConvertConst.cpp +++ b/mlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/Passes.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/QuantizeUtils.h" -#include "mlir/Dialect/QuantOps/UniformSupport.h" +#include "mlir/Dialect/Quant/Passes.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/QuantizeUtils.h" +#include "mlir/Dialect/Quant/UniformSupport.h" #include "mlir/Dialect/StandardOps/IR/Ops.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/Matchers.h" diff --git a/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp b/mlir/lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp rename from mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp rename to mlir/lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp --- a/mlir/lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp +++ b/mlir/lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp @@ -6,10 +6,10 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" -#include "mlir/Dialect/QuantOps/Passes.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/UniformSupport.h" +#include "mlir/Dialect/Quant/FakeQuantSupport.h" +#include "mlir/Dialect/Quant/Passes.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/UniformSupport.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/PatternMatch.h" #include "mlir/IR/StandardTypes.h" diff --git a/mlir/lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp b/mlir/lib/Dialect/Quant/Utils/FakeQuantSupport.cpp rename from mlir/lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp rename to mlir/lib/Dialect/Quant/Utils/FakeQuantSupport.cpp --- a/mlir/lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp +++ b/mlir/lib/Dialect/Quant/Utils/FakeQuantSupport.cpp @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/FakeQuantSupport.h" +#include "mlir/Dialect/Quant/QuantTypes.h" using namespace mlir; using namespace mlir::quant; diff --git a/mlir/lib/Dialect/QuantOps/Utils/QuantizeUtils.cpp b/mlir/lib/Dialect/Quant/Utils/QuantizeUtils.cpp rename from mlir/lib/Dialect/QuantOps/Utils/QuantizeUtils.cpp rename to mlir/lib/Dialect/Quant/Utils/QuantizeUtils.cpp --- a/mlir/lib/Dialect/QuantOps/Utils/QuantizeUtils.cpp +++ b/mlir/lib/Dialect/Quant/Utils/QuantizeUtils.cpp @@ -6,8 +6,8 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantizeUtils.h" -#include "mlir/Dialect/QuantOps/UniformSupport.h" +#include "mlir/Dialect/Quant/QuantizeUtils.h" +#include "mlir/Dialect/Quant/UniformSupport.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/StandardTypes.h" diff --git a/mlir/lib/Dialect/QuantOps/Utils/UniformSupport.cpp b/mlir/lib/Dialect/Quant/Utils/UniformSupport.cpp rename from mlir/lib/Dialect/QuantOps/Utils/UniformSupport.cpp rename to mlir/lib/Dialect/Quant/Utils/UniformSupport.cpp --- a/mlir/lib/Dialect/QuantOps/Utils/UniformSupport.cpp +++ b/mlir/lib/Dialect/Quant/Utils/UniformSupport.cpp @@ -6,7 +6,7 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/UniformSupport.h" +#include "mlir/Dialect/Quant/UniformSupport.h" #include "mlir/IR/StandardTypes.h" #include diff --git a/mlir/lib/Quantizer/Configurations/FxpMathConfig.cpp b/mlir/lib/Quantizer/Configurations/FxpMathConfig.cpp --- a/mlir/lib/Quantizer/Configurations/FxpMathConfig.cpp +++ b/mlir/lib/Quantizer/Configurations/FxpMathConfig.cpp @@ -15,8 +15,8 @@ #include "mlir/Quantizer/Configurations/FxpMathConfig.h" #include "mlir/Dialect/FxpMathOps/FxpMathOps.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/Dialect/StandardOps/IR/Ops.h" #include "mlir/IR/Matchers.h" #include "mlir/IR/StandardTypes.h" diff --git a/mlir/lib/Quantizer/Support/UniformConstraints.cpp b/mlir/lib/Quantizer/Support/UniformConstraints.cpp --- a/mlir/lib/Quantizer/Support/UniformConstraints.cpp +++ b/mlir/lib/Quantizer/Support/UniformConstraints.cpp @@ -8,7 +8,7 @@ #include "mlir/Quantizer/Support/UniformConstraints.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/Diagnostics.h" #include "mlir/IR/Location.h" #include "mlir/IR/MLIRContext.h" diff --git a/mlir/lib/Quantizer/Transforms/AddDefaultStatsTestPass.cpp b/mlir/lib/Quantizer/Transforms/AddDefaultStatsTestPass.cpp --- a/mlir/lib/Quantizer/Transforms/AddDefaultStatsTestPass.cpp +++ b/mlir/lib/Quantizer/Transforms/AddDefaultStatsTestPass.cpp @@ -11,8 +11,8 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/Builders.h" #include "mlir/Quantizer/Configurations/FxpMathConfig.h" diff --git a/mlir/lib/Quantizer/Transforms/InferQuantizedTypesPass.cpp b/mlir/lib/Quantizer/Transforms/InferQuantizedTypesPass.cpp --- a/mlir/lib/Quantizer/Transforms/InferQuantizedTypesPass.cpp +++ b/mlir/lib/Quantizer/Transforms/InferQuantizedTypesPass.cpp @@ -12,8 +12,8 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/QuantTypes.h" #include "mlir/IR/Builders.h" #include "mlir/Quantizer/Configurations/FxpMathConfig.h" #include "mlir/Quantizer/Support/Configuration.h" diff --git a/mlir/lib/Quantizer/Transforms/RemoveInstrumentationPass.cpp b/mlir/lib/Quantizer/Transforms/RemoveInstrumentationPass.cpp --- a/mlir/lib/Quantizer/Transforms/RemoveInstrumentationPass.cpp +++ b/mlir/lib/Quantizer/Transforms/RemoveInstrumentationPass.cpp @@ -12,7 +12,7 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantOps.h" +#include "mlir/Dialect/Quant/QuantOps.h" #include "mlir/IR/MLIRContext.h" #include "mlir/IR/PatternMatch.h" #include "mlir/Pass/Pass.h" diff --git a/mlir/test/Dialect/QuantOps/canonicalize.mlir b/mlir/test/Dialect/Quant/canonicalize.mlir rename from mlir/test/Dialect/QuantOps/canonicalize.mlir rename to mlir/test/Dialect/Quant/canonicalize.mlir diff --git a/mlir/test/Dialect/QuantOps/convert-const.mlir b/mlir/test/Dialect/Quant/convert-const.mlir rename from mlir/test/Dialect/QuantOps/convert-const.mlir rename to mlir/test/Dialect/Quant/convert-const.mlir diff --git a/mlir/test/Dialect/QuantOps/convert-fakequant-invalid.mlir b/mlir/test/Dialect/Quant/convert-fakequant-invalid.mlir rename from mlir/test/Dialect/QuantOps/convert-fakequant-invalid.mlir rename to mlir/test/Dialect/Quant/convert-fakequant-invalid.mlir diff --git a/mlir/test/Dialect/QuantOps/convert-fakequant.mlir b/mlir/test/Dialect/Quant/convert-fakequant.mlir rename from mlir/test/Dialect/QuantOps/convert-fakequant.mlir rename to mlir/test/Dialect/Quant/convert-fakequant.mlir diff --git a/mlir/test/Dialect/QuantOps/parse-any-invalid.mlir b/mlir/test/Dialect/Quant/parse-any-invalid.mlir rename from mlir/test/Dialect/QuantOps/parse-any-invalid.mlir rename to mlir/test/Dialect/Quant/parse-any-invalid.mlir diff --git a/mlir/test/Dialect/QuantOps/parse-any.mlir b/mlir/test/Dialect/Quant/parse-any.mlir rename from mlir/test/Dialect/QuantOps/parse-any.mlir rename to mlir/test/Dialect/Quant/parse-any.mlir diff --git a/mlir/test/Dialect/QuantOps/parse-ops-invalid.mlir b/mlir/test/Dialect/Quant/parse-ops-invalid.mlir rename from mlir/test/Dialect/QuantOps/parse-ops-invalid.mlir rename to mlir/test/Dialect/Quant/parse-ops-invalid.mlir diff --git a/mlir/test/Dialect/QuantOps/parse-ops.mlir b/mlir/test/Dialect/Quant/parse-ops.mlir rename from mlir/test/Dialect/QuantOps/parse-ops.mlir rename to mlir/test/Dialect/Quant/parse-ops.mlir diff --git a/mlir/test/Dialect/QuantOps/parse-uniform-invalid.mlir b/mlir/test/Dialect/Quant/parse-uniform-invalid.mlir rename from mlir/test/Dialect/QuantOps/parse-uniform-invalid.mlir rename to mlir/test/Dialect/Quant/parse-uniform-invalid.mlir diff --git a/mlir/test/Dialect/QuantOps/parse-uniform.mlir b/mlir/test/Dialect/Quant/parse-uniform.mlir rename from mlir/test/Dialect/QuantOps/parse-uniform.mlir rename to mlir/test/Dialect/Quant/parse-uniform.mlir diff --git a/mlir/unittests/Dialect/QuantOps/QuantizationUtilsTest.cpp b/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp rename from mlir/unittests/Dialect/QuantOps/QuantizationUtilsTest.cpp rename to mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp --- a/mlir/unittests/Dialect/QuantOps/QuantizationUtilsTest.cpp +++ b/mlir/unittests/Dialect/Quant/QuantizationUtilsTest.cpp @@ -6,9 +6,9 @@ // //===----------------------------------------------------------------------===// -#include "mlir/Dialect/QuantOps/QuantOps.h" -#include "mlir/Dialect/QuantOps/QuantizeUtils.h" -#include "mlir/Dialect/QuantOps/UniformSupport.h" +#include "mlir/Dialect/Quant/QuantizeUtils.h" +#include "mlir/Dialect/Quant/QuantOps.h" +#include "mlir/Dialect/Quant/UniformSupport.h" #include "mlir/IR/Attributes.h" #include "mlir/IR/StandardTypes.h" #include "gmock/gmock.h"