- Jan 03, 2020
-
-
Jacques Pienaar authored
This one isn't always complete.
-
Jacques Pienaar authored
-
Craig Topper authored
[X86] Move STRICT_ ISD nodes into the new section of X86ISelLowering.h where STRICT nodes are collected after D71841
-
Jacques Pienaar authored
These provide no value and trigger -Wcovered-switch-default.
-
David Blaikie authored
-
Nemanja Ivanovic authored
Commit 0f0330a7 legalized these nodes on PPC without consideration of unsafe math which means that we get inexact exceptions raised for nearbyint. Since this doesn't conform to the standard, switch this legalization to depend on unsafe fp math.
-
Saleem Abdulrasool authored
Remove the now unused-variable from aa17d31e. This breaks `-Werror` builds.
-
Nico Weber authored
This reverts commit 70342641. 68a235d0 relanded in abb00753, so this relands the gn port of it.
-
Saleem Abdulrasool authored
Rather than handling zlib handling manually, use `find_package` from CMake to find zlib properly. Use this to normalize the `LLVM_ENABLE_ZLIB`, `HAVE_ZLIB`, `HAVE_ZLIB_H`. Furthermore, require zlib if `LLVM_ENABLE_ZLIB` is set to `YES`, which requires the distributor to explicitly select whether zlib is enabled or not. This simplifies the CMake handling and usage in the rest of the tooling. This restores 68a235d0, e6c7ed6d. The problem with the windows bot is a need for clearing the cache.
-
Craig Topper authored
[X86] Remove FP0-6 operands from call instructions in FPStackifier pass. Only count defs as returns. All FP0-6 operands should be removed by the FP stackifier. By removing these we fix the machine verifier error in PR39437. I've also made it so that only defs are counted for STReturns which removes what I think were extra stack cleanup instructions. And I've removed the regcall assert because it was checking the attributes of the caller, but here we're concerned with the attributes of the callee. But I don't know how to get that information from this level.
-
Lei Zhang authored
This commit updates gen_spirv_dialect.py to query the grammar and generate availability spec for various enum attribute definitions and all defined ops. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D72095
-
Fangrui Song authored
Reviewed By: sidneym Differential Revision: https://reviews.llvm.org/D72093
-
Nicolas Vasilache authored
Summary: This diff adds support to allow `linalg.generic` and `linalg.indexed_generic` to take tensor input and output arguments. The subset of output tensor operand types must appear verbatim in the result types after an arrow. The parser, printer and verifier are extended to accomodate this behavior. The Linalg operations now support variadic ranked tensor return values. This extension exhibited issues with the current handling of NativeCall in RewriterGen.cpp. As a consequence, an explicit cast to `SmallVector<Value, 4>` is added in the proper place to support the new behavior (better suggestions are welcome). Relevant cleanups and name uniformization are applied. Relevant invalid and roundtrip test are added. Reviewers: mehdi_amini, rriddle, jpienaar, antiagainst, ftynse Subscribers: burmako, shauheen, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D72022 -
Nico Weber authored
Differential Revision: https://reviews.llvm.org/D71565
-
Kazuaki Ishizaki authored
-
Nathan James authored
Adds a new ASTMatcher condition called 'hasInitStatement()' that matches if, switch and range-for statements with an initializer. Reworked clang-tidy readability-else-after-return to handle variables in the if condition or init statements in c++17 ifs. Also checks if removing the else would affect object lifetimes in the else branch. Fixes PR44364.
-
Lei Zhang authored
Lots of SPIR-V ops take enum attributes and certain enum cases need extra capabilities or extensions to be available. This commit extends to allow specifying availability spec on enum cases. Extra utility functions are generated for the corresponding enum classes to return the availability requirement. The availability interface implemention for a SPIR-V op now goes over all enum attributes to collect the availability requirements. Reviewed By: mravishankar Differential Revision: https://reviews.llvm.org/D71947
-
Sterling Augustine authored
Reviewers: vvereschaka Subscribers: kristof.beyls, #sanitizers, llvm-commits Tags: #sanitizers, #llvm Differential Revision: https://reviews.llvm.org/D72005
-
River Riddle authored
* replaceAllUsesWith may be supplied with a null value. * some compilers fail to implicitly convert single result operations to OpaqueValue, so add an explicit OpOperand::set(Value) method.
-
James Henderson authored
This patch fixes an inconsistency where we were using std::function in some places and function_ref in others to pass around the error handling callback. Reviewed by: MaskRay Differential Revision: https://reviews.llvm.org/D71762
-
Alex Richardson authored
On Windows hosts, the error message will be something like `c:\src\llvm-project\out\gn\bin\llvm-ranlib.exe: error: Invalid option: '--D'`. Due to the .exe after llvm-ranlib the existing CHECK lines do not match. Fix this by ignoring the program name and starting the check line at "error:".
-
Fangrui Song authored
-
Alina Sbirlea authored
Provides clarity and consistency with the InnerAnalysisManagerProxy.
-
Nico Weber authored
-
Sid Manning authored
Differential Revision: https://reviews.llvm.org/D71069
-
James Y Knight authored
In a8a89c77, the script started adding CHECK-EMPTY lines, but the regex for which lines to replace was not updated.
-
James Henderson authored
LLD warns if it encounters malformed debug data when parsing line information for an undefined reference. We only want to warn once. This patch adds additional checking to make sure the warnings are printed only once, both for variables within the same program and variables in later line programs. Reviewed by: grimar, MaskRay Differential Revision: https://reviews.llvm.org/D71759
-
Kevin P. Neal authored
The s390x builtins are still using FSub instead of FNeg. Correct that.
-
Nico Weber authored
-
James Henderson authored
Reviewed by: JDevlieghere Differential Revision: https://reviews.llvm.org/D71756
-
Sam McCall authored
-
James Henderson authored
This patch adds and improves comments in the debug_line_invalid.test and its associated input file so that it is easier to follow. It uses '##' to make comments stand out from lit and FileCheck commands. It also reflows some commands so that the lines are not so long and are easier to read and fixes some copy/paste errors. Reviewed by: JDevlieghere Differential Revision: https://reviews.llvm.org/D71752
-
Nico Weber authored
-
serge-sans-paille authored
-
serge-sans-paille authored
This fixes build error introduced by commit 24ab9b53
-
Nico Weber authored
This reverts commit 6ff6d32e, because 68a235d0 was reverted in e406cca5.
-
Nico Weber authored
-
James Henderson authored
This reverts commit 68a235d0. This commit broke the clang-x64-windows-msvc build bot and a follow-up commit did not fix it. Reverting to fix the bot.
-
James Henderson authored
This reverts commit e6c7ed6d. This commit was an attempt to fix the build bots, but it still left the clang-x64-windows-msvc bot in a broken state.
-
- Jan 02, 2020
-
-
Ulrich Weigand authored
The NoFPExcept bit in SDNodeFlags currently defaults to true, unlike all other such flags. This is a problem, because it implies that all code that transforms SDNodes without copying flags can introduce a correctness bug, not just a missed optimization. This patch changes the default to false. This makes it necessary to move setting the (No)FPExcept flag for constrained intrinsics from the visitConstrainedIntrinsic routine to the generic visit routine at the place where the other flags are set, or else the intersectFlagsWith call would erase the NoFPExcept flag again. In order to avoid making non-strict FP code worse, whenever SelectionDAGISel::SelectCodeCommon matches on a set of orignal nodes none of which can raise FP exceptions, it will preserve this property on all results nodes generated, by setting the NoFPExcept flag on those result nodes that would otherwise be considered as raising an FP exception. To check whether or not an SD node should be considered as raising an FP exception, the following logic applies: - For machine nodes, check the mayRaiseFPException property of the underlying MI instruction - For regular nodes, check isStrictFPOpcode - For target nodes, check a newly introduced isTargetStrictFPOpcode The latter is implemented by reserving a range of target opcodes, similarly to how memory opcodes are identified. (Note that there a bit of a quirk in identifying target nodes that are both memory nodes and strict FP nodes. To simplify the logic, right now all target memory nodes are automatically also considered strict FP nodes -- this could be fixed by adding one more range.) Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D71841
-