2580 Commits

Author SHA1 Message Date
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
Mikhail Goncharov
21811818d6 [bazel] port aecb764cc2e026ecb5c418dd56f2722c6f263e8b 2025-02-13 17:05:33 +01:00
Oleg Shyshkov
95bb61bba9 [mlir][bazel] Port 1935f84856a9297e725770e6f4b9c50fbcec365c 2025-02-13 14:36:02 +00:00
Christian Sigg
cd21e0f08b [mlir][bazel] Port a472147af4ad 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 247430e9c41c61b66e2ee95c29a05de3e24c19b9.

The breakage has been fixed by 343bbda140d5a15cd7d7fbfc6041a7506da5cdae.
2025-02-12 19:31:12 +01:00
Mikhail Goncharov
2dd2608105 [bazel] port fc4d87100a01f08dbdf78b68e1a6a5c2584d840d 2025-02-12 16:39:47 +01:00
Christian Sigg
f3a1d55811
[mlir][bazel] Fix after 0fd50ec9a3
Second attempt.
2025-02-12 14:28:37 +01:00
Christian Sigg
238563653f
[mlir][bazel] Fix after 0fd50ec9a3 2025-02-12 14:25:23 +01:00
Mikhail Goncharov
d51750dba1 [bazel] port c03325cead2244ef0a89bb1cf365bddf16021daf 2025-02-12 11:33:49 +01:00
Kevin Gleason
2cf6663d3c
[MLIR] Make generated markdown doc more consistent (#119926)
A few changes to doc generation:

- All summaries are in italics.
- In general each optional block starts and ends with a newline.
- All table elements are enclosed in `|`'s
- Overall reduce the number of >2newlines in a row

Rationale for this change is that our markdown to docs generator
requires a newline before all headers, otherwise it gets inlined into
the line before it, see `### sdy-op-priority-propagate` in the image
below.

<img width="883" alt="image"
src="https://github.com/user-attachments/assets/b795c424-cecb-48df-abbe-aee2030f4491"
/>

That said overall I feel this formatting is more consistent now, here's
a before and after:

- Dialect documentation diff: https://www.diffchecker.com/OVMHoXeL/
- Pass documentation diff: https://www.diffchecker.com/XEJRmW3k/
2025-02-11 14:13:01 -06:00
David Blaikie
b969726901 Rough attempt to fix lldb bazel BUILD file 2025-02-10 21:56:20 +00:00
Benjamin Kramer
4df287a171
[bazel] Add missing dependency for 5a0075adbb623c8661862b9af1272b8f430d9e5c 2025-02-07 20:09:10 +01:00
Haojian Wu
247430e9c4 [bazel] Temporarily disable a broken LookupAddressRangeWithStmtSequenceOffset debug info test 2025-02-07 17:13:37 +01:00
Haojian Wu
e40610d762 [bazel] Port for f497fe464bad8743b8a87ba04a5c53579a03711a 2025-02-06 20:15:13 +01:00
Haojian Wu
17952b3d16 [bazel] Port for f7b3559ce07c83625bbe81a30a4da8ccef9ab53f 2025-02-06 17:34:26 +01:00
Alexander Belyaev
7ebacf3a99 [mlir][tensor] Fix bazel build after 80fd902573f860001af08d75f15d8f92005bae90. 2025-02-06 11:54:59 +01:00