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