- Dec 16, 2022
-
-
Michael Buch authored
Before: ``` wrote too much data somewhere, section offsets don't line up ``` After: ``` wrote too much data somewhere, section offsets in section __debug_str for segment __DWARF don't line up: [cursor=0x581], [fileStart=0x0], [sectionOffset=0x579] ``` Differential Revision: https://reviews.llvm.org/D140116
-
Michael Buch authored
Currently the test-suite would swallow the error message on `llvm::yaml::convertYAML` failures. This patch simply propagates the error string up to the caller. Before patch: ``` [ RUN ] DWARFASTParserClangTests.TestDefaultTemplateParamParsing /Users/michaelbuch/Git/llvm-worktrees/playground/lldb/unittests/TestingSupport/Symbol/YAMLModuleTester.cpp:19: Failure Value of: llvm::detail::TakeExpected(File) Expected: succeeded Actual: failed (convertYAML() failed: ) Assertion failed: (!HasError && "Cannot get value when an error exists!"), function getStorage, file Error.h, line 671. ``` After patch: ``` [ RUN ] DWARFASTParserClangTests.TestDefaultTemplateParamParsing /Users/michaelbuch/Git/llvm-worktrees/playground/lldb/unittests/TestingSupport/Symbol/YAMLModuleTester.cpp:19: Failure Value of: llvm::detail::TakeExpected(File) Expected: succeeded Actual: failed (convertYAML() failed: wrote too much data somewhere, section offsets don't line up) Assertion failed: (!HasError && "Cannot get value when an error exists!"), function getStorage, file Error.h, line 671. ``` Differential Revision: https://reviews.llvm.org/D140112
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Kazu Hirata authored
I've eliminated all uses of LLVM_HAVE_TF_API except a couple of them being removed in llvm/lib/CodeGen/CMakeLists.txt. This patch removes remaining definitions and uses of LLVM_HAVE_TF_API. Differential Revision: https://reviews.llvm.org/D140169
-
Florian Hahn authored
Merging blocks in LoopRotate may remove blocks reference in the block disposition cache. Clear the cache. Fixes #59534.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Paul Robinson authored
Part of the project to eliminate special handling for triples in lit expressions.
-
Kazu Hirata authored
We are in the process of retiring LLVM_HAVE_TF_API in favor of LLVM_HAVE_TFLITE. This patch takes care of the transition in llvm/test. Differential Revision: https://reviews.llvm.org/D140133
-
Peter Klausler authored
The result can't be known to be true at compilation time when either operand is polymorphic. Differential Revision: https://reviews.llvm.org/D140126
-
Saleem Abdulrasool authored
MSVC requires that C++23 be available (_HAS_CXX23) else the entire content is elided. Conditionalise the inclusion properly so that C/C++ code using stdatomic.h for memory_order_* constants are able to do so without changing the C++ standard. This repairs builds of Swift and libdispatch after ba49d39b. Differential Revision: https://reviews.llvm.org/D139266 Reviewed By: aaron.ballman, Mordante, fsb4000
-
Tommy Chiang authored
-
Kai Nacke authored
Adds support for i64 constant. It uses the same pattern-based approach as in SDAG (see PPCISelDAGToDAG::selectI64ImmDirect(), PPCISelDAGToDAG::selectI64Imm()). It does not support the prefixed instructions. Reviewed By: arsenm, tschuett Differential Revision: https://reviews.llvm.org/D140119
-
Vasileios Porpodas authored
This is part of a series of patches that aim at making Function::getBasicBlockList() private. Differential Revision: https://reviews.llvm.org/D140121
-
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.
-