Commit Graph

30 Commits

Author SHA1 Message Date
Benjamin Kramer
942f315def [XLA:CPU] Wire up support for Aarch64 on linux
I don't have an environment to test this, but I believe it should be enough to
get the JIT to work.

This came up in
https://github.com/google/jax/issues/5679

PiperOrigin-RevId: 356578451
Change-Id: I99a2aa0e87739b9edce81074fce1ca5c0bd25115
2021-02-09 13:35:12 -08:00
Yun Peng
bab0d14036 Make TensorFlow build on Apple Silicon 2021-01-07 16:26:58 +01:00
Geoffrey Martin-Noble
f64e0de72a Disable LLVM threading for TensorFlow on Windows.
PiperOrigin-RevId: 339124600
Change-Id: Iaf61e1942452c12409e33d69a64286fb01af1e89
2020-10-26 15:02:34 -07:00
A. Unique TensorFlower
345a716e34 Integrate LLVM at llvm/llvm-project@95848ea101
Updates LLVM usage to match
[95848ea10127](https://github.com/llvm/llvm-project/commit/95848ea10127)

PiperOrigin-RevId: 328605350
Change-Id: Idfeead75540df96954b376d3902e935d0cb885b8
2020-08-26 14:22:07 -07:00
TensorFlower Gardener
a3196a68f5 Merge pull request from linux-on-ibm-z:xla_aot_fix
PiperOrigin-RevId: 320326383
Change-Id: Ic336b3834de4815b13aaddf4a79f732791c9b32c
2020-07-08 21:33:17 -07:00
Sidong-Wei
eb937c15e8 Add llvm support for s390x, fix xla and aot issue 2020-06-05 11:23:20 -04:00
Gunhan Gulsoy
547d90ce17 Use consistent quotes in ngraph.BUILD.oss
PiperOrigin-RevId: 293387773
Change-Id: I6731cb539954987d23f285de52f8baed6c448593
2020-02-05 09:46:50 -08:00
Gunhan Gulsoy
198b18f1d5 Avoid creating long string literals in tblgen outputs.
This solved the following compilation issue on windows:
bazel-out/x64_windows-opt/bin/external/llvm-project/llvm/lib/Target/AMDGPU\AMDGPUGenInstrInfo.inc(33991): fatal error C1091: compiler limit: string exceeds 65535 bytes in length

PiperOrigin-RevId: 293286375
Change-Id: Ibec6425c57d0e2748d9a76d187ce86a24e324696
2020-02-04 20:26:33 -08:00
Jacques Pienaar
d6ba353dd9 Remove read-only copy of MLIR core in TF and use version in LLVM
This change to reflect MLIR's recent addition to LLVM's monorepo. Instead of
stripping llvm from the http archive, use build file map to refer to both MLIR
and LLVM within llvm-project and remove read-only copy that was temporarily
there. Also bump the commit version until after the integration of MLIR into
LLVM monorepo.

PiperOrigin-RevId: 287547194
Change-Id: I4459b96702dc5eb19b58c7ceaa6cabb16f530a43
2019-12-30 07:00:20 -08:00
Stella Laurenzo
97b36b0d4a Updated bug link now that it is filed properly upstream.
PiperOrigin-RevId: 283594085
Change-Id: If02fbabc9e6f91c196185cf5aa312c21b7f8e924
2019-12-03 12:08:13 -08:00
A. Unique TensorFlower
08ae145035 Disable LLVM threading for TensorFlow on Windows.
PiperOrigin-RevId: 278499052
Change-Id: I3529e9f2fa1ca56dce4392f28e165f24e4d38662
2019-11-04 17:25:11 -08:00
Saran Tunyasuvunakool
2a309a6dad Remove "_DEBUG" from the defines list for LLVM.
PiperOrigin-RevId: 259806830
2019-07-24 13:53:54 -07:00
TensorFlower Gardener
31be336414 Merge pull request from arrowd:master
PiperOrigin-RevId: 253891241
2019-06-18 16:31:29 -07:00
Gleb Popov
4295de104c Fix llvm.bzl for FreeBSD:
- Set CMake variables
- Link needed libraries
2019-05-13 21:22:00 +04:00
A. Unique TensorFlower
8a3c3478ff Fix incompatibility with future Bazel
TensorFlow now builds with:
--incompatible_disable_legacy_cc_provider
--incompatible_depset_is_not_iterable
--incompatible_depset_union
--incompatible_remap_main_repo

Fixes 
Working towards 

PiperOrigin-RevId: 241350192
2019-04-01 10:30:29 -07:00
A. Unique TensorFlower
dc34ddc6dd Updates Apple platform config settings. Sets default target to macos on Apple platforms in bazelrc.
PiperOrigin-RevId: 236380363
2019-03-01 15:00:24 -08:00
Peter Hawkins
a41d366c5d [XLA] Enable malloc zone statistics in Mac OS X LLVM build to silence warnings about sbrk() being deprecated.
PiperOrigin-RevId: 222135053
2018-11-19 14:10:27 -08:00
TensorFlower Gardener
efd9e0d073 Merge pull request from rongjiecomputer:llvm
PiperOrigin-RevId: 212543062
2018-09-11 16:29:39 -07:00
Loo Rong Jie
d0b4230bc3 Actually add posix_cmake_vars 2018-08-25 11:36:29 +08:00
Loo Rong Jie
4a4ce8c6bf Add back LLVM_ENABLE_STATS 2018-08-25 11:36:28 +08:00
Loo Rong Jie
a7deb79f25 [XLA/AOT] Build LLVM with Bazel on Windows 2018-08-25 11:36:28 +08:00
Gunhan Gulsoy
05b412a875 Automated rollback of commit fe6b586e86. Revert .
PiperOrigin-RevId: 208084441
2018-08-09 11:48:40 -07:00
Patrick Nguyen
fe6b586e86 PR : [XLA/AOT] Build LLVM with Bazel on Windows
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?



/cc @tatatodd

Imported from GitHub PR 

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
2018-08-09 10:52:10 -07:00
Sanjoy Das
efddd17519 For llvm_support_platform_specific_srcs_glob use a select-of-glob
instead of glob-of-select.  This was suggested in
add96c8632 (r29707275)

PiperOrigin-RevId: 206657397
2018-07-30 15:30:51 -07:00
Sanjoy Das
f017a9b9b4 Fix some whitespace and lint issues with llvm.bzl.
PiperOrigin-RevId: 206651482
2018-07-30 14:55:13 -07:00
Sanjoy Das
add96c8632 Few more supporting changes for
- 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
2018-07-09 12:10:01 -07:00
Sanjoy Das
3bb807505a Move some logic from llvm.autogenerated.BUILD to llvm.bzl
This lets external contributors add or remove compiler flags without having
access to the generator script (which isn't open source).

E.g. see 

PiperOrigin-RevId: 202322000
2018-06-28 21:37:43 -07:00
A. Unique TensorFlower
1ff86aeb18 Explicitly name the @org_tensorflow repository in a tool label.
PiperOrigin-RevId: 165249531
2017-08-14 16:55:35 -07:00
A. Unique TensorFlower
46d2c28604 Merge changes from github.
Change: 143412147
2017-01-02 22:27:38 -08:00
Peter Hawkins
b523c97794 Adds a Bazel BUILD for LLVM.
Change: 139938302
2016-11-22 12:26:17 -08:00