MLIR

“多级中间表示”编译器基础结构。「"Multi-Level Intermediate Representation" Compiler Infrastructure」

  • 所有者: tensorflow/mlir
  • 平台: Windows, Solaris, Mac, Linux, Cygwin, BSD
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

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)

主要指标

概览
名称与所有者tensorflow/mlir
主编程语言
编程语言LLVM, MLIR, C++, Shell, CMake, Python, C, CSS, Vim script, Emacs Lisp (语言数: 0)
平台Windows, Solaris, Mac, Linux, Cygwin, BSD
许可证
所有者活动
创建于2019-03-29 04:54:54
推送于2021-04-22 22:24:29
最后一次提交2021-04-22 15:24:29
发布数0
用户参与
星数1.7k
关注者数162
派生数260
提交数3.3k
已启用问题?
问题数138
打开的问题数49
拉请求数2
打开的拉请求数8
关闭的拉请求数192
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

301 - Moved

MLIR is now part of LLVM, more information on https://mlir.llvm.org

The code from this repository can now be found at
https://github.com/llvm/llvm-project/tree/master/mlir/

Migration

If you have a local fork of this repository or pull-requests that need to be
migrated to the LLVM monorepo, the following recipe may help you:

# From your local MLIR clone:
$ 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>

After this, all the commits from the previous upstream MLIR should match the
ones in the monorepo now. If you don't provide the --refs option, this
will rewrite all the branches in your repo.

From there you should be able to rebase any of your branch/commits on top of
the LLVM monorepo:

$ git remote set-url origin git@github.com:llvm/llvm-project.git
$ git fetch origin
$ git rebase origin/master -i

Cherry-picking commits should also work, if you checkout the master branch from
the monorepo you can git cherry-pick <sha1> from your (rewritten) branches.

You can also export patches with git format-patch <range> and re-apply it on
the monorepo using git am <patch file>.