Commit Graph

1058 Commits

Author SHA1 Message Date
yijia1212
55dd04f6bc update dependency for TransformOpsPyTdFiles
update dependency for TransformOpsPyTdFiles

Differential Revision: https://reviews.llvm.org/D146605
2023-03-21 21:26:31 -07:00
Anlun Xu
c5f6339c12 Add missing dependency for TransformDialect
Differential Revision: https://reviews.llvm.org/D146589
2023-03-21 15:23:23 -07:00
yijia1212
51c8c1e1e5 Fix dep error for transform dialect in bazel
Fix dep error for transform dialect in bazel

Reviewed By: anlunx

Differential Revision: https://reviews.llvm.org/D146566
2023-03-21 14:40:43 -07:00
Alex Zinenko
fb409a2822 [mlir] Transform dialect: add named sequences
Named sequences introduce an additional abstraction and reuse capability
to the transform dialect. They can be though of as macros parameterized
with handles that can be invoked in places where a transform dialect
operation is expected. Such reuse was previously not possible in the
dialect and required dynamic construction of the transform IR from the
client language. Named sequences are intentionally restricted to
disallow recursion, as it could make the dialect accidentally
Turing-complete, which isn't desired at this point.

Reviewed By: springerm

Differential Revision: https://reviews.llvm.org/D146433
2023-03-21 14:53:54 +00:00
Adrian Kuegel
16b192f497 [mlir][Bazel] Adjust BUILD files to 0e9523efda 2023-03-21 15:00:23 +01:00
NAKAMURA Takumi
3e79dfac0e [Bazel] Fixup for D144351, Add alwayslink to //llvm:tblgen 2023-03-21 16:58:22 +09:00
yijia1212
ff48a2925f modify dir of dep in OpenMPCommon
Fix dir error of deps in OpenMPCommon bazel build

Differential Revision: https://reviews.llvm.org/D146461
2023-03-20 23:33:55 +01:00
Michael Jones
99047c0501 [libc][bazel] add targets for sprintf
The bazel build is currently overlay mode only, so the FILE functions
are still out of reach for it, but sprintf only uses strings. This adds
targets for sprintf, snprintf, and all the interal printf pieces, as
well as tests.

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D146100
2023-03-20 15:09:20 -07:00
Michael Jones
f2c3a9cbd2 [libc][obvious] fix missing memory_check_utils
memmove and bcopy tests were missing a dependancy on memory_check_utils
in the bazel build, causing build failures.

Differential Revision: https://reviews.llvm.org/D146462
2023-03-20 15:06:58 -07:00
Anlun Xu
c71fe7c9e8 [mlir][openMP] Add bazel deps
Differential Revision: https://reviews.llvm.org/D146455
2023-03-20 14:05:58 -07:00
Adrian Kuegel
cc69d58d79 [mlir][Bazel] Adjust BUILD file for 930744fcda 2023-03-20 15:11:01 +01:00
Adrian Kuegel
a348ba21f8 [mlir][Bazel] Avoid __attribute__((weak)) for MSVC.
Differential Revision: https://reviews.llvm.org/D146405
2023-03-20 10:17:24 +01:00
Adrian Kuegel
257f4fd3b9 [mlir][Bazel] Add missing dependencies. 2023-03-20 09:28:25 +01:00
Jorge Gorbe Moya
e07a872c61 [bazel] add missing dependency to //mlir:SPIRVCommonConversion 2023-03-17 15:00:56 -07:00
Artem Belevich
fea8faa705 Separate SerializeToCubin from GPUTransforms.
SerializeToCubin depends on CUDA at *runtime* which is undesirable for MLIR's
general use case, as compilation should be doable on any host, regardless of
whether it has a GPU.

SerializeToCubin is needed to run some GPU tests, so when we build mlir-opt,
SerializeToCubin pass is linked in directly into mlir-opt.

Differential Revision: https://reviews.llvm.org/D146330
2023-03-17 14:08:53 -07:00
Mikhail Goncharov
86bce125e9 [bazel] update build for d60d3455eb 2023-03-17 13:31:47 +01:00
Adrian Kuegel
bece599dff [llvm][Bazel] Include .inc files in tblgen target.
Differential Revision: https://reviews.llvm.org/D146220
2023-03-16 13:32:37 +01:00
Lei Zhang
59e4fbfcd0 [mlir][memref] Fold subview into GPU subgroup MMA load/store ops
This commits adds support for folding subview into GPU subgroup
MMA load/store ops.

Reviewed By: ThomasRaoux

Differential Revision: https://reviews.llvm.org/D146150
2023-03-15 17:49:32 +00:00
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 7f20e2a8d2.
2023-03-14 13:00:40 +00:00
Adrian Kuegel
e4a74efa6a [mlir][Bazel] Adjust build after aafb52d7c9 2023-03-14 13:54:01 +01:00
Adrian Kuegel
fe0573d1dd [mlir][Bazel] Adjust build after 0fa20ecafe 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 fdd710e69c 2023-03-13 13:16:33 +01:00
Adrian Kuegel
6f8e7835f2 [mlir][Bazel] Adjustments for fa51c1753a
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 0aac9a2875 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 5916decfc2.
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 f7ca013332 2023-03-02 10:38:41 +01:00
Nicolas Vasilache
613c9b93fe Fix Bazel build post c888a0ce88 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