diff --git a/tensorflow/compiler/mlir/lite/flatbuffer_import.cc b/tensorflow/compiler/mlir/lite/flatbuffer_import.cc index 29233f86e4a..4b888764053 100644 --- a/tensorflow/compiler/mlir/lite/flatbuffer_import.cc +++ b/tensorflow/compiler/mlir/lite/flatbuffer_import.cc @@ -44,8 +44,8 @@ limitations under the License. #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/SourceMgr.h" #include "llvm/Support/raw_ostream.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project #include "mlir/Dialect/StandardOps/IR/Ops.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/Builders.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/flatbuffer_translate.cc b/tensorflow/compiler/mlir/lite/flatbuffer_translate.cc index a5831559546..a75c1b3bab2 100644 --- a/tensorflow/compiler/mlir/lite/flatbuffer_translate.cc +++ b/tensorflow/compiler/mlir/lite/flatbuffer_translate.cc @@ -41,7 +41,7 @@ limitations under the License. #include "llvm/Support/CommandLine.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/ToolOutputFile.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project #include "mlir/Dialect/StandardOps/IR/Ops.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/Builders.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/ir/tfl_ops.h b/tensorflow/compiler/mlir/lite/ir/tfl_ops.h index cfe18a218bc..ffdafc1844f 100644 --- a/tensorflow/compiler/mlir/lite/ir/tfl_ops.h +++ b/tensorflow/compiler/mlir/lite/ir/tfl_ops.h @@ -18,7 +18,7 @@ limitations under the License. #ifndef TENSORFLOW_COMPILER_MLIR_LITE_IR_TFL_OPS_H_ #define TENSORFLOW_COMPILER_MLIR_LITE_IR_TFL_OPS_H_ -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project #include "mlir/Dialect/Traits.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/Builders.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc b/tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc index 617f968b958..26062b96de0 100644 --- a/tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc +++ b/tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc @@ -23,8 +23,8 @@ limitations under the License. #include "llvm/ADT/StringSwitch.h" #include "llvm/Support/Regex.h" #include "llvm/Support/raw_ostream.h" -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/FakeQuantSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project #include "mlir/Dialect/StandardOps/IR/Ops.h" // TF:llvm-project #include "mlir/IR/AffineExpr.h" // TF:llvm-project #include "mlir/IR/AffineMap.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc b/tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc index 41efadde20d..d680c889d2c 100644 --- a/tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc +++ b/tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc @@ -15,7 +15,7 @@ limitations under the License. #include "tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.h" #include "llvm/Support/Casting.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" namespace mlir { diff --git a/tensorflow/compiler/mlir/lite/quantization/quantization.td b/tensorflow/compiler/mlir/lite/quantization/quantization.td index 966740e605f..7bfcdb65686 100644 --- a/tensorflow/compiler/mlir/lite/quantization/quantization.td +++ b/tensorflow/compiler/mlir/lite/quantization/quantization.td @@ -20,7 +20,7 @@ limitations under the License. #define TF_Quantization include "mlir/IR/OpBase.td" -include "mlir/Dialect/QuantOps/QuantOpsBase.td" +include "mlir/Dialect/Quant/QuantOpsBase.td" //===----------------------------------------------------------------------===// // QuantizedType definitions. diff --git a/tensorflow/compiler/mlir/lite/quantization/quantization_driver.cc b/tensorflow/compiler/mlir/lite/quantization/quantization_driver.cc index 5f52c892421..531a442fd6b 100644 --- a/tensorflow/compiler/mlir/lite/quantization/quantization_driver.cc +++ b/tensorflow/compiler/mlir/lite/quantization/quantization_driver.cc @@ -24,8 +24,8 @@ limitations under the License. #include "llvm/Support/Debug.h" #include "llvm/Support/ErrorHandling.h" #include "llvm/Support/raw_ostream.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project #include "mlir/Dialect/StandardOps/IR/Ops.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/Builders.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/quantization/quantization_traits.h b/tensorflow/compiler/mlir/lite/quantization/quantization_traits.h index db2567fbda0..885831ad0ce 100644 --- a/tensorflow/compiler/mlir/lite/quantization/quantization_traits.h +++ b/tensorflow/compiler/mlir/lite/quantization/quantization_traits.h @@ -18,7 +18,7 @@ limitations under the License. #ifndef TENSORFLOW_COMPILER_MLIR_LITE_QUANTIZATION_QUANTIZATION_TRAITS_H_ #define TENSORFLOW_COMPILER_MLIR_LITE_QUANTIZATION_QUANTIZATION_TRAITS_H_ -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project #include "mlir/Support/LLVM.h" // TF:llvm-project namespace mlir { diff --git a/tensorflow/compiler/mlir/lite/quantization/quantization_utils.cc b/tensorflow/compiler/mlir/lite/quantization/quantization_utils.cc index a321170349a..f5c7287631a 100644 --- a/tensorflow/compiler/mlir/lite/quantization/quantization_utils.cc +++ b/tensorflow/compiler/mlir/lite/quantization/quantization_utils.cc @@ -22,11 +22,11 @@ limitations under the License. #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/SmallVector.h" -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantizeUtils.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/UniformSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/FakeQuantSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantizeUtils.h" // TF:llvm-project +#include "mlir/Dialect/Quant/UniformSupport.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/MLIRContext.h" // TF:llvm-project #include "mlir/IR/StandardTypes.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/quantization/quantization_utils.h b/tensorflow/compiler/mlir/lite/quantization/quantization_utils.h index e9d29758823..6a54262363c 100644 --- a/tensorflow/compiler/mlir/lite/quantization/quantization_utils.h +++ b/tensorflow/compiler/mlir/lite/quantization/quantization_utils.h @@ -23,9 +23,9 @@ limitations under the License. #include "llvm/ADT/SmallVector.h" #include "llvm/Support/raw_ostream.h" -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/FakeQuantSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project #include "mlir/Dialect/StandardOps/IR/Ops.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/BlockAndValueMapping.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc b/tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc index d2884edafdf..1a310de8b01 100644 --- a/tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc +++ b/tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc @@ -12,7 +12,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project #include "mlir/IR/PatternMatch.h" // TF:llvm-project #include "mlir/Pass/Pass.h" // TF:llvm-project #include "tensorflow/compiler/mlir/lite/quantization/quantization_utils.h" diff --git a/tensorflow/compiler/mlir/lite/quantization/xla/materialize.cc b/tensorflow/compiler/mlir/lite/quantization/xla/materialize.cc index 59704b4c73a..ab170def2b5 100644 --- a/tensorflow/compiler/mlir/lite/quantization/xla/materialize.cc +++ b/tensorflow/compiler/mlir/lite/quantization/xla/materialize.cc @@ -25,7 +25,7 @@ limitations under the License. #include "llvm/ADT/StringRef.h" #include "llvm/Support/Casting.h" #include "llvm/Support/CommandLine.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project #include "mlir/Dialect/StandardOps/IR/Ops.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/MLIRContext.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc b/tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc index 30fe391762f..bb48c392a5f 100644 --- a/tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc +++ b/tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc @@ -25,8 +25,8 @@ limitations under the License. #include "absl/memory/memory.h" #include "llvm/ADT/STLExtras.h" #include "llvm/ADT/StringSwitch.h" -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/FakeQuantSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project #include "mlir/IR/Location.h" // TF:llvm-project #include "tensorflow/compiler/mlir/lite/ir/tfl_ops.h" #include "tensorflow/compiler/mlir/lite/quantization/quantization_utils.h" diff --git a/tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc b/tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc index 80689f7b7c4..3210ac7bc2b 100644 --- a/tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc +++ b/tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc @@ -28,8 +28,8 @@ limitations under the License. #include "llvm/ADT/APInt.h" #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringSwitch.h" -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/UniformSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/FakeQuantSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/UniformSupport.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/MLIRContext.h" // TF:llvm-project #include "mlir/IR/Operation.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/transforms/load_quantization_recipe.cc b/tensorflow/compiler/mlir/lite/transforms/load_quantization_recipe.cc index 4fde08bc1cf..59b1dcce35d 100644 --- a/tensorflow/compiler/mlir/lite/transforms/load_quantization_recipe.cc +++ b/tensorflow/compiler/mlir/lite/transforms/load_quantization_recipe.cc @@ -19,7 +19,7 @@ limitations under the License. #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/None.h" #include "llvm/ADT/Optional.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project #include "mlir/Dialect/StandardOps/IR/Ops.h" // TF:llvm-project #include "mlir/IR/Builders.h" // TF:llvm-project #include "mlir/IR/MLIRContext.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc b/tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc index 316a9d2cf2a..287b9ca911c 100644 --- a/tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc +++ b/tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc @@ -22,7 +22,7 @@ limitations under the License. #include "llvm/ADT/SmallVector.h" #include "llvm/ADT/StringRef.h" #include "llvm/Support/CommandLine.h" -#include "mlir/Dialect/QuantOps/QuantOps.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantOps.h" // TF:llvm-project #include "mlir/IR/MLIRContext.h" // TF:llvm-project #include "mlir/IR/PatternMatch.h" // TF:llvm-project #include "mlir/IR/Value.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc b/tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc index 1ff321780a4..efcc950cae0 100644 --- a/tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc +++ b/tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc @@ -39,8 +39,8 @@ limitations under the License. #include "llvm/Support/Casting.h" #include "llvm/Support/Debug.h" #include "mlir/Analysis/LoopAnalysis.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/FakeQuantSupport.h" // TF:llvm-project -#include "mlir/Dialect/QuantOps/UniformSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/FakeQuantSupport.h" // TF:llvm-project +#include "mlir/Dialect/Quant/UniformSupport.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/MLIRContext.h" // TF:llvm-project #include "mlir/IR/PatternMatch.h" // TF:llvm-project diff --git a/tensorflow/compiler/mlir/lite/transforms/quantize.cc b/tensorflow/compiler/mlir/lite/transforms/quantize.cc index a9570625400..c78b04df247 100644 --- a/tensorflow/compiler/mlir/lite/transforms/quantize.cc +++ b/tensorflow/compiler/mlir/lite/transforms/quantize.cc @@ -19,7 +19,7 @@ limitations under the License. #include "llvm/ADT/StringSwitch.h" #include "llvm/Support/Casting.h" #include "llvm/Support/Debug.h" -#include "mlir/Dialect/QuantOps/QuantTypes.h" // TF:llvm-project +#include "mlir/Dialect/Quant/QuantTypes.h" // TF:llvm-project #include "mlir/IR/Attributes.h" // TF:llvm-project #include "mlir/IR/Builders.h" // TF:llvm-project #include "mlir/IR/MLIRContext.h" // TF:llvm-project diff --git a/tensorflow/workspace.bzl b/tensorflow/workspace.bzl index 085ae961cd6..1bdcc0abd4f 100755 --- a/tensorflow/workspace.bzl +++ b/tensorflow/workspace.bzl @@ -597,8 +597,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""): ) # Check out LLVM and MLIR from llvm-project. - LLVM_COMMIT = "98369178bc695ba5d64314beb62d5ba5c9f14e2e" - LLVM_SHA256 = "c30eb278889c64e5a57e31d9bad794c6019d5396ce58a6ba874b0e4763f21097" + LLVM_COMMIT = "c5b81466c2bcc194e5563f39f5be3638760b4849" + LLVM_SHA256 = "f623a7e9585e76831abc967547dfbcd5a6ecd148ed5c4e088bdae94dc7d8bda7" LLVM_URLS = [ "https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT), "https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT), diff --git a/third_party/mlir/BUILD b/third_party/mlir/BUILD index 0e4ac2c07b6..e9fef46c4df 100644 --- a/third_party/mlir/BUILD +++ b/third_party/mlir/BUILD @@ -406,6 +406,52 @@ cc_library( ], ) +gentbl( + name = "ShapeOpsIncGen", + strip_include_prefix = "include", + tbl_outs = [ + ( + "-gen-op-decls", + "include/mlir/Dialect/Shape/IR/ShapeOps.h.inc", + ), + ( + "-gen-op-defs", + "include/mlir/Dialect/Shape/IR/ShapeOps.cpp.inc", + ), + ( + "-gen-dialect-decls", + "include/mlir/Dialect/Shape/IR/ShapeOpsDialect.h.inc", + ), + ], + tblgen = ":mlir-tblgen", + td_file = "include/mlir/Dialect/Shape/IR/ShapeOps.td", + td_srcs = [ + ":StdOpsTdFiles", + ], +) + +cc_library( + name = "Shape", + srcs = glob( + [ + "lib/Dialect/Shape/IR/*.cpp", + ], + ), + hdrs = glob([ + "include/mlir/Dialect/Shape/IR/*.h", + ]), + includes = ["include"], + deps = [ + ":CallOpInterfaces", + ":CommonFolders", + ":IR", + ":ShapeOpsIncGen", + ":SideEffects", + ":Support", + "@llvm-project//llvm:support", + ], +) + cc_library( name = "StandardOps", srcs = glob( @@ -439,15 +485,15 @@ cc_library( name = "VectorOps", srcs = glob( [ - "lib/Dialect/VectorOps/*.cpp", - "lib/Dialect/VectorOps/*.h", - "lib/Dialect/VectorOps/EDSC/*.cpp", - "lib/Dialect/VectorOps/EDSC/*.h", + "lib/Dialect/Vector/*.cpp", + "lib/Dialect/Vector/*.h", + "lib/Dialect/Vector/EDSC/*.cpp", + "lib/Dialect/Vector/EDSC/*.h", ], ), hdrs = glob([ - "include/mlir/Dialect/VectorOps/*.h", - "include/mlir/Dialect/VectorOps/EDSC/*.h", + "include/mlir/Dialect/Vector/*.h", + "include/mlir/Dialect/Vector/EDSC/*.h", ]), includes = ["include"], deps = [ @@ -2004,6 +2050,7 @@ cc_library( ":SDBM", ":SPIRVDialect", ":SPIRVLowering", + ":Shape", ":StandardOps", ":StandardToSPIRVConversions", ":Transforms", @@ -2256,8 +2303,8 @@ cc_library( filegroup( name = "QuantizationOpsTdFiles", srcs = [ - "include/mlir/Dialect/QuantOps/QuantOps.td", - "include/mlir/Dialect/QuantOps/QuantOpsBase.td", + "include/mlir/Dialect/Quant/QuantOps.td", + "include/mlir/Dialect/Quant/QuantOpsBase.td", "include/mlir/Interfaces/SideEffects.td", ":OpBaseTdFiles", ], @@ -2270,15 +2317,15 @@ gentbl( tbl_outs = [ ( "-gen-op-decls", - "include/mlir/Dialect/QuantOps/QuantOps.h.inc", + "include/mlir/Dialect/Quant/QuantOps.h.inc", ), ( "-gen-op-defs", - "include/mlir/Dialect/QuantOps/QuantOps.cpp.inc", + "include/mlir/Dialect/Quant/QuantOps.cpp.inc", ), ( "-gen-dialect-decls", - "include/mlir/Dialect/QuantOps/QuantOpsDialect.h.inc", + "include/mlir/Dialect/Quant/QuantOpsDialect.h.inc", ), ( "-gen-op-doc", @@ -2286,7 +2333,7 @@ gentbl( ), ], tblgen = ":mlir-tblgen", - td_file = "include/mlir/Dialect/QuantOps/QuantOps.td", + td_file = "include/mlir/Dialect/Quant/QuantOps.td", td_srcs = [ ":QuantizationOpsTdFiles", ], @@ -2295,23 +2342,23 @@ gentbl( cc_library( name = "QuantOps", srcs = [ - "lib/Dialect/QuantOps/IR/QuantOps.cpp", - "lib/Dialect/QuantOps/IR/QuantTypes.cpp", - "lib/Dialect/QuantOps/IR/TypeDetail.h", - "lib/Dialect/QuantOps/IR/TypeParser.cpp", - "lib/Dialect/QuantOps/Transforms/ConvertConst.cpp", - "lib/Dialect/QuantOps/Transforms/ConvertSimQuant.cpp", - "lib/Dialect/QuantOps/Utils/FakeQuantSupport.cpp", - "lib/Dialect/QuantOps/Utils/QuantizeUtils.cpp", - "lib/Dialect/QuantOps/Utils/UniformSupport.cpp", + "lib/Dialect/Quant/IR/QuantOps.cpp", + "lib/Dialect/Quant/IR/QuantTypes.cpp", + "lib/Dialect/Quant/IR/TypeDetail.h", + "lib/Dialect/Quant/IR/TypeParser.cpp", + "lib/Dialect/Quant/Transforms/ConvertConst.cpp", + "lib/Dialect/Quant/Transforms/ConvertSimQuant.cpp", + "lib/Dialect/Quant/Utils/FakeQuantSupport.cpp", + "lib/Dialect/Quant/Utils/QuantizeUtils.cpp", + "lib/Dialect/Quant/Utils/UniformSupport.cpp", ], hdrs = [ - "include/mlir/Dialect/QuantOps/FakeQuantSupport.h", - "include/mlir/Dialect/QuantOps/Passes.h", - "include/mlir/Dialect/QuantOps/QuantOps.h", - "include/mlir/Dialect/QuantOps/QuantTypes.h", - "include/mlir/Dialect/QuantOps/QuantizeUtils.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/QuantTypes.h", + "include/mlir/Dialect/Quant/QuantizeUtils.h", + "include/mlir/Dialect/Quant/UniformSupport.h", ], includes = ["include"], deps = [ @@ -2328,7 +2375,7 @@ filegroup( name = "FxpMathOpsTdFiles", srcs = [ "include/mlir/Dialect/FxpMathOps/FxpMathOps.td", - "include/mlir/Dialect/QuantOps/QuantOpsBase.td", + "include/mlir/Dialect/Quant/QuantOpsBase.td", "include/mlir/Interfaces/SideEffects.td", ":OpBaseTdFiles", ], @@ -2681,7 +2728,7 @@ cc_library( filegroup( name = "VectorOpsTdFiles", srcs = [ - "include/mlir/Dialect/VectorOps/VectorOps.td", + "include/mlir/Dialect/Vector/VectorOps.td", ":AffineOpsTdFiles", ":OpBaseTdFiles", ], @@ -2693,15 +2740,15 @@ gentbl( tbl_outs = [ ( "-gen-op-decls", - "include/mlir/Dialect/VectorOps/VectorOps.h.inc", + "include/mlir/Dialect/Vector/VectorOps.h.inc", ), ( "-gen-op-defs", - "include/mlir/Dialect/VectorOps/VectorOps.cpp.inc", + "include/mlir/Dialect/Vector/VectorOps.cpp.inc", ), ( "-gen-dialect-decls -dialect=vector", - "include/mlir/Dialect/VectorOps/VectorOpsDialect.h.inc", + "include/mlir/Dialect/Vector/VectorOpsDialect.h.inc", ), ( "-gen-op-doc", @@ -2709,7 +2756,7 @@ gentbl( ), ], tblgen = ":mlir-tblgen", - td_file = "include/mlir/Dialect/VectorOps/VectorOps.td", + td_file = "include/mlir/Dialect/Vector/VectorOps.td", td_srcs = [ ":VectorOpsTdFiles", ], @@ -2718,7 +2765,7 @@ gentbl( filegroup( name = "VectorTransformPatternsTdFiles", srcs = [ - "include/mlir/Dialect/VectorOps/VectorTransformPatterns.td", + "include/mlir/Dialect/Vector/VectorTransformPatterns.td", ":AffineOpsTdFiles", ":LinalgOpsTdFiles", ":LinalgStructuredOpsTdFiles", @@ -2733,11 +2780,11 @@ gentbl( tbl_outs = [ ( "-gen-rewriters", - "include/mlir/Dialect/VectorOps/VectorTransformPatterns.h.inc", + "include/mlir/Dialect/Vector/VectorTransformPatterns.h.inc", ), ], tblgen = ":mlir-tblgen", - td_file = "include/mlir/Dialect/VectorOps/VectorTransformPatterns.td", + td_file = "include/mlir/Dialect/Vector/VectorTransformPatterns.td", td_srcs = [ ":VectorTransformPatternsTdFiles", ],