1040 Commits

Author SHA1 Message Date
Jorge Gorbe Moya
b5c661c2f4 [bazel][libc] Re-add dependency on errno to strtol_test_helper.
https://reviews.llvm.org/D146014 removed the dependency on errno from
several targets and added it to the `libc_test` macro. However,
strtol_test_helper is not a `libc_test` but a `cc_library` so it's
missing a dependency.
2023-03-14 15:52:22 -07:00
Anlun Xu
1b490154d9 [mlir][vector] Add bazel dependency to TestVector
Dependency was introduced in https://reviews.llvm.org/D145942

Reviewed By: cota

Differential Revision: https://reviews.llvm.org/D146072
2023-03-14 11:41:45 -07:00
Guillaume Chatelet
a49118a3f4 [reland][libc][NFC] Move memcmp implementations in subfolders 2023-03-14 13:03:47 +00:00
Guillaume Chatelet
00c5233139 Revert "[libc][NFC] Move memcmp implementations in subfolders"
this broke arm32 build bots
This reverts commit 7f20e2a8d2ba73a8b05742903f4ae42afec82bff.
2023-03-14 13:00:40 +00:00
Adrian Kuegel
e4a74efa6a [mlir][Bazel] Adjust build after aafb52d7c9226cd9925bd5135309bd02b6e3b59d 2023-03-14 13:54:01 +01:00
Adrian Kuegel
fe0573d1dd [mlir][Bazel] Adjust build after 0fa20ecafe0c3c7ffde413800eb4b1551b432273 2023-03-14 13:47:45 +01:00
Guillaume Chatelet
7f20e2a8d2 [libc][NFC] Move memcmp implementations in subfolders 2023-03-14 12:47:24 +00:00
Siva Chandra Reddy
ffcd6cabaf [bazel][libc] Add errno target to function_deps of tests.
Existing listings in normal deps have been removed.

Reviewed By: akuegel

Differential Revision: https://reviews.llvm.org/D146014
2023-03-14 07:40:16 +00:00
Siva Chandra Reddy
40c443e28b [libc][NFC] Switch mman.h tests to libc_errno and update Bazel build. 2023-03-13 22:46:51 +00:00
Mikhail Goncharov
5a0ad86cf3 [bazel] fix for fdd710e69caebf680ed7d4360e04c99024d75094 2023-03-13 13:16:33 +01:00
Adrian Kuegel
6f8e7835f2 [mlir][Bazel] Adjustments for fa51c1753a274fbb7a71d8fe91fd4e5caf2fa4d3
Fix bazel build.

Differential Revision: https://reviews.llvm.org/D145903
2023-03-13 09:29:27 +01:00
Peiming Liu
6db397a8d4 [mlir][sparse] support dynamic sparse tensor slices.
Reviewed By: aartbik

Differential Revision: https://reviews.llvm.org/D141532
2023-03-10 23:12:41 +00:00
Jakub Kuderski
b194ef692c [mlir][spirv][vector] Add pattern to convert reduction to SPIR-V dot prod
This converts a specific form of `vector.reduction` to SPIR-V integer
dot product ops.

Add a new test pass to excercise this outside of the main vector to
spirv conversion pass.

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D145760
2023-03-10 13:54:16 -05:00
Emilio Cota
350d7e33ff [mlir][vector] remove unnecessary VectorTransformOps include
While at it, add a dep that we missed in https://reviews.llvm.org/D145638.

Reviewed By: kuhar, dcaballe

Differential Revision: https://reviews.llvm.org/D145731
2023-03-09 18:23:36 -05:00
Jakub Kuderski
5288d84562 [mlir][vector] Add missing build dependencies for VectorToGPU
Post-commit fix for https://reviews.llvm.org/D145638.
2023-03-09 15:13:29 -05:00
Haojian Wu
fbcca1bc03 [bazel] Port for 0aac9a2875bad4f065367e4a6553fad78605f895 2023-03-09 11:36:37 +01:00
Aaron Siddhartha Mondal
004c76155c [bazel] Don't alwayslink clang-tidy libraries
These libraries are only ever used in clang-tidy itself, so there is no
need to unconditionally keep all symbols.

