Update URLs from `master` to `main` branch. (#2335)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d8cdbaa..61d405b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -52,8 +52,8 @@
set(IREE_TARGET_BACKENDS_TO_BUILD "all"
CACHE STRING "Semicolon-separated list of target backends to build, or \"all\"." FORCE)
# LINT.ThenChange(
-# https://github.com/google/iree/tree/master/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_options,
-# https://github.com/google/iree/tree/master/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_invoke
+# https://github.com/google/iree/tree/main/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_options,
+# https://github.com/google/iree/tree/main/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_invoke
# )
if(${IREE_BUILD_SAMPLES} OR ${IREE_BUILD_EXPERIMENTAL})
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index d4dddf8..afa3e64 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -58,7 +58,7 @@
## Peculiarities
Our documentation on
-[repository management](https://github.com/google/iree/blob/master/docs/repository_management.md)
+[repository management](https://github.com/google/iree/blob/main/docs/repository_management.md)
has more information on some of the oddities in our repository setup and
workflows. For the most part, these should be transparent to normal developer
workflows.
diff --git a/bindings/java/com/google/iree/Module.java b/bindings/java/com/google/iree/Module.java
index 734c25a..4eee4a5 100644
--- a/bindings/java/com/google/iree/Module.java
+++ b/bindings/java/com/google/iree/Module.java
@@ -23,7 +23,7 @@
/**
* Creates a VM module from a flatbuffer. The input ByteBuffer must be direct, and acceptable
* schemas for the flatbuffer are available at
- * https://github.com/google/iree/tree/master/iree/schemas.
+ * https://github.com/google/iree/tree/main/iree/schemas.
*/
public Module(ByteBuffer flatbufferData) throws Exception {
nativeAddress = nativeNew();
diff --git a/build_tools/cmake/iree_cross_compile.cmake b/build_tools/cmake/iree_cross_compile.cmake
index 2568abd..a2f792d 100644
--- a/build_tools/cmake/iree_cross_compile.cmake
+++ b/build_tools/cmake/iree_cross_compile.cmake
@@ -92,8 +92,8 @@
string(REPLACE ";" "$<SEMICOLON>" _CONFIG_HAL_DRIVERS_TO_BUILD "${IREE_HAL_DRIVERS_TO_BUILD}")
string(REPLACE ";" "$<SEMICOLON>" _CONFIG_TARGET_BACKENDS_TO_BUILD "${IREE_TARGET_BACKENDS_TO_BUILD}")
# LINT.ThenChange(
- # https://github.com/google/iree/tree/master/CMakeLists.txt:iree_options,
- # https://github.com/google/iree/tree/master/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_invoke
+ # https://github.com/google/iree/tree/main/CMakeLists.txt:iree_options,
+ # https://github.com/google/iree/tree/main/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_invoke
# )
message(STATUS "C compiler for ${CONFIG_NAME} build: ${_CONFIG_C_COMPILER}")
@@ -117,8 +117,8 @@
-DIREE_BUILD_PYTHON_BINDINGS=${_CONFIG_BUILD_PYTHON_BINDINGS}
-DIREE_BUILD_EXPERIMENTAL=${_CONFIG_BUILD_EXPERIMENTAL}
# LINT.ThenChange(
- # https://github.com/google/iree/tree/master/CMakeLists.txt:iree_options,
- # https://github.com/google/iree/tree/master/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_options,
+ # https://github.com/google/iree/tree/main/CMakeLists.txt:iree_options,
+ # https://github.com/google/iree/tree/main/build_tools/cmake/iree_cross_compile.cmake:iree_cross_compile_options,
# )
-DIREE_HAL_DRIVERS_TO_BUILD="${_CONFIG_HAL_DRIVERS_TO_BUILD}"
-DIREE_TARGET_BACKENDS_TO_BUILD="${_CONFIG_TARGET_BACKENDS_TO_BUILD}"
diff --git a/colab/README.md b/colab/README.md
index a1a35bd..d35df2a 100644
--- a/colab/README.md
+++ b/colab/README.md
@@ -12,20 +12,20 @@
Constructs a TF module for performing image edge detection and runs it using
IREE
-[](https://colab.research.google.com/github/google/iree/blob/master/colab/edge_detection.ipynb)
+[](https://colab.research.google.com/github/google/iree/blob/main/colab/edge_detection.ipynb)
### [low_level_invoke_function\.ipynb](low_level_invoke_function.ipynb)
Shows off some concepts of the low level IREE python bindings
-[](https://colab.research.google.com/github/google/iree/blob/master/colab/low_level_invoke_function.ipynb)
+[](https://colab.research.google.com/github/google/iree/blob/main/colab/low_level_invoke_function.ipynb)
### [mnist_tensorflow\.ipynb](mnist_tensorflow.ipynb)
Trains a TensorFlow 2.0 model for recognizing handwritten digits and runs it
using IREE
-[](https://colab.research.google.com/github/google/iree/blob/master/colab/mnist_tensorflow.ipynb)
+[](https://colab.research.google.com/github/google/iree/blob/main/colab/mnist_tensorflow.ipynb)
### [resnet\.ipynb](resnet.ipynb)
@@ -33,13 +33,13 @@
[ResNet50](https://www.tensorflow.org/api_docs/python/tf/keras/applications/ResNet50)
model and runs it using IREE
-[](https://colab.research.google.com/github/google/iree/blob/master/colab/resnet.ipynb)
+[](https://colab.research.google.com/github/google/iree/blob/main/colab/resnet.ipynb)
### [simple_tensorflow_module_import\.ipynb](simple_tensorflow_module_import.ipynb)
Defines a simple TF module, saves it and loads it in IREE
-[](https://colab.research.google.com/github/google/iree/blob/master/colab/simple_tensorflow_module_import.ipynb)
+[](https://colab.research.google.com/github/google/iree/blob/main/colab/simple_tensorflow_module_import.ipynb)
## Working with GitHub
diff --git a/colab/mnist_tensorflow.ipynb b/colab/mnist_tensorflow.ipynb
index b791a3b..734e338 100644
--- a/colab/mnist_tensorflow.ipynb
+++ b/colab/mnist_tensorflow.ipynb
@@ -69,7 +69,7 @@
"\n",
"## Running Locally\n",
"\n",
- "* Refer to [iree/docs/using_colab.md](https://github.com/google/iree/blob/master/docs/using_colab.md) for general information\n",
+ "* Refer to [iree/docs/using_colab.md](https://github.com/google/iree/blob/main/docs/using_colab.md) for general information\n",
"* Ensure that you have a recent version of TensorFlow 2.0 [installed on your system](https://www.tensorflow.org/install)\n",
"* Enable IREE/TF integration by adding to your user.bazelrc: `build --define=iree_tensorflow=true`\n",
"* Start colab by running `python colab/start_colab_kernel.py` (see that file for additional instructions)\n",
diff --git a/docs/GetStarted/getting_started_linux_bazel.md b/docs/GetStarted/getting_started_linux_bazel.md
index 738a365..8d4a9dc 100644
--- a/docs/GetStarted/getting_started_linux_bazel.md
+++ b/docs/GetStarted/getting_started_linux_bazel.md
@@ -20,7 +20,7 @@
### Install Bazel
Install Bazel version > 2.0.0 (see
-[`.bazelversion`](https://github.com/google/iree/blob/master/.bazelversion) for
+[`.bazelversion`](https://github.com/google/iree/blob/main/.bazelversion) for
the specific version IREE uses) by following the
[official docs](https://docs.bazel.build/versions/master/install.html).
@@ -112,7 +112,7 @@
```
Translate a
-[MLIR file](https://github.com/google/iree/blob/master/iree/tools/test/simple.mlir)
+[MLIR file](https://github.com/google/iree/blob/main/iree/tools/test/simple.mlir)
and execute a function in the compiled module:
```shell
diff --git a/docs/GetStarted/getting_started_linux_cmake.md b/docs/GetStarted/getting_started_linux_cmake.md
index ed7856e..70da146 100644
--- a/docs/GetStarted/getting_started_linux_cmake.md
+++ b/docs/GetStarted/getting_started_linux_cmake.md
@@ -77,7 +77,7 @@
> Tip:<br>
> The root
-> [CMakeLists.txt](https://github.com/google/iree/blob/master/CMakeLists.txt)
+> [CMakeLists.txt](https://github.com/google/iree/blob/main/CMakeLists.txt)
> file has options for configuring which parts of the project to enable.<br>
> These are further documented in [CMake Options and Variables](cmake_options_and_variables.md).
@@ -99,7 +99,7 @@
```
Translate a
-[MLIR file](https://github.com/google/iree/blob/master/iree/tools/test/simple.mlir)
+[MLIR file](https://github.com/google/iree/blob/main/iree/tools/test/simple.mlir)
and execute a function in the compiled module:
```shell
diff --git a/docs/GetStarted/getting_started_linux_vulkan.md b/docs/GetStarted/getting_started_linux_vulkan.md
index 9ee8c61..5a0fd7f 100644
--- a/docs/GetStarted/getting_started_linux_vulkan.md
+++ b/docs/GetStarted/getting_started_linux_vulkan.md
@@ -39,7 +39,7 @@
### Quick Start
The
-[dynamic_symbols_test](https://github.com/google/iree/blob/master/iree/hal/vulkan/dynamic_symbols_test.cc)
+[dynamic_symbols_test](https://github.com/google/iree/blob/main/iree/hal/vulkan/dynamic_symbols_test.cc)
checks if the Vulkan loader and a valid ICD are accessible.
Run the test:
@@ -58,7 +58,7 @@
HAL, which includes checking for supported layers and extensions.
Run the
-[device creation test](https://github.com/google/iree/blob/master/iree/hal/cts/device_creation_test.cc):
+[device creation test](https://github.com/google/iree/blob/main/iree/hal/cts/device_creation_test.cc):
```shell
# -- CMake --
@@ -79,7 +79,7 @@
SwiftShader's Vulkan ICD (Installable Client Driver).
IREE has a
-[helper script](https://github.com/google/iree/blob/master/build_tools/third_party/swiftshader/build_vk_swiftshader.sh)
+[helper script](https://github.com/google/iree/blob/main/build_tools/third_party/swiftshader/build_vk_swiftshader.sh)
for building SwiftShader from source using CMake:
```shell
diff --git a/docs/GetStarted/getting_started_macos_bazel.md b/docs/GetStarted/getting_started_macos_bazel.md
index a169f8d..2b285eb 100644
--- a/docs/GetStarted/getting_started_macos_bazel.md
+++ b/docs/GetStarted/getting_started_macos_bazel.md
@@ -115,7 +115,7 @@
```
Translate a
-[MLIR file](https://github.com/google/iree/blob/master/iree/tools/test/simple.mlir)
+[MLIR file](https://github.com/google/iree/blob/main/iree/tools/test/simple.mlir)
and execute a function in the compiled module:
```shell
diff --git a/docs/GetStarted/getting_started_macos_cmake.md b/docs/GetStarted/getting_started_macos_cmake.md
index 59d22e8..51ef0ab 100644
--- a/docs/GetStarted/getting_started_macos_cmake.md
+++ b/docs/GetStarted/getting_started_macos_cmake.md
@@ -77,7 +77,7 @@
> Tip:<br>
> The root
-> [CMakeLists.txt](https://github.com/google/iree/blob/master/CMakeLists.txt)
+> [CMakeLists.txt](https://github.com/google/iree/blob/main/CMakeLists.txt)
> file has options for configuring which parts of the project to enable.<br>
> These are further documented in [CMake Options and Variables](cmake_options_and_variables.md).
@@ -99,7 +99,7 @@
```
Translate a
-[MLIR file](https://github.com/google/iree/blob/master/iree/tools/test/simple.mlir)
+[MLIR file](https://github.com/google/iree/blob/main/iree/tools/test/simple.mlir)
and execute a function in the compiled module:
```shell
diff --git a/docs/GetStarted/getting_started_python.md b/docs/GetStarted/getting_started_python.md
index 627dd3d..1a0452b 100644
--- a/docs/GetStarted/getting_started_python.md
+++ b/docs/GetStarted/getting_started_python.md
@@ -61,9 +61,9 @@
## Using Colab
See
-[start_colab_kernel.py](https://github.com/google/iree/blob/master/colab/start_colab_kernel.py)
+[start_colab_kernel.py](https://github.com/google/iree/blob/main/colab/start_colab_kernel.py)
and
-[Using Colab](https://github.com/google/iree/blob/master/docs/using_colab.md)
+[Using Colab](https://github.com/google/iree/blob/main/docs/using_colab.md)
for setup instructions, then take a look through the
-[Colab directory](https://github.com/google/iree/tree/master/colab) for some
+[Colab directory](https://github.com/google/iree/tree/main/colab) for some
sample notebooks.
diff --git a/docs/GetStarted/getting_started_windows_bazel.md b/docs/GetStarted/getting_started_windows_bazel.md
index 3eb660d..d3f01c3 100644
--- a/docs/GetStarted/getting_started_windows_bazel.md
+++ b/docs/GetStarted/getting_started_windows_bazel.md
@@ -25,7 +25,7 @@
### Install Bazel
Install Bazel version > 2.0.0 (see
-[`.bazelversion`](https://github.com/google/iree/blob/master/.bazelversion) for
+[`.bazelversion`](https://github.com/google/iree/blob/main/.bazelversion) for
the specific version IREE uses) by following the
[official docs](https://docs.bazel.build/versions/master/install-windows.html).
@@ -108,7 +108,7 @@
```
Translate a
-[MLIR file](https://github.com/google/iree/blob/master/iree/tools/test/simple.mlir)
+[MLIR file](https://github.com/google/iree/blob/main/iree/tools/test/simple.mlir)
and execute a function in the compiled module:
```powershell
diff --git a/docs/GetStarted/getting_started_windows_cmake.md b/docs/GetStarted/getting_started_windows_cmake.md
index 77d4fe4..dcab418 100644
--- a/docs/GetStarted/getting_started_windows_cmake.md
+++ b/docs/GetStarted/getting_started_windows_cmake.md
@@ -75,7 +75,7 @@
> Tip:<br>
> The root
-> [CMakeLists.txt](https://github.com/google/iree/blob/master/CMakeLists.txt)
+> [CMakeLists.txt](https://github.com/google/iree/blob/main/CMakeLists.txt)
> file has options for configuring which parts of the project to enable.<br>
> These are further documented in [CMake Options and Variables](cmake_options_and_variables.md).
@@ -97,7 +97,7 @@
```
Translate a
-[MLIR file](https://github.com/google/iree/blob/master/iree/tools/test/simple.mlir)
+[MLIR file](https://github.com/google/iree/blob/main/iree/tools/test/simple.mlir)
and execute a function in the compiled module:
```powershell
diff --git a/docs/GetStarted/getting_started_windows_vulkan.md b/docs/GetStarted/getting_started_windows_vulkan.md
index 9ceee2a..4e6c7b9 100644
--- a/docs/GetStarted/getting_started_windows_vulkan.md
+++ b/docs/GetStarted/getting_started_windows_vulkan.md
@@ -39,7 +39,7 @@
### Quick Start
The
-[dynamic_symbols_test](https://github.com/google/iree/blob/master/iree/hal/vulkan/dynamic_symbols_test.cc)
+[dynamic_symbols_test](https://github.com/google/iree/blob/main/iree/hal/vulkan/dynamic_symbols_test.cc)
checks if the Vulkan loader and a valid ICD are accessible.
Run the test:
@@ -58,7 +58,7 @@
HAL, which includes checking for supported layers and extensions.
Run the
-[device creation test](https://github.com/google/iree/blob/master/iree/hal/cts/device_creation_test.cc):
+[device creation test](https://github.com/google/iree/blob/main/iree/hal/cts/device_creation_test.cc):
```powershell
# -- CMake --
diff --git a/docs/developer_overview.md b/docs/developer_overview.md
index 7ab969b..f23cd89 100644
--- a/docs/developer_overview.md
+++ b/docs/developer_overview.md
@@ -5,48 +5,48 @@
## Project Code Layout
-[iree/](https://github.com/google/iree/blob/master/iree/)
+[iree/](https://github.com/google/iree/blob/main/iree/)
* Core IREE project
-[integrations/](https://github.com/google/iree/blob/master/integrations/)
+[integrations/](https://github.com/google/iree/blob/main/integrations/)
* Integrations between IREE and other frameworks, such as TensorFlow
-[bindings/](https://github.com/google/iree/blob/master/bindings/)
+[bindings/](https://github.com/google/iree/blob/main/bindings/)
* Language and platform bindings, such as Python
-[colab/](https://github.com/google/iree/blob/master/colab/)
+[colab/](https://github.com/google/iree/blob/main/colab/)
* Colab notebooks for interactively using IREE's Python bindings
## IREE Code Layout
-[iree/base/](https://github.com/google/iree/blob/master/iree/base/)
+[iree/base/](https://github.com/google/iree/blob/main/iree/base/)
* Common types and utilities used throughout IREE
-[iree/compiler/](https://github.com/google/iree/blob/master/iree/compiler/)
+[iree/compiler/](https://github.com/google/iree/blob/main/iree/compiler/)
* IREE's MLIR dialects, LLVM compiler passes, module translation code, etc.
Code here should not depend on anything in the runtime
-[iree/hal/](https://github.com/google/iree/blob/master/iree/hal/)
+[iree/hal/](https://github.com/google/iree/blob/main/iree/hal/)
* **H**ardware **A**bstraction **L**ayer for IREE's runtime, with
implementations for hardware and software backends
-[iree/schemas/](https://github.com/google/iree/blob/master/iree/schemas/)
+[iree/schemas/](https://github.com/google/iree/blob/main/iree/schemas/)
* Shared data storage format definitions, primarily using
[FlatBuffers](https://google.github.io/flatbuffers/)
-[iree/tools/](https://github.com/google/iree/blob/master/iree/tools/)
+[iree/tools/](https://github.com/google/iree/blob/main/iree/tools/)
* Assorted tools used to optimize, translate, and evaluate IREE
-[iree/vm/](https://github.com/google/iree/blob/master/iree/vm/)
+[iree/vm/](https://github.com/google/iree/blob/main/iree/vm/)
* Bytecode **V**irtual **M**achine used to work with IREE modules and invoke
IREE functions
@@ -77,7 +77,7 @@
`FileCheck` should be used to test the generated output.
Here's an example of a small compiler pass running on a
-[test file](https://github.com/google/iree/blob/master/iree/compiler/Dialect/IREE/Transforms/test/drop_compiler_hints.mlir):
+[test file](https://github.com/google/iree/blob/main/iree/compiler/Dialect/IREE/Transforms/test/drop_compiler_hints.mlir):
```shell
$ bazel run iree/tools:iree-opt -- \
@@ -89,7 +89,7 @@
For a more complex example, here's how to run IREE's complete transformation
pipeline targeting the VMLA backend on the
-[fullyconnected.mlir](https://github.com/google/iree/blob/master/iree/test/e2e/models/fullyconnected.mlir)
+[fullyconnected.mlir](https://github.com/google/iree/blob/main/iree/test/e2e/models/fullyconnected.mlir)
model file:
```shell
@@ -100,7 +100,7 @@
```
Custom passes may also be layered on top of `iree-opt`, see
-[iree/samples/custom_modules/dialect](https://github.com/google/iree/blob/master/iree/samples/custom_modules/dialect)
+[iree/samples/custom_modules/dialect](https://github.com/google/iree/blob/main/iree/samples/custom_modules/dialect)
for a sample.
### iree-translate
@@ -123,7 +123,7 @@
```
Custom translations may also be layered on top of `iree-translate`, see
-[iree/samples/custom_modules/dialect](https://github.com/google/iree/blob/master/iree/samples/custom_modules/dialect)
+[iree/samples/custom_modules/dialect](https://github.com/google/iree/blob/main/iree/samples/custom_modules/dialect)
for a sample.
### iree-run-module
@@ -150,7 +150,7 @@
and executes it as a series of
[googletest](https://github.com/google/googletest) tests. This is the test
runner for the IREE
-[check framework](https://github.com/google/iree/tree/master/docs/testing_guide.md#end-to-end-tests).
+[check framework](https://github.com/google/iree/tree/main/docs/testing_guide.md#end-to-end-tests).
```shell
$ bazel run iree/tools:iree-translate -- \
@@ -176,7 +176,7 @@
function as exported by default and running all of them.
For example, to execute the contents of
-[iree/tools/test/simple.mlir](https://github.com/google/iree/blob/master/iree/tools/test/simple.mlir):
+[iree/tools/test/simple.mlir](https://github.com/google/iree/blob/main/iree/tools/test/simple.mlir):
```shell
$ bazel run iree/tools:iree-run-mlir -- \
@@ -210,7 +210,7 @@
### Useful Vulkan driver flags
For IREE's Vulkan runtime driver, there are a few useful
-[flags](https://github.com/google/iree/blob/master/iree/hal/vulkan/vulkan_driver.cc):
+[flags](https://github.com/google/iree/blob/main/iree/hal/vulkan/vulkan_driver.cc):
#### `--vulkan_renderdoc`
diff --git a/docs/repository_management.md b/docs/repository_management.md
index 567b947..df769f7 100644
--- a/docs/repository_management.md
+++ b/docs/repository_management.md
@@ -33,7 +33,7 @@
of truth for the correct submodule state and is what is used by the CI. When
updating the submodule state from Google's source repository, only this file is
updated and another
-[GitHub Actions workflow](https://github.com/google/iree/blob/master/.github/workflows/synchronize_submodules.yml)
+[GitHub Actions workflow](https://github.com/google/iree/blob/main/.github/workflows/synchronize_submodules.yml)
immediately commits a submodule update on top of that.
Shortcut commands (read below for full documentation):
diff --git a/docs/testing_guide.md b/docs/testing_guide.md
index 8819f54..ce1ea4c 100644
--- a/docs/testing_guide.md
+++ b/docs/testing_guide.md
@@ -11,7 +11,7 @@
### Running a Test
-For the test https://github.com/google/iree/tree/master/iree/base/arena_test.cc
+For the test https://github.com/google/iree/tree/main/iree/base/arena_test.cc
With CMake, run this from the build directory:
@@ -78,7 +78,7 @@
We have created a corresponding CMake function `iree_cc_test` that mirrors the
Bazel rule's behavior. Our
-[Bazel to CMake converter](https://github.com/google/iree/tree/master/build_tools/bazel_to_cmake/bazel_to_cmake.py)
+[Bazel to CMake converter](https://github.com/google/iree/tree/main/build_tools/bazel_to_cmake/bazel_to_cmake.py)
should generally derive the `CMakeLists.txt` file from the BUILD file:
```cmake
@@ -101,7 +101,7 @@
### Running a Test
For the test
-https://github.com/google/iree/tree/master/iree/compiler/Dialect/VMLA/Conversion/HLOToVMLA/test/math_ops.mlir
+https://github.com/google/iree/tree/main/iree/compiler/Dialect/VMLA/Conversion/HLOToVMLA/test/math_ops.mlir
With CMake, run this from the build directory:
@@ -123,7 +123,7 @@
are testing. Instead of `mlir-opt`, use `iree-opt`, which registers IREE
dialects and passes and doesn't register some unnecessary core ones. Instead of
`FileCheck`, use
-[`IreeFileCheck`](https://github.com/google/iree/tree/master/iree/tools/IreeFileCheck.sh),
+[`IreeFileCheck`](https://github.com/google/iree/tree/main/iree/tools/IreeFileCheck.sh),
a shell-script wrapper around FileCheck that passes it a few
`--do-the-right-thing` flags.
@@ -150,7 +150,7 @@
```
There is a corresponding CMake function, calls to which will be generated by our
-[Bazel to CMake Converter](https://github.com/google/iree/tree/master/build_tools/bazel_to_cmake/bazel_to_cmake.py).
+[Bazel to CMake Converter](https://github.com/google/iree/tree/main/build_tools/bazel_to_cmake/bazel_to_cmake.py).
```cmake
file(GLOB _GLOB_X_MLIR LIST_DIRECTORIES false RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} CONFIGURE_DEPENDS *.mlir)
@@ -184,7 +184,7 @@
### Running a Test
For the test
-https://github.com/google/iree/tree/master/iree/test/e2e/xla_ops/floor.mlir
+https://github.com/google/iree/tree/main/iree/test/e2e/xla_ops/floor.mlir
compiled for the VMLA target backend and running on the VMLA driver (here they
match exactly, but in principle there's a many-to-many mapping from backends to
drivers).
@@ -363,7 +363,7 @@
The CMake functions follow a similar pattern. The calls to them are generated in
our `CMakeLists.txt` file by
-[bazel_to_cmake](https://github.com/google/iree/tree/master/build_tools/bazel_to_cmake/bazel_to_cmake.py).
+[bazel_to_cmake](https://github.com/google/iree/tree/main/build_tools/bazel_to_cmake/bazel_to_cmake.py).
## Binding Tests
diff --git a/integrations/tensorflow/e2e/BUILD b/integrations/tensorflow/e2e/BUILD
index 5c3a16c..bb22ec9 100644
--- a/integrations/tensorflow/e2e/BUILD
+++ b/integrations/tensorflow/e2e/BUILD
@@ -16,7 +16,7 @@
# files. A coverage table generated from this file can be viewed here:
# https://google.github.io/iree/TensorFlowE2ECoverage
# Updates made to test suite names should also be reflected here:
-# https://github.com/google/iree/blob/master/scripts/update_e2e_coverage.py
+# https://github.com/google/iree/blob/main/scripts/update_e2e_coverage.py
load(
"//bindings/python:build_defs.oss.bzl",
diff --git a/integrations/tensorflow/e2e/keras/BUILD b/integrations/tensorflow/e2e/keras/BUILD
index 7b21bf8..6752669 100644
--- a/integrations/tensorflow/e2e/keras/BUILD
+++ b/integrations/tensorflow/e2e/keras/BUILD
@@ -16,7 +16,7 @@
# files. A coverage table generated from this file can be viewed here:
# https://google.github.io/iree/TensorFlowE2ECoverage
# Updates made to test suite names should also be reflected here:
-# https://github.com/google/iree/blob/master/scripts/update_e2e_coverage.py
+# https://github.com/google/iree/blob/main/scripts/update_e2e_coverage.py
load(
"//bindings/python:build_defs.oss.bzl",
diff --git a/iree/base/shaped_buffer_string_util.h b/iree/base/shaped_buffer_string_util.h
index a4a3622..a351750 100644
--- a/iree/base/shaped_buffer_string_util.h
+++ b/iree/base/shaped_buffer_string_util.h
@@ -14,7 +14,7 @@
// Utilities for parsing and printing ShapedBuffer, mostly useful for
// testing. The format is as described in
-// https://github.com/google/iree/tree/master/iree/base/buffer_string_util.h
+// https://github.com/google/iree/tree/main/iree/base/buffer_string_util.h
#ifndef IREE_BASE_SHAPED_BUFFER_STRING_UTIL_H_
#define IREE_BASE_SHAPED_BUFFER_STRING_UTIL_H_
diff --git a/iree/compiler/Dialect/HAL/IR/HALBase.td b/iree/compiler/Dialect/HAL/IR/HALBase.td
index dacc716..f3bb22f 100644
--- a/iree/compiler/Dialect/HAL/IR/HALBase.td
+++ b/iree/compiler/Dialect/HAL/IR/HALBase.td
@@ -225,7 +225,7 @@
}
// Values are FourCC codes.
-// See https://github.com/google/iree/tree/master/iree/hal/executable_format.h for more info.
+// See https://github.com/google/iree/tree/main/iree/hal/executable_format.h for more info.
// https://ubershmekel.github.io/fourcc-to-text/ can be used to generate the
// integer values for inclusion here.
//
@@ -251,7 +251,7 @@
let convertFromStorage = "static_cast<IREE::HAL::ExecutableFormat>($_self.getInt())";
let cppNamespace = "::mlir::iree_compiler::IREE::HAL";
}
-// LINT.ThenChange(https://github.com/google/iree/tree/master/iree/hal/executable_format.h:fourcc)
+// LINT.ThenChange(https://github.com/google/iree/tree/main/iree/hal/executable_format.h:fourcc)
def HAL_ExecutableFormatArrayAttr : TypedArrayAttrBase<
HAL_ExecutableFormatAttr,
diff --git a/iree/compiler/Dialect/HAL/IR/HALTypes.cpp b/iree/compiler/Dialect/HAL/IR/HALTypes.cpp
index 7220a97..9d10e92 100644
--- a/iree/compiler/Dialect/HAL/IR/HALTypes.cpp
+++ b/iree/compiler/Dialect/HAL/IR/HALTypes.cpp
@@ -89,7 +89,7 @@
}
return llvm::None;
}
-// LINT.ThenChange(https://github.com/google/iree/tree/master/iree/hal/api.h:element_type)
+// LINT.ThenChange(https://github.com/google/iree/tree/main/iree/hal/api.h:element_type)
IntegerAttr getElementTypeAttr(Type type) {
auto elementType = getElementTypeValue(type);
diff --git a/iree/hal/api.h b/iree/hal/api.h
index 34a924f..ee11178 100644
--- a/iree/hal/api.h
+++ b/iree/hal/api.h
@@ -500,7 +500,7 @@
typedef uint32_t iree_hal_element_type_t;
// clang-format on
-// LINT.ThenChange(https://github.com/google/iree/tree/master/iree/compiler/Dialect/HAL/IR/HALTypes.h:element_type)
+// LINT.ThenChange(https://github.com/google/iree/tree/main/iree/compiler/Dialect/HAL/IR/HALTypes.h:element_type)
// A dimension within a shape.
typedef int32_t iree_hal_dim_t;
diff --git a/iree/hal/executable_format.h b/iree/hal/executable_format.h
index 013ca42..2f5a678 100644
--- a/iree/hal/executable_format.h
+++ b/iree/hal/executable_format.h
@@ -50,30 +50,30 @@
MakeExecutableFormatID("IREE");
// IREE VMLA executable in FlatBuffer format using the
-// https://github.com/google/iree/tree/master/iree/schemas/vmla_executable_def.fbs
+// https://github.com/google/iree/tree/main/iree/schemas/vmla_executable_def.fbs
// schema.
constexpr ExecutableFormat kExecutableFormatVMLA =
MakeExecutableFormatID("VMLA");
// SPIR-V executable in FlatBuffer format using the
-// https://github.com/google/iree/tree/master/iree/schemas/spirv_executable_def.fbs
+// https://github.com/google/iree/tree/main/iree/schemas/spirv_executable_def.fbs
// schema.
constexpr ExecutableFormat kExecutableFormatSpirV =
MakeExecutableFormatID("SPVE");
// LLVMIR executable in FlatBuffer format using the
-// https://github.com/google/iree/tree/master/iree/schemas/llvmir_executable_def.fbs
+// https://github.com/google/iree/tree/main/iree/schemas/llvmir_executable_def.fbs
// schema.
constexpr ExecutableFormat kExecutableFormatLLVM =
MakeExecutableFormatID("LLVM");
// Dynamic Library (dylib) executable in FlatBuffer format using the
-// https://github.com/google/iree/tree/master/iree/schemas/dylib_executable_def.fbs
+// https://github.com/google/iree/tree/main/iree/schemas/dylib_executable_def.fbs
// schema
constexpr ExecutableFormat kExecutableFormatDyLib =
MakeExecutableFormatID("DLIB");
-// LINT.ThenChange(https://github.com/google/iree/tree/master/iree/compiler/Dialect/HAL/IR/HALBase.td:executable_format)
+// LINT.ThenChange(https://github.com/google/iree/tree/main/iree/compiler/Dialect/HAL/IR/HALBase.td:executable_format)
} // namespace hal
} // namespace iree
diff --git a/iree/samples/models/mnist.mlir b/iree/samples/models/mnist.mlir
index c6ae699..a78c669 100644
--- a/iree/samples/models/mnist.mlir
+++ b/iree/samples/models/mnist.mlir
@@ -1,5 +1,5 @@
// Trained MNIST model generated by
-// https://github.com/google/iree/blob/master/colab/mnist_tensorflow.ipynb.
+// https://github.com/google/iree/blob/main/colab/mnist_tensorflow.ipynb.
//
// Model structure is from tf.keras:
//
diff --git a/iree/test/e2e/regression/BUILD b/iree/test/e2e/regression/BUILD
index 2e29da4..dc9bdb1 100644
--- a/iree/test/e2e/regression/BUILD
+++ b/iree/test/e2e/regression/BUILD
@@ -14,7 +14,7 @@
# Tests for end-to-end IREE support of specific features to prevent regression.
# These should focus on support by IREE itself, not for issues with specific runner tools. Place
-# those tests in https://github.com/google/iree/tree/master/iree/tools/test/
+# those tests in https://github.com/google/iree/tree/main/iree/tools/test/
load("//iree:lit_test.bzl", "iree_lit_test_suite")
diff --git a/iree/tools/vm_util.h b/iree/tools/vm_util.h
index 64023db..c039a1d 100644
--- a/iree/tools/vm_util.h
+++ b/iree/tools/vm_util.h
@@ -46,7 +46,7 @@
// Buffers should be in the IREE standard shaped buffer format:
// [shape]xtype=[value]
// described in
-// https://github.com/google/iree/tree/master/iree/base/buffer_string_util.h
+// https://github.com/google/iree/tree/main/iree/base/buffer_string_util.h
// Uses |allocator| to allocate the buffers.
// Uses descriptors in |descs| for type information and validation.
// The returned variant list must be freed by the caller.
@@ -61,7 +61,7 @@
// Prints buffers in the IREE standard shaped buffer format:
// [shape]xtype=[value]
// described in
-// https://github.com/google/iree/tree/master/iree/base/buffer_string_util.h
+// https://github.com/google/iree/tree/main/iree/base/buffer_string_util.h
// Uses descriptors in |descs| for type information and validation.
Status PrintVariantList(absl::Span<const RawSignatureParser::Description> descs,
iree_vm_variant_list_t* variant_list,
diff --git a/scripts/update_op_coverage.py b/scripts/update_op_coverage.py
index e9e83de..b01b687 100755
--- a/scripts/update_op_coverage.py
+++ b/scripts/update_op_coverage.py
@@ -31,7 +31,7 @@
# TODO(scotttodd): LLVM AOT (dylib-llvm-aot) HAL target(s)
OP_COVERAGE_DESCRIPTION = """# HLO Op Coverage
-There are three backend [targets](https://github.com/google/iree/tree/master/iree/compiler/Dialect/HAL/Target) in IREE:
+There are three backend [targets](https://github.com/google/iree/tree/main/iree/compiler/Dialect/HAL/Target) in IREE:
- vmla
- llvm-ir