| Commit message (Collapse) | Author | Age |
|
|
|
|
|
| |
Revert #18293.
PiperOrigin-RevId: 208084441
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I previously use hacky BUILD file to import prebuilt LLVM binaries from CMake to Bazel so that I can build `tfcompile` with Bazel on Windows, but since Tensorflow updates the LLVM revision used very frequently, this method is too troublesome.
I am trying to make XLA/AOT to work out-of-the-box on Windows with Bazel, then convince Tensorflow team to create a presubmit so that no one can break XLA/AOT on Windows anymore.
Summary:
- Remove unused `llvm_host_triple`.
- Rename `cmake_vars` to `posix_cmake_vars` and create a new `win32_cmake_vars` as Windows is sufficiently different from other platforms.
- Create `LLVM_DEFINES`, `LLVM_COPTS` and `LLVM_LINKOPTS` in `llvm.bzl` to set global compile/link flags for LLVM.
- Create macro `llvm_cc_library` that wrap around `cc_library` to ensure that all targets receive `LLVM_COPTS` consistently. Replace all `cc_library` with `llvm_cc_library`.
- For `support` library, include `lib/Support/Windows/*` for Windows and `lib/Support/Unix/*` for others.
If `llvm.BUILD` is not to be edited manually no matter what, can the script used to generate `llvm.BUILD` be open-sourced?
#15213
/cc @tatatodd
Imported from GitHub PR #18293
Copybara import of the project:
- a5e7b841d79878b12e0d0103e5b1813384a80aa8 [XLA/AOT] Build LLVM with Bazel on Windows by Loo Rong Jie <loorongjie@gmail.com>
- b3a20c7bbff95fd8ad9f44c653a3ecffc54de3b3 Add back LLVM_ENABLE_STATS by Loo Rong Jie <loorongjie@gmail.com>
- 787d451b495180f5c882d09d76222c157102f0fc Merge b3a20c7bbff95fd8ad9f44c653a3ecffc54de3b3 into 6a1ff... by Loo Rong Jie <loorongjie@gmail.com>
COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/18293 from rongjiecomputer:llvm b3a20c7bbff95fd8ad9f44c653a3ecffc54de3b3
PiperOrigin-RevId: 208073601
|
|
|
|
|
|
|
| |
instead of glob-of-select. This was suggested in
https://github.com/tensorflow/tensorflow/commit/add96c8632df9596a73bf637d6b7015e9c7beaad#r29707275
PiperOrigin-RevId: 206657397
|
|
|
|
| |
PiperOrigin-RevId: 206651482
|
|
|
|
|
|
| |
Merge pull request #20749
PiperOrigin-RevId: 204581011
|
|
|
|
|
|
|
|
|
|
| |
- Remove LLVM_DEFINES from all targets but :config to avoid running into
Windows command line length limitations.
- Add LLVM_COPTS to cc_binary rules.
- Extract out a list of platform specific headers to a
LLVM_SUPPORT_PLATFORM_SPECIFIC_SRCS_GLOB variable.
PiperOrigin-RevId: 203806527
|
|
|
|
| |
PiperOrigin-RevId: 203171217
|
|
|
|
| |
PiperOrigin-RevId: 202399218
|
|
|
|
|
|
|
|
|
| |
This lets external contributors add or remove compiler flags without having
access to the generator script (which isn't open source).
E.g. see #18293
PiperOrigin-RevId: 202322000
|
|
|
|
| |
PiperOrigin-RevId: 201714113
|
|
|
|
|
|
|
| |
In practice folks tend to miss the "# This BUILD file is auto-generated; do not
edit!" admonition.
PiperOrigin-RevId: 201248010
|
|
|
|
|
|
|
| |
Buildifier recently started sorting load args
https://github.com/bazelbuild/buildtools/commit/3ac5f85b22bc44820c041d0cacd3bc2ed54e7742 which causes diffs in the output.
PiperOrigin-RevId: 197556554
|
|
|
|
| |
PiperOrigin-RevId: 194530610
|
|
|
|
| |
PiperOrigin-RevId: 193119953
|
|
|
|
| |
PiperOrigin-RevId: 192821482
|
|
|
|
|
|
| |
DataTypes.h is no longer a generated header. X86DisassemblerDecoderCommon.h is now part of :support.
PiperOrigin-RevId: 191438031
|
|
|
|
|
|
| |
an Orc API change.
PiperOrigin-RevId: 185185088
|
|
|
|
| |
PiperOrigin-RevId: 183728562
|
|
|
|
|
|
|
|
| |
to work around a bug in older Bazel versions. The minimum Bazel version no longer has this issue so we can just write @org_tensorflow.
Fixes #14445.
PiperOrigin-RevId: 175756784
|
|
|
|
|
|
| |
non-sandboxed builds.
PiperOrigin-RevId: 169271809
|
|
|
|
|
|
| |
This is intended to address #12998
PiperOrigin-RevId: 168585206
|
|
|
|
| |
PiperOrigin-RevId: 165249531
|
|
|
|
| |
PiperOrigin-RevId: 164045470
|
|
|
|
|
|
| |
non-sandboxed builds.
PiperOrigin-RevId: 163103908
|
|
|
|
| |
PiperOrigin-RevId: 162743186
|
|
|
|
|
|
| |
Add a rule to generate an empty VCSRevision.h file to accomodate for r300160.
PiperOrigin-RevId: 161051888
|
|
|
|
|
|
| |
non-sandboxed builds.
PiperOrigin-RevId: 159729295
|
|
|
|
|
|
| |
Add LLVM build rules for the LLVM AMDGPU backend, commented out by default. Fixes issue #10437.
PiperOrigin-RevId: 158351480
|
|
|
|
|
|
| |
only thrown when running with sandboxing on)
PiperOrigin-RevId: 157602401
|
|
|
|
| |
PiperOrigin-RevId: 155903819
|
|
|
|
| |
PiperOrigin-RevId: 155709893
|
|
|
|
| |
Change: 155376589
|
|
|
|
| |
Change: 155192906
|
|
|
|
| |
Change: 153925676
|
|
|
|
| |
Change: 153642821
|
|
|
|
| |
Change: 150078943
|
|
|
|
| |
Change: 148158849
|
|
|
|
| |
Change: 145804953
|
|
|
|
|
|
| |
when TensorFlow is linked as a submodule.
Change: 144764356
|
|
|
|
|
|
|
| |
XLA is a compiler-based linear algebra execution engine that targets CPUs, GPUs and custom accelerators.
XLA is still experimental; we are releasing it early to get the community involved.
Change: 143990941
|
|
|
|
| |
Change: 143689873
|
|
|
|
| |
Change: 143412147
|
|
|
|
| |
Change: 142501037
|
| |
|
|
|
|
|
|
|
|
| |
target.
Add missing zlib dependency to LLVM build file.
Various other small cleanups.
Change: 141557751
|
|
|
|
|
|
| |
builds.
Change: 141352525
|
|
|
|
|
|
| |
--config=cuda.
Change: 140807677
|
|
|
|
| |
Change: 140616374
|
|
|
|
| |
Change: 140533246
|
|
|
|
| |
Change: 140396287
|