Skip to content

Commit 763bdd8

Browse files
committed
Revert "[mlir] Improvements to the 'quant' dialect (llvm#100667)"
This reverts commit 852b648.
1 parent e2cc63d commit 763bdd8

38 files changed

+271
-2886
lines changed
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1-
add_subdirectory(IR)
2-
add_subdirectory(Transforms)
1+
add_mlir_dialect(QuantOps quant)
2+
add_mlir_doc(QuantOps QuantDialect Dialects/ -gen-dialect-doc)
3+
4+
set(LLVM_TARGET_DEFINITIONS QuantDialectBytecode.td)
5+
mlir_tablegen(QuantDialectBytecode.cpp.inc -gen-bytecode -bytecode-dialect="Quant")
6+
add_public_tablegen_target(MLIRQuantDialectBytecodeIncGen)

mlir/include/mlir/Dialect/Quant/Utils/FakeQuantSupport.h renamed to mlir/include/mlir/Dialect/Quant/FakeQuantSupport.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
//
3535
//===----------------------------------------------------------------------===//
3636

37-
#ifndef MLIR_DIALECT_QUANT_UTILS_FAKEQUANTSUPPORT_H_
38-
#define MLIR_DIALECT_QUANT_UTILS_FAKEQUANTSUPPORT_H_
37+
#ifndef MLIR_DIALECT_QUANT_FAKEQUANTSUPPORT_H_
38+
#define MLIR_DIALECT_QUANT_FAKEQUANTSUPPORT_H_
3939

40-
#include "mlir/Dialect/Quant/IR/QuantTypes.h"
40+
#include "mlir/Dialect/Quant/QuantTypes.h"
4141

4242
namespace mlir {
4343
namespace quant {
@@ -64,4 +64,4 @@ fakeQuantAttrsToType(Location loc, unsigned numBits, int32_t quantizedDimension,
6464
} // namespace quant
6565
} // namespace mlir
6666

67-
#endif // MLIR_DIALECT_QUANT_UTILS_FAKEQUANTSUPPORT_H_
67+
#endif // MLIR_DIALECT_QUANT_FAKEQUANTSUPPORT_H_

mlir/include/mlir/Dialect/Quant/IR/CMakeLists.txt

Lines changed: 0 additions & 6 deletions
This file was deleted.

mlir/include/mlir/Dialect/Quant/IR/QuantBase.td

Lines changed: 0 additions & 297 deletions
This file was deleted.

0 commit comments

Comments
 (0)