- Aug 03, 2022
-
-
Walter Erquinigo authored
This fixes https://lab.llvm.org/buildbot/#/builders/68/builds/37077.
-
Michał Górny authored
Propagate the complete host environment to the tests run via the new testconfig. This ensures that all envvars needed e.g. for the compiler to work correctly are present. This mimics the behavior explicitly implemented in the legacy config. https://github.com/llvm/llvm-project/issues/56816 Differential Revision: https://reviews.llvm.org/D130843
-
Igor Zhukov authored
Found by @cpplearner (https://github.com/microsoft/STL/pull/2976#discussion_r935440806) Differential Revision: https://reviews.llvm.org/D130997
-
Igor Zhukov authored
[libc++] Fix warning C4244 in std/numerics/rand/rand.dist/rand.dist.samp/rand.dist.samp.discrete/eval.pass.cpp frederick-vs-ja noticed that https://github.com/microsoft/STL/pull/2976#issuecomment-1201926893 while we are working on updating LLVM submodule for MS STL: [...]\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(33): error C2220: the following warning is treated as an error [...]\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(287): note: see reference to function template instantiation 'void tests<__int64>(void)' being compiled [...]\std\numerics\rand\rand.dist\rand.dist.samp\rand.dist.samp.discrete\eval.pass.cpp(33): warning C4244: 'argument': conversion from '__int64' to 'const unsigned int', possible loss of data Differential Revision: https://reviews.llvm.org/D130963
-
Paul Kirth authored
In this patch we replace common code patterns with the use of utility functions for dealing with profiling metadata. There should be no change in functionality, as the existing checks should be preserved in all cases. Reviewed By: bogner, davidxl Differential Revision: https://reviews.llvm.org/D128860
-
Katherine Rasmussen authored
Add stopped_images to the list of intrinsic functions. Add a semantics test for stopped_images. Reviewed By: klausler, ngeorge1098 Differential Revision: https://reviews.llvm.org/D129513
-
LLVM GN Syncbot authored
-
Jakob Johnson authored
Add bindings for the `TraceCursor` to allow for programatic traversal of traces. This diff adds bindings for all public `TraceCursor` methods except `GetHwClock` and also adds `SBTrace::CreateNewCursor`. A new unittest has been added to TestTraceLoad.py that uses the new `SBTraceCursor` API to test that the sequential and random access APIs of the `TraceCursor` are equivalent. This diff depends on D130925. Test Plan: `ninja lldb-dotest && ./bin/lldb-dotest -p TestTraceLoad` Differential Revision: https://reviews.llvm.org/D130930
-
Austin Kerbow authored
When compiling for multiple targets the scheduler that is selected via the -misched option is applied globally. This patch adds a target CL option instead. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D131022
-
Andrey Tretyakov authored
Fix style, indentation, comments of LIT tests and remove unnecessary metadata and attributes. Differential Revision: https://reviews.llvm.org/D130664
-
Jason Molenda authored
Slava Gurevich noticed this dead code I wrote in jmp_to_reg_p is never executed, is duplicated, and has comments that seem to describe the opposite behavior. Remove the dead code that cannot be executed. Differential Revision: https://reviews.llvm.org/D131029
-
Jonas Devlieghere authored
This reverts commit 7cf4ab13 as it was a temporary workaround that's no longer needed.
-
Slava Gurevich authored
[LLDB][NFC] Fix incorrect return status Some functions always return 'false' for both success and fail return paths. Differential Revision: https://reviews.llvm.org/D131013
-
Jakob Johnson authored
D128477 adds the control flow kind for `Instruction` and displays this in the `thread trace dump instruction -k` command. This diff exposes the control flow kind via the new `SBInstruction::GetControlFlowKind` method. I've expanded `TestDisassembleRawData` to test this method, but please let me know if there are any other unittests that should also be updated. Test Plan: `./bin/lldb-dotest -p TestDisassembleRawData` Differential Revision: https://reviews.llvm.org/D131005
-
Mehdi Amini authored
In some cases the recursion will grow the `visited` hash table and invalidate the cached iterator. (caught with ASAN) Differential Revision: https://reviews.llvm.org/D131027
-
Craig Topper authored
This used to print from the ADDI where the operand number was correct. It recently changed to print from the LUI or AUIPC which needs to use operand 1 instead of 2. This shows up as a crash with -debug.
-
Joseph Huber authored
A previous patch made the destruction of the HSA plugin more deterministic. However, there were still other global values that are not handled this way. When attempting to call a destructor kernel, the device would have already been uninitialized and we could not find the appropriate kernel to call. This is because they were stored in global containers that had their destructors called already. Merges this global state into the rest of the info state by putting those global values inside of the global pointer already allocated and deallocated by the constructor and destructor. This should allow the AMDGPU plugin to correctly identify the destructors if we were to run them. Reviewed By: JonChesterfield Differential Revision: https://reviews.llvm.org/D131011
-
Jonathan Peyton authored
omp50_taskdep_depobj.c relies on the test compiler's omp.h file. If the test compiler does not have an omp.h file, then use the one within the build tree. Fixes: https://github.com/llvm/llvm-project/issues/56820 Differential Revision: https://reviews.llvm.org/D131000
-
Chris Bieneman authored
The create handle intrinsic calls can't be removed, so it was incorrect to mark them as IntrNoMem.
-
Nicolai Hähnle authored
Prefer using these accessors to access the special sub-commands corresponding to the top-level (no subcommand) and all sub-commands. This is a preparatory step towards removing the use of ManagedStatic: with a subsequent change, these global instances will be moved to be regular function-scope statics. It is split up to give downstream projects a (albeit short) window in which they can switch to using the accessors in a forward-compatible way. Differential Revision: https://reviews.llvm.org/D129118
-
Naje George authored
Reviewed By: ktras Differential Revision: https://reviews.llvm.org/D130530
-
Jason Molenda authored
This either needs to be static, or forced inline, or in a separate source file. Given that we only have one function in this UuidCompatibility.h, I think forced inline for the handful of uses of it may be best.
-
Martin Storsjö authored
This fixes the following warnings produced by GCC 9: ../tools/lld/MachO/Arch/ARM64.cpp: In member function ‘void {anonymous}::OptimizationHintContext::applyAdrpLdr(const lld::macho::OptimizationHint&)’: ../tools/lld/MachO/Arch/ARM64.cpp:448:18: warning: comparison of integer expressions of different signedness: ‘int64_t’ {aka ‘long int’} and ‘uint64_t’ {aka ‘long unsigned int’} [-Wsign-compare] 448 | if (ldr.offset != (rel1->referentVA & 0xfff)) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../tools/lld/MachO/UnwindInfoSection.cpp: In function ‘bool canFoldEncoding(compact_unwind_encoding_t)’: ../tools/lld/MachO/UnwindInfoSection.cpp:404:44: warning: comparison between ‘enum<unnamed>’ and ‘enum<unnamed>’ [-Wenum-compare] 404 | static_assert(UNWIND_X86_64_MODE_MASK == UNWIND_X86_MODE_MASK, ""); | ^~~~~~~~~~~~~~~~~~~~ ../tools/lld/MachO/UnwindInfoSection.cpp:405:49: warning: comparison between ‘enum<unnamed>’ and ‘enum<unnamed>’ [-Wenum-compare] 405 | static_assert(UNWIND_X86_64_MODE_STACK_IND == UNWIND_X86_MODE_STACK_IND, ""); | ^~~~~~~~~~~~~~~~~~~~~~~~~ Differential Revision: https://reviews.llvm.org/D130970 -
Jason Molenda authored
Add support to Mach-O corefiles and to live gdb remote serial protocol connections for the corefile/remote stub to provide a list of load addresses of binaries that should be found & loaded by lldb, and nothing else. lldb will try to parse the binary out of memory, and if it can find a UUID, try to find a binary & its debug information based on the UUID, falling back to using the memory image if it must. A bit of code unification from three parts of lldb that were loading individual binaries already, so there is a shared method in DynamicLoader to handle all of the variations they were doing. Re-landing this with a uuid_is_null() implementation added to Utility/UuidCompatibility.h for non-Darwin systems. Differential Revision: https://reviews.llvm.org/D130813 rdar://94249937 rdar://94249384
-
Tom Stellard authored
If you pass a NULL reivew ID to the differential.revision.search API, it returns all revisions and we were just taking the first one and assuming it was associated with the commit in the PR. We need to exit early if we can't find a Phabricator review associated with a commit.
-
LLVM GN Syncbot authored
-
Krzysztof Drewniak authored
In the ROCm runtime (and probably CUDA as well), all kernel arguments are aligned. Therefore, enable using bare pointers for memref arguments to kernels when these memrefs have static shape and a trivial layout. This is a substantial optimization to launching kernels that use memrefs with known, static sizes, since it causes the kernel launch packet to no longer include information already known to the kernel, which can enable packing the kernel launch arguments into launch packets instead of having to allocate an entire separate structure to hold unneeded memref information. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D130716
-
Rashmi Mudduluru authored
Differential Revision: https://reviews.llvm.org/D126097
-
Jason Molenda authored
This reverts commit d8879fba. Debian bot failure; I included <uuid/uuid.h> to get uuid_is_null() but don't get it there. Will memcmp or whatever & recommit.
-
Jason Molenda authored
Add support to Mach-O corefiles and to live gdb remote serial protocol connections for the corefile/remote stub to provide a list of load addresses of binaries that should be found & loaded by lldb, and nothing else. lldb will try to parse the binary out of memory, and if it can find a UUID, try to find a binary & its debug information based on the UUID, falling back to using the memory image if it must. A bit of code unification from three parts of lldb that were loading individual binaries already, so there is a shared method in DynamicLoader to handle all of the variations they were doing. Differential Revision: https://reviews.llvm.org/D130813 rdar://94249937 rdar://94249384
-
Austin Kerbow authored
-
Mircea Trofin authored
Differential Revision: https://reviews.llvm.org/D131008
-
Ben Langmuir authored
Accidentally introduced a dangling StringRef in b4c6dc2e. Differential Revision: https://reviews.llvm.org/D131017
-
Austin Kerbow authored
Creates a new scheduling strategy that attempts to maximize ILP for a single wave. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D130869
-
Louis Dionne authored
-
Slava Gurevich authored
LLDB_WATCH_TYPE_IS_VALID would always return true when validating watchpoint type by using bitwise-or instead of bitwise-and to apply validation flags. Differential Revision: https://reviews.llvm.org/D130972
-
Aart Bik authored
This rewriting was no longer functional after recent migration to one shot bufferization. However, this revision makes it work again, with a CHECK test to ensure fusion happens. Note that functionality is tested by several integration tests. Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D130996
-
Xiang Li authored
When emit-obj from clang directly, DirectX backend will hit assert caused by not initialize passes for AsmPrinter. The fix will initialize the passes by calling createPassConfig. Also ignore global variable which not has section in DXILAsmPrinter::emitGlobalVariable to avoid hit llvm_unreachable in DXILTargetObjectFile::SelectSectionForGlobal. Reviewed By: beanz Differential Revision: https://reviews.llvm.org/D130856
-
Casey Carter authored
-
Roy Jacobson authored
We didn't check that a destructor's name matches the directly enclosing class if the class was dependent. I enabled the check we already had for non-dependent types, which seems to work. Added appropriate tests. Fixes GitHub issue #56772 Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D130936
-