[all-commits] [llvm/llvm-project] 7776b1: [MLIR] Move TestDialect to ::test namespace

stephenneuendorffer via All-commits all-commits at lists.llvm.org
Sat Aug 14 13:32:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7776b19eed44906e9973bfb240b6279d6feaab41
      https://github.com/llvm/llvm-project/commit/7776b19eed44906e9973bfb240b6279d6feaab41
  Author: Stephen Neuendorffer <stephen.neuendorffer at xilinx.com>
  Date:   2021-08-14 (Sat, 14 Aug 2021)

  Changed paths:
    M mlir/include/mlir/IR/BuiltinOps.td
    M mlir/include/mlir/IR/OpBase.td
    M mlir/include/mlir/IR/RegionKindInterface.td
    M mlir/include/mlir/Interfaces/InferTypeOpInterface.td
    M mlir/test/lib/Dialect/Test/TestAttributes.cpp
    M mlir/test/lib/Dialect/Test/TestDialect.cpp
    M mlir/test/lib/Dialect/Test/TestDialect.h
    M mlir/test/lib/Dialect/Test/TestInterfaces.td
    M mlir/test/lib/Dialect/Test/TestOps.td
    M mlir/test/lib/Dialect/Test/TestPatterns.cpp
    M mlir/test/lib/Dialect/Test/TestTraits.cpp
    M mlir/test/lib/Dialect/Test/TestTypeDefs.td
    M mlir/test/lib/Dialect/Test/TestTypes.cpp
    M mlir/test/lib/Dialect/Test/TestTypes.h
    M mlir/test/lib/IR/TestInterfaces.cpp
    M mlir/test/lib/IR/TestTypes.cpp
    M mlir/test/lib/Transforms/TestInlining.cpp
    M mlir/test/mlir-tblgen/attrdefs.td
    M mlir/test/mlir-tblgen/typedefs.td
    M mlir/tools/mlir-opt/mlir-opt.cpp
    M mlir/tools/mlir-reduce/mlir-reduce.cpp
    M mlir/unittests/IR/InterfaceAttachmentTest.cpp

  Log Message:
  -----------
  [MLIR] Move TestDialect to ::test namespace

While the changes are extensive, they basically fall into a few
categories:
1) Moving the TestDialect itself.
2) Updating C++ code in tablegen to explicitly use ::mlir, since it
will be put in a headers that shouldn't expect a 'using'.
3) Updating some generic MLIR Interface definitions to do the same thing.
4) Updating the Tablegen generator in a few places to be explicit about
namespaces
5) Doing the same thing for llvm references, since we no longer pick
up the definitions from mlir/Support/LLVM.h

Differential Revision: https://reviews.llvm.org/D88251




More information about the All-commits mailing list