- Nov 26, 2021
-
-
Matthias Springer authored
Pass BufferizationStep instead of BufferizationAliasInfo. Note: BufferizationState contains BufferizationAliasInfo. Differential Revision: https://reviews.llvm.org/D114512
-
Matthias Springer authored
Use composition instead of inheritance for storing dialect-specific bufferization state. This is in preparation of adding "tensor dialect"-specific bufferization state. Differential Revision: https://reviews.llvm.org/D114508
-
Matthias Springer authored
If `allowReturnMemref` is set to true, arbitrary memrefs may be returned from FuncOps. Also remove allocation hoisting code, which is only partly implemented at the moment. The purpose of this commit is to untangle `bufferize` from `aliasInfo`. (Even with this change, they are not fully untangled yet.) Differential Revision: https://reviews.llvm.org/D114507
-
Matthias Springer authored
Bufferization of function boundaries is extracted from ComprehensiveBufferize into a separate file. This will become its own build target in the future. Differential Revision: https://reviews.llvm.org/D114226
-
Fangrui Song authored
-
Fangrui Song authored
This partially reverts r315409: the description applies to LinkerScript, but not to OutputSection. The name "sectionCommands" is used in both LinkerScript::sectionCommands and OutputSection::sectionCommands, which may lead to confusion. "commands" in OutputSection has no ambiguity because there are no other types of commands.
-
Matthias Springer authored
This makes ComprehensiveBufferize entirely independent of the Affine dialect. Differential Revision: https://reviews.llvm.org/D114222
-
Mehdi Amini authored
-
Fangrui Song authored
-
Fangrui Song authored
-
Fangrui Song authored
The new code computes the content twice, but avoides the tricky std::function<uint64_t()>. Removed 13KiB code in a Release build.
-
Jeremy Morse authored
In some scenarios, usually involving NRVO, we can issue indirect DBG_VALUEs after SelectionDAG, even in instruction referencing mode (if the variable is an argument). If the corresponding argument value is spilt to the stack, then we have: * Indirection from it being on the stack, * Indirection from it being a dbg.declare or a dbg.addr. However InstrRefBasedLDV only emits one level of indirection. This patch adds the second, by adding an extra DW_OP_deref if necessary. The two tests modified fail otherwise -- they feature some NRVO, and require two levels of indirection to be correct. Differential Revision: https://reviews.llvm.org/D114364
-
Zarko Todorovski authored
Rename function to more inclusive name. Reviewed By: quinnp Differential Revision: https://reviews.llvm.org/D114029
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch renames master flag to main flag in these comments. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D114090
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch: - replaces master with main in C++style.md to match the renaming of the master branch, - removes master from `FortranIR.md` where it is superfluous, - renames a logical variable in `pre-fir-tree04.f90` containing master. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D113923
-
Jeremy Morse authored
This is a performance patch -- LiveDebugVariables can behave quadratically if a lot of debug instructions are inserted back into the same place, and we have to repeatedly step-over hte ones we've already inserted. To get around it, whenever we insert a debug instruction at a slot index, check whether there are more debug instructions to insert at this point, and insert them too. That avoids the repeated lookup and stepping through. It relies on the container for unlinked debug instructions being recorded in-order, which is how LiveDebugVariables currently does it. Differential Revision: https://reviews.llvm.org/D114587
-
Louis Dionne authored
When testing with sanitizers enabled, we need to link against a plethora of system libraries. Using `-nodefaultlibs` like we used to breaks this, and we would have to add all these system libraries manually, which is not portable and error prone. Instead, stop using `-nodefaultlibs` so that we get the libraries added by default by the compiler. The only caveat with this approach is that we are now relying on the fact that `-L <path-to-local-libunwind>` will cause the just built libunwind to be selected before the system implementation (either of libunwind or libgcc_s.so), which is somewhat fragile. This patch also turns the 32 bit multilib build into a soft failure since we are in the process of removing it anyway, see D114473 for details. This patch is incompatible with the 32 bit multilib build because Ubuntu does not provide a proper libstdc++ for 32 bits, and that is required when running with sanitizers enabled. Differential Revision: https://reviews.llvm.org/D114385
-
Florian Hahn authored
This fixes a build failure with LLVM_ENABLE_THREADS=Off.
-
Michal Terepeta authored
Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114549
-
Jake Egan authored
GPUs are not supported on AIX, so this patch sets these tests as unsupported. Reviewed By: stevewan Differential Revision: https://reviews.llvm.org/D114381
-
Florian Hahn authored
This reverts commit 71a7c55f. The revert broken building llvm-reduce and it is not clear it fixes an issue with LLVM_ENABLE_THREADS=OFF. See discussion in https://reviews.llvm.org/D114183 for more details.
-
Jesses Gott authored
Extend AllowShortBlocksOnASingleLine for else blocks. See https://bugs.llvm.org/show_bug.cgi?id=49722 Reviewed By: HazardyKnusperkeks, owenpan, MyDeveloperDay Differential Revision: https://reviews.llvm.org/D114320
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch removes instances of master in these files. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D114187
-
mydeveloperday authored
Whilst the % clang-formatted remains the same, the number of files added to the LLVM project has risen by almost by 259. - 190 of them have been added clang-format clean. - 69 files have been added unformatted. (lit tests should be excluded from this number) - 291 files have been added to the list of files that are clang-format clean - 101 files have either become unclean or have been removed As this updates the clang-formatted-files there are now 8139 files that are clean which we can be used as a regression test when making changes to clang-format. ``` clang-format -verbose -n -files ./clang/docs/tools/clang-formatted-files.txt ```
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch replaces master and slave with primary and secondary respectively in `sanitizer_mac.cpp`. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D114255
-
Uday Bondhugula authored
Rename MLIR CAPI ExecutionEngine target for consistency: MLIRCEXECUTIONENGINE -> MLIRCAPIExecutionEngine in line with other targets. Differential Revision: https://reviews.llvm.org/D114596
-
Amy Kwan authored
This patch prevents the optimizer from producing wide vectors in the IR, specifically the MMA types (v256i1, v512i1). The idea is that on Power, we only want to be producing these types only if the vector_pair and vector_quad types are used specifically. To prevent the optimizer from producing these types in the IR, vectorCostAdjustmentFactor() is updated to return an instruction cost factor or an invalid instruction cost if the current type is that of an MMA type. An invalid instruction cost returned by this function signifies to other cost computing functions to return the maximum instruction cost to inform the optimizer that producing these types within the IR is expensive, and should not be produced in the first place. This issue was first seen in the test case included within this patch. Differential Revision: https://reviews.llvm.org/D113900
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch replaces master with main in `dbg-call-site-spilled-arg.mir`. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D114097
-
Pavel Kosov authored
On Linux some C++ and C include files reside in target specific directories, like /usr/include/x86_64-linux-gnu. Patch adds them to libclang, so LLDB jitter has more chances to compile expression. OS Laboratory. Huawei Russian Research Institute. Saint-Petersburg Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D110827
-
Louis Dionne authored
On some platforms like armv7m, the size() method of containers returns unsigned long, while ptrdiff_t is just int. Hence, std::ssize_t ends up being long, which is not the same as ptrdiff_t. This is usually not an issue because std::ptrdiff_t is long, so everything works out, but it breaks on some more exotic architectures. Differential Revision: https://reviews.llvm.org/D114563
-
Lei Huang authored
Add new cmake option `LLVM_OMIT_DAGISEL_COMMENTS` to control adding of comments in GenDAGISel for none debug builds Ref: https://reviews.llvm.org/D78884 Reviewed By: nemanjai, MaskRay, #powerpc Differential Revision: https://reviews.llvm.org/D114122
-
Dmitry Vyukov authored
This change switches tsan to the new runtime which features: - 2x smaller shadow memory (2x of app memory) - faster fully vectorized race detection - small fixed-size vector clocks (512b) - fast vectorized vector clock operations - unlimited number of alive threads/goroutimes Depends on D112602. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D112603
-
Daniel McIntosh authored
This reverts commit 6149e57d. The offending commit broke building with LLVM_ENABLE_THREADS=OFF.
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch replaces master with main in `SubModule2.h`. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D114100
-
Kazu Hirata authored
-
Joe Loser authored
Rework `std::filesystem::path::operator==` and friends to avoid overload resolution and atomic constraint caching issues shown from https://reviews.llvm.org/D113161. Always call `__compare(string_view)` from the comparison operators which avoids overload resolution. Differential Revision: https://reviews.llvm.org/D114570
-
Joe Loser authored
The `string_view` constructor taking an iterator/sentinel uses concepts instead of type traits like the Standard states. Using `same_as` instead of `is_same_v` should be harmless. Prefer `std::is_same_v` instead which is cheaper to compile. Replace `convertible_to` with `is_convertible_v` as well. This observation came up while working on https://reviews.llvm.org/D113161 Differential Revision: https://reviews.llvm.org/D114561
-
Dmitry Vyukov authored
Linux/fork_deadlock.cpp currently hangs in debug mode in the following stack. Disable memory access handling in OnUserAlloc/Free around fork. 1 0x000000000042c54b in __sanitizer::internal_sched_yield () at sanitizer_linux.cpp:452 2 0x000000000042da15 in __sanitizer::StaticSpinMutex::LockSlow (this=0x57ef02 <__sanitizer::internal_allocator_cache_mu>) at sanitizer_mutex.cpp:24 3 0x0000000000423927 in __sanitizer::StaticSpinMutex::Lock (this=0x57ef02 <__sanitizer::internal_allocator_cache_mu>) at sanitizer_mutex.h:32 4 0x000000000042354c in __sanitizer::GenericScopedLock<__sanitizer::StaticSpinMutex>::GenericScopedLock (this=this@entry=0x7ffcabfca0b8, mu=0x1) at sanitizer_mutex.h:367 5 0x0000000000423653 in __sanitizer::RawInternalAlloc (size=size@entry=72, cache=cache@entry=0x0, alignment=8, alignment@entry=0) at sanitizer_allocator.cpp:52 6 0x00000000004235e9 in __sanitizer::InternalAlloc (size=size@entry=72, cache=0x1, cache@entry=0x0, alignment=4, alignment@entry=0) at sanitizer_allocator.cpp:86 7 0x000000000043aa15 in __sanitizer::SymbolizedStack::New (addr=4802655) at sanitizer_symbolizer.cpp:45 8 0x000000000043b353 in __sanitizer::Symbolizer::SymbolizePC (this=0x7f578b77a028, addr=4802655) at sanitizer_symbolizer_libcdep.cpp:90 9 0x0000000000439dbe in __sanitizer::(anonymous namespace)::StackTraceTextPrinter::ProcessAddressFrames (this=this@entry=0x7ffcabfca208, pc=4802655) at sanitizer_stacktrace_libcdep.cpp:36 10 0x0000000000439c89 in __sanitizer::StackTrace::PrintTo (this=this@entry=0x7ffcabfca2a0, output=output@entry=0x7ffcabfca260) at sanitizer_stacktrace_libcdep.cpp:109 11 0x0000000000439fe0 in __sanitizer::StackTrace::Print (this=0x18) at sanitizer_stacktrace_libcdep.cpp:132 12 0x0000000000495359 in __sanitizer::PrintMutexPC (pc=4802656) at tsan_rtl.cpp:774 13 0x000000000042e0e4 in __sanitizer::InternalDeadlockDetector::Lock (this=0x7f578b1ca740, type=type@entry=2, pc=pc@entry=4371612) at sanitizer_mutex.cpp:177 14 0x000000000042df65 in __sanitizer::CheckedMutex::LockImpl (this=<optimized out>, pc=4) at sanitizer_mutex.cpp:218 15 0x000000000042bc95 in __sanitizer::CheckedMutex::Lock (this=0x600001000000) at sanitizer_mutex.h:127 16 __sanitizer::Mutex::Lock (this=0x600001000000) at sanitizer_mutex.h:165 17 0x000000000042b49c in __sanitizer::GenericScopedLock<__sanitizer::Mutex>::GenericScopedLock (this=this@entry=0x7ffcabfca370, mu=0x1) at sanitizer_mutex.h:367 18 0x000000000049504f in __tsan::TraceSwitch (thr=0x7f578b1ca980) at tsan_rtl.cpp:656 19 0x000000000049523e in __tsan_trace_switch () at tsan_rtl.cpp:683 20 0x0000000000499862 in __tsan::TraceAddEvent (thr=0x7f578b1ca980, fs=..., typ=__tsan::EventTypeMop, addr=4499472) at tsan_rtl.h:624 21 __tsan::MemoryAccessRange (thr=0x7f578b1ca980, pc=4499472, addr=135257110102784, size=size@entry=16, is_write=true) at tsan_rtl_access.cpp:563 22 0x000000000049853a in __tsan::MemoryRangeFreed (thr=thr@entry=0x7f578b1ca980, pc=pc@entry=4499472, addr=addr@entry=135257110102784, size=16) at tsan_rtl_access.cpp:487 23 0x000000000048f6bf in __tsan::OnUserFree (thr=thr@entry=0x7f578b1ca980, pc=pc@entry=4499472, p=p@entry=135257110102784, write=true) at tsan_mman.cpp:260 24 0x000000000048f61f in __tsan::user_free (thr=thr@entry=0x7f578b1ca980, pc=4499472, p=p@entry=0x7b0400004300, signal=true) at tsan_mman.cpp:213 25 0x000000000044a820 in __interceptor_free (p=0x7b0400004300) at tsan_interceptors_posix.cpp:708 26 0x00000000004ad599 in alloc_free_blocks () at fork_deadlock.cpp:25 27 __tsan_test_only_on_fork () at fork_deadlock.cpp:32 28 0x0000000000494870 in __tsan::ForkBefore (thr=0x7f578b1ca980, pc=pc@entry=4904437) at tsan_rtl.cpp:510 29 0x000000000046fcb4 in syscall_pre_fork (pc=1) at tsan_interceptors_posix.cpp:2577 30 0x000000000046fc9b in __sanitizer_syscall_pre_impl_fork () at sanitizer_common_syscalls.inc:3094 31 0x00000000004ad5f5 in myfork () at syscall.h:9 32 main () at fork_deadlock.cpp:46 Depends on D114595. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D114597
-
Dmitry Vyukov authored
We currently use a wrong value for heap block (only works for C++, but not for Java). Use the correct value (we already computed it before, just forgot to use). Depends on D114593. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D114595
-
Dmitry Vyukov authored
Depends on D114592. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D114593
-