- Dec 12, 2022
-
-
Michael Platings authored
If you build compiler-rt with LLVM_ENABLE_PER_TARGET_RUNTIME_DIR then the library filename will be "libclang_rt.builtins.a" instead of "libclang_rt.builtins-<ARCH>.a" The ToolChain::getCompilerRT method uses the "libclang_rt.builtins.a" name if it can find the file in the library directories. If it can't then it falls back to using "libclang_rt.builtins-<ARCH>.a". This change adds the library directory such that "libclang_rt.builtins.a" can be found. Differential Revision: https://reviews.llvm.org/D139822
-
Simon Pilgrim authored
Avoid some getSExtValue()/getZExtValue() calls Hopefully we can remove some of the getBitWidth() constraints as well, as many are just there as a proxy for legal types (albeit assuming x86_64).
-
Jan Sjodin authored
This patch moves some of the logic on how to emit target region functions and adds emitTargetRegionFunction to the OpenMPIRBuilder. Also the OpenMPOffloadMandatory flag is added to the config. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D139634
-
Nikita Popov authored
-
Carlos Galvez authored
- Do not analyze header files, since we don't want to promote using anonymous namespaces there. - Do not warn about const/constexpr variables, those are implicitly static in C++ and they don't need to be moved to an anonymous namespace. Warning about redundant static in general could be implemented as a standalone check, moving away some of the functionality from this check. This check has been introduced in the current release, thus no mention of this change is needed in the Release Notes. Differential Revision: https://reviews.llvm.org/D139113
-
Lei Huang authored
This reverts commit a2b0673d. Broke ppc sanitizer bot: https://lab.llvm.org/buildbot/#/builders/19/builds/14037
-
Nikita Popov authored
-
Felipe de Azevedo Piovezan authored
When a dbg.value is moved into a new function, the corresponding variable should have its entire scope chain reparented with the new function. The current implementation drops the scope chain and replaces it with a subprogram for the new function. Differential Revision: https://reviews.llvm.org/D139671
-
Roman Lebedev authored
I've done final pass, and there are no more tests to update. All other tests (=codegen tests) are using old pass manager. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D139677
-
Roman Lebedev authored
[SimplifyCFG] `FoldBranchToCommonDest()`: deal with mismatched IV's in PHI's in common successor block This tries to approach the problem noted by @arsenm: terrible codegen for `__builtin_fpclassify()`: https://godbolt.org/z/388zqdE37 Just because the PHI in the common successor happens to have different incoming values for these two blocks, doesn't mean we have to give up. It's quite easy to deal with this, we just need to produce a select: https://alive2.llvm.org/ce/z/000srb Now, the cost model for this transform is rather overly strict, so this will basically never fire. We tally all (over all preds) the selects needed to the NumBonusInsts Differential Revision: https://reviews.llvm.org/D139275
-
Christian Kandeler authored
Also add new modifier for differentiating between built-in and user- provided operators. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D136594
-
Nikita Popov authored
-
Guillaume Chatelet authored
This breaks lldb. This reverts commit f3f15ca2.
-
Haojian Wu authored
-
Sylvain Audi authored
Those 2 pragmas are ignored by MSVC when not compiling with /CLR, which clang doesn't support. Ignore them in clang -fms-extensions, to avoid -Wunknown-pragma warnings Differential Revision: https://reviews.llvm.org/D139632
-
Guillaume Chatelet authored
Differential Revision: https://reviews.llvm.org/D139836
-
Carlos Galvez authored
-
Zain Jaffal authored
This is a recommit of f9e03907 The previous commit failed to handle cases where the zero extended operand is an extended `BUILD_VECTOR`. We don't replace zext with a sext operand to select smull if any operand is `BUILD_VECTOR` Original commit message: we can safely replace a `zext` instruction with `sext` if the top bit is zero. This is useful because we can select `smull` when both operands are sign extended. Reviewed By: fhahn, dmgreen Differential Revision: https://reviews.llvm.org/D134711
-
Zain Jaffal authored
This reverts commit c07a01c2.
-
Guillaume Chatelet authored
-
David Green authored
-
Nikita Popov authored
-
Haojian Wu authored
-
Guillaume Chatelet authored
-
Felipe de Azevedo Piovezan authored
This utility will be useful in subsequent patches, as such we expose it in the DebugInfoMetadata header. Depends on D139669 Differential Revision: https://reviews.llvm.org/D139670
-
Guillaume Chatelet authored
This one goes hand in hand with D139819 Reviewed By: courbet Differential Revision: https://reviews.llvm.org/D139826
-
Carlos Galvez authored
No need for the templated function "processMatch", since we can infer the type with llvm:isa.
-
Haojian Wu authored
This information is useful when printing the reference for debugging purposes. Differential Revision: https://reviews.llvm.org/D139835
-
Nikita Popov authored
-
Nikita Popov authored
This reverts commit bb48aa20. Using placeholders inside CHECK-LABEL is not legal.
-
Tom Eccles authored
The fastmath test checks that crtfastmath.o is added between crtbeginS.o and crtendS.o. On some systems, crtend is called crtend.o - match these too. Related to https://reviews.llvm.org/D138675
-
Matthias Springer authored
The structure of the code has changed a while ago and the code was not updated properly. There is no test case for this because we do currently not have an op that could trigger this bug. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D139838
-
Matthias Springer authored
The op is not bufferizable but should be analyzable (for `EliminateEmptyTensors`, which uses the bufferization infrastructure). Also improve debugging functionality and error messages. Also adds a missing pass to the sparse pipeline. (tensor.empty should be replaced with bufferization.alloc_tensor, but it sometimes used to work without depending on how the tensor.empty is used. Now we always fail explicitly.)
-
Guillaume Chatelet authored
This patch supersedes D138705. Differential Revision: https://reviews.llvm.org/D139819
-
Valentin Clement authored
pointer association to a polymorphic pointer needs to potentially update the element size in the descriptor. Update the pointer association to polymoprhic pointer with a runtime call to PointerAssociate. Reviewed By: jeanPerier Differential Revision: https://reviews.llvm.org/D139825
-
Chen Zheng authored
-
Chen Zheng authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D135535
-
Alex Zinenko authored
Now we have more convenient functions to construct silenceable errors while emitting diagnostics, and the constructor is ambiguous as it doesn't tell whether the logical error is silencebale or definite. Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D137257
-
Haojian Wu authored
-
Chen Zheng authored
Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D134792
-