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
Christian Sigg
4c887fed40
[mlir][bazel] Fix build after 5caae72d1a
2023-12-19 12:29:53 +01:00
James Y Knight
cdda08bb9a
[bazel] Port e3627e2690
2023-12-18 22:20:58 -05:00
James Y Knight
d23188d5c8
[bazel] Port a0a3c793d2
2023-12-18 15:17:21 -05:00
Benjamin Kramer
8f5628eaef
Reapply "[bazel] Port 2e45326b088b3b2f5c8327f6d5e61bdd2845bbbe"
...
This reverts commit 0911f23773
. The
corresponding Clang change re-landed in 945c645acb
2023-12-18 13:26:38 +01:00
Benjamin Chetioui
810b5bc59f
[MLIR][bazel] Fix build files for 5e29112719df91b1c80916386e230252d56… ( #75617 )
...
…b052e.
2023-12-15 16:59:19 +01:00
Benjamin Chetioui
306bd23e50
[MLIR][bazel] Fix build files for 681eacc1b670fd7137d8677fef6fc76c6e3… ( #75615 )
...
…7dca9
2023-12-15 16:24:25 +01:00
Guillaume Chatelet
b4fa7f4c94
[libc][NFC] Split str_to_float tests and reduce type clutter ( #75471 )
...
This is a follow up on #75353 .
2023-12-15 09:44:10 +01:00
Yinying Li
7bc6c4abe8
[mlir][print]Add functions for printing memref f16/bf16/i16 ( #75094 )
...
1. Added functions for printMemrefI16/f16/bf16.
2. Added a new integration test for all the printMemref functions.
2023-12-14 13:06:25 -05:00
Adrian Kuegel
0911f23773
Revert "[bazel] Port 2e45326b088b3b2f5c8327f6d5e61bdd2845bbbe"
...
This reverts commit eb05d7a05a
.
2023-12-14 10:01:39 +00:00
Adrian Kuegel
d22dad9f76
[llvm][Bazel] Add missing library to linkopts on Windows.
2023-12-14 10:00:10 +00:00
NAKAMURA Takumi
e0ca12a145
[Bazel] Add arm_vector_types.h (fixup #73258 )
2023-12-14 10:51:51 +09:00
Aiden Grossman
67d7903262
[Bazel] Define BUILTIN_THREAD_POINTER where appropriate on x86-64 linux ( #74574 )
...
This patch defines BUILTIN_THREAD_POINTER in config.bzl when appropriate
on x86-64 linux only. This is needed to build exegesis properly as
certain functionality breaks if this is not enabled. This option is only
supported on relatively recent compiler versions, but given most people
using the bazel build are using very recent toolchains, this shouldn't
be an issue.
2023-12-13 16:53:38 -08:00
Fangrui Song
eb05d7a05a
[bazel] Port 2e45326b08
2023-12-13 16:47:44 -08:00
Nick Desaulniers
1f6427a2d5
[libc] add mempcpy to bazel overlay ( #75383 )
...
We'd like to begin overlaying mempcpy.
2023-12-13 13:23:42 -08:00
Benjamin Kramer
c2d3188d5d
[bazel] Port ab380c287a
2023-12-13 14:00:20 +01:00
Fangrui Song
aee93cfe7f
[bazel] Port 27259f17e9
2023-12-13 00:02:41 -08:00
Aart Bik
365777ecbe
[mlir][sparse] refactor utilities into transform/utils dir ( #75250 )
...
Separates actual transformation files from supporting utility files in
the transforms directory. Includes a bazel overlay fix for the build (as
well as a bit of cleanup of that file to be less verbose and more
flexible).
2023-12-12 15:34:31 -08:00
Fangrui Song
cd9a641613
[bazel] Port 4b3446771f
2023-12-12 13:24:38 -08:00
Fangrui Song
fa131ae3bd
[bazel,unittest] Export llvm_orc_registerJITLoaderGDBWrapper
2023-12-12 10:27:38 -08:00
Guillaume Chatelet
dd85e67dc4
[libc] Add mask functions to math_extras ( #75169 )
2023-12-12 13:23:21 +01:00
Adrian Kuegel
4204b94264
[mlir][Bazel] Adjust for d5fb4c0f11
2023-12-12 08:56:04 +00:00
Fangrui Song
6e761f3a04
[bazel] Port #73257 54397f9ac1
2023-12-11 13:45:57 -08:00
Fangrui Song
13ef4fec26
[bazel] Port #73257 54397f9ac1
2023-12-11 13:26:25 -08:00
Benjamin Kramer
2a988a38a0
[bazel] Port 2460bf2fac
2023-12-11 13:57:05 +01:00
Benjamin Kramer
fa981f57dd
[bazel] Port 46708a5bcb
2023-12-09 11:39:34 +01:00
Guillaume Chatelet
05420a1754
Revert "[libc] Make BigInt bit_cast-able to compatible types" ( #74887 )
...
This reverts the following commits:
- a539a09000
- 31316b3f85
Rationale for revert:
https://github.com/llvm/llvm-project/issues/74258#issuecomment-1847836861
2023-12-08 22:10:57 +01:00
Guillaume Chatelet
31316b3f85
[reland][libc] Make BigInt bit_cast-able to compatible types ( #74862 )
...
Fix #74258
This is a reland of #74837 , the error went unnoticed because it compiles
fine on
clang-16 but not on clang-12 which is the version used on the buildbots.
The fix was to explicitly initialize `BigInt` variables in `constexpr`
operations: `BigInt<Bits, Signed> result(0);` instead of `BigInt<Bits,
Signed> result;`
2023-12-08 18:03:24 +01:00
Guillaume Chatelet
d5199b43be
Revert "[libc] Make BigInt bit_cast-able to compatible types" ( #74856 )
...
Reverts llvm/llvm-project#74837
Some build bot are failing because of missing constexpr.
https://lab.llvm.org/buildbot/#/builders/138/builds/56468/steps/7/logs/stdio
2023-12-08 17:15:10 +01:00
Guillaume Chatelet
a2b7ded40c
[libc] Make BigInt bit_cast-able to compatible types ( #74837 )
...
Fix #74258
2023-12-08 17:11:05 +01:00
Matthias Springer
77f5b33c46
[mlir][SCF] Retire SCF-specific to_memref
/to_tensor
canonicalization patterns ( #74551 )
...
The partial bufferization framework has been replaced with One-Shot
Bufferize. SCF-specific canonicalization patterns for
`to_memref`/`to_tensor` are no longer needed.
2023-12-07 08:24:17 +09:00
Adrian Kuegel
b3f0fa8bb4
[mlir][Bazel] Add missing dependency after 641e05decc
2023-12-06 10:06:08 +00:00
NAKAMURA Takumi
9fa34555af
[Bazel] Quick fix for #74469 CLANG_VERSION
2023-12-06 12:32:21 +09:00
Benjamin Kramer
16c61cad19
[bazel] Port 7fc792cba7
2023-12-06 00:03:04 +01:00
Jordan Rupprecht
11ba327e69
[bazel][libc] Add missing UInt.h -> CPP/bit.h dep
2023-12-05 14:26:00 -08:00
Guillaume Chatelet
1d89478830
[reland][libc][NFC] Remove __support/bit.h and use __support/CPP/bit.h instead ( #73939 ) ( #74446 )
...
Same as #73939 but also fix `libc/src/string/memory_utils/op_aarch64.h`
that was still using `deferred_static_assert`.
2023-12-05 11:35:13 +01:00
Guillaume Chatelet
de7fdc5b54
Revert "[libc][NFC] Remove __support/bit.h and use __support/CPP/bit.h instead" ( #74444 )
...
Reverts llvm/llvm-project#73939
This broke libc-aarch64-ubuntu build bot
https://lab.llvm.org/buildbot/#/builders/138/builds/56186
2023-12-05 11:25:39 +01:00
Guillaume Chatelet
b140948850
[libc][NFC] Remove __support/bit.h and use __support/CPP/bit.h instead ( #73939 )
2023-12-05 11:21:07 +01:00
Mikhail Goncharov
43455a2f0d
[bazel] port c33e5d59e5
2023-12-05 09:48:30 +01:00
Benjamin Kramer
c4cebe5b44
[bazel] Add missing dependency for dff2f59be3
2023-12-04 20:16:47 +01:00
Benjamin Kramer
b935f1a7ed
[bazel] Add missing dependency for 3a03da37a3
2023-12-04 17:40:35 +01:00
Peter Hawkins
1c6a6ba43b
[bazel] Remove :CAPIGPU as a dependency of :MLIRPythonBindingsCore. ( #74133 )
...
This dependency appears unused and it bloats the size of the Python
bindings for non-GPU users.
2023-12-02 07:41:52 -08:00
Guillaume Chatelet
bb98227db1
[libc][NFC] Remove named_pair ( #73952 )
...
`named_pair` does not provide enough value to deserve its own header.
2023-12-01 10:30:15 +01:00
Guillaume Chatelet
2c976a1fac
[libc] Fix _Float16 detection for x86 ( #73947 )
2023-12-01 09:47:26 +01:00
Guillaume Chatelet
9557fcca56
[libc] Fix lint message ( #73956 )
2023-12-01 09:32:22 +01:00
frgossen
402591a414
Fix bazel build ( #73942 )
2023-11-30 09:22:14 -05:00
Guillaume Chatelet
b703bd821d
[libc] Add more functions in CPP/bit.h ( #73814 )
...
Once this is submitted we can remove `include/__support/bit.h` that
duplicates some of this functionality.
2023-11-30 13:51:02 +01:00
Guillaume Chatelet
8b25381bb6
[libc] Add the digits property to numeric_limits ( #73926 )
2023-11-30 13:34:55 +01:00
Lei Zhang
77b9fb2341
[mlir] Add missing BUILD dependency for GPUToGPURuntimeTransforms
2023-11-29 21:33:17 -08:00
Lei Zhang
f7be5f640c
[mlir] Fix BUILD.bazel for CAPITarget
2023-11-29 21:33:17 -08:00
frgossen
453bd049c8
Fix bazel build ( #73880 )
2023-11-29 19:31:52 -05:00
michaelrj-google
73f8aa01d8
[libc][NFC] Fix missing dep in bazel ( #73854 )
...
Patch #73469 added a dependency from __support/bit.h to
__support/CPP/type_traits.h, but didn't add a dependency in the bazel.
This caused downstream build failures. This patch fixes the missing
dependency.
2023-11-29 13:20:14 -08:00
Guillaume Chatelet
e2a37e5130
[libc][NFC] Fix missing LIBC_INLINE + style ( #73659 )
2023-11-29 10:37:54 +01:00
Adrian Kuegel
ebeae22cde
Revert "Fix bazel build ( #73741 )"
...
This reverts commit 4b8964dfd8
.
2023-11-29 08:59:44 +00:00
frgossen
4b8964dfd8
Fix bazel build ( #73741 )
2023-11-28 22:55:47 -05:00
michaelrj-google
d6783c7c98
Revert "[libc][bazel] Add copts to libc_support_library" ( #73723 )
...
Reverts llvm/llvm-project#73591
Broke downstream builds. I will look into relanding tomorrow.
2023-11-28 16:21:52 -08:00
Adrian Kuegel
b7ccaf0bf6
[mlir][Python] Add filegroup for files in mlir/extras.
...
This is needed after 225648e91c
2023-11-28 08:54:44 +00:00
Adrian Kuegel
1d50560335
Revert "[Bazel] Fixes for c43c88501e3bc273a7c1074a19e86dc305ad7234"
...
This reverts commit aaae104e28
.
2023-11-28 07:13:57 +00:00
Aiden Grossman
9166d5318d
Reland "[Bazel] Fix llvm-exegesis build post 12b0ab2"
...
This reverts commit 934efd2c9b
.
This relands commit 1449b349ac
.
This build system fix was reverted as the underlying patch that required
the fix got reverted due to test failures on Darwin. The test failures
have since been fixed and the patch has relanded, so we need support in
Bazel again.
2023-11-27 22:53:22 -08:00
michaelrj-google
67268da61a
[libc][bazel] Add copts to libc_support_library ( #73591 )
...
Most libc_support_library calls are for header-only libraries, but there
are a few that have .cpp files. This patch adds the same base copts to
these that libc_function already has.
2023-11-27 16:53:52 -08:00
Johannes Reifferscheid
3d87b9d5f0
[Bazel] Fix for 7eccd52842
2023-11-27 21:43:35 +01:00
Dmitri Gribenko
934efd2c9b
Revert "[Bazel] Fix llvm-exegesis build post 12b0ab2"
...
This reverts commit 1449b349ac
. The
corresponding CMake commit (12b0ab2
) was reverted.
2023-11-27 15:53:48 +01:00
Aiden Grossman
1449b349ac
[Bazel] Fix llvm-exegesis build post 12b0ab2
...
12b0ab2
switched llvm-exegesis from using MCJIT to OrcJIT, which is a
different dep/library. This was ported over in the CMake build, but not
in the bazel build. This patch adjusts the llvm-exegesis deps in the
Bazel build to account for this change.
2023-11-26 00:28:02 -08:00
Guillaume Chatelet
5e5a22caf8
[libc][NFC] Move float macro into its own header / add target os detection ( #73311 )
...
Floating point properties are a combination of target OS, target
architecture and compiler support.
- Adding target OS detection,
- Moving floating point type detection to its own file.
This is in preparation of adding support for `_Float16` which requires
testing compiler **version** and target architecture.
2023-11-24 16:11:05 +01:00
Adam Paszke
0ca830ea8e
[Bazel] Add Bazel build files for Python bindings of the GPU dialect ( #73256 )
2023-11-23 19:07:47 +01:00
Johannes Reifferscheid
aaae104e28
[Bazel] Fixes for c43c88501e
2023-11-23 15:02:54 +01:00
Guillaume Chatelet
d924c5d721
[libc][NFC] Sink "PlatformDefs.h" into "FloatProperties.h" ( #73226 )
...
`PlatformDefs.h` does not bring a lot of value as a separate file.
It is transitively included in `FloatProperties.h` and `FPBits.h`. This
patch sinks it into `FloatProperties.h` and removes the associated build
targets.
2023-11-23 11:23:18 +01:00
Guillaume Chatelet
c444879313
[libc][NFC] Split builtin_wrapper into bit and math_extras ( #73113 )
...
Split `builtin_wrapper.h` into `bit.h` and `math_extras.h` to mimic LLVM
`llvm/ADT/Bit.h` and `llvm/Support/MathExtras.h`.
Also added unittest place holders.
2023-11-23 09:58:59 +01:00
Guillaume Chatelet
f12be145ec
[libc][bazel] Enable __support tests ( #73125 )
2023-11-22 16:36:37 +01:00
Johannes Reifferscheid
2b0b0ad7e7
[Bazel] Fixes for dff97c1e4c
2023-11-22 15:14:32 +01:00
David Blaikie
f544533203
[Bazel][clang] Fix build for e6ef315
2023-11-21 19:49:15 +00:00
Nishant Mittal
0c49fc4c68
[libc][math] Implement nexttoward functions ( #72763 )
...
Implements the `nexttoward`, `nexttowardf` and `nexttowardl` functions.
Also, raise excepts required by the standard in `nextafter` functions.
cc: @lntue
2023-11-21 09:02:51 -05:00
Benjamin Kramer
f0da97de46
[bazel] Port dc4786b487
2023-11-18 21:04:13 +01:00
Jorge Gorbe Moya
becd1cb9d3
[Bazel] fixes for 9c0e64999b
2023-11-17 13:00:32 -08:00
wenzhi-cui
c6b95f3ea2
[bazel] Add @pybind11 deps ( #72471 )
...
Add @pybind11 deps to the _mlirDialectsSparseTensor.so target and to the
_mlirDialectsQuant.so target
2023-11-15 21:41:19 -08:00
Benjamin Kramer
bfe997ebf7
[bazel] Port ec64af5994
2023-11-16 00:10:04 +01:00
quanwanandy
7e9f76dd12
Fix Bazel build ( #72419 )
2023-11-15 19:59:32 +01:00
Benjamin Kramer
2ccd79d70e
[bazel] Port 783ac3b6fb
2023-11-14 21:07:32 +01:00
Benjamin Kramer
01893b5483
[bazel] Add a dependency missing from 68ea8a674c
2023-11-13 13:47:28 +01:00
Benjamin Kramer
68ea8a674c
[bazel] Port a207e6307a
2023-11-13 13:43:53 +01:00
wenzhi-cui
858453dd71
Adds ":Support" to MLIRBindingsPythonCore deps ( #72087 )
...
Adds ":Support" to MLIRBindingsPythonCore deps
2023-11-13 07:34:16 +01:00
Oleg Shyshkov
5bffdc213f
[mlir][bazel] Fix build for 00c3c73189
2023-11-11 10:47:00 +01:00
lntue
3f906f513e
[libc][math] Add initial support for C23 float128 math functions, starting with copysignf128. ( #71731 )
2023-11-10 14:32:59 -05:00
Jerry-Ge
6e6352f4da
[TOSA] Add TosaToMLProgram conversion ( #69787 )
...
This patch adds a new pass to lower TOSA StatefulOps to corresponding ML
Program ops (https://mlir.llvm.org/docs/Dialects/MLProgramOps/ ).
Signed-off-by: Jerry Ge <jerry.ge@arm.com>
2023-11-10 10:54:51 -08:00
doshimili
3153aa4c95
[libc] Adding a version of memset with software prefetching ( #70857 )
...
Software prefetching helps recover performance when hardware prefetching
is disabled. The 'LIBC_COPT_MEMSET_X86_USE_SOFTWARE_PREFETCHING' compile
time option allows users to use this patch.
2023-11-10 10:56:16 +01:00
Haojian Wu
d451721006
[bazel] Add missing deps for libc's exp2f_impl and exp10f_impl targets.
2023-11-10 10:04:19 +01:00
lntue
a0303d8923
[libc][bazel] Add powf target and fix bazel overlay. ( #71464 )
2023-11-07 08:27:02 -05:00
Haojian Wu
04790b98e2
[bazel] Fix the bazel build for 2400c54c37
...
The header file is removed now.
2023-11-07 10:15:42 +01:00
Haojian Wu
df1e39489e
[bazel] Port for libc change bc7a3bd864
2023-11-07 10:04:00 +01:00
Guillaume Chatelet
87b00ef35a
[libc][bazel] Prevent LIBC_NAMESPACE leakeage ( #70455 )
...
Right now `LIBC_NAMESPACE` definition is added to all rules that depend on any libc function. This have far-reaching effects which prevents llvm-libc development when the installed libc is itself llvm-libc.
This PR removes the `:libc_root` target entirely and consistently uses the provided libc BUILD actions for compilation and testing. This makes sure that we don't leak `LIBC_NAMESPACE` to our clients.
2023-11-06 16:55:56 +01:00
Adrian Kuegel
c39995a116
[mlir][Bazel] Adjust SPIRVTarget and add missing dependency.
2023-11-06 13:26:16 +00:00
Oleg Shyshkov
d53ff36740
[mlir][bazel] Fix build for d9dadfda85
2023-11-06 13:20:48 +01:00
Haojian Wu
8a0535fbbe
[bazel] Fix the bazel build for mlir:SPIRVTarget target.
2023-11-06 13:18:32 +01:00
Oleg Shyshkov
72ad6cd29c
[mlir][bazel] Fix build.
2023-11-06 10:50:56 +01:00