Commit Graph

2591 Commits

Author SHA1 Message Date
Dmitri Gribenko
0953706bfd [bazel][libc] Add missing dep after 1e6e845d49 2025-03-05 10:08:06 +01:00
Jorge Gorbe Moya
423862f3d5 [bazel][libc] Add missing dep after 1e6e845d49 2025-03-04 12:00:40 -08:00
Jorge Gorbe Moya
f9a6ea4489 [libc][bazel] Add BUILD targets for complex functions and tests. (#129618)
This involved a little bit of yak shaving because one of the new tests
depends on MPC, and we didn't have targets for it yet, so I ended up
needing to add a similar setup to what we have for MPFR.
2025-03-04 11:05:01 -08:00
Augie Fackler
fd9a882ce3 [bazel] add missing header to bolt build file 2025-03-03 16:41:14 -05:00
Augie Fackler
2cb7b4e0cd [bazel] fix missing dep on //llvm:config in //lldb:Core 2025-03-03 16:15:21 -05:00
Augie Fackler
08dc81bd29 [bazel] fixes to make Telemetry work in lldb
Previously telemetry was optional at build-time in such a way that none
of it was built at all, but llvm/llvm-project@159b872b37 changed that
and now it's optional in a different way so we need to have it available
in the bazel BUILD graph.
2025-03-03 15:06:54 -05:00
Benjamin Chetioui
4396237972 [mlir][bazel] Fix Bazel build after db0e7c72af. (#129532)
db0e7c72af.
2025-03-03 15:02:01 +01:00
Mikhail Goncharov
1adb00110e [bazel] port 15c49b9db3 2025-02-28 10:31:31 +01:00
Mikhail Goncharov
a278b28a94 [bazel] fix build after bafd44bff5 2025-02-28 10:20:16 +01:00
Alexey Samsonov
bafd44bff5 [libc][bazel] Add py_binary rule to build hdrgen. (#129161) 2025-02-27 20:07:04 -08:00
Michael Jones
310c3775c0 [libc][bazel] Rephrase list comp for downstream (#129119)
The downstream build was having trouble transforming the previous list
comprehension, but it works on this one. I guess it just needs to look
like a proper target.
2025-02-27 13:13:52 -08:00
Mikhail Goncharov
9a4320adb1 [bazel] port 42526d240c
include "../" looks wrong
2025-02-27 09:25:03 +01:00
Michael Jones
524711c344 [libc][bazel] Add targets for strfrom<float> (#128956)
Add targets and tests for strfromf, strfromd and strfroml.

No idea why the standard committee decided that the long double function
should be "strfroml" instead of "strfromld" which would match "strtold"
and leave them space to add string from integer functions in future.
2025-02-26 15:30:40 -08:00
Michael Jones
579ead1a69 [libc][bazel] Add targets for stdbit functions (#128934)
Adds targets for the stdbit functions. Since the names follow a strict
pattern, this is done via list comprehensions. I don't want to handwrite
all 50.
2025-02-26 13:04:52 -08:00
Mircea Trofin
c690b3065d [Bazel] Port 128541 (#128809) 2025-02-26 10:43:48 -08:00
Vy Nguyen
159b872b37 [llvm][telemetry]Change Telemetry-disabling mechanism. (#128534)
Details:
- Previously, we used the LLVM_BUILD_TELEMETRY flag to control whether
any Telemetry code will be built. This has proven to cause more nuisance
to both users of the Telemetry and any further extension of it. (Eg., we
needed to put #ifdef around caller/user code)

- So the new approach is to:
+ Remove this flag and introduce LLVM_ENABLE_TELEMETRY which would be
true by default.
+ If LLVM_ENABLE_TELEMETRY is set to FALSE (at buildtime), the library
would still be built BUT Telemetry cannot be enabled. And no data can be
collected.

The benefit of this is that it simplifies user (and extension) code
since we just need to put the check on Config::EnableTelemetry. Besides,
the Telemetry library itself is very small, hence the additional code to
be built would not cause any difference in build performance.

---------

Co-authored-by: Pavel Labath <pavel@labath.sk>
2025-02-26 13:01:53 -05:00
Benjamin Kramer
5c8e22bb26 [bazel] Export BuiltinTemplates.inc from clang:basic 2025-02-26 16:23:04 +01:00
Benjamin Kramer
fd08b0793f [bazel] Port 8dd8e5f7d6 2025-02-26 16:18:02 +01:00
Mikhail Goncharov
2d12c9e83f [bazel] add missing header for RelayoutOptInterface
for a778930f85
2025-02-26 11:07:33 +01:00
Sterling-Augustine
864071dd7e Bazel fixes for a778930f85 (#128783) 2025-02-25 14:56:38 -08:00
Mikhail Goncharov
0f9720a61b [bazel] port 29e1495809 2025-02-25 13:11:01 +01:00
Mikhail Goncharov
d7211693af [bazel] port e5ce030433 2025-02-25 10:13:33 +01:00
Benjamin Kramer
e89cd500b2 [bazel] Port 7a4cb9bac5 2025-02-24 17:43:42 +01:00
Christian Sigg
9d19105601 [lldb][bazel] Port d0e37d9723 2025-02-24 08:10:33 +01:00
Benjamin Kramer
06cc9681b0 [bazel] Add missing dependency for 2ff3b18554 2025-02-23 12:31:31 +01:00
Christian Sigg
c645981f2d [mlir][bazel] Port ab166d4d10
Second attempt.
2025-02-22 07:42:56 +01:00
Michael Jones
7f5a2cbe76 [libc][bazel] add targets to build the scanf family (#128082)
Now that scanf is a little cleaner, this patch adds rules to build it
via bazel.
2025-02-21 14:27:04 -08:00
Christian Sigg
ef6e3ed14e [mlir][bazel] Port ab166d4d10 2025-02-21 19:38:14 +01:00
Christian Sigg
25e12726f7 [mlir][bazel] Move OpAsmOpInterface.h.inc from hdrs to srcs
This file internal to the target and should not be exposed as a public (textual) header.
2025-02-21 12:28:12 +01:00
Danial Klimkin
d6858dd9bd Rename TosaComplianceData.h to TosaComplianceData.h.inc (#128153)
The file can't be parsed on it's own, except when included in the .cc.
Should be .h.inc to avoid build errors.
2025-02-21 10:42:33 +01:00
Christian Sigg
43d71baae3 [mlir][bazel] Fix build after @11468c3, @f0134e6.
- 11468c3b07
- f0134e6d31
2025-02-21 07:37:06 +01:00
TatWai Chong
11468c3b07 [mlir][tosa] Add profile-based operation validation (#126992)
TOSA MLIR profile-based validation is designed to identify the
profile/extension requirements for each operation in TOSA MLIR graph,
ensuring that TOSA operators conform to the profiles and extensions
enabled by the target implementation.

The available profiles/extensions are reflected in the availability
property attached to each TOSA operator in the dialect. The design of
availability, the profile/extension classes, and their interface, is
inspired by the SPIRV implementation.

This patch includes the following changes:
- Introduces profile and extension knowledge within the dialect and
establishes an interface to query this information.
 - Implements profile-based validation logic in the pass.
- Adds a TargetEnv class that represents the capabilities enabled in the
target implementation, such as profiles, extensions, and levels.
- Adds a set of tests to ensure that profile and extension requirements
are properly attached to the operations and that validation correctly
verifies the requirements of a given operation against the target
implementation.
2025-02-20 11:47:01 -08:00
Benjamin Kramer
f34f21a1f6 [bazel] Fix mlir python build after a72616de18 2025-02-20 20:30:31 +01:00
Christian Sigg
083f80ff6b [mlir][bazel] Remove implementation from LinalgInterfaces target.
Move LinalgInterfaces.cpp from LinalgInterfaces to LinalgDialect target.

This allows TensorDialect to use header-only RelayoutOpInterface without introducing a hidden dependency on LinalgDialect (producing an `no-allow-shlib-undefined` error if a target depends on TensorDialect but not LinalgDialect).

Also reverts d64f177a2f because it's no longer needed.
2025-02-18 20:49:39 +01:00
Benjamin Kramer
d9803af3eb [bazel] Port 7c104b63c7 2025-02-18 19:37:03 +01:00
Benjamin Kramer
3305d9f08d [bazel] Fix build after 4cc7d60fe3 2025-02-18 16:43:04 +01:00
Danial Klimkin
27fe2c95ee [bazel]Move HAVE_GETAUXVAL from config.h to config.bzl (#127637)
This fixes build errors on mac OS.
2025-02-18 15:12:49 +01:00
Christian Sigg
d64f177a2f [mlir][bazel] Fix no-allow-shlib-undefined errors.
The BUILD file changes in https://github.com/llvm/llvm-project/pull/127544 adds `LinalgInterfaces` which is incomplete without `LinalgDialect`.

For now, just add the `LinalgDialect` as dependency to tests which do not otherwise depend on it (but depend on `LinalgInterfaces` through e.g. `TensorDialect`).

This is a temporary solution until the dependency of `TensorDialect` is trimmed to just the `linalg::RelayoutOpInterface`, but not the other linalg interfaces. See https://github.com/llvm/llvm-project/pull/127544#pullrequestreview-2622065243.
2025-02-18 12:59:15 +01:00
Christian Sigg
ef218317d7 [bolt][bazel] Port e235fcb582. 2025-02-18 11:25:00 +01:00
Christian Sigg
ab8d99530d [mlir][bazel] Fix after https://github.com/llvm/llvm-project/pull/127544 2025-02-18 07:38:23 +01:00
Christian Sigg
6e532700f8 [clang][bazel] Port d09cce166d 2025-02-18 07:26:10 +01:00
Christian Sigg
a5e6ccf546 [mlir][bazel] Port 517800e37e (#127544)
Introduces a `LinalgInterfaces` target so that `TensorDialect` doesn't
need to depend on `LinalgDialect`, which would introduce a circular
dependency.
2025-02-18 07:13:59 +01:00
Mikhail Goncharov
4b3c6443a1 [bazel] port b41b86a907 2025-02-14 19:28:49 +01:00
Guillaume Chatelet
c65ed96465 Revert "[reland][libc][bazel] Enable software prefetching for memcpy" (#127189)
Reverts llvm/llvm-project#113886

We suspect this has caused internal performance regressions, reverting
while root causing it more thoroughly.
2025-02-14 11:19:26 +01:00
Mikhail Goncharov
21811818d6 [bazel] port aecb764cc2 2025-02-13 17:05:33 +01:00
Oleg Shyshkov
95bb61bba9 [mlir][bazel] Port 1935f84856 2025-02-13 14:36:02 +00:00
Christian Sigg
cd21e0f08b [mlir][bazel] Port a472147af4 2025-02-13 09:52:36 +01:00
Christian Sigg
ec056f5458 [llvm][bazel] Adjust to HAVE_SYS_AUXV_H > HAVE_GETAUXVAL in 89d636ba91 2025-02-13 08:08:52 +01:00
NAKAMURA Takumi
9bd836adbb [bazel] Introduce HAVE_SYS_AUXV_H for #126863 2025-02-13 13:07:19 +09:00
Pavel Labath
d200caa521 Revert "[bazel] Temporarily disable a broken LookupAddressRangeWithSt… (#126944)
…mtSequenceOffset debug info test"

This reverts commit 247430e9c4.

The breakage has been fixed by 343bbda140.
2025-02-12 19:31:12 +01:00