- Jul 02, 2021
-
-
Vitaly Buka authored
MTE Cache.store passes MAP_NOACCESS here. Reviewed By: pcc, cryptoad Differential Revision: https://reviews.llvm.org/D105266
-
Leonard Grey authored
Everything (including test) modified from ELF/COFF. Using the same syntax (--lto-O3, etc) as ELF. Differential Revision: https://reviews.llvm.org/D105223
-
Vitaly Buka authored
-
Tobias Gysi authored
Synchronizing multiple custom targets requires not only target but also file dependencies. Building Linalg involves running yaml-gen followed by tablegen. Currently, these custom targets are only synchronized using a target dependency resulting in issues in specific incremental build setups (https://llvm.discourse.group/t/missing-build-cmake-tblgen-dependency/3727/10). This patch introduces a novel LLVM_TARGET_DEPENDS variable to the TableGen.cmake file to provide a way to specify file dependencies. Additionally, it adapts the Linalg CMakeLists.txt to introduce the necessary file dependency between yaml-gen and tablegen. Differential Revision: https://reviews.llvm.org/D105272
-
Nico Weber authored
-
Nikita Popov authored
In this case the pointer type is part of the mangled name, so we can allow on opaque pointer outside --force-opaque-pointers mode as well.
-
Scott Linder authored
Address mistakenly comparing the pointer values of two C-style strings rather than comparing their contents in the unit tests for makeVisitor, added in 6d6f35eb
-
Louis Dionne authored
Now that Lit supports regular expressions inside XFAIL & friends, it is much easier to write Lit annotations based on the triple. Differential Revision: https://reviews.llvm.org/D104747
-
jasonliu authored
Summary: If we are on c++03 mode for some reason, and __builtin_va_copy is available, then use it instead of error out on not having va_copy in 03 mode. Reviewed by: ldionne Differential Revision: https://reviews.llvm.org/D100336
-
Christopher Di Bella authored
Differential Revision: https://reviews.llvm.org/D104942
-
zoecarver authored
Differential Revision: https://reviews.llvm.org/D105296
-
Louis Dionne authored
This is required to run the tests under any configuration that uses additional_features using a from-scratch config. That is the case of e.g. the Debug mode (which uses LIBCXX-DEBUG-FIXME) and the tests on Windows.
-
Vitaly Buka authored
Show inlined functions. Hide unhelpful DWARF related warnings. Reviewed By: hctim Differential Revision: https://reviews.llvm.org/D105230
-
Vitaly Buka authored
-
Emily Shi authored
-
Philip Reames authored
This follows up to D104665 (which added umulo handling alongside the existing uaddo case), and generalizes for the remaining overflow intrinsics. I went to add analogous handling to LVI, and discovered that LVI already had a more general implementation. Instead, we can port was LVI does to instcombine. (For context, LVI uses makeExactNoWrapRegion to constrain the value 'x' in blocks reached after a branch on the condition `op.with.overflow(x, C).overflow`.) Differential Revision: https://reviews.llvm.org/D104932
-
Aaron Ballman authored
A user reported an issue to me via email that Clang was accepting some code that GCC was rejecting. After investigation, it turned out to be a general problem of us failing to properly reject attributes written in the type position in C when they don't apply to types. The root cause was a terminology issue -- we sometimes use "CXX11Attr" to mean [[]] in C++11 mode and sometimes [[]] in general -- and this came back to bite us because in this particular case, it really meant [[]] in C++ mode. I fixed the issue by introducing a new function AttributeCommonInfo::isStandardAttributeSyntax() to represent [[]] in either C or C++ mode. This fix pointed out that we've had the issue in some of our existing tests, which have all been corrected. This resolves https://bugs.llvm.org/show_bug.cgi?id=50954.
-
Geoffrey Martin-Noble authored
Adds LinalgOps dep needed for https://github.com/llvm/llvm-project/commit/266a7414d8f26 Differential Revision: https://reviews.llvm.org/D105294
-
Arjun P authored
This results in significant deduplication of code. This patch is not expected to change any functionality, it's just some simplification in preparation for future work. Also slightly simplified some code that was being touched anyway and added some unit tests for some functions that were touched. Reviewed By: bondhugula Differential Revision: https://reviews.llvm.org/D105152
-
Shilei Tian authored
`DeviceTy::getOrAllocTgtPtr` just returns a target pointer. In addition, two bool values (`IsNew` and `IsHostPtr`) are passed by reference to make the change in the function available in callee. In this patch, a struct, which contains the target pointer, two flags, and an iterator to the map table entry corresponding to the queried host pointer, will be returned. In addition to make the logic clearer regarding the two bool values, this paves the way for the next patch to fix the data race in `bug49334.cpp` by attaching an event to the map table entry (and that's why we need the iterator). Reviewed By: grokos Differential Revision: https://reviews.llvm.org/D104382
-
Aart Bik authored
Rationale: Follow-up on migrating lattice and tensor expression related methods into the new utility. This also prepares the next step of generalizing the op kinds that are handled. Reviewed By: gussmith23 Differential Revision: https://reviews.llvm.org/D105219
-
Nikita Popov authored
This adds support for opaque pointers in intrinsic type checks of IIT kind Pointer and PtrToElt. This is less straight-forward than it might initially seem, because we should only accept opaque pointers here in --force-opaque-pointers mode. Otherwise, there would be more than one valid type signature for a given intrinsic name. Differential Revision: https://reviews.llvm.org/D105155
-
Matt Arsenault authored
This preserves the memory type so the lowerings can rely on them.
-
Bradley Smith authored
Inserting into a smaller-than-legal scalable vector would result in an internal compiler error. For example, inserting a <vscale x 4 x i8> into a <vscale x 8 x i8> (both illegal vector types for SVE) would cause a crash. This crash was happening because there was no code to promote (legalise) the result of an INSERT_SUBVECTOR node. This patch implements PromoteIntRes_INSERT_SUBVECTOR, which legalises the ISD node. This is currently done by going through memory. This is necessary because of the requirement that the SubVec parameter of the INSERT_SUBVECTOR node must be smaller than the Vec parameter, which means that INSERT_SUBVECTOR cannot always have a legal result/operand types. Co-Authored-by:
Joe Ellis <joe.ellis@arm.com> Differential Revision: https://reviews.llvm.org/D102766
-
Stanislav Mekhanoshin authored
Creating a V_MOV_B32 with zero extended immediate source prevented conversion to V_BFREV_B32. Differential Revision: https://reviews.llvm.org/D105235
-
- Jul 01, 2021
-
-
David Green authored
-
Irina Dobrescu authored
Differential Revision: https://reviews.llvm.org/D105200
-
Alexey Bataev authored
Need to add some conversions to suppress possible warning messages. Differential Revision: https://reviews.llvm.org/D105187
-
Nico Weber authored
This reverts b56e5f8a (and follow-up f6db8853) and instead restores the state we had before 0c96a92d: ClangdMain.cpp includes Features.inc before including Transport.h. This is a bit ugly, but it matches the former state and making Transport.h include Features.h means that xpc/ needs to be able to find the generated Features.inc, wich is also a bit ugly.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Building on rG2a1ef878, adjust the SSE cost tables to use the legalized types based on the worst case costs from the script in D103695. To account for different numbers of src/dst legalized type registers we must scale the cost by maximum of the src/dst, not just use src
-
Arnold Schwaighofer authored
async resume functions Differential Revision: https://reviews.llvm.org/D104147
-
Sjoerd Meijer authored
-
Sam Tebbs authored
Much like fixed-point to floating-point conversion, the converse can also be transformed into a fixed-point VCVT. This patch transforms multiplications of floating point numbers by 2^n into a VCVT_fix. The exception is that a float to fixed conversion with 1 fractional bit ends up being an FADD (FADD(x, x) emulates FMUL(x, 2)) rather than an FMUL so there is a special case for that. This patch also moves the code from https://reviews.llvm.org/D103903 into a separate function as fixed to float and float to fixed are very similar. Differential Revision: https://reviews.llvm.org/D104793
-
Louis Dionne authored
-
Alexey Bataev authored
This reverts commit 67643f46 to fix unexpected diagnostic notes.
-
David Sherwood authored
In lots of places we were calling setDebugLocFromInst and passing in the same Builder member variable found in InnerLoopVectorizer. I personally found this confusing so I've changed the interface to take an Optional<IRBuilder<> *> and we can now pass in None when we want to use the class member variable. Differential Revision: https://reviews.llvm.org/D105100
-
Alexey Bataev authored
Need to add some conversions to suppress possible warning messages. Differential Revision: https://reviews.llvm.org/D105187
-
Andrzej Warzynski authored
Until now, `f18` would: 1. Use Flang to unparse the input files 2. Call an external Fortran compiler to compile the unparsed source files (generated in step 1) With this patch, `f18` will stop after unparsing the input source files, i.e. step 1 above. The `flang` bash script will take care of step 2, i.e. calling an external Fortran compiler driver to compile them. This way: * the functionality of `f18` is reduced - it will only drive Flang (as opposed to delegating code-generation to an external tool on top of this) * we will able to switch between `f18` and `flang-new` for unparsing before an external Fortran compiler is called for code-generation The updated `flang` bash script needs to specify the output file when using the `-fdebug-unparse` action. Both `f18` and `flang-new` have been updated accordingly. These changes were discussed in [1] as a requirement for replacing `f18` with `flang-new`. [1] https://lists.llv...
-
Florian Hahn authored
Add additional fp16 vector tests for copysign, to show improvements in follow-up patch.
-