Reviewed By: GMNGeoffrey, #bazel_build

Differential Revision: https://reviews.llvm.org/D145258
2023-03-09 08:45:08 +01:00
Guillaume Chatelet
8de802e221 [bazel] Add layering-check
In the same vein as https://reviews.llvm.org/D141553
Enable the feature globally to ensure layering and catch circular dependencies
(https://llvm.org/docs/CodingStandards.html#library-layering).

Differential Revision: https://reviews.llvm.org/D143678
2023-03-08 13:23:56 +00:00
Guillaume Chatelet
78373498cd Revert D143678 "[bazel] Add layering-check"
This broke build bots with MPFR issue.
This reverts commit 5916decfc2ba3f5ce5c5c0fe8de72ea2f8b4c3bf.
2023-03-07 13:27:24 +00:00
Guillaume Chatelet
5916decfc2 [bazel] Add layering-check
In the same vein as https://reviews.llvm.org/D141553
Enable the feature globally to ensure layering and catch circular dependencies
(https://llvm.org/docs/CodingStandards.html#library-layering).

Differential Revision: https://reviews.llvm.org/D143678
2023-03-07 13:24:37 +00:00
Guillaume Chatelet
65de8c8677 [libc][bazel] Fix missing dependency for math tests 2023-03-07 13:21:47 +00:00
Adrian Kuegel
89a515d7b1 [mlir][Bazel] Add missing dependency. 2023-03-07 07:41:47 +01:00
Goran Flegar
d866f87f88 [bazel] Fix build after 28d04c5 2023-03-06 17:40:19 +01:00
Jordan Rupprecht
ebb94ecb95 [bazel] Fix errno dep location: libc_function_deps -> deps 2023-03-03 12:59:56 -08:00
Jordan Rupprecht
fc840808e6 [bazel] Add errno dep to stdlib tests
In addition run buildifier.
2023-03-03 12:55:03 -08:00
Michael Jones
04a9c62554 [libc] move stdlib and stdio to new errno pattern
Fixes https://github.com/llvm/llvm-project/issues/61071

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D145191
2023-03-03 11:15:36 -08:00
Siva Chandra Reddy
204587a3cb [libc][NFC] Switch use of errno in src/unistd and src/sys to libc_errno.
Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D145096
2023-03-02 17:15:10 +00:00
Haojian Wu
f75e45093d [bazel] Add missing dep for llvm-c-test 2023-03-02 11:01:54 +01:00
Haojian Wu
91676abf6a [bazel] Port for f7ca01333214f934c580c162afdee933e7430b6c 2023-03-02 10:38:41 +01:00
Nicolas Vasilache
613c9b93fe Fix Bazel build post c888a0ce8846e7ebf30914d4959125da80b3f566 2023-03-01 08:14:08 -08:00
Michael Jones
cb3c41c285 [libc] Refactor string to float return values
The internal implementation of the string to float function previously
used pointer arguments for returning several values. Additionally it
set errno in several unexpected places. Now all of that goes through
return structs. For readability I also moved the function away from raw
pointer arithmetic towards proper indexing. I also added support for
rounding modes.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D144597
2023-02-28 10:50:43 -08:00
Nicolas Vasilache
2f07d627a1 [mlir][Linalg] Refactor HoistPadding and add support for hoisting in the absence of packing loops.
This revision cleans up the implementation of hoist padding and extends it to also work in the
absence of packing loops.
This allows better composition when hoisting the padded result of a DPS operation.

A systematic usage of RewriterBase is applied to the implementation.

Depends on: D144856

Differential Revision: https://reviews.llvm.org/D144855
2023-02-28 05:21:57 -08:00
Haojian Wu
06faa47ecc [mlir] Fix the missing mlir test BUILD.bazel for 3948f0a0b5e5fecddf315b8de321c6a44ee7ff5c 2023-02-28 10:15:28 +01:00
Haojian Wu
639fc00b2d [mlir] Port bazel for 3948f0a0b5e5fecddf315b8de321c6a44ee7ff5c 2023-02-28 09:32:30 +01:00
Haojian Wu
8877d8f5ca [mlir] Port bazel for 115711c19cd287c098a872c63a00478ca635f642 2023-02-27 16:51:15 +01:00
Haojian Wu
0264ca431d [bazel] Port Bazel for e7950fceb1e7f82370f6cff80b258e552eb410a6 2023-02-27 11:33:45 +01:00
Michal Terepeta
52786141f9 [MLIR][Vector] Add a dependency on :DataLayoutInterfaces
Reviewed By: tpopp

Differential Revision: https://reviews.llvm.org/D144631
2023-02-23 12:11:22 +01:00
Aaron Siddhartha Mondal
a81bdc614a [bazel] Remove unused dependency on libxml2
The Bazel configs don't set `LLVM_ENABLE_LIBXML2`, so this was never usable to
begin with.

On systems without static `libxml2.a` this made `lld` runtime-dependent on an
unused, non-hermetic `libxml2.so`.

Reviewed By: MaskRay, GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D143351
2023-02-23 01:52:02 +01:00
Nicolas Vasilache
c624027633 [mlir][linalg][TransformOps] Connect hoistRedundantVectorTransfers
Connect the hoistRedundantVectorTransfers functionality to the transform
dialect.

Authored-by: Quentin Colombet <quentin.colombet@gmail.com>

Differential Revision: https://reviews.llvm.org/D144260
2023-02-20 01:50:29 -08:00
Tue Ly
4d5fd9b79f [libc][bazel] Fix missing dependency in test/src/stdlib targets. 2023-02-18 10:16:13 -05:00
Tue Ly
df82394e7a [libc][bazel] Export .bzl files for libc/test and libc/test/src/math. 2023-02-17 11:03:04 -05:00
Pranav Kant
f83e6c6d7a [Bazel][mlir] Fix build errors
Fallback from https://reviews.llvm.org/D143925

Differential Revision: https://reviews.llvm.org/D144212
2023-02-16 20:17:39 +00:00
Michael Jones
dccd1d736c [libc][bazel] add string to float targets
This patch adds atof, strtof, strtod, and strtold to the bazel build, as
well as their tests.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D144140
2023-02-16 11:22:08 -08:00
Pranav Kant
9a2cb3a692 Fix bazel build
Fallback from 66b3f4a407316004df11307b92aa603b20c0b349
2023-02-16 01:31:19 +00:00
Tue Ly
66b3f4a407 [libc][bazel] Add missing dependency for stdlib tests. 2023-02-15 18:03:43 -05:00
Aart Bik
c3ca29080c [mlir] bazel fix
Reviewed By: olegshyshkov

Differential Revision: https://reviews.llvm.org/D144124
2023-02-15 10:35:49 -08:00
Guillaume Chatelet
b67ee5d505 [reland][libc] Separate memcpy implementations per arch
As x86_64 implementations is likely to grow up to a point where it's no more manageable to have all implementations in the same file.
2023-02-15 14:40:07 +00:00
Matthias Springer
c645eb0d03 [mlir][memref] Bufferize memref.tensor_store op
This change adds the BufferizableOpInterface implementation for memref.tensor_store.

Differential Revision: https://reviews.llvm.org/D144080
2023-02-15 15:26:57 +01:00
Guillaume Chatelet
7a282bd2aa [bazel] Fix missing dependency in clang-tools-extra/clang-tidy:llvmlibc 2023-02-15 13:54:45 +00:00
Guillaume Chatelet
15b90805bc Revert "[libc] Separate memcpy implementations per arch"
This is patch is still breaking downstream users...
This reverts commit 97e441dc6cfae31bc56b375e43899946ec7f08a8.
2023-02-15 13:29:07 +00:00