Commit Graph

1758 Commits

Author SHA1 Message Date
Guillaume Chatelet
508c6aa8f3
[libc][NFC] Fix "type qualifiers ignored on cast result type" GCC warning (#78509)
GCC complains about "type qualifiers ignored on cast result type".
Upon investigation the correct fix was to remove all `volatile` and use the `-frounding-math` option.
2024-01-19 09:27:03 +01:00
denglesberg-splunk
3b54337be5
Replace exec_tools with tools in bazel genrule. (#77510)
As of the Bazel 6.x series, there is no difference between the
`exec_tools` and `tools`. Bazel 7 removes the `exec_tools` attribute
entirely. This commit updates to use the cannonical attribute name to
allow building `clang-tidy``with bazel 7.0.0, though it does not change
the default bazel version which remains at 6.1.2.

See also https://github.com/bazelbuild/bazel/issues/19132 for more
information.
2024-01-19 09:12:54 +01:00
Guillaume Chatelet
5ddd7bc38c
[reland][libc][NFC] Refactor FPBits and remove LongDoubleBits specialization (#78465)
- [reland] #78192 
- [reland] #78447 
- Turn `as` static function into a `to_storage_type` member function.
2024-01-17 17:38:48 +01:00
Dmitry Chernenkov
58564ddf5c [bazel]Sort loads in llvm/BUILD.bazel 2024-01-17 16:04:40 +00:00
Guillaume Chatelet
d8627cb138
Revert "[reland][libc][NFC] Refactor FPBits and remove LongDoubleBits specialization" (#78457)
Reverts llvm/llvm-project#78447
This broke the gcc buildbot.
2024-01-17 16:50:52 +01:00
Guillaume Chatelet
cab041fe63
[reland][libc][NFC] Refactor FPBits and remove LongDoubleBits specialization (#78447)
- [reland] #78192
- Make the implementation work when `__uint128_t` is not available on
the plaftorm.
2024-01-17 16:15:09 +01:00
Pranav Kant
8371cdca12 Disable ConstraintSystemTest for now
as it started failing after 8e514c572e

Above commit enables llvm::DebugFlag which is a global variable.
2024-01-17 04:04:16 +00:00
Nick Desaulniers
337b771592
Revert "[libc][NFC] Refactor FPBits and remove LongDoubleBits specialization (#78192)" (#78329)
This reverts commit fdbf255c96.

Causes build breakage on 32b arm (see reports:
https://github.com/llvm/llvm-project/pull/78192).

These are reproducible for the 32b arm baremetal target on x86 hosts as
well.
2024-01-16 12:09:58 -08:00
Dmitry Chernenkov
a63d7872f0 Revert "[bazel][llvm] Sort load statements"
This reverts commit a9bfad2b9b.
2024-01-16 15:03:24 +00:00
Guillaume Chatelet
fdbf255c96
[libc][NFC] Refactor FPBits and remove LongDoubleBits specialization (#78192)
This patch removes the `FPBits` specialization for x86 Extended Precision by moving it up to `FPRep`.
It also introduces enums (`Exponent`, `BiasedExponent` and `Significand`) to represent the exponent and significant parts of the floating point numbers. These enums are used to construct and observe floating point representations.

Additionally, we remove `LongDoubleBits.h` that is now unnecessary.
2024-01-16 15:41:40 +01:00
Dmitry Chernenkov
a9bfad2b9b [bazel][llvm] Sort load statements 2024-01-16 14:15:52 +00:00
Dmitry Chernenkov
076eb4c79e [bazel] Add dependencies for 8e514c572e 2024-01-16 11:19:25 +00:00
Christian Sigg
af9f2dc7fd
[bazel] Fix build after 9fa9d9a7e1 2024-01-16 08:22:50 +01:00
Christian Sigg
2c2b27c0ea
[bazel] Fix build after 9fa9d9a7e1 2024-01-16 08:20:38 +01:00
Christian Sigg
5f24e77942
[bazel] Fix build after 9fa9d9a7e1 2024-01-16 08:03:34 +01:00
Benjamin Kramer
baba0a4cb4
[bazel] Port 8e7f073eb4 2024-01-15 13:11:51 +01:00
Adrian Kuegel
e040252b54 [mlir][Bazel] Add missing dependency needed after a1eaed7a21 2024-01-15 06:52:15 +00:00
Emilio Cota
85b7d54385 [bazel] fix for 5417a5fed6 2024-01-12 14:06:32 -05:00
Alex Zinenko
108bedee44 [mlir] fix bazel 2024-01-12 16:59:33 +00:00
Alex Zinenko
b32001a232 [mlir] update bazel for transform debug extension 2024-01-12 13:53:14 +00:00
Adrian Kuegel
528cd28de8 [mlir][Bazel] Adjust BUILD file for aa2a96a24a 2024-01-12 07:17:42 +00:00
Guillaume Chatelet
1ee93ac099
[libc] Add memcmp / bcmp fuzzers (#77741) 2024-01-11 11:06:46 +01:00
Benjamin Kramer
fb1523e712 [bazel] Port 79aa776267 2024-01-10 17:41:22 +01:00
Benjamin Kramer
c19995e965
[bazel] Fix compiler-rt build after 07c9189fcc 2024-01-09 17:53:25 +01:00
Matthias Springer
124efcaa97
[mlir][bufferization][NFC] Clean up Bazel build files (#77429)
`*OpsIncGen` should depend only on the respective `*OpsTdFiles`.
2024-01-09 11:27:48 +01:00
Mikhail Goncharov
243a5822f6 [bazel] update build for 2357e899cb 2024-01-09 10:24:32 +01:00
Adrian Kuegel
3d688d4e3d [mlir][Bazel] Adjust BUILD.bazel file for b43c50490c 2024-01-09 07:45:55 +00:00
Haojian Wu
b2246cf73e Bazel port for a5902a4d24 2024-01-06 10:20:06 +01:00
NAKAMURA Takumi
241e4c7466 [Bazel] Fixup for #77008 (orc::SymbolMap) 2024-01-06 13:43:02 +09:00
Jordan Rupprecht
8d6784db04 [bazel][libc][math] Add missing nan(f|l) deps
After 0504e93288
2024-01-05 11:07:42 -08:00
Nishant Mittal
0504e93288
[libc][math] Implement nan(f|l) functions (#76690)
Specification: https://en.cppreference.com/w/c/numeric/math/nan
2024-01-05 08:23:23 -05:00
Christian Sigg
202a4c0dfb
[mlir][bazel] Fix BUILD after 6ae7f66ff5 2024-01-04 13:17:20 +01:00
Jacques Pienaar
6ae7f66ff5 [mlir] Add config for PDL (#69927)
Make it so that PDL in pattern rewrites can be optionally disabled.

PDL is still enabled by default and not optional bazel. So this should
be a NOP for most folks, while enabling other to disable.

This only works with tests disabled. With tests enabled this still
compiles but tests fail as there is no lit config to disable tests that
depend on PDL rewrites yet.
2024-01-03 20:37:20 -08:00
max
b49e0ebedf Revert "[mlir] Add config for PDL (#69927)"
This reverts commit 5930725c89.
2024-01-03 12:16:19 -06:00
Jacques Pienaar
5930725c89
[mlir] Add config for PDL (#69927)
Make it so that PDL in pattern rewrites can be optionally disabled.

PDL is still enabled by default and not optional bazel. So this should
be a NOP for most folks, while enabling other to disable.

This is piped through mlir-tblgen invocation and that could be
changed/avoided by splitting up the passes file instead.

This only works with tests disabled. With tests enabled this still
compiles but tests fail as there is no lit config to disable tests that
depend on PDL rewrites yet.
2024-01-03 09:43:22 -08:00
Jordan Rupprecht
a258544754 [bazel][mesh] Add deps for 1D device mesh resharding spmdization
Added in 1a8fb88719
2024-01-02 17:57:22 -08:00
Jordan Rupprecht
71bcef0b0b [bazel] Add VectorDialect build dep
Added in c0345b4648
2024-01-02 14:04:56 -08:00
Oleg Shyshkov
289eb99580 [mlir][bazel] Add SPIRV python binding 2024-01-02 18:28:50 +01:00
Jacques Pienaar
3c99d25d05 [bazel] Fix clang-format build
Post #76327 the build rule required the header in lib as source too.
Tried to just do minimal change specific to build.
2024-01-01 14:47:49 -08:00
Benjamin Kramer
9e439a3539 [bazel] Fix build after 2af186f9bd 2023-12-28 21:19:04 +01:00
Guillaume Chatelet
c23991478a
[libc][NFC] Integrate FloatProperties into FPBits (#76506)
`FloatProperties` is always included when `FPBits` is. This will help
further refactoring.
2023-12-28 15:42:47 +01:00
Balaji V. Iyer
410066a0fa
[Bazel] Added SCFDialect to mlir-vulkan-runner (#76454)
Added SCFDialect to mlir-vulkan-runner cc_binary.
2023-12-27 11:17:48 -06:00
NAKAMURA Takumi
5f254eb055 [Bazel] Fixup for #76163
This also reverts 7c9c807fa4 and 476812a742.
2023-12-23 00:08:39 +09:00
Christian Sigg
7c8787511b
[mlir][bazel] Fix build after acaff70841 2023-12-21 13:24:11 +01:00
Christian Sigg
591fc4f524
[bazel] Fix build after b4e7ae883f8d75b7a464d030e14bfeca2b796d49f797bdd0674cbf13977d0b65 2023-12-21 08:20:10 +01:00
NAKAMURA Takumi
7c9c807fa4 [Bazel] Update llvm/Config, fixup for 476812a742 2023-12-21 08:52:43 +09:00
Christian Sigg
476812a742 [bazel] Update config.h.cmake after e86a02ce89. 2023-12-20 16:07:46 +01:00
Christian Sigg
7153fa3daa
[mlir][bazel] Fix build after d9803841f2 2023-12-20 15:20:43 +01:00
James Y Knight
394274965a [bazel] Port 35b366ace7 2023-12-19 18:13:58 -05:00
Christian Sigg
99045b60b5
[mlir][bazel] Fix build after c0d2ea9d42 2023-12-19 21:03:33 +01:00