2597 Commits

Author SHA1 Message Date
Augie Fackler
995c0f7bb7 [bazel] update mlir python deps for 95767a9903208e545badd920a1a16e5476ae09f9 2025-03-07 08:13:50 -05:00
Augie Fackler
94c937d321 [bazel] fix lldb deps some more 2025-03-06 20:39:26 -05:00
Augie Fackler
7a7fe6e8ca [bazel] fix libc deps for 542d52b1e8a0a7e04538f608487603124c70e1ab 2025-03-06 20:24:38 -05:00
Michael Jones
1df59b3817
[libc][bazel] Add targets for float16 math (#129965)
Add targets for some float16 math functions that were missing them, but
mostly add targets for the smoke tests.
2025-03-06 10:46:20 -08:00
Augie Fackler
35842f354e [bazel] add missing another missing dep in mlir 2025-03-06 11:33:19 -05:00
Augie Fackler
3c74262604 [bazel] add missing deps in mlir 2025-03-06 11:13:33 -05:00
Dmitri Gribenko
0953706bfd [bazel][libc] Add missing dep after 1e6e845d49a336e9da7ca6c576ec45c0b419b5f6 2025-03-05 10:08:06 +01:00
Jorge Gorbe Moya
423862f3d5 [bazel][libc] Add missing dep after 1e6e845d49a336e9da7ca6c576ec45c0b419b5f6 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 db0e7c72aff622849abbc92c3ed0d06efb8e2d16. (#129532)
db0e7c72aff622849abbc92c3ed0d06efb8e2d16.
2025-03-03 15:02:01 +01:00
Mikhail Goncharov
1adb00110e [bazel] port 15c49b9db3f60bdbd320271d5e97f118c00b95dd 2025-02-28 10:31:31 +01:00
Mikhail Goncharov
a278b28a94 [bazel] fix build after bafd44bff58cff9efe569a221b232bab004d55cd 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 42526d240cc953963ea48bae0b4c2ab548e9d897
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 8dd8e5f7d692cc43f4322f04034f5c472381aa43 2025-02-26 16:18:02 +01:00
Mikhail Goncharov
2d12c9e83f [bazel] add missing header for RelayoutOptInterface
for a778930f85b6d17cf31ff0e15964a7c7116e2a9d
2025-02-26 11:07:33 +01:00
Sterling-Augustine
864071dd7e
Bazel fixes for a778930f85b6d17cf31ff0e15964a7c7116e2a9d (#128783) 2025-02-25 14:56:38 -08:00
Mikhail Goncharov
0f9720a61b [bazel] port 29e14958090cb01150bda068f721a09d4bb1c36b 2025-02-25 13:11:01 +01:00
Mikhail Goncharov
d7211693af [bazel] port e5ce0304335dc1cae6856c880d1d4e14dcf8265d 2025-02-25 10:13:33 +01:00
Benjamin Kramer
e89cd500b2 [bazel] Port 7a4cb9bac50c8c19ec0d4ab7f186ef086064a549 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 2ff3b18554b115b17d5085b9a4cd779eeafd278a 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 a72616de18c0814ad37b5748d6bdc60b825dd889 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 7c104b63c7aae66cf91fa65b04011c49641b456d 2025-02-18 19:37:03 +01:00
Benjamin Kramer
3305d9f08d [bazel] Fix build after 4cc7d60fe3e060e33cb01f054e2d26870d6256b7 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 b41b86a907f653f79bab10d4c80b3a41d146c71b 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