<commit_before># LLVM Bazel BUILD files

DISCLAIMER: This is not an officially-supported Google project and is still in
development.

This repo contains standalone Bazel BUILD configuration for part  of the
[LLVM project](http://llvm.org/) that could be shared by dependent projects
using the Bazel build system.

It is branched off of the BUILD files for
[LLVM](https://github.com/tensorflow/tensorflow/blob/master/third_party/llvm/llvm.autogenerated.BUILD)
and [MLIR](https://github.com/tensorflow/tensorflow/blob/master/third_party/mlir/BUILD)
in the [TensorFlow](http://tensorflow.org) project, but aims to be
suitable for more general usage.

# Status

MLIR builds with Cuda and Vulkan support disabled.

Building LLVM core has many issues with finding `.inc` files.

# Usage

These build files are flexible in how they can be used. The
[llvm-bazel subdirectory](./llvm-bazel) has the simplest build configuration
with a submodule for the llvm-project and the build files in tree.

Users are more likely going to want to fetch build files from this repository
and use them with their own copy of the llvm-project.

The
[http-archive-demo branch](https://github.com/google/llvm-bazel/tree/http-archive-demo/http-archive-demo)
shows a build based on
[http_archive](https://docs.bazel.build/versions/master/repo/http.html#http_archive).

The
[submodule demo branch](https://github.com/google/llvm-bazel/tree/submodule-demo/submodule-demo)
shows usage of these build files with both them and llvm-project coming from
submodules.

You can build either of these demos with a command like

```shell
bazel --config=generic_clang @llvm-project//mlir/...
```

# Generating BUILD files

Build files can be generated from LLVMBuild.txt files by running the provided
script.

```shell
sed -i '/Begin autogenerated content/Q' llvm-bazel/llvm-project-overlay/llvm/BUILD \
    && llvm-bazel/generate_bazel_build.py \
    --llvm_root=third_party/llvm-project/llvm \
    >> llvm-bazel/llvm-project-overlay/llvm/BUILD

```

# License
Licensed under the Apache license with LLVM Exceptions. See [LICENSE](LICENSE)
for more information.<commit_msg>Make branch name links have consistent formatting<commit_after># LLVM Bazel BUILD files

DISCLAIMER: This is not an officially-supported Google project and is still in
development.

This repo contains standalone Bazel BUILD configuration for part  of the
[LLVM project](http://llvm.org/) that could be shared by dependent projects
using the Bazel build system.

It is branched off of the BUILD files for
[LLVM](https://github.com/tensorflow/tensorflow/blob/master/third_party/llvm/llvm.autogenerated.BUILD)
and [MLIR](https://github.com/tensorflow/tensorflow/blob/master/third_party/mlir/BUILD)
in the [TensorFlow](http://tensorflow.org) project, but aims to be
suitable for more general usage.

# Status

MLIR builds with Cuda and Vulkan support disabled.

Building LLVM core has many issues with finding `.inc` files.

# Usage

These build files are flexible in how they can be used. The
[llvm-bazel subdirectory](./llvm-bazel) has the simplest build configuration
with a submodule for the llvm-project and the build files in tree.

Users are more likely going to want to fetch build files from this repository
and use them with their own copy of the llvm-project.

The
[http-archive-demo branch](https://github.com/google/llvm-bazel/tree/http-archive-demo/http-archive-demo)
shows a build based on
[http_archive](https://docs.bazel.build/versions/master/repo/http.html#http_archive).

The
[submodule-demo branch](https://github.com/google/llvm-bazel/tree/submodule-demo/submodule-demo)
shows usage of these build files with both them and llvm-project coming from
submodules.

You can build either of these demos with a command like

```shell
bazel --config=generic_clang @llvm-project//mlir/...
```

# Generating BUILD files

Build files can be generated from LLVMBuild.txt files by running the provided
script.

```shell
sed -i '/Begin autogenerated content/Q' llvm-bazel/llvm-project-overlay/llvm/BUILD \
    && llvm-bazel/generate_bazel_build.py \
    --llvm_root=third_party/llvm-project/llvm \
    >> llvm-bazel/llvm-project-overlay/llvm/BUILD

```

# License
Licensed under the Apache license with LLVM Exceptions. See [LICENSE](LICENSE)
for more information.
{'fraction_non_alphanumeric': 0.09279069767441861, 'fraction_numerical': 0.0, 'mean_word_length': 4.492975734355045, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3120975', 'n_tokens_mistral': 1312, 'n_tokens_neox': 1268, 'n_words': 454}