- Dec 16, 2022
-
-
Siva Chandra Reddy authored
Along the way, setting of errno has been moved out of the internal code. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D140078
-
Michael Jones authored
The internal uint class had a bug introduced recently when optimizing the shift routines. When calculating the value of a block, it would shift an adjacent block by 64 - the shift amount. If the shift amount was 0, this would be a shift of 64, which is undefined for a 64 bit integer. This patch fixes this by adding a conditional to catch this case. Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D140070
-
Dimitry Andric authored
This avoids potential memory allocation failures, if VSInstallPath is not empty, but also does not contain the string "\Common7\IDE". Fixes: https://github.com/llvm/llvm-project/issues/59434 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D140019
-
Dimitry Andric authored
This reverts commit cc40dacb.
-
Dimitry Andric authored
This avoids potential memory allocation failures, if VSInstallPath is not empty, but also does not contain the string "\Common7\IDE". Fixes: https://github.com/llvm/llvm-project/issues/59434 Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D140019
-
Vasileios Porpodas authored
[NFC] Rename Instruction::insertAt() to Instruction::insertInto(), to be consistent with BasicBlock::insertInto() Differential Revision: https://reviews.llvm.org/D140085
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Roman Lebedev authored
As per post-commit feedback, DebugInfo owners are not receptive of the idea of having a single source of truth instead of relying on everyone to know how to update these tests manually. This reverts commit 4ff8d1e3. This reverts commit a33b40d6.
-
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
-