MLIR

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

  • Owner: tensorflow/mlir
  • Platform: Windows, Solaris, Mac, Linux, Cygwin, BSD
  • License::
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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)

Main metrics

Overview
Name With Ownertensorflow/mlir
Primary Language
Program languageLLVM, MLIR, C++, Shell, CMake, Python, C, CSS, Vim script, Emacs Lisp (Language Count: 0)
PlatformWindows, Solaris, Mac, Linux, Cygwin, BSD
License:
所有者活动
Created At2019-03-29 04:54:54
Pushed At2021-04-22 22:24:29
Last Commit At2021-04-22 15:24:29
Release Count0
用户参与
Stargazers Count1.7k
Watchers Count162
Fork Count260
Commits Count3.3k
Has Issues Enabled
Issues Count138
Issue Open Count49
Pull Requests Count2
Pull Requests Open Count8
Pull Requests Close Count192
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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>.