- Jan 09, 2021
-
-
Peter Steinfeld authored
Internal subprograms have explicit interfaces. If an internal subprogram has an alternate return, we check its explicit interface. But we were not putting the label values of alternate returns into the actual argument. I fixed this by changing the definition of actual arguments to be able to contain a common::Label and putting the label for an alternate return into the actual argument. I also verified that we were already doing all of the semantic checking required for alternate returns and removed a "TODO" for this. I also added the test altreturn06.f90. Differential Revision: https://reviews.llvm.org/D94017
-
Jonas Devlieghere authored
Remove the stale LLDB-Info.plist which was only used by TestHelp.py. The latter would try to parse the version number from the plist and use that to verify the version in the help output. Of course this never matched so it would fall back to matching any arbitrary version. This patch does *not* change the real LLDB-Info.plist.in file which is used for the LLDB Framework.
-
Louis Dionne authored
This patch updates `allocate_shared` to call `allocator_traits::construct` when creating the object held inside the shared_pointer, and `allocator_traits::destroy` when destroying it. This resolves the part of P0674R1 that was originally filed as LWG2070. This change is landed separately from the rest of P0674R1 because it is incredibly tricky from an ABI perspective. This is the reason why this change is so tricky is that we previously used EBO in a compressed pair to store both the allocator and the object type stored in the `shared_ptr`. However, starting in C++20, P0674 requires us to use Allocator construction for initializing the object type. That requirement rules out the use of the EBO for the object type, since using the EBO implies that the base will be initialized when the control block is initialized (and hence we can't do it through Allocator construction). Hence, supporting P0674 requires changing how we store the object type inside the control block, which we do while being ABI compatible by using some trickery with a properly aligned char buffer. Fixes https://llvm.org/PR41900 Supersedes https://llvm.org/D62760 Differential Revision: https://reviews.llvm.org/D91201
-
Marek Kurdej authored
* Add feature test macros. * Add buildbot configuration generic-cxx2b that uses clang-tot. Reviewed By: ldionne, #libc Differential Revision: https://reviews.llvm.org/D94227
-
Raul Tambre authored
This reverts commit 0ebc1fb2. The behaviour should have been the same as before unless specifying CMAKE_BUILD_RPATH, which was previously broken. However, this seems to have broken builds for some people that don't specify it. Reverting until I can investigate. Differential Revision: https://reviews.llvm.org/D94319
-
Florian Hahn authored
This was suggested to prepare for D93975. By moving the start value creation to widenPHInstruction, we set the stage to manage the start value directly in VPWidenPHIRecipe, which be used subsequently to set the 'resume' value for reductions during epilogue vectorization. It also moves RdxDesc to the recipe, so we do not have to rely on Legal to look it up later. Reviewed By: gilr Differential Revision: https://reviews.llvm.org/D94175
-
Ganesh Gopalasubramanian authored
Differential Revision: https://reviews.llvm.org/D94134
-
Jonas Devlieghere authored
Bump the required SWIG version to 3. If my memory serves me well we last bumped the required SWIG version to 2 for Python 3. At that time SWIG 3 had already been around for a while so everyone I know was already using that. It appears that SWIG 3 is the only version that officially supports C++11 which we're using in the typemap. SWIG 3 was released in 2014 so I think it's reasonable to make that the minimum required version. https://bugs.llvm.org/show_bug.cgi?id=48685 Differential revision: https://reviews.llvm.org/D94244
-
Arthur O'Dwyer authored
It's still a little confusing because in many cases C++17 and C++20 have different values, and libc++ implements the C++17 behavior but not the C++20 behavior; 'unimplemented' can't represent that scenario. Ultimately we probably ought to completely redesign the script to be in terms of paper numbers, rather than language revisions, and make it generate the CSV files like "Cxx2aStatusPaperStatus.csv" as well. Most newly added macros are unimplemented. I've marked a few as implemented, though, based on my reading of the code; for example I was pretty sure `__cpp_lib_latch` is implemented since we have `<latch>`. Differential Revision: https://reviews.llvm.org/D93830
-
Alex Zinenko authored
Continue the convergence between LLVM dialect and built-in types by replacing the bfloat, half, float and double LLVM dialect types with their built-in counterparts. At the API level, this is a direct replacement. At the syntax level, we change the keywords to `bf16`, `f16`, `f32` and `f64`, respectively, to be compatible with the built-in type syntax. The old keywords can still be parsed but produce a deprecation warning and will be eventually removed. Depends On D94178 Reviewed By: mehdi_amini, silvas, antiagainst Differential Revision: https://reviews.llvm.org/D94179
-
Adam Czachorowski authored
Follow-up to d4af8658 Differential Revision: https://reviews.llvm.org/D94314
-
David Green authored
Similar to the Arm VCTP intrinsics, if the operands of an active.lane.mask are both known, the constant lane mask can be calculated. This can come up after unrolling the loops. Differential Revision: https://reviews.llvm.org/D94103
-
Adam Czachorowski authored
When printing QualType with qualifiers like "const", or pointing to an elaborated type, we would print garbage like: std::const std::vector<int>& with the initial std:: being calculated correctly, but inserted in the wrong place and the second std:: not removed (due to elaborated type). This affected, among others, ExtractFunction and ExpandAuto tweaks. This change introduces a new callback to PrintingPolicy, which allows us to influence the printing of namespace qualifiers. In the future, the same callback can be used to improve handling of "using namespace" directives as well. Fixes: https://github.com/clangd/clangd/issues/640 (ExtractFunction) https://github.com/clangd/clangd/issues/264 (ExpandAuto) First point of https://github.com/clangd/clangd/issues/524 Differential Revision: https://reviews.llvm.org/D94259
-
- Jan 08, 2021
-
-
Eugene Zhulenev authored
This reverts commit 84dc9b45. Fix Windows breakage: http://lab.llvm.org:8011/#/builders/13/builds/3658/steps/6/logs/stdio Differential Revision: https://reviews.llvm.org/D94309
-
Simon Pilgrim authored
UNPCKL/UNPCKH only uses one op from each hop, so we can merge the hops and then permute the result.
-
David Green authored
-
Eugene Zhulenev authored
Use custom mlir runner init/destroy functions to safely init and destroy shared libraries loaded by the JitRunner. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D94270
-
Paul C. Anagnostopoulos authored
-
Heejin Ahn authored
`wasm_rethrow_in_catch` intrinsic and builtin are used in order to rethrow an exception when the exception is caught but there is no matching clause within the current `catch`. For example, ``` try { foo(); } catch (int n) { ... } ``` If the caught exception does not correspond to C++ `int` type, it should be rethrown. These intrinsic/builtin were renamed `rethrow_in_catch` because at the time I thought there would be another intrinsic for C++'s `throw` keyword, which rethrows an exception. It turned out that `throw` keyword doesn't require wasm's `rethrow` instruction, so we rename `rethrow_in_catch` to just `rethrow` here. Reviewed By: dschuff, tlively Differential Revision: https://reviews.llvm.org/D94038 -
David Green authored
-
Paul C. Anagnostopoulos authored
Differential Revision: https://reviews.llvm.org/D93911 This first step adds the assert statement and supports it at top level and in record definitions. Later steps will support it in class definitions and multiclasses.
-
Kiran Chandramohan authored
This patch adds an attribute `inclusive` which if present causes the upperbound to be included in the loop iteration interval. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94235
-
Simon Pilgrim authored
-
Alexey Bataev authored
-
Xiangling Liao authored
This patch renames PackStack and related variable names to also contain align across Clang. As it is right now, Clang already uses one stack to record the information from both #pragma align and #pragma pack. Leaving it as PackStack is confusing, and could cause people to ignore #pragma align when developing code that interacts with PackStack. Differential Revision: https://reviews.llvm.org/D93901
-
Simon Pilgrim authored
We should be able to convert these to permute(hop()) as we only ever use one of the ops from each hop.
-
KareemErgawy-TomTom authored
Instead of checking explicitly checking for whether an op is usalbe inside a `SpecConstantOperationOP`, this commit adds a new trait to filter such ops. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D94288
-
Kazushi (Jam) Marukawa authored
Support pack_f32p and pack_f32a intrinsic instructions and regression tests. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D94296
-
Heejin Ahn authored
cfg-stackify-eh.ll contains many `CHECK` lines specifying label / catch comments with numbers. These numbers are subject to change every time any block/loop/try is added in the middle in existing functions or any other function is added in the middle of the file, generating a large number of lines in diffs. This change converts them to variables so they can be more resistent to future changes. Reviewed By: dschuff, tlively Differential Revision: https://reviews.llvm.org/D94037
-
Anastasia Stulova authored
Started a new doc section about the OpenCL experimental features and described ongoing work on C++ libraries e.g. type traits. Tags: #clang Differential Revision: https://reviews.llvm.org/D94188
-
Alexander Belyaev authored
This reverts commit 4284afdf. This changes computed values in fused_batchnorm_test_cpu. Not equal to tolerance rtol=1e-06, atol=0.001 Mismatched value: a is different from b. not close where = (array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), array([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]), array([0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1]), array([0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5, 0, 1, 2, 3, 4, 5])) not close lhs = [-0.6636615 -0.9804948 -1.148275 -0.68193716 -0.8572368 -0.65046215 -0.6993756 -1.2244141 -1.0938729 -0.50369143 -0.51830524 -0.738452 -0.7214286 -0.48115745 -0.9380924 -0.9341769 -0.5916775 -1.2896856 -0.7264182 -0.9746917 -0.783249 -0.7659018 -0.86214024 -0.47784212] not close rhs = [ 0.44102234 0.12418899 -0.04359123 0.42274666 0.24744703 0.45422167 0.40530816 -0.11973029 0.01081094 0.6009924 0.5863786 0.3662318 0.38325527 0.62352633 0.1665914 0.1705069 0.5130063 -0.18500176 0.37826565 0.12999213 0.3214348 0.338782 0.24254355 0.62684166] not close dif = [1.1046839 1.1046838 1.1046838 1.1046839 1.1046839 1.1046839 1.1046838 1.1046839 1.1046839 1.1046839 1.1046839 1.1046839 1.1046839 1.1046838 1.1046839 1.1046839 1.1046839 1.1046839 1.1046839 1.1046839 1.1046839 1.1046839 1.1046838 1.1046838] not close tol = [0.00100044 0.00100012 0.00100004 0.00100042 0.00100025 0.00100045 0.00100041 0.00100012 0.00100001 0.0010006 0.00100059 0.00100037 0.00100038 0.00100062 0.00100017 0.00100017 0.00100051 0.00100019 0.00100038 0.00100013 0.00100032 0.00100034 0.00100024 0.00100063]
-
LLVM GN Syncbot authored
-
Simon Moll authored
This implements vp_add, vp_and for the VE target by lowering them to the VVP_* layer. We also add helper functions for VP SDNodes (isVPSDNode, getVPMaskIdx, getVPExplicitVectorLengthIdx). Reviewed By: kaz7 Differential Revision: https://reviews.llvm.org/D93766
-
Raphael Isemann authored
-
Shivam Gupta authored
With [[ https://reviews.llvm.org/D77156 | D77156 ]] includes are not needed here. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D94216
-
Mark Murray authored
Differential Revision: https://reviews.llvm.org/D94081
-
Mark Murray authored
Differential Revision: https://reviews.llvm.org/D94083
-
Alexander Belyaev authored
Revert "Revert "Revert "Revert "Revert "[analyzer] NFC: Move path diagnostic consumer implementations to libAnalysis.""""" This reverts commit 6b0ee027. Circular dependency again.
-
Sanjay Patel authored
As noted in PR48689, the verifier may have some kind of exponential behavior that should be addressed separately. For now, only run it in debug mode to prevent problems for release+asserts. That limit is what we had before D80401, and I'm not sure if there was a reason to change it in that patch.
-
Haojian Wu authored
Differential Revision: https://reviews.llvm.org/D92749
-