- Dec 16, 2022
-
-
Aart Bik authored
Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D140142
-
-
MalavikaSamak authored
The main goal of this work is to allow developers to express the need to place instances of a class or structure in the read-only part of the program memory. Such a placement is desirable to prevent any further modifications to the instances of a given structure, by leveraging the read-only run time protection. To achieve this, we are introducing a new attribute that can be attached to any record definition or a declaration. The compiler enforces that every instance of this type can be placed in the read-only segment of the program memory, provided the target triplet supports such a placement. If an instance of a given type bearing this attribute doesn’t satisfy such a placement, the compiler attaches an appropriate warning at suitable program locations. In other words, adding this attribute to a type requires every instance of this type to be a global const, which are placed in the read-only segments for most target triplets. However, this is *not a language feature* and it *need not* be true for *all target triplets*. The current patch emits a warning at global variable declaration sites of types bearing the attribute without const qualification and corresponding note attached to the type definition/declaration. Differential Revision: https://reviews.llvm.org/D135851
-
Kevin Sala authored
This patch prepares the PluginInterface for the new AMDGPU NextGen plugin. The original and the NextGen plugin will share some structures and functionalities. We use this header for defining them and avoiding code duplication. Differential Revision: https://reviews.llvm.org/D139792
-
Siva Chandra Reddy authored
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D140049
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D140139
-
Lei Zhang authored
This is loading from 2-D memref, in addition to D139655 where we load from 1-D memref cases. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D140136
-
Emmmer authored
-
Lei Zhang authored
This is now possible with transpose semantics on subgroup MMA load ops. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D139655
-
wlei authored
[AutoFDO] Use getHeadSamplesEstimate instead of getTotalSamples to compute profile callsite staleness Fix two issues for profile staleness report. 1) It should be more accurate to use the sum of all entry count(`getHeadSamplesEstimate`) for the callsite samples than the total samples, since even the top-level callsite is mismatched, it does affect the inlining but it can still be merged into base profile and used later. 2) I accidentally missed to persist the num of mismatched callsite into binary. Also added the asm testing to test the decoding of the section. Reviewed By: hoy, wenlei Differential Revision: https://reviews.llvm.org/D140063
-
Kevin Athey authored
This reverts commit 192cc76e. Reverted Revert, as build was fixed while I was examining.
-
Kevin Athey authored
This reverts commit 4c52fb1a. Breaks sanitizer ubsan buildbot: https://lab.llvm.org/buildbot/#/builders/85/builds/12983
-
Kazu Hirata authored
This patch replaces uses of LLVM_HAVE_TF_API with LLVM_HAVE_TFLITE in a couple of CMakeLists.txt. Now that 842b0d0f has landed, we now have: LLVM_HAVE_TF_API is defined if and only if LLVM_HAVE_TFLITE evaluates to true in the CMake variable world (assuming that you do not set LLVM_HAVE_TF_API on the cmake invocation). FWIW, the story is a little different in the C++ macro world, where: LLVM_HAVE_TF_API is defined if and only if LLVM_HAVE_TFLITE is defined This is why edc83a15 consisted only of mechanical replacements. Differential Revision: https://reviews.llvm.org/D140061
-
Philip Reames authored
This reworks the API to explicitly pass in the demanded fields instead of requering them internally. At the moment, this is NFC, but it will stop being so in future changes which adjust the demanded bits in the caller.
-
Matt Arsenault authored
It was annoying to write the check for this in the one case I added, and I'm planning on adding another, so add a convenient PatternMatch like for other special case values. I have no idea what is going on in the DoubleAPFloat case, I reversed this from the makeSmallestNormalized test. Also could implement this as *this == getSmallestNormalized() for less code, but this avoids the construction of a temporary APFloat copy and follows the style of the other functions.
-
Craig Topper authored
SelectionDAG aggressively creates sext_inreg operations after promoting an i32 add. If the add is later matched to a sh1add, sh2add or sh3add, a sext.w from the sext_inreg will get left behind. In many cases we can prove this sext.w is unnecessary by checking if its upper bits are ever used.
-
Peter Rong authored
Signed-off-by:Peter Rong <PeterRong96@gmail.com>
-
Kelvin Li authored
Fixes: https://github.com/llvm/llvm-project/issues/59496 Committed on behalf of tislam Differential Revision: https://reviews.llvm.org/D139333
-
Roman Lebedev authored
Based on post-commit feedback for the original change.
-
Roman Lebedev authored
-
Roman Lebedev authored
-
-
Christudasan Devadasan authored
Changing cast_lds_gv into a kernel function to lower the LDS usage appropriately. The LDS lowering is currently won't happen for orphan device functions.
-
Peter Rong authored
Currently, APInt::getSExtValue and getZExtValue crashes on values with more than 64 bits. Users may accidently crash the compiler with this setting when the integer may be i128. As shown in https://github.com/llvm/llvm-project/issues/59316 In this patch we provide a trySExtValue and tryZExtValue to return an Optional, the user needs to explictly unwrap it and condsier the possibility where there my no value in it. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D139683
-
Vasileios Porpodas authored
I think this is a better name because it is what STL uses. Differential Revision: https://reviews.llvm.org/D140068
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Alex Brachet authored
This catches missing corner cases from atol tests. Differential Revision: https://reviews.llvm.org/D140076
-
Kazu Hirata authored
I've removed the last uses of transform on Dec 14, 2022 in commit 230df792. Differential Revision: https://reviews.llvm.org/D140082
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Kazu Hirata authored
This patch fixes: lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp:1402:18: error: default label in switch which covers all enumeration values [-Werror,-Wcovered-switch-default]
-
Sanjay Patel authored
https://alive2.llvm.org/ce/z/9EjDKE This was mentioned as a missing fold in D139598. It can unlock follow-on folds in some cases. This verifies one of the changed tests: https://alive2.llvm.org/ce/z/B_btDM
-
Matthias Springer authored
Print statistics about the number of alloc/deallocs and in-place/out-of-place bufferization. Differential Revision: https://reviews.llvm.org/D139538
-
Emmmer authored
RVD extension is a double-precision floating-point instruction-set extension, which adds double-precision floating-point computational instructions compliant with the IEEE 754-2008 arithmetic standard. This patch: - Reuse most of the functions in the "F extension" to impl the"D extension" - corresponding unittests. Reviewed By: DavidSpickett Differential Revision: https://reviews.llvm.org/D140032
-
Ron Lieberman authored
Breaks amdgpu buildbot https://lab.llvm.org/buildbot/#/builders/193 23491 This reverts commit ffedf47d.
-
Matthias Springer authored
Folding of rank-reduced subviews is also supported. Differential Revision: https://reviews.llvm.org/D140110
-
Matthias Springer authored
The assert message was previously ignored. The lowered IR now calls `puts` it in case of a failed assertion. Differential Revision: https://reviews.llvm.org/D138647
-
Simon Pilgrim authored
See if we can freely sign-extend both sources of a vselect operand, also handle allones constant build vectors (easily rematerializable and uses in the test case). Fixes #59526
-
Nikita Popov authored
-
Philip Reames authored
I went to extend this locally, and then promptly tripped across a bug which is possible with the landed patch. The problematic case is: vsetvli zero, 4, <some vtype> vmv.x.s x1, v0 vsetvli a0, zero, <same type> In this case, the naive rewrite - what I had implemented - would form: vsetvli zero, zero, <same vtype> vmv.x.s x1, v0 This is, amusingly, correct for the vmv.x.s, but is incorrect for the instructions which follow the sequence and probably rely on VL=VLMAX. (The VL before the sequence is unknown, and thus doesn't have to be VLMAX.) I plan to rework the rewrite code to be more robust here, but I wanted to directly fix the bug first. Sorry for the lack of test; I didn't manage to reproduce this without an additional optimization change after a few minutes of trying.
-