2129 Commits

Author SHA1 Message Date
Keith Smiley
8abb5ae1c2
Revert "[bazel] Port #95942" (#96340)
Original change was reverted

Reverts llvm/llvm-project#96334
2024-06-21 11:04:28 -07:00
Keith Smiley
1eddf3519f
[bazel] Port #95942 (#96334) 2024-06-21 09:57:46 -07:00
Joel Wee
9048150cbc Fix bazel build after bc82793 2024-06-21 13:21:44 +00:00
JoelWee
52bec3e362
Revert f5c2ef2597 2024-06-21 14:18:40 +01:00
JoelWee
f5c2ef2597
Fix bazel build after bc82793b 2024-06-21 14:12:06 +01:00
Danial Klimkin
797724975b
Fix bazel build past e2296d8295516e9991cd6ca99ba193fbd232b6da (#96166) 2024-06-20 12:43:46 +02:00
Danial Klimkin
1d1d007b4b
Fix bazel build past abd95342f0b94e140b36ac954b8f8c29b1393861 (#96143) 2024-06-20 09:08:46 +02:00
MaheshRavishankar
5207632f86
[mlir][GPU] Move GPUDeviceMappingAttr.td to GPU/IR. (#95880)
This seems to be in the wrong place with `GPU/TransformOps`
2024-06-18 10:04:45 -07:00
Benjamin Chetioui
153fca5d6a
[mlir][bzl] Fix broken BUILD due to typo in CAPITransformsObjects in BUILD.bazel. 2024-06-14 16:40:53 +02:00
Jacques Pienaar
93181db7fb [mlir][bzl] Add missing dep
The file was added to MLIRBindingsPythonCoreNoCAPI but objects weren't.

Signed-off-by: Jacques Pienaar <jpienaar@google.com>
2024-06-13 20:48:17 +00:00
Emilio Cota
90d166aded [mlir][bazel] fixes for 3c9a9c7365 2024-06-12 11:10:42 -04:00
Emilio Cota
8b18684708 [mlir][bazel] fixes for 18cf1cd92b5 2024-06-11 18:56:26 -04:00
Jacques Pienaar
18cf1cd92b
[mlir] Add PDL C & Python usage (#94714)
Following a rather direct approach to expose PDL usage from C and then
Python. This doesn't yes plumb through adding support for custom
matchers through this interface, so constrained to basics initially.

This also exposes greedy rewrite driver. Only way currently to define
patterns is via PDL (just to keep small). The creation of the PDL
pattern module could be improved to avoid folks potentially accessing
the module used to construct it post construction. No ergonomic work
done yet.

---------

Signed-off-by: Jacques Pienaar <jpienaar@google.com>
2024-06-11 07:45:12 -07:00
Dmitry Chernenkov
be6248a42a [Bazel] Layering fix for 65310f34d7edf7924ca4cbe7df836770669f70dc 2024-06-11 14:26:18 +00:00
Benjamin Kramer
37e9bf9d15 [bazel] Add missing dependency for 3cc2710e0dd53bb82742904fa13014018a1137ed 2024-06-11 15:48:41 +02:00
Emilio Cota
3254f31a66 [mlir][bazel] fixes for e276cf0 2024-06-10 14:24:03 -04:00
Dmitry Chernenkov
97159a378c [mlir][Bazel] Fix for 4722911 2024-06-10 15:45:53 +00:00
Dmitry Chernenkov
11a944c50a [bazel][libc]Fix test bazel for 6b21e17049 2024-06-10 14:33:02 +00:00
Keith Smiley
06188d9af7
[bazel] Port #94081 (#94805) 2024-06-07 14:42:17 -07:00
Keith Smiley
4196c185b1
[bazel] Port #94078 (#94792) 2024-06-07 12:25:33 -07:00
Haojian Wu
5d0308f393 [bazel] Port for 649edb8eb25e82e3ac6fce4788f51759636229ec 2024-06-06 21:15:08 +02:00
Jordan Rupprecht
ab33fa59a2
[bazel] Fix smoke/BUILD.bazel layering in nextafter_test_template (#94641)
After 63cda2d19c310826722e8724649ceae7307389d7.

See also a97871e07dd62510dea1bb71b0f74261f52e4479.
2024-06-06 11:46:05 -05:00
Adam Paszke
23d86165aa
[Bazel] Generate LLVM_HAS_XYZ_TARGET macros in llvm config (#94476)
Otherwise code that depends on those targets being enabled might not get
compiled correctly even if the targets are explicitly included in the
configuration (in my case NVVM target for MLIR).
2024-06-06 10:12:09 -05:00
Haojian Wu
a97871e07d [bazel] Fix layering check violation for nextafter_test_template target for 63cda2d 2024-06-06 15:43:56 +02:00
Haojian Wu
4559d83b24 [bazel] Port for 8516f54e6a984a79d1a988ec66a414b5cfbd7ec7
Remove some #includes in ExpandVariadics.cpp as it will cause layering
violations.
2024-06-06 12:32:48 +02:00
Michael Jones
20483edd27
[libc] Unpoison epoll structs (#94536)
The epoll wait functions return structs via pointer, but those structs
need to be unpoisoned before return. This patch adds that unpoisoning.
2024-06-05 15:02:28 -07:00
Keith Smiley
3d44926712
[bazel] Sync config with main (#94521) 2024-06-05 12:00:00 -07:00
Jordan Rupprecht
4e0d9370f4
[bazel][windows] Add ntdll linkopt for Support (#94501)
Mirror the cmake change in cb7690af09b95bb944baf1b5a9ffb18f86c12130

```
lld-link: error: undefined symbol: __declspec(dllimport) RtlGetLastNtStatus
>>> referenced by Support.lib(ErrorHandling.obj):(class std::error_code __cdecl llvm::mapLastWindowsError(void))
```
2024-06-05 12:33:48 -05:00
Haojian Wu
2d9b83750f [bazel] Add missing dep for __support_cpp_expected 2024-06-05 15:13:29 +02:00
Keith Smiley
2e0e163bb5
[bazel] Port #94109 (#94395) 2024-06-04 13:08:48 -07:00
Keith Smiley
3b2df5b6ee
[bazel] Port #94218 (#94390) 2024-06-04 12:48:45 -07:00
Keith Smiley
fbaec0f46b
[bazel] Reduce output on CI (#94298)
This makes bazel only show the output for tests that don't pass. This
should reduce a ton of info in the log to make it easier to find
failures. The log is so long now that you can no longer view the whole
thing in 1 buildkite job.
2024-06-04 12:23:06 -07:00
Haojian Wu
90049bbbea [bazel] Add missing dep for __support_threads_sleep 2024-06-04 15:07:23 +02:00
Benjamin Chetioui
b7e472ce56
[mlir][bazel] Fix build after 46672c1dc3272adda838caa87bf3fb17411986fb. 2024-06-04 08:43:53 +02:00
Christian Sigg
4ab73549ff [mlir][bazel] Really fix BUILD after d0413438ec4d846211094b0652cf6c0f3c9408bb. 2024-06-04 07:30:58 +02:00
Christian Sigg
22dcdcc7e7 [mlir][bazel] Fix BUILD after d0413438ec4d846211094b0652cf6c0f3c9408bb. 2024-06-04 07:24:49 +02:00
Kareem Ergawy
d0413438ec
[flang][OpenMP] Handle omp.private in FirOpBuilder::getAllocaBlock() (#93927)
Fixes a crash uncovered by
[pr89651](https://github.com/llvm/llvm-test-suite/blob/main/Fortran/gfortran/regression/gomp/pr89651.f90)
in the test suite.

Fixes a crash caused by missing handling of `omp.private` ops in
`FirOpBuilder::getAllocaBlock()`.
2024-06-04 05:03:39 +02:00
Michael Jones
572b4e70cb
[libc][bazel] simplify type_traits with glob (#94079)
Previously the `type_traits` target manually listed all of the type
traits files. This patch replaces that with a glob to make the build
simpler.
2024-06-03 12:51:01 -07:00
Jordan Rupprecht
10ecdee651
Revert "fix(utils/**.py): fix comparison to None" (#94261)
Reverts llvm/llvm-project#94022

This is not actually valid bazel syntax. Buildbot failure: https://buildkite.com/llvm-project/upstream-bazel/builds/99430#018fdf11-6865-4d5d-be8e-7bfab59e3cd8
2024-06-03 12:19:50 -05:00
Eisuke Kawashima
f873dd2c8d
fix(utils/**.py): fix comparison to None (#94022)
from PEP8
(https://peps.python.org/pep-0008/#programming-recommendations):

> Comparisons to singletons like None should always be done with is or
is not, never the equality operators.

Co-authored-by: Eisuke Kawashima <e-kwsm@users.noreply.github.com>
2024-06-03 12:06:48 -05:00
Haojian Wu
12c85cd310 [bazel]: port for the libc change 142afde0eba4940f2b331274e9a3535fee960f35 2024-06-03 09:23:28 +02:00
MaheshRavishankar
e7e6e1ecad
[mlir][bazel] Add bazel build support for 2b2ce50fe8 (#94126)
Also drop errant header include from `Linalg` dialect into
`Dialect/SCF/Transforms/TileUsingInterface.cpp`
2024-06-01 15:33:49 -07:00
Keith Smiley
34599266b2
[bazel] Port #90972 (#93996) 2024-05-31 10:43:15 -07:00
Keith Smiley
7caa812f27
[bazel] Port #92819 take 2 (#93995)
I missed this since it was still broken because of another patch
https://github.com/llvm/llvm-project/pull/93996
2024-05-31 10:42:53 -07:00
Keith Smiley
13b6284b93
[bazel] Port #92819 (#93992) 2024-05-31 10:36:05 -07:00
RoseZhang03
07bd439457
[libc] added quick_exit function (#93620)
- In /libc/src/__support/ OSUtil, changed quick_exit to just exit, and
put in namespace
LIBC_NAMESPACE::internal.
- In /libc/src/stdlib added quick_exit
- Added test files for quick_exit
2024-05-31 10:19:10 -07:00
Aaron Siddhartha Mondal
852aaf5407
Reapply "[Support] Remove terminfo dependency (#92865)" (#93889)
This reverts commit fe82a3da36196157c0caa1ef2505186782f750d1.

This broke LLDB on MacOS due to a missing symbol during linking.

The fix has been applied in c6c08eee37bada190bd1aa4593c88a5e2c8cdaac.

Original commit message:

The terminfo dependency introduces a significant nonhermeticity into the
build. It doesn't respect `--no-undefined-version` meaning that it's not
a dependency that can be built with Clang 17+. This forces maintainers
of source-based distributions to implement patches or ignore linker
errors.

Remove it to reduce the closure size and improve portability of
LLVM-based tools. Users can still use command line arguments to toggle
color support expliticly.

Fixes #75490
Closes #53294 #23355
2024-05-31 01:29:00 +02:00
Keith Smiley
031f08c0a5
[bazel] Port #93567 (#93877) 2024-05-30 13:52:25 -07:00
Keith Smiley
d471860f2d
[bazel] Port #92983 (#93874) 2024-05-30 13:35:03 -07:00
Christian Sigg
191e64ffa9 [lldb][bazel] Fix BUILD after 540a36ad7e31bfeb11e795047a42bb6e30bf9985. 2024-05-30 14:50:39 +02:00