Rename llvm-projects -> llvm-external-projects.
* Also renamed Dialects/iree -> Dialect/IREE to better conform with upstream.
* Per feedback from Sean Silva about confusing it with llvm-project.
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e2ea669..23913f4 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -348,7 +348,7 @@
set(_CMAKE_BUILD_TYPE "${CMAKE_BUILD_TYPE}")
# Add default external projects.
- iree_add_llvm_external_project(mlir-iree-dialects MLIR_IREE_DIALECTS ${CMAKE_CURRENT_SOURCE_DIR}/llvm-projects/iree-dialects)
+ iree_add_llvm_external_project(mlir-iree-dialects MLIR_IREE_DIALECTS ${CMAKE_CURRENT_SOURCE_DIR}/llvm-external-projects/iree-dialects)
iree_add_llvm_external_project(mlir-hlo MLIR_HLO ${CMAKE_CURRENT_SOURCE_DIR}/third_party/mlir-hlo)
add_subdirectory("third_party/llvm-project/llvm" EXCLUDE_FROM_ALL)
diff --git a/llvm-projects/README.md b/llvm-external-projects/README.md
similarity index 100%
rename from llvm-projects/README.md
rename to llvm-external-projects/README.md
diff --git a/llvm-projects/iree-compiler-api/.gitignore b/llvm-external-projects/iree-compiler-api/.gitignore
similarity index 100%
rename from llvm-projects/iree-compiler-api/.gitignore
rename to llvm-external-projects/iree-compiler-api/.gitignore
diff --git a/llvm-projects/iree-compiler-api/CMakeLists.txt b/llvm-external-projects/iree-compiler-api/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-compiler-api/CMakeLists.txt
rename to llvm-external-projects/iree-compiler-api/CMakeLists.txt
diff --git a/llvm-projects/iree-compiler-api/README.md b/llvm-external-projects/iree-compiler-api/README.md
similarity index 100%
rename from llvm-projects/iree-compiler-api/README.md
rename to llvm-external-projects/iree-compiler-api/README.md
diff --git a/llvm-projects/iree-compiler-api/build_tools/build_intree.sh b/llvm-external-projects/iree-compiler-api/build_tools/build_intree.sh
similarity index 100%
rename from llvm-projects/iree-compiler-api/build_tools/build_intree.sh
rename to llvm-external-projects/iree-compiler-api/build_tools/build_intree.sh
diff --git a/llvm-projects/iree-compiler-api/build_tools/build_python_wheels.sh b/llvm-external-projects/iree-compiler-api/build_tools/build_python_wheels.sh
similarity index 100%
rename from llvm-projects/iree-compiler-api/build_tools/build_python_wheels.sh
rename to llvm-external-projects/iree-compiler-api/build_tools/build_python_wheels.sh
diff --git a/llvm-projects/iree-compiler-api/build_tools/smoketest.py b/llvm-external-projects/iree-compiler-api/build_tools/smoketest.py
similarity index 100%
rename from llvm-projects/iree-compiler-api/build_tools/smoketest.py
rename to llvm-external-projects/iree-compiler-api/build_tools/smoketest.py
diff --git a/llvm-projects/iree-compiler-api/include/iree-compiler-c/Compiler.h b/llvm-external-projects/iree-compiler-api/include/iree-compiler-c/Compiler.h
similarity index 92%
rename from llvm-projects/iree-compiler-api/include/iree-compiler-c/Compiler.h
rename to llvm-external-projects/iree-compiler-api/include/iree-compiler-c/Compiler.h
index 5ff1284..6e946e8 100644
--- a/llvm-projects/iree-compiler-api/include/iree-compiler-c/Compiler.h
+++ b/llvm-external-projects/iree-compiler-api/include/iree-compiler-c/Compiler.h
@@ -4,8 +4,8 @@
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#ifndef IREE_LLVM_PROJECTS_IREE_COMPILER_API_COMPILER_H
-#define IREE_LLVM_PROJECTS_IREE_COMPILER_API_COMPILER_H
+#ifndef IREE_LLVM_EXTERNAL_PROJECTS_IREE_COMPILER_API_COMPILER_H
+#define IREE_LLVM_EXTERNAL_PROJECTS_IREE_COMPILER_API_COMPILER_H
#include "mlir-c/Pass.h"
#include "mlir-c/Support.h"
@@ -64,4 +64,4 @@
}
#endif
-#endif // IREE_LLVM_PROJECTS_IREE_COMPILER_API_COMPILER_H
+#endif // IREE_LLVM_EXTERNAL_PROJECTS_IREE_COMPILER_API_COMPILER_H
diff --git a/llvm-projects/iree-compiler-api/lib/CAPI/CMakeLists.txt b/llvm-external-projects/iree-compiler-api/lib/CAPI/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-compiler-api/lib/CAPI/CMakeLists.txt
rename to llvm-external-projects/iree-compiler-api/lib/CAPI/CMakeLists.txt
diff --git a/llvm-projects/iree-compiler-api/lib/CAPI/Compiler.cpp b/llvm-external-projects/iree-compiler-api/lib/CAPI/Compiler.cpp
similarity index 100%
rename from llvm-projects/iree-compiler-api/lib/CAPI/Compiler.cpp
rename to llvm-external-projects/iree-compiler-api/lib/CAPI/Compiler.cpp
diff --git a/llvm-projects/iree-compiler-api/lib/CMakeLists.txt b/llvm-external-projects/iree-compiler-api/lib/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-compiler-api/lib/CMakeLists.txt
rename to llvm-external-projects/iree-compiler-api/lib/CMakeLists.txt
diff --git a/llvm-projects/iree-compiler-api/pyproject.toml b/llvm-external-projects/iree-compiler-api/pyproject.toml
similarity index 100%
rename from llvm-projects/iree-compiler-api/pyproject.toml
rename to llvm-external-projects/iree-compiler-api/pyproject.toml
diff --git a/llvm-projects/iree-compiler-api/python/CMakeLists.txt b/llvm-external-projects/iree-compiler-api/python/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-compiler-api/python/CMakeLists.txt
rename to llvm-external-projects/iree-compiler-api/python/CMakeLists.txt
diff --git a/llvm-projects/iree-compiler-api/python/CompilerModule.cpp b/llvm-external-projects/iree-compiler-api/python/CompilerModule.cpp
similarity index 100%
rename from llvm-projects/iree-compiler-api/python/CompilerModule.cpp
rename to llvm-external-projects/iree-compiler-api/python/CompilerModule.cpp
diff --git a/llvm-projects/iree-compiler-api/python/iree/compiler/api/driver.py b/llvm-external-projects/iree-compiler-api/python/iree/compiler/api/driver.py
similarity index 100%
rename from llvm-projects/iree-compiler-api/python/iree/compiler/api/driver.py
rename to llvm-external-projects/iree-compiler-api/python/iree/compiler/api/driver.py
diff --git a/llvm-projects/iree-compiler-api/python/iree/compiler/version.py b/llvm-external-projects/iree-compiler-api/python/iree/compiler/version.py
similarity index 100%
rename from llvm-projects/iree-compiler-api/python/iree/compiler/version.py
rename to llvm-external-projects/iree-compiler-api/python/iree/compiler/version.py
diff --git a/llvm-projects/iree-compiler-api/setup.py b/llvm-external-projects/iree-compiler-api/setup.py
similarity index 100%
rename from llvm-projects/iree-compiler-api/setup.py
rename to llvm-external-projects/iree-compiler-api/setup.py
diff --git a/llvm-projects/iree-dialects/.gitignore b/llvm-external-projects/iree-dialects/.gitignore
similarity index 100%
rename from llvm-projects/iree-dialects/.gitignore
rename to llvm-external-projects/iree-dialects/.gitignore
diff --git a/llvm-projects/iree-dialects/CMakeLists.txt b/llvm-external-projects/iree-dialects/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-dialects/CMakeLists.txt
rename to llvm-external-projects/iree-dialects/CMakeLists.txt
diff --git a/llvm-projects/iree-dialects/README.md b/llvm-external-projects/iree-dialects/README.md
similarity index 100%
rename from llvm-projects/iree-dialects/README.md
rename to llvm-external-projects/iree-dialects/README.md
diff --git a/llvm-projects/iree-dialects/build_tools/build_standalone.sh b/llvm-external-projects/iree-dialects/build_tools/build_standalone.sh
similarity index 100%
rename from llvm-projects/iree-dialects/build_tools/build_standalone.sh
rename to llvm-external-projects/iree-dialects/build_tools/build_standalone.sh
diff --git a/llvm-projects/iree-dialects/include/CMakeLists.txt b/llvm-external-projects/iree-dialects/include/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-dialects/include/CMakeLists.txt
rename to llvm-external-projects/iree-dialects/include/CMakeLists.txt
diff --git a/llvm-projects/iree-dialects/include/iree-dialects-c/Dialects.h b/llvm-external-projects/iree-dialects/include/iree-dialects-c/Dialects.h
similarity index 66%
rename from llvm-projects/iree-dialects/include/iree-dialects-c/Dialects.h
rename to llvm-external-projects/iree-dialects/include/iree-dialects-c/Dialects.h
index f425260..4738007 100644
--- a/llvm-projects/iree-dialects/include/iree-dialects-c/Dialects.h
+++ b/llvm-external-projects/iree-dialects/include/iree-dialects-c/Dialects.h
@@ -4,8 +4,8 @@
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#ifndef IREE_LLVM_PROJECTS_IREE_DIALECTS_C_DIALECTS_H
-#define IREE_LLVM_PROJECTS_IREE_DIALECTS_C_DIALECTS_H
+#ifndef IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_C_DIALECTS_H
+#define IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_C_DIALECTS_H
#include "mlir-c/Registration.h"
@@ -19,4 +19,4 @@
}
#endif
-#endif // IREE_LLVM_PROJECTS_IREE_DIALECTS_C_DIALECTS_H
+#endif // IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_C_DIALECTS_H
diff --git a/llvm-external-projects/iree-dialects/include/iree-dialects/CMakeLists.txt b/llvm-external-projects/iree-dialects/include/iree-dialects/CMakeLists.txt
new file mode 100644
index 0000000..0ca0f41
--- /dev/null
+++ b/llvm-external-projects/iree-dialects/include/iree-dialects/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(Dialect)
diff --git a/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/CMakeLists.txt b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/CMakeLists.txt
new file mode 100644
index 0000000..952be9f
--- /dev/null
+++ b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(IREE)
diff --git a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/CMakeLists.txt b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/CMakeLists.txt
rename to llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/CMakeLists.txt
diff --git a/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEDialect.h b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEDialect.h
new file mode 100644
index 0000000..c0f948b
--- /dev/null
+++ b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEDialect.h
@@ -0,0 +1,16 @@
+// Copyright 2021 The IREE Authors
+//
+// Licensed under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+#ifndef IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_DIALECT_H
+#define IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_DIALECT_H
+
+#include "mlir/IR/Dialect.h"
+
+// Include generated dialect code (this comment blocks clang-format from
+// clobbering order).
+#include "iree-dialects/Dialect/IREE/IREEOpsDialect.h.inc"
+
+#endif // IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_DIALECT_H
diff --git a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEDialect.td b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEDialect.td
similarity index 82%
rename from llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEDialect.td
rename to llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEDialect.td
index d5bc802..5cf305c 100644
--- a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEDialect.td
+++ b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEDialect.td
@@ -4,8 +4,8 @@
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#ifndef IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_DIALECT_TD
-#define IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_DIALECT_TD
+#ifndef IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_DIALECT_TD
+#define IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_DIALECT_TD
include "mlir/IR/OpBase.td"
@@ -30,4 +30,4 @@
class IREE_Op<string mnemonic, list<OpTrait> traits = []> :
Op<IREE_Dialect, mnemonic, traits>;
-#endif // IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_DIALECT_TD
+#endif // IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_DIALECT_TD
diff --git a/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEOps.h b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEOps.h
new file mode 100644
index 0000000..53e5632
--- /dev/null
+++ b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEOps.h
@@ -0,0 +1,18 @@
+// Copyright 2021 The IREE Authors
+//
+// Licensed under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+#ifndef IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_OPS_H
+#define IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_OPS_H
+
+#include "mlir/IR/BuiltinTypes.h"
+#include "mlir/IR/Dialect.h"
+#include "mlir/IR/OpDefinition.h"
+#include "mlir/Interfaces/SideEffectInterfaces.h"
+
+#define GET_OP_CLASSES
+#include "iree-dialects/Dialect/IREE/IREEOps.h.inc"
+
+#endif // IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_OPS_H
diff --git a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEOps.td b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEOps.td
similarity index 62%
rename from llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEOps.td
rename to llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEOps.td
index e219180..8cd96db 100644
--- a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEOps.td
+++ b/llvm-external-projects/iree-dialects/include/iree-dialects/Dialect/IREE/IREEOps.td
@@ -4,10 +4,10 @@
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#ifndef IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_OPS_TD
-#define IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_OPS_TD
+#ifndef IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_OPS_TD
+#define IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_OPS_TD
-include "iree-dialects/Dialects/iree/IREEDialect.td"
+include "iree-dialects/Dialect/IREE/IREEDialect.td"
include "mlir/Interfaces/SideEffectInterfaces.td"
def IREE_DummyOp : IREE_Op<"dummy", [NoSideEffect]> {
@@ -16,4 +16,4 @@
let results = (outs);
}
-#endif // IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_OPS_TD
+#endif // IREE_LLVM_EXTERNAL_PROJECTS_IREE_DIALECTS_DIALECT_IREE_IREE_OPS_TD
diff --git a/llvm-projects/iree-dialects/lib/CAPI/CMakeLists.txt b/llvm-external-projects/iree-dialects/lib/CAPI/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-dialects/lib/CAPI/CMakeLists.txt
rename to llvm-external-projects/iree-dialects/lib/CAPI/CMakeLists.txt
diff --git a/llvm-projects/iree-dialects/lib/CAPI/Dialects.cpp b/llvm-external-projects/iree-dialects/lib/CAPI/Dialects.cpp
similarity index 87%
rename from llvm-projects/iree-dialects/lib/CAPI/Dialects.cpp
rename to llvm-external-projects/iree-dialects/lib/CAPI/Dialects.cpp
index 62e7e72..924fbbc 100644
--- a/llvm-projects/iree-dialects/lib/CAPI/Dialects.cpp
+++ b/llvm-external-projects/iree-dialects/lib/CAPI/Dialects.cpp
@@ -6,7 +6,7 @@
#include "iree-dialects-c/Dialects.h"
-#include "iree-dialects/Dialects/iree/IREEDialect.h"
+#include "iree-dialects/Dialect/IREE/IREEDialect.h"
#include "mlir/CAPI/Registration.h"
MLIR_DEFINE_CAPI_DIALECT_REGISTRATION(IREE, iree, mlir::iree::IREEDialect)
diff --git a/llvm-external-projects/iree-dialects/lib/CMakeLists.txt b/llvm-external-projects/iree-dialects/lib/CMakeLists.txt
new file mode 100644
index 0000000..47ce6dd
--- /dev/null
+++ b/llvm-external-projects/iree-dialects/lib/CMakeLists.txt
@@ -0,0 +1,2 @@
+add_subdirectory(CAPI)
+add_subdirectory(Dialect)
diff --git a/llvm-external-projects/iree-dialects/lib/Dialect/CMakeLists.txt b/llvm-external-projects/iree-dialects/lib/Dialect/CMakeLists.txt
new file mode 100644
index 0000000..952be9f
--- /dev/null
+++ b/llvm-external-projects/iree-dialects/lib/Dialect/CMakeLists.txt
@@ -0,0 +1 @@
+add_subdirectory(IREE)
diff --git a/llvm-projects/iree-dialects/lib/Dialects/iree/CMakeLists.txt b/llvm-external-projects/iree-dialects/lib/Dialect/IREE/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-dialects/lib/Dialects/iree/CMakeLists.txt
rename to llvm-external-projects/iree-dialects/lib/Dialect/IREE/CMakeLists.txt
diff --git a/llvm-projects/iree-dialects/lib/Dialects/iree/IREEDialect.cpp b/llvm-external-projects/iree-dialects/lib/Dialect/IREE/IREEDialect.cpp
similarity index 62%
rename from llvm-projects/iree-dialects/lib/Dialects/iree/IREEDialect.cpp
rename to llvm-external-projects/iree-dialects/lib/Dialect/IREE/IREEDialect.cpp
index c964b3b..6bf1a1c 100644
--- a/llvm-projects/iree-dialects/lib/Dialects/iree/IREEDialect.cpp
+++ b/llvm-external-projects/iree-dialects/lib/Dialect/IREE/IREEDialect.cpp
@@ -4,18 +4,18 @@
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#include "iree-dialects/Dialects/iree/IREEDialect.h"
+#include "iree-dialects/Dialect/IREE/IREEDialect.h"
-#include "iree-dialects/Dialects/iree/IREEOps.h"
+#include "iree-dialects/Dialect/IREE/IREEOps.h"
using namespace mlir;
using namespace mlir::iree;
-#include "iree-dialects/Dialects/iree/IREEOpsDialect.cpp.inc"
+#include "iree-dialects/Dialect/IREE/IREEOpsDialect.cpp.inc"
void IREEDialect::initialize() {
addOperations<
#define GET_OP_LIST
-#include "iree-dialects/Dialects/iree/IREEOps.cpp.inc"
+#include "iree-dialects/Dialect/IREE/IREEOps.cpp.inc"
>();
}
diff --git a/llvm-projects/iree-dialects/lib/Dialects/iree/IREEOps.cpp b/llvm-external-projects/iree-dialects/lib/Dialect/IREE/IREEOps.cpp
similarity index 64%
rename from llvm-projects/iree-dialects/lib/Dialects/iree/IREEOps.cpp
rename to llvm-external-projects/iree-dialects/lib/Dialect/IREE/IREEOps.cpp
index 39c4dff..c5a943d 100644
--- a/llvm-projects/iree-dialects/lib/Dialects/iree/IREEOps.cpp
+++ b/llvm-external-projects/iree-dialects/lib/Dialect/IREE/IREEOps.cpp
@@ -4,10 +4,10 @@
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-#include "iree-dialects/Dialects/iree/IREEOps.h"
+#include "iree-dialects/Dialect/IREE/IREEOps.h"
-#include "iree-dialects/Dialects/iree/IREEDialect.h"
+#include "iree-dialects/Dialect/IREE/IREEDialect.h"
#include "mlir/IR/OpImplementation.h"
#define GET_OP_CLASSES
-#include "iree-dialects/Dialects/iree/IREEOps.cpp.inc"
+#include "iree-dialects/Dialect/IREE/IREEOps.cpp.inc"
diff --git a/llvm-projects/iree-dialects/python/CMakeLists.txt b/llvm-external-projects/iree-dialects/python/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-dialects/python/CMakeLists.txt
rename to llvm-external-projects/iree-dialects/python/CMakeLists.txt
diff --git a/llvm-projects/iree-dialects/python/IREEDialectsModule.cpp b/llvm-external-projects/iree-dialects/python/IREEDialectsModule.cpp
similarity index 100%
rename from llvm-projects/iree-dialects/python/IREEDialectsModule.cpp
rename to llvm-external-projects/iree-dialects/python/IREEDialectsModule.cpp
diff --git a/llvm-projects/iree-dialects/python/mlir/dialects/IreeBinding.td b/llvm-external-projects/iree-dialects/python/mlir/dialects/IreeBinding.td
similarity index 88%
rename from llvm-projects/iree-dialects/python/mlir/dialects/IreeBinding.td
rename to llvm-external-projects/iree-dialects/python/mlir/dialects/IreeBinding.td
index f03fcee..7ce2899 100644
--- a/llvm-projects/iree-dialects/python/mlir/dialects/IreeBinding.td
+++ b/llvm-external-projects/iree-dialects/python/mlir/dialects/IreeBinding.td
@@ -8,6 +8,6 @@
#define PYTHON_BINDINGS_IREE_OPS
include "mlir/Bindings/Python/Attributes.td"
-include "iree-dialects/Dialects/iree/IREEOps.td"
+include "iree-dialects/Dialect/IREE/IREEOps.td"
#endif // PYTHON_BINDINGS_IREE_OPS
diff --git a/llvm-projects/iree-dialects/python/mlir/dialects/iree.py b/llvm-external-projects/iree-dialects/python/mlir/dialects/iree.py
similarity index 100%
rename from llvm-projects/iree-dialects/python/mlir/dialects/iree.py
rename to llvm-external-projects/iree-dialects/python/mlir/dialects/iree.py
diff --git a/llvm-projects/iree-dialects/test/CMakeLists.txt b/llvm-external-projects/iree-dialects/test/CMakeLists.txt
similarity index 100%
rename from llvm-projects/iree-dialects/test/CMakeLists.txt
rename to llvm-external-projects/iree-dialects/test/CMakeLists.txt
diff --git a/llvm-projects/iree-dialects/test/dummy.py b/llvm-external-projects/iree-dialects/test/dummy.py
similarity index 100%
rename from llvm-projects/iree-dialects/test/dummy.py
rename to llvm-external-projects/iree-dialects/test/dummy.py
diff --git a/llvm-projects/iree-dialects/test/lit.cfg.py b/llvm-external-projects/iree-dialects/test/lit.cfg.py
similarity index 100%
rename from llvm-projects/iree-dialects/test/lit.cfg.py
rename to llvm-external-projects/iree-dialects/test/lit.cfg.py
diff --git a/llvm-projects/iree-dialects/test/lit.site.cfg.py.in b/llvm-external-projects/iree-dialects/test/lit.site.cfg.py.in
similarity index 100%
rename from llvm-projects/iree-dialects/test/lit.site.cfg.py.in
rename to llvm-external-projects/iree-dialects/test/lit.site.cfg.py.in
diff --git a/llvm-projects/iree-dialects/test/python/lit.local.cfg b/llvm-external-projects/iree-dialects/test/python/lit.local.cfg
similarity index 100%
rename from llvm-projects/iree-dialects/test/python/lit.local.cfg
rename to llvm-external-projects/iree-dialects/test/python/lit.local.cfg
diff --git a/llvm-projects/iree-dialects/test/python/smoketest.py b/llvm-external-projects/iree-dialects/test/python/smoketest.py
similarity index 100%
rename from llvm-projects/iree-dialects/test/python/smoketest.py
rename to llvm-external-projects/iree-dialects/test/python/smoketest.py
diff --git a/llvm-projects/iree-dialects/include/iree-dialects/CMakeLists.txt b/llvm-projects/iree-dialects/include/iree-dialects/CMakeLists.txt
deleted file mode 100644
index 7315b80..0000000
--- a/llvm-projects/iree-dialects/include/iree-dialects/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-add_subdirectory(Dialects)
diff --git a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/CMakeLists.txt b/llvm-projects/iree-dialects/include/iree-dialects/Dialects/CMakeLists.txt
deleted file mode 100644
index c931a54..0000000
--- a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-add_subdirectory(iree)
diff --git a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEDialect.h b/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEDialect.h
deleted file mode 100644
index 7f9c0ac..0000000
--- a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEDialect.h
+++ /dev/null
@@ -1,16 +0,0 @@
-// Copyright 2021 The IREE Authors
-//
-// Licensed under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-
-#ifndef IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_DIALECT_H
-#define IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_DIALECT_H
-
-#include "mlir/IR/Dialect.h"
-
-// Include generated dialect code (this comment blocks clang-format from
-// clobbering order).
-#include "iree-dialects/Dialects/iree/IREEOpsDialect.h.inc"
-
-#endif // IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_DIALECT_H
diff --git a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEOps.h b/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEOps.h
deleted file mode 100644
index 3d2d9cf..0000000
--- a/llvm-projects/iree-dialects/include/iree-dialects/Dialects/iree/IREEOps.h
+++ /dev/null
@@ -1,18 +0,0 @@
-// Copyright 2021 The IREE Authors
-//
-// Licensed under the Apache License v2.0 with LLVM Exceptions.
-// See https://llvm.org/LICENSE.txt for license information.
-// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
-
-#ifndef IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_OPS_H
-#define IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_OPS_H
-
-#include "mlir/IR/BuiltinTypes.h"
-#include "mlir/IR/Dialect.h"
-#include "mlir/IR/OpDefinition.h"
-#include "mlir/Interfaces/SideEffectInterfaces.h"
-
-#define GET_OP_CLASSES
-#include "iree-dialects/Dialects/iree/IREEOps.h.inc"
-
-#endif // IREE_LLVM_PROJECTS_IREE_DIALECTS_DIALECTS_IREE_IREE_OPS_H
diff --git a/llvm-projects/iree-dialects/lib/CMakeLists.txt b/llvm-projects/iree-dialects/lib/CMakeLists.txt
deleted file mode 100644
index 23e377d..0000000
--- a/llvm-projects/iree-dialects/lib/CMakeLists.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-add_subdirectory(CAPI)
-add_subdirectory(Dialects)
diff --git a/llvm-projects/iree-dialects/lib/Dialects/CMakeLists.txt b/llvm-projects/iree-dialects/lib/Dialects/CMakeLists.txt
deleted file mode 100644
index c931a54..0000000
--- a/llvm-projects/iree-dialects/lib/Dialects/CMakeLists.txt
+++ /dev/null
@@ -1 +0,0 @@
-add_subdirectory(iree)