- Nov 26, 2021
-
-
David Sherwood authored
Currently the generic lowering of llvm.get.active.lane.mask is done in SelectionDAGBuilder::visitIntrinsicCall and currently assumes only fixed-width vectors are used. This patch changes the code to be more generic and support scalable vectors too. I have added tests for SVE here: CodeGen/AArch64/active_lane_mask.ll although the code quality leaves a lot to be desired. The code will be improved significantly in a later patch that makes use of the SVE whilelo instruction. Differential Revision: https://reviews.llvm.org/D114541
-
Tobias Gysi authored
Use primarily matvec instead of matmul to test hoist padding. Test the hoisting only starting from already padded IR. Use one-dimensional tiling only except for the tile_and_fuse test that exercises hoisting on a larger loop nest with fill and pad tensor operations in the backward slice. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114608
-
Balázs Kéri authored
The AST structural equivalence check did not differentiate between a struct and a struct with same name in different namespace. When type of a member is checked it is possible to encounter such a case and wrongly decide that the types are similar. This problem is fixed by check for the namespaces of a record declaration. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D113118
-
Michal Terepeta authored
Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D113854
-
Dmitry Vyukov authored
Sometimes stacks for at_exit callbacks don't include any of the user functions/files. For example, a race with a global std container destructor will only contain the container type name and our at_exit_wrapper function. No signs what global variable this is. Remember and include in reports the function that installed the at_exit callback. This should give glues as to what variable is being destroyed. Depends on D114606. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114607
-
Dmitry Vyukov authored
Depends on D114605. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114606
-
Dmitry Vyukov authored
Add a test for a common C++ bug when a global object is destroyed while background threads still use it. Depends on D114604. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114605
-
Dmitry Vyukov authored
Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D114604
-
Kazu Hirata authored
-
Christudasan Devadasan authored
The combined vector register classes with both VGPRs and AGPRs are currently unallocatable. This patch turns them into allocatable as a prerequisite to enable copy between VGPR and AGPR registers during regalloc. Also, added the missing AV register classes from 192b to 1024b. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D109300
-
Fangrui Song authored
BaseCommand was picked when PHDRS/INSERT/etc were not implemented. Rename it to SectionCommand to match `sectionCommands` and make it clear that the commands are used in SECTIONS (except a special case for SymbolAssignment). Also, improve naming of some BaseCommand variables (base -> cmd).
-
Jessica Clarke authored
-
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
-