18 Commits

Author SHA1 Message Date
Christian Sigg
ef218317d7 [bolt][bazel] Port e235fcb582. 2025-02-18 11:25:00 +01:00
Dmitri Gribenko
e9fb0ad21d [bazel] Port 2ccf7ed277df28651b94bbee9fccefdf22fb074f 2024-12-06 10:07:05 +01:00
Keith Smiley
ccff6cc3b3
[bazel] Port 65bc259a97cd8cc70907b65f59aff728245ba9c0 (#109458) 2024-09-20 12:14:08 -07:00
Dmitry Chernenkov
67ad23fe17 [Bazel] Fix Bazel build for Bolt 2024-07-26 11:59:40 +00:00
Keith Smiley
56069ab1a3
[bazel] Port #96596 (#98411)
This change added a circular dependency in the profile and core headers,
so this splits out a target with just the headers for use by the core
library.
2024-07-10 16:18:26 -07:00
Mikhail Goncharov
1d4772f24d
[bazel] add bolt address translation header to Passes (#93014)
to avoid circular dependency introduced in
a9b67490b2baaa311100a64191792186ea5f2c1e
2024-05-22 16:44:35 +02:00
Keith Smiley
72c729f354
[bazel] Add support for --incompatible_disallow_empty_glob (#85999)
This bazel flag, that should be flipped in an upcoming release
https://github.com/bazelbuild/bazel/pull/15327, fails if globs have no
matches. This helps find libraries where you are accidentally not
including files because of typos. This change removes the various globs
that were not matching anything, and uncovered some targets that were
doing nothing because their source files were deleted. There are a few
cases where globs were intentionally optional in the case of loops that
expanded to different potential options, so those now use `allow_empty =
True`. This allows downstream consumers to also flip this flags for
their own builds, where previously this would fail in LLVM instead.

The downside to this change is that if files are added in these
relatively standard locations, manual work will have to be done to add
this patterns back. If folks prefer we could instead add `allow_empty =
True` to every glob.
2024-03-22 09:51:20 -07:00
Jordan Rupprecht
2fcfc9754a [NFC] Reformat bzl files with buildifier 2024-02-12 11:35:18 -08:00
Haojian Wu
99074aafc3 [bazel] Port for 88e95c1e4bb6e2ad3bfd185b96341ad5c09eff6b 2023-07-07 09:02:05 +02:00
Benjamin Kramer
048796b887 [bazel][bolt] Port 05634f7346a59f6dab89cde53f39b40d9a70b9c9 2023-06-15 15:42:08 +02:00
Benjamin Kramer
e412650726 [bazel] Port 44268271f61e46636619623d52013c3be3e272c0 2023-06-06 22:47:30 +02:00
Aaron Siddhartha Mondal
68697ac274
[bazel] Fix missing deps for layering check
Reviewed By: #bazel_build, stellaraccident

Differential Revision: https://reviews.llvm.org/D150058
2023-05-07 05:56:59 +02:00
Guillaume Chatelet
1842b5885b [bazel] Fix build and make all target respect layering_check
Tested with `bazelisk-linux-amd64 query //... + @llvm-project//... | xargs bazelisk-linux-amd64 test --config=ci --features=layering_check`
2023-02-10 11:41:19 +00:00
Jordan Rupprecht
a98bdaa9c9 [NFC][bazel] Run buildifier on all bzl/BUILD.bazel files 2022-12-12 16:30:51 -08:00
Augie Fackler
001d18664f [bolt] update bazel rules for f71d32a0eea4
Differential Revision: https://reviews.llvm.org/D137281
2022-11-02 15:03:52 -04:00
Christian Sigg
69778121e4 [bazel] NFC: Move licenses declaration from package to function.
The `licences` attribute is deprecated, see https://docs.bazel.build/versions/4.0.0/be/common-definitions.html#common-attributes.
2022-09-05 10:47:06 +02:00
Sriraman Tallam
3e43d0cde7 This patch fixes these errors while building BOLT.
Compiling llvm/llvm-project/bolt/include/bolt/Passes/RegReAssign.h failed:
...: error: invalid application of 'sizeof' to an incomplete type 'llvm::bolt::BinaryFunctionCallGraph'

static_assert(sizeof(_Tp) >= 0, "cannot delete an incomplete type");
error: type 'llvm::bolt::BinaryBasicBlock *' cannot be used prior to '::' because it has no members

using NodeRef = typename GraphType::UnknownGraphTypeError;
BinaryDomTree.h:31:14: error: no template named 'DomTreeGraphTraitsBase'

: public DomTreeGraphTraitsBase<bolt::BinaryDomTreeNode,

Differential Revision: https://reviews.llvm.org/D130402
2022-08-02 11:23:37 -07:00
Sriraman Tallam
16cccc66b8 Bazel BUILD file for BOLT.
Differential Revision: https://reviews.llvm.org/D129899
2022-07-19 16:03:52 -07:00