301 -- 已移动
MLIR 现在是 LLVM 的一部分,有关更多信息,请访问 https://mlir.llvm.org
现在可以在 https://github.com/llvm/llvm-project/tree/master/m... 中找到此存储库中的代码。
迁移
如果您有此存储库的本地派生或需要迁移到 LLVM monorepo 的拉取请求,则以下方法可为您提供帮助:
#从本地MLIR克隆中: $ git clone git@github.com:newren/git-filter-repo.git /tmp/git-filter-repo $ /tmp/git-filter-repo/git-filter-repo --path-rename :mlir/ --force --message-callback 'return re.sub(b"(#[0-9]+)", b"tensorflow/mlir\\1", message)' --refs <branch name>
之后,来自先前上游 MLIR 的所有提交都应与现在的 monorepo 中的提交匹配。如果您不提供 --refs 选项,这将重写您存储库中的所有分支。
从这里开始,您应该能够在 LLVM monorepo 的基础上重新建立任何分支/提交:
$ git remote set-url origin git@github.com:llvm/llvm-project.git $ git fetch origin $ git rebase origin/master -i
选择提交也可以工作,如果您从 monorepo 中检出 master 分支,则可以从(重写的)分支中 git cherry-pick <sha1>。
您还可以使用 git format-patch <range> 导出补丁,然后使用 git am <patch file> 将其重新应用到 monorepo 上。
(The second edition revised by vz on 2020.08.08)