Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Releases: samolisov/bazel-llvm-bridge

Build 0.2 for LLVM's release 9

21 Oct 14:21
Compare
Choose a tag to compare

Build 0.2 for LLVM's release 9.

Changelog

  • Added the full support for LLVM targets other that X86. The official supported list of targets is included. A number of wrapper Starlark functions are defined to protect the rules from using the non-supported targets.
  • Implemented automatic detection of libraries the local LLVM installation is depend on (including the Z3 Theorem Prover. No additional environment variables such as Z3_INSTALL_PREFIX is required.
  • The bridge can download a binary or source LLVM distribution and generate or use a pre-defined BUILD file for it. This feature allows using of the bridge in, for example, Tensorflow to build LLVM from sources or download a pre-built package. Also some names of generated targets have been changed to be aligned with targets from Tensorflow.
  • Added dealing with the libc++ standard library: the library binaries can be used as dependencies and there is an array of compiler options to enable libc++ as default standard library for a rule.

How to use in WORKSPACE

http_archive(
    name = "bazel_llvm_bridge",
    sha256 = "07b67c0c1410399f6ded54b0654a64bc5b512f1478bc5d94245a8541698e25b9",
    strip_prefix = "bazel-llvm-bridge-release-9-02",
    url = "https://github.com/samolisov/bazel-llvm-bridge/archive/release/9-02.zip",
)

Build 0.2 for LLVM's release 8

21 Oct 14:23
Compare
Choose a tag to compare

Build 0.2 for LLVM's release 8.

Changelog

  • Added the full support for LLVM targets other that X86. The official supported list of targets is included. A number of wrapper Starlark functions are defined to protect the rules from using the non-supported targets.
  • Implemented automatic detection of libraries the local LLVM installation is depend on (including the Z3 Theorem Prover. No additional environment variables such as Z3_INSTALL_PREFIX is required.
  • The bridge can download a binary or source LLVM distribution and generate or use a pre-defined BUILD file for it. This feature allows using of the bridge in, for example, Tensorflow to build LLVM from sources or download a pre-built package. Also some names of generated targets have been changed to be aligned with targets from Tensorflow.
  • Added dealing with the libc++ standard library: the library binaries can be used as dependencies and there is an array of compiler options to enable libc++ as default standard library for a rule.

How to use in WORKSPACE

http_archive(
    name = "bazel_llvm_bridge",
    sha256 = "9bdc2554f742cc6618621cfbed602be3414fea097e46b32d6cc04215bcb63b1b",
    strip_prefix = "bazel-llvm-bridge-release-8-02",
    url = "https://github.com/samolisov/bazel-llvm-bridge/archive/release/8-02.zip",
)

Build 0.2 for upcoming LLVM's release 10

21 Oct 14:26
Compare
Choose a tag to compare

Build 0.2 for upcoming LLVM's release 10.

Changelog

  • Added the full support for LLVM targets other that X86. The official supported list of targets is included. A number of wrapper Starlark functions are defined to protect the rules from using the non-supported targets.
  • Implemented automatic detection of libraries the local LLVM installation is depend on (including the Z3 Theorem Prover. No additional environment variables such as Z3_INSTALL_PREFIX is required.
  • The bridge can download a binary or source LLVM distribution and generate or use a pre-defined BUILD file for it. This feature allows using of the bridge in, for example, Tensorflow to build LLVM from sources or download a pre-built package. Also some names of generated targets have been changed to be aligned with targets from Tensorflow.
  • Added dealing with the libc++ standard library: the library binaries can be used as dependencies and there is an array of compiler options to enable libc++ as default standard library for a rule.

How to use in WORKSPACE

http_archive(
    name = "bazel_llvm_bridge",
    sha256 = "6a4b23ec794d2f4764fc15e2baebf2bae48c0c6bf97df83ba775c04511e91bca",
    strip_prefix = "bazel-llvm-bridge-pre-release-10-02",
    url = "https://github.com/samolisov/bazel-llvm-bridge/archive/pre-release/10-02.zip",
)

Build 0.1 for LLVM's release 9

24 Sep 13:47
Compare
Choose a tag to compare

Build 0.1 for LLVM's release 9.

Changelog

  • Implemented support for Z3 Theorem Prover. Just define the Z3_INSTALL_PREFIX environment variable.
  • Implemented automatic detection for platform-provided libraries such as ncurses, pthread, zlib, etc. The Bazel LLVM Bridge reads the dependencies from the lib/cmake/llvm/LLVMExports.cmake file. This requires Bazel 0.25.0 and above.
  • The initial set of examples has been added: llvm_bb_counter just uses the LLVMBitReader library and its dependencies, llvm_exp_passes shows how to use LLVMCore and clang_list_methods demonstrates how to deal with the libclang shared library.
  • Added support for the clangDependencyScanning, clangDirectoryWatcher, clangToolingRefactoring, clangToolingSyntax, LLVMBitstreamReader, LLVMDebugInfoGSYM, LLVMJITLink, LLVMRemarks static libraries.
  • Removed libraries clangToolingRefactor, LLVMOptRemarks and LLVMX86AsmPrinter are removed from the bridge.
  • Added support for the libclang-cpp and LLVM-C shared libraries.

How to use in WORKSPACE

http_archive(
    name = "bazel_llvm_bridge",
    sha256 = "9576aad44d9732e2bd2f33f0e36a2baafe3de846551aaa38e206563dc774f5c2",
    strip_prefix = "bazel-llvm-bridge-release-9-01",
    url = "https://github.com/samolisov/bazel-llvm-bridge/archive/release/9-01.zip",
)

Build 0.1 for LLVM's release 8

24 Sep 13:48
Compare
Choose a tag to compare

Build 0.1 for LLVM's release 8.

Changelog

  • Implemented support for Z3 Theorem Prover. Just define the Z3_INSTALL_PREFIX environment variable.
  • Implemented automatic detection for platform-provided libraries such as ncurses, pthread, zlib, etc. The Bazel LLVM Bridge reads the dependencies from the lib/cmake/llvm/LLVMExports.cmake file. This requires Bazel 0.25.0 and above.
  • The initial set of examples has been added: llvm_bb_counter just uses the LLVMBitReader library and its dependencies, llvm_exp_passes shows how to use LLVMCore and clang_list_methods demonstrates how to deal with the libclang shared library.

How to use in WORKSPACE

http_archive(
    name = "bazel_llvm_bridge",
    sha256 = "640a55972267af640f7c1a42fe98fd9b804c4dbe9c156d5079c67b4f4c05e836",
    strip_prefix = "bazel-llvm-bridge-release-8-01",
    url = "https://github.com/samolisov/bazel-llvm-bridge/archive/release/8-01.zip",
)

Build 0.1 for upcoming LLVM's release 10

24 Sep 07:56
Compare
Choose a tag to compare

Experimental build 0.1 for upcoming LLVM's release 10.

Changelog

  • Implemented support for Z3 Theorem Prover. Just define the Z3_INSTALL_PREFIX environment variable.
  • Implemented automatic detection for platform-provided libraries such as ncurses, pthread, zlib, etc. The Bazel LLVM Bridge reads the dependencies from the lib/cmake/llvm/LLVMExports.cmake file. This requires Bazel 0.25.0 and above.
  • The initial set of examples has been added: llvm_bb_counter just uses the LLVMBitReader library and its dependencies, llvm_exp_passes shows how to use LLVMCore and clang_list_methods demonstrates how to deal with the libclang shared library.
  • Added support for the clangDependencyScanning, clangDirectoryWatcher, clangToolingRefactoring, clangToolingSyntax, LLVMBitstreamReader, LLVMDebugInfoGSYM, LLVMJITLink, LLVMRemarks static libraries.
  • Removed libraries clangToolingRefactor, LLVMOptRemarks and LLVMX86AsmPrinter are removed from the bridge.
  • Added support for the libclang-cpp and LLVM-C shared libraries.

How to use in WORKSPACE

http_archive(
    name = "bazel_llvm_bridge",
    sha256 = "84ec681de4fe305109623255d110a948cd5c88c45d584dac5dd9b9dc2a4fea8e",
    strip_prefix = "bazel-llvm-bridge-pre-release-10-01",
    url = "https://github.com/samolisov/bazel-llvm-bridge/archive/pre-release/10-01.zip",
)