- Dec 02, 2022
-
-
Prashant Kumar authored
>>> a = np.ndarray([1,1]).astype(np.half) >>> a array([[0.007812]], dtype=float16) >>> a.dtype dtype('float16') >>> a.dtype == np.half True >>> a.dtype == np.float16 True >>> a.dtype is np.float16 False Checking with `is` leads to inconsistency in checking. Reviewed By: silvas Differential Revision: https://reviews.llvm.org/D139121 -
Matt Arsenault authored
-
Matt Arsenault authored
-
Manish Gupta authored
This patch fixes and simplifies the ldmatrix affine map arithmetic by abstracting the affine expressions in terms of pitch-linear layout (strided and contiguous dimensions). Then it applies the maps for strided and contiguous dimensions in row-major and col-major. LdMatrixOp collaboratively (32 threads in a warp) load tiles (8 row x 128b col) of data. It can load either x1, x2, x4 tiles. Additionally, it can transpose at 16-bit granularity when moving data from the Shared Memory to registers. This patch fixes affine map: (laneid -> coordinate index a thread points in a tile). - Loading x4 tiles needs all 32 lanes T0-31 point to a contiguous chunk of 128b. The issue was exposed when running this case. - Loading x2 tiles and x1 needs T0-15 threads and T0-7 threads points to contiguous chunk of 128b. The patch is NFC for these cases. Differential Revision: https://reviews.llvm.org/D138978
-
David Blaikie authored
Fixing -Wunused -Werror build on Android.
-
Vasileios Porpodas authored
This is part of a series of cleanup patches towards making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D139143
-
Matt Arsenault authored
The script mangled the constantexprs in waitcnt-looptest.ll, so fixed those manually.
-
Vasileios Porpodas authored
Currently the only way to do this is to work with the instruction list directly. This is part of a series of cleanup patches towards making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D139142
-
Nemanja Ivanovic authored
-
Adrian Prantl authored
Because Host::RunShellCommand runs commands through $SHELL there is an opportunity for this to fail spectacularly on systems that use custom shells with odd behaviors. This patch makes these situations easier to debug by at least logging the result of the failed xcrun invocation. It also doesn't run xcrun through a shell any more. rdar://102389438 Differential Revision: https://reviews.llvm.org/D138060
-
Krzysztof Parzyszek authored
-
Maíra Canal authored
For comments that start after a new line, currently, the comments are being indented. This happens because the OriginalWhitespaceRange considers newlines on the range. Therefore, when AlignTrailingComments: Kind: Leave, deduct the number of newlines before the token to calculate the number of spaces for trailing comments. Fixes #59203. Differential Revision: https://reviews.llvm.org/D139029
-
Dhruva Chakrabarti authored
The purpose of this patch is to have tool-provided callbacks registered in libomptarget. The overall design document is in https://rice.app.box.com/s/pf3gix2hs4d4o1aatwir1set05xmjljc Defined a class OmptDeviceCallbacksTy that will be used by libomptarget and a plugin for callbacks registered by a tool. Once the callbacks are registered in libomp, a lookup function is passed to libomptarget that is used to retrieve the callbacks and register them in libomptarget. Patch from John Mellor-Crummey <johnmc@rice.edu> (With contributions from Dhruva Chakrabarti <Dhruva.Chakrabarti@amd.com>) Reviewed By: jplehr Differential Revision: https://reviews.llvm.org/D123974
-
Mircea Trofin authored
This is in preparation for dropping the dependency on protobuf. This first step allows us to subsequently introduce the non-protobuf implementation behind a flag. After that we can update the training side to ingest the new format, after which we can drop the protobuf implementation and de-virtualize everything. Differential Revision: https://reviews.llvm.org/D139062
-
Fangrui Song authored
dthorn: Relanding after fix-forward.
-
Kazu Hirata authored
This patch fixes: bolt/lib/Profile/DataAggregator.cpp:264:66: error: no viable conversion from 'Optional<llvm::StringRef>[3]' to 'ArrayRef<std::optional<StringRef>>'
-
Daniel Thornburgh authored
This reverts commit 5e50b808. This commit breaks the build for BOLT: bolt/lib/Profile/DataAggregator.cpp:264:66: error: no viable conversion from 'Optional<StringRef>[3]' to 'ArrayRef<std::optional<StringRef>>'
-
Siva Chandra Reddy authored
That changed some parts of the Support API to use std::optional instead of llvm::Optional. This patch updates the libc uses to the new API.
-
Vasileios Porpodas authored
This is part of a series of cleanup patches towards making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D138979
-
Krzysztof Parzyszek authored
-
Michael Maitland authored
Differential Revision: https://reviews.llvm.org/D139150
-
Mircea Trofin authored
-
Matt Arsenault authored
Should have been in e748db0f, but the build option is well hidden.
-
Ryan Prichard authored
Bionic didn't add fopen64 until API 24, but there's no meaningful distinction between them with Bionic, so just use fopen instead. On Windows, use _chsize_s instead of _chsize. _chsize uses a 32-bit `long` size argument, while _chsize_s uses __int64 instead. Factor out utils::{off64_t, fopen64, ftruncate64} for use within the create_file function. Reviewed By: ldionne, #libc, mstorsjo Differential Revision: https://reviews.llvm.org/D137132 -
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
This part is not useful (all the custom parsing deals with directives) and does not appear in the majority of diagnostics. While updating diagnostics, change "unexpected token" to more useful diagnostics, e.g. "expected comma", "expected end of directive".
-
Peiming Liu authored
add new interfaces to SparseTensorEncodingAttr to construct the pointer/index types based on pointer/index bitwidth. Reviewed By: aartbik, wrengr Differential Revision: https://reviews.llvm.org/D139141
-
Matt Arsenault authored
-
Vasileios Porpodas authored
Currently the only way to do this is to work with the instruction list directly. This is part of a series of cleanup patches towards making BasicBlock::getInstList() private. Differential Revision: https://reviews.llvm.org/D138977
-
Fangrui Song authored
The part of the diagnostic is not useful because the instruction line is printed. The new style follows generic code.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Paul Robinson authored
I built llvm with default triple avr-- and this test XPASSed so it seems safe enough.
-
Erich Keane authored
-
Ties Stuij authored
The main thing that needed changing was excluding functionality that isn't supported on armv4t. So excluding Arm specific builtin assembly files. In the process some files were renamed and the source was annotated where appropriate, so it's a bit easier to follow what group of files are meant for what purpose. Reviewed By: peter.smith, nickdesaulniers Differential Revision: https://reviews.llvm.org/D138725
-
bixia1 authored
Previously, we generated inlined implementation for insert operation and observed MLIR compile time increase due to the size of the main routine. We now put the insert operation implementation in subroutines and leave the inlining decision to the MLIR compiler. Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D138957
-
Dave Lee authored
Allow `dwim-print` to evaluate expressions using the dummy target if no real target exists. This adds some parity to `expression`. With this, both of the following work: ``` lldb -o 'expr 1+2' lldb -o 'dwim-print 1+2' ``` Differential Revision: https://reviews.llvm.org/D138960
-