2201 Commits

Author SHA1 Message Date
Dmitry Chernenkov
67ad23fe17 [Bazel] Fix Bazel build for Bolt 2024-07-26 11:59:40 +00:00
Emilio Cota
f4be6812e2 [mlir][bazel] fix for c194bc77a21d 2024-07-25 22:52:31 -04:00
Emilio Cota
4d51e83728 [mlir] fixes for f6431f0c5268 2024-07-25 22:18:05 -04:00
NAKAMURA Takumi
5bf085921e Revert "[llvm][Bazel] Adapt to 4eb30cfb3474e3770b465cdb39db3b7f6404c3ef"
Since #99276 has been landed, the dependency has become redundant.

This reverts commit aa94a43178e1e1fa4dbe7ee802d46623667067ae.
(llvmorg-19-init-17718-gaa94a43178e1)
2024-07-26 10:24:47 +09:00
Jorge Gorbe Moya
393a957d1c [bazel] Add missing dependency after 74a1ca504bf60f02431140ee72dbe1c158556237 2024-07-24 16:56:22 -07:00
Dmitry Chernenkov
8c20d715c0 [Bazel][mlir] Fix Bazel for f83950ab8dfda1da882a6ef7b508639df251621a 2024-07-24 15:56:30 +00:00
Keith Smiley
3a8a0b8faf
[bazel] Update for new deps (#100166)
The config drifted from main in a few places. I didn't track down the
original changes since there were 3 breakages
2024-07-23 10:09:52 -07:00
Keith Smiley
1c4091053a
[bazel] Port cc7308a1563e5ebab4dffeb85deefdde61e6711a (#100163) 2024-07-23 09:58:12 -07:00
Dmitry Chernenkov
7eb59a1ef9 [Bazel] Fix libc Bazel build for 29be889c2c9c9a92e7ed89bd71d141961517d7e5 2024-07-22 09:00:20 +00:00
NAKAMURA Takumi
168ecd7069 Revert "[bazel] Fix llvm:Core build (#99054)"
This reverts commit 5b54f36fb607d21c18f9eb56dcf481a9841dee8e.
(llvmorg-19-init-17774-g5b54f36fb607)
See #99610
2024-07-20 12:36:57 +09:00
lntue
9da9127fec
[libc][math] Fix signaling nan handling of hypot(f) and improve hypotf performance. (#99432)
The errors were reported by Paul Zimmermann with the CORE-MATH project's
test suites:
```
zimmerma@tartine:/tmp/core-math$ CORE_MATH_CHECK_STD=true LIBM=$L ./check.sh hypot
Running worst cases check in --rndn mode...
FAIL x=snan y=inf ref=qnan z=inf
Running worst cases check in --rndz mode...
FAIL x=snan y=inf ref=qnan z=inf
Running worst cases check in --rndu mode...
FAIL x=snan y=inf ref=qnan z=inf
Running worst cases check in --rndd mode...
Spurious inexact exception for x=0x1.ffffffffffffep+24 y=0x1p+0 (z=0x1.0000000000001p+25)
```
2024-07-19 10:40:44 -04:00
Jordan Rupprecht
e1d0913a85
[bazel] Replace git_repository with http_archive. (#99422)
The current git_repository usage points to tags, which leads to warnings
that the build may not be reproducable due to not using a git sha.

The docs for
[git_repository](https://bazel.build/rules/lib/repo/git#git_repository)
recommend using `http_archive`, so switch to that instead. Also bump to
newer versions for these two repos.
2024-07-18 21:56:37 -05:00
Keith Smiley
f304b88373
[bazel] Port #98403 (#99592) 2024-07-18 17:25:37 -07:00
Keith Smiley
914a00a9c9
[bazel] Add support for pybind (#98398)
Previously these targets were disabled, but with a relatively new
rules_python we can build these pointing at a hermetic python, which
allows us to build these safely. Users can still access the files
directly if they need to customize how these are built.
2024-07-18 17:23:02 -07:00
Keith Smiley
433e09cf25
[bazel] Add filegroups for MLIR bindings sources (#98396)
This can be useful if downstream projects configure their pybind
differently, similar to how local_config_python isn't defined here.
2024-07-18 16:08:20 -07:00
Krasimir Georgiev
3eb666e292 update bazel for a6d2da8b9d7be19816dd4c76b02016c19618c1be 2024-07-18 13:05:08 +00:00
Jordan Rupprecht
b5e4d323ba
[bazel][mlir] Add MathToROCDL to fix layering check (#99377) 2024-07-17 14:27:31 -05:00
Angel Zhang
da5264efa3
[bazel][docs] Update build documentation (#99339)
This PR updates the Quick Start section to provide more detailed build
instructions.
2024-07-17 14:47:53 -04:00
Keith Smiley
d748dab601
[bazel] Port #98653 (#99356) 2024-07-17 10:11:16 -07:00
Angel Zhang
6867e49fc8
[mlir][spirv] Implement vector type legalization for function signatures (#98337)
### Description
This PR implements a minimal version of function signature conversion to
unroll vectors into 1D and with a size supported by SPIR-V (2, 3 or 4
depending on the original dimension). This PR also includes new unit
tests that only check for function signature conversion.

### Future Plans
- Check for capabilities that support vectors of size 8 or 16.
- Set up `OneToNTypeConversion` and `DialectConversion` to replace the
current implementation that uses `GreedyPatternRewriteDriver`.
- Introduce other vector unrolling patterns to cancel out the
`vector.insert_strided_slice` and `vector.extract_strided_slice` ops and
fully legalize the vector types in the function body.
- Handle `func::CallOp` and declarations.
- Restructure the code in `SPIRVConversion.cpp`.
- Create test passes for testing sets of patterns in isolation.
- Optimize the way original shape is splitted into target shapes, e.g.
`vector<5xi32>` can be splitted into `vector<4xi32>` and
`vector<1xi32>`.

---------

Co-authored-by: Jakub Kuderski <kubakuderski@gmail.com>
2024-07-17 13:09:15 -04:00
Adrian Kuegel
b5b9832b42 [lldb][Bazel]: Second attempt to adapt for a751f653b40f2021f091a2f1ebcc2d91bc4cc89d 2024-07-17 11:32:34 +00:00
Adrian Kuegel
8d97cbcf27 Revert "[lldb][Bazel]: Adapt BUILD.bazel file for a751f653b40f2021f091a2f1ebcc2d91bc4cc89d"
This reverts commit 343ed3fd5a5e183f0edf87a89955af772aaadcfb.
2024-07-17 11:30:35 +00:00
Adrian Kuegel
343ed3fd5a [lldb][Bazel]: Adapt BUILD.bazel file for a751f653b40f2021f091a2f1ebcc2d91bc4cc89d 2024-07-17 11:20:39 +00:00
Keith Smiley
e215cf7099
[bazel] Port changes from main (#99247)
This ports 5f8c46b88799a710f98c00d377d7edc34096f85d and
4531f82c1ad905614c1df9359a77d48e6397fd97
2024-07-16 14:52:16 -07:00
Chenguang Wang
5b54f36fb6
[bazel] Fix llvm:Core build (#99054)
According to @akuegel, this breakage was introduced in c05126bd.
2024-07-16 08:57:22 -07:00
lntue
a6d2da8b9d
[libc][stdlib] Implement heap sort. (#98582) 2024-07-16 08:13:25 -04:00
Adrian Kuegel
aa94a43178 [llvm][Bazel] Adapt to 4eb30cfb3474e3770b465cdb39db3b7f6404c3ef 2024-07-16 11:43:12 +00:00
Adrian Kuegel
bf5d5fed8d [lldb][Bazel] Add missing dependency. 2024-07-16 11:08:12 +00:00
Krasimir Georgiev
dcf30d3366
bazel build: pass __support_macros_config dep explicitly (NFCI) (#98999)
Passing it explicitly makes it that it's not made available to targets
that don't need it (also we've got some internal integration that trips
on it being passed implicitly in the rule definition).
2024-07-16 10:35:35 +02:00
Chenguang Wang
0309709a67
[bazel] Add missing dependency for mlir:SCFTransformOps (#98919)
Bazel build failure was introduced in commit acc159ae.
2024-07-15 08:44:56 -07:00
Haojian Wu
40ed1946f2 [bazel] Fix the bazel build after 40effc7af5679b7d54d3176a5eef2cdee1962ecd 2024-07-13 07:52:29 +02:00
Petr Hosek
5ff3ff33ff
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98597)
This is a part of #97655.
2024-07-12 09:28:41 -07:00
Haojian Wu
e616fa5bc0 [bazel] Add missing dep for vfprintf_internal 2024-07-12 16:07:01 +02:00
Haojian Wu
4a02b0be26 [bazel] Port for a4cdd94ed0afe76854f837ce3c49c74e712d721d 2024-07-12 11:17:37 +02:00
Mikhail Goncharov
6dc2c3db62 remove outdated section about bazel pre-merge testing 2024-07-12 10:41:34 +02:00
Mehdi Amini
ce9035f5bd
Revert "[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration" (#98593)
Reverts llvm/llvm-project#98075

bots are broken
2024-07-12 09:12:13 +02:00
Pranav Kant
9c1861bd5d
[mlir][NFC] Remove unused includes (#98557)
Adding dep to TosaDialect increases binary size unnecessarily
2024-07-11 14:54:04 -07:00
Petr Hosek
3f30effe1b
[libc] Migrate to using LIBC_NAMESPACE_DECL for namespace declaration (#98075)
This is a part of #97655.
2024-07-11 12:35:22 -07:00
Michael Jones
5aed6d67e3
Reland: [libc] Move off_t and stdio macros to proxy hdrs (#98384)
reland of https://github.com/llvm/llvm-project/pull/98215

Additionally adds proxy headers for FILE and the fopencookie types

The arm32 build has been failing due to redefinitions of the off_t type.
This patch fixes this by moving off_t to a proper proxy header. To do
this, it also moves stdio macros to a proxy header to hopefully avoid
including this proxy header alongside this public stdio.h.
2024-07-11 11:09:51 -07:00
Keith Smiley
dd44003f57
[bazel] Port #96704 (#98507) 2024-07-11 09:45:02 -07:00
Haojian Wu
2a79fd0b92 [bazel] Port for d9c26b9d560f4362503b8f0ec97a52a0a36a57ce 2024-07-11 16:30:48 +02:00
Keith Smiley
56069ab1a3
[bazel] Port #96596 (#98411)
This change added a circular dependency in the profile and core headers,
so this splits out a target with just the headers for use by the core
library.
2024-07-10 16:18:26 -07:00
Benjamin Kramer
34c544e1cc [mlir][linalg] Remove unused #includes. NFC. 2024-07-10 22:01:22 +02:00
Keith Smiley
953c669b6e
[bazel] Port #98344 (#98349) 2024-07-10 09:51:32 -07:00
Keith Smiley
e3fe8eee3c
[bazel] Port #87626 (#98348) 2024-07-10 09:39:10 -07:00
Haojian Wu
397daea909 [bazel] Port for 5c09dda 2024-07-10 11:52:39 +02:00
Haojian Wu
c188cb77ab [bazel] Port for 7d246e84a412449f00c0489705336d120983bb5c 2024-07-10 10:06:49 +02:00
Michael Jones
3a744283f4
Revert "[libc] Move off_t and stdio macros to proxy hdrs" (#98242)
Reverts llvm/llvm-project#98215

Breaks linux bots
2024-07-09 16:22:38 -07:00
Michael Jones
240ec5a375
[libc] Move off_t and stdio macros to proxy hdrs (#98215)
The arm32 build has been failing due to redefinitions of the off_t type.
This patch fixes this by moving off_t to a proper proxy header. To do
this, it also moves stdio macros to a proxy header to hopefully avoid
including this proxy header alongside this public stdio.h.
2024-07-09 16:17:02 -07:00
Haojian Wu
38bed81350 [bazel] Add missing deps for afa6bed8afe9011c07c682a0a24362260d92cfdd 2024-07-09 14:12:22 +02:00