Skip to content

Use LLVM Bazel BUILD files from google/llvm-bazel#2794

Merged
GMNGeoffrey merged 4 commits intoiree-org:mainfrom
GMNGeoffrey:llvm-overlay-build-files
Oct 7, 2020
Merged

Use LLVM Bazel BUILD files from google/llvm-bazel#2794
GMNGeoffrey merged 4 commits intoiree-org:mainfrom
GMNGeoffrey:llvm-overlay-build-files

Conversation

@GMNGeoffrey
Copy link
Copy Markdown
Contributor

@GMNGeoffrey GMNGeoffrey commented Aug 6, 2020

Adopts build files from https://github.com/google/llvm-bazel.

These make our LLVM build independent of TensorFlow. Switching to them
does slightly increase maintenance burden on our team because the TF
team is not assisting in maintaining them. It is not a guarantee that
llvm-bazel will already have a commit containing the up to date
workflows. However, it does have an advertised tag for each LLVM commit
that is the current best-effort for what builds, a workflow to
automatically pull in new LLVM commits and a build pipeline that
notifies me as soon as the build breaks (independent of any integration
into Google source control).

For example google/llvm-bazel@0fc76899f74a
advances the build files ahead of what is currently supported by TF or
Google internally.

I will be expanding our build cop docs to cover more of the workflows
here as I am buildcopping this week, but the general workflow is to run
./scripts/git/update_llvm_dependent_submodules.sh in lieu of the
update old update_tf_submodule.sh script. A GitHub action will also
create those PRs automatically to be merged.

@google-cla google-cla Bot added the cla: yes label Aug 6, 2020
@GMNGeoffrey GMNGeoffrey force-pushed the llvm-overlay-build-files branch 4 times, most recently from db7d554 to 436b603 Compare August 6, 2020 06:18
@GMNGeoffrey GMNGeoffrey force-pushed the llvm-overlay-build-files branch from 3e72fec to 300ffe7 Compare September 1, 2020 02:45
@GMNGeoffrey GMNGeoffrey force-pushed the llvm-overlay-build-files branch 4 times, most recently from 68759b3 to 411d0a5 Compare September 16, 2020 23:00
@GMNGeoffrey GMNGeoffrey force-pushed the llvm-overlay-build-files branch 2 times, most recently from 3660578 to 773c4cb Compare October 1, 2020 23:46
@GMNGeoffrey GMNGeoffrey force-pushed the llvm-overlay-build-files branch from c0414df to e072fa3 Compare October 6, 2020 22:15
@GMNGeoffrey GMNGeoffrey changed the title Use standalone LLVM Bazel BUILD files Use LLVM Bazel BUILD files from google/llvm-bazel Oct 6, 2020
@GMNGeoffrey GMNGeoffrey marked this pull request as ready for review October 6, 2020 22:41
@GMNGeoffrey GMNGeoffrey requested a review from ScottTodd October 6, 2020 22:41
Comment thread .github/workflows/update_llvm_dependent_submodules.yml Outdated
Comment thread .github/workflows/update_llvm_dependent_submodules.yml
Comment thread SUBMODULE_VERSIONS Outdated
Comment thread scripts/git/update_llvm_dependent_submodules.sh Outdated
Comment thread scripts/git/update_to_llvm_syncpoint.py Outdated
@GMNGeoffrey GMNGeoffrey requested a review from ScottTodd October 7, 2020 18:42
Comment thread scripts/git/update_to_llvm_syncpoint.py
@GMNGeoffrey GMNGeoffrey merged commit 17824b1 into iree-org:main Oct 7, 2020
@GMNGeoffrey GMNGeoffrey deleted the llvm-overlay-build-files branch October 7, 2020 19:06
@GMNGeoffrey GMNGeoffrey mentioned this pull request Oct 7, 2020
GMNGeoffrey added a commit to GMNGeoffrey/iree that referenced this pull request Oct 8, 2020
)"

This reverts commit 17824b1.

Breaks the Windows build with Bazel because I forgot that was a thing.
GMNGeoffrey added a commit to GMNGeoffrey/iree that referenced this pull request Oct 8, 2020
)"

This reverts commit 17824b1.

Breaks the Windows build with Bazel because I forgot that was a thing.
GMNGeoffrey added a commit that referenced this pull request Oct 8, 2020
…3398)

This reverts commit 17824b1.

It broke the Windows build with Bazel because I forgot that was a
thing. llvm-bazel has hardcoded unix configuration values, so
unbreaking is a bit of work.
@GMNGeoffrey GMNGeoffrey mentioned this pull request Oct 8, 2020
GMNGeoffrey added a commit that referenced this pull request Oct 27, 2020
Adopts build files from https://github.com/google/llvm-bazel.

This is another attempt at #2794 now
that google/llvm-bazel#60 added Windows
support.

These make our LLVM build independent of TensorFlow. Switching to them
does slightly increase maintenance burden on our team because the TF
team is not assisting in maintaining them. It is not a guarantee that
llvm-bazel will already have a commit containing the up to date
workflows. However, it does have an advertised tag for each LLVM commit
that is the current best-effort for what builds, a workflow to
automatically pull in new LLVM commits and a build pipeline that
notifies me as soon as the build breaks (independent of any integration
into Google source control). I've been mostly able to stay ahead of the
integrates into Google source control.

I will be expanding our build cop docs to cover more of the workflows
here as I am buildcopping this week, but the general workflow is to run
`./scripts/git/update_llvm_dependent_submodules.sh` in lieu of the
update old `update_tf_submodule.sh` script. A GitHub action will also
create those PRs automatically to be merged.
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants