- Apr 14, 2022
-
-
Mike Kashkarov authored
During real range reduction to [0.5, 4) with SQRT(2**(2a) * x) = SQRT(2**(2a)) * SQRT(x) = 2**a * SQRT(x) we fall into inf. recursion if IsZero() == true. Explicitly handle SQRT(0.0) instead of additional checks during folding. Also add helpers for +0.0/-0.0 generation to clean up a bit. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D123131 -
Mike Kashkarov authored
Print error message instead of assert trigger. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D123132
-
Mike Kashkarov authored
Restrictions of IMPLICIT NONE(EXTERNAL) prohibits usage of c_associated from iso_c_binding (with explicit interface) without external definiton - relax associated check. Reviewed By: klausler Differential Revision: https://reviews.llvm.org/D120971
-
Mehdi Amini authored
-
Mehdi Amini authored
-
Andrzej Warzynski authored
The semantics of `-mmlir` are identical to `-mllvm`. The only notable difference is that `-mmlir` options should be forwarded to MLIR rather than LLVM. Note that MLIR llvm::cl options are lazily constructed on demand (see the definition of options in PassManagerOptions.cpp). This means that: * MLIR global options are only visible when explicitly initialised and displayed only when using `-mmlir --help`, * Flang and LLVM global options are always visible and displayed when using either `-mllvm -help` or `-mmlir --help`. In other words, `-mmlir --help` is a superset of `-mllvm --help`. This is not ideal, but we'd need to refactor all option definitions in Flang and LLVM to improve this. I suggesting leaving this for later. Differential Revision: https://reviews.llvm.org/D123297 -
LLVM GN Syncbot authored
-
Haojian Wu authored
This is the template version of https://reviews.llvm.org/D114251. This patch introduces a new template name kind (UsingTemplateName). The UsingTemplateName stores the found using-shadow decl (and underlying template can be retrieved from the using-shadow decl). With the new template name, we can be able to find the using decl that a template typeloc (e.g. TemplateSpecializationTypeLoc) found its underlying template, which is useful for tooling use cases (include cleaner etc). This patch merely focuses on adding the node to the AST. Next steps: - support using-decl in qualified template name; - update the clangd and other tools to use this new node; - add ast matchers for matching different kinds of template names; Differential Revision: https://reviews.llvm.org/D123127
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D123699
-
Andrzej Warzynski authored
https://reviews.llvm.org/D123211 broke builds that set both `LLVM_BUILD_LLVM_DYLIB` and `LLVM_LINK_LLVM_DYLIB` (see [1]). This patch fixes that. The build failure was caused by the fact that the LLVMPasses library, which is an LLVM "component", was listed directly as link-time dependency. Instead, one should use `LINK_COMPONENTS` in CMake files. I made an identical mistake recently and then subsequently fixed it in https://reviews.llvm.org/D121461 - please visit that revision for more detail. I'm merging this without a review. The change is straightforward, we recently discussed it and I was able to confirm locally that it fixes the build issue. [1] https://lab.llvm.org/buildbot/#/builders/177/builds/4619
-
Jan Svoboda authored
This patch changes type of the `File` parameter in `PPCallbacks::InclusionDirective()` from `const FileEntry *` to `Optional<FileEntryRef>`. With the API change in place, this patch then removes some uses of the deprecated `FileEntry::getName()` (e.g. in `DependencyGraph.cpp` and `ModuleDependencyCollector.cpp`). Reviewed By: dexonsmith, bnbarham Differential Revision: https://reviews.llvm.org/D123574
-
Jay Foad authored
-
Momchil Velikov authored
This reverts commit ecbf32dd. It's possible this patch is the reason for an asertion failure `!NodePtr->isKnownSentinel()` in `AArch64LoadStoreOpt::mergeUpdateInsn` (https://lab.llvm.org/buildbot/#/builders/185/builds/1555) reverting while I investigate.
-
Lian Wang authored
Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D123565
-
Lian Wang authored
Reviewed By: craig.topper, frasercrmck Differential Revision: https://reviews.llvm.org/D123355
-
Uday Bondhugula authored
Fix missing return statement warning in PatternMatch.h. NFC. ``` mlir/include/mlir/IR/PatternMatch.h:983:3: warning: no return statement in function returning non-void [-Wreturn-type] ``` Differential Revision: https://reviews.llvm.org/D123756
-
hsmahesha authored
This is an NFC patch in preparation to fix a bug related to always reserving VGPR32 for AGPR copy. Reviewed By: rampitec Differential Revision: https://reviews.llvm.org/D123651
-
Carl Ritson authored
Check for existing s_inst_prefetch instructions when configuring prefetches during loop alignment. Reviewed By: rampitec, foad Differential Revision: https://reviews.llvm.org/D123569
-
Arnab Dutta authored
* Fold away redundant %t = gpu.wait async + gpu.wait [%t] pairs. * Fold away %t = gpu.wait async ... ops when %t has no uses. * Fold away gpu.wait [] ops. * In case of %t1 = gpu.wait async [%t0], replace all uses of %t1 with %t0. Differential Revision: https://reviews.llvm.org/D121878
-
Vitaly Buka authored
Msan crashes on clang-s390x-linux bot This reverts commit d3531fc7.
-
Brad Smith authored
-
Fangrui Song authored
-
LLVM GN Syncbot authored
-
Fangrui Song authored
Report use of ``std::vector<const T>`` (and similar containers of const elements). These are now allowed in standard C++ due to undefined ``std::allocator<const T>``. They do not compile with libstdc++ or MSVC. Future libc++ will remove the extension (D120996). See docs/clang-tidy/checks/portability-std-allocator-const.rst for detail. I have attempted clean-up in a large code base. Here are some statistics: * 98% are related to the container `std::vector`, among `deque/forward_list/list/multiset/queue/set/stack/vector`. * 24% are related to `std::vector<const std::string>`. * Both `std::vector<const absl::string_view>` and `std::vector<const int>` contribute 2%. The other contributors spread over various class types. The check can be useful to other large code bases and may serve as an example for future libc++ strictness improvement. Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D123655
-
Ruiling Song authored
The NewDefault was used to simplify the updating of PHI nodes, but it causes some inefficiency for target that will run structurizer later. For example, for a simple two-case switch, the extra NewDefault is causing unstructured CFG like: O / \ O O / \ / \ C1 ND C2 \ | / \ | / D The change is to avoid the ND(NewDefault) block, that is we will get a structured CFG for above example like: O / \ / \ O O / \ / \ C1 \ / C2 \-> D <-/ The IR change introduced by this patch should be trivial to other targets, so I am doing this unconditionally. Fall-through among the cases will also cause unstructured CFG, but it need more work and will be addressed in a separate change. Reviewed by: arsenm Differential Revision: https://reviews.llvm.org/D123607 -
Ruiling Song authored
This is a preliminary change to update the test so that it does not depend on how switch-case will be lowered. The following change will lower switch-case more optimally that will make the test no longer valid. Reviewed by: arsenm Differential Revision: https://reviews.llvm.org/D123606
-
Fangrui Song authored
-
Peter Klausler authored
Correct the implementation of non-advancing I/O after some testing to ensure that T tab edit descriptors are not allowed to back up into positions of a record prior to where it stood at the beginning of the I/O statement. Differential Revision: https://reviews.llvm.org/D123709
-
Stella Laurenzo authored
Differential Revision: https://reviews.llvm.org/D120203
-
Richard Smith authored
This reverts commit c729d5be. This change breaks thread safety annotations on lambdas.
-
joker881 authored
add intrinsic for CLZ Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D121915
-
Blue Gaston authored
[Darwin][ASan][Sanitizer] Fixes Sanitizer NonUnique Identifier to Account for Mac arm64 architectures. Current check assumes iOS as the only Apple devices running arm64. ```#if SANITIZER_MAC && !(defined(__arm64__) && SANITIZER_IOS)``` Stops Apple Silicon from being flagged as requiring unique RTTI. This introduced unexpected behavior within the sanitizer. rdar://91446703 Differential Revision: https://reviews.llvm.org/D123736 -
Stella Laurenzo authored
Since the actual implementation class can arbitrarily shadow parts of the FunctionOpInterface exported API, access the body generically instead of via the use of the interface being defined. Fixes https://github.com/llvm/llvm-project/issues/54807 Differential Revision: https://reviews.llvm.org/D123757
-
Brad Smith authored
Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D123438
-
Shoaib Meenai authored
We've found that there are cases where it's useful to be able to include the same target in multiple distributions (e.g. if you want a distribution that's a superset of another distribution, for convenience purposes), and that there are cases where the distribution of a target and its umbrella can legitimately differ (e.g. the LTO library would commonly be distributed alongside your tools, but it also falls under the llvm-libraries umbrella, which would commonly be distributed separately). Relax the restrictions while providing an option to restore them (which is mostly useful to ensure you aren't accidentally placing targets in the wrong distributions). There could be further refinements here (e.g. excluding a target from an umbrella if it's explicitly included in some other distribution, or having variables to control which targets are allowed to be duplicated or placed in a separate distribution than their umbrellas), but we can punt on those until there's an actual need.
-
Arjun P authored
-
Arjun P authored
-
wangpc authored
It seems to be neater. Reviewed By: asb Differential Revision: https://reviews.llvm.org/D123675
-
Florian Mayer authored
Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D123644
-
Peter Klausler authored
Catch and nicely describe errors in CASE range values that are out of range for the type of the SELECT CASE. Differential Revision: https://reviews.llvm.org/D123708
-