- Jul 21, 2020
-
-
Matt Arsenault authored
Try to make the behavior more consistent with getGCDType, and bias towards returning something closer to the source type whenever there's an ambiguity.
-
Matt Arsenault authored
Try harder to find a canonical unmerge type when trying to cover the desired target type. Handle finding a compatible unmerge type for two vectors with different element types. This will return the largest multiple of the source vector element that will evenly divide the target vector type. Also make the handling mixing scalars and vectors, and prefer the source element type as the unmerge target type.
-
Matt Arsenault authored
-
Logan Smith authored
This uses a special set of flags given to unittests to work around warnings raised by googletest and googlemock. This should bring the sanitizer bots back to green.
-
Jim Ingham authored
file:line:column form that we use to print out locations. Since we print them this way it makes sense we also accept that form. Differential Revision: https://reviews.llvm.org/D83975
-
Jonas Devlieghere authored
Make sure we don't accidentally leak the SBThreadPlan pointer when we return before handing it off to Python to manage its lifetime.
-
Jonas Devlieghere authored
Use a weak pointer to hold on to the the underlying thread plan in SBThreadPlan. When the process continues, all the popped ThreadPlans get discarded, and you can’t reuse them, so you have to create them anew. Therefore the SBThreadPlan doesn’t need to keep the ThreadPlan alive. This fixes the cleanup error in TestThreadPlanCommands.py and TestStepScripted.py caused by the thread plans never being deleted. Differential revision: https://reviews.llvm.org/D84210
-
Logan Smith authored
-
Artem Belevich authored
PTX does not support negative values in .bNN data directives and we must typecast such values to unsigned before printing them. MCAsmInfo can now specify whether such casting is necessary for particular target. Differential Revision: https://reviews.llvm.org/D83423
-
Nithin Vadukkumchery Rajendrakumar authored
Summary: Implemented checkRegionChanges for SmartPtrModeling Reviewers: NoQ, Szelethus, vsavchenko, xazax.hun Reviewed By: NoQ, vsavchenko, xazax.hun Subscribers: martong, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D83836 -
shafik authored
Currently expressions dealing with bit-fields in Objective-C objects is pretty broken. When generating debug-info for Objective-C bit-fields DW_AT_data_bit_offset has a different meaning than it does to C and C++. When we parse the DWARF we validate bit offsets for C and C++ correctly but not for ObjC. For ObjC in some cases we end up incorrectly flagging an error and we don't generate further bit-fields in the AST. Later on when we do a name lookup we don't find the ObjCIvarDecl in the ObjCInterfaceDecl in some cases since we never added it and then we don't go to the runtime to obtain the offset. This will fix how we handle bit-fields for the Objective-C case and add tests to verify this fix but also to documents areas that still don't work and will be addressed in follow-up PRs. Note: we can never correctly calculate offsets statically because of how Objective-C deals with the fragile base class issue. Which means the runtime may need to shift fields over. Differential Revision: https://reviews.llvm.org/D83433
-
Logan Smith authored
(facepalm)
-
Davide Italiano authored
-
Lang Hames authored
When allocating a new memory block in SectionMemoryManager, initialize the Near hint for the other memory groups if they have not been set already. Patch by Dana Koch. Thanks Dana!
-
Logan Smith authored
-
Davide Italiano authored
-
Yitzhak Mandelbaum authored
This reverts commit c0b8954e. The commit has broken various builds. Reverting while I investigate the cause.
-
Yitzhak Mandelbaum authored
`Metadata` is being changed from an `llvm::Any` to a `MatchConsumer<llvm;:Any>`, so that it's evaluation can be be dependent on `MatchResult`s passed in. Reviewed By: ymandel, gribozavr2 Differential Revision: https://reviews.llvm.org/D83820
-
AndreyChurbanov authored
Add check of frm to prevent array out-of-bound access; add check of new_nproc to prevent access of unallocated hot_teams array; add check of location info pointer to prevent NULL dereference; add check of d_tn pointer to prevent NULL dereference in release build. These checks make static analyzers happier. This is second part of the patch from https://reviews.llvm.org/D84062.
-
Davide Italiano authored
Gets another large chunk of the testsuite to pass.
-
Roman Lebedev authored
Newly-added test previously crashed. While it is up for debate whether or not instruction reduction should be indiscriminate in instruction dropping (there you can just ensure that the test case is still -verify'ies), here if we drop terminator, CloneFunctionInto() will immediately crash. So let's not do that :)
-
Vy Nguyen authored
Summary: weak_ptr has two pointers (more than the 4 bytes limit), so it will not be returned in registers on ARM, even if it is trivial. The test, therefore, will fail on ARM. Reviewers: #libc! Subscribers: kristof.beyls, danielkiss, libcxx-commits Tags: #libc Differential Revision: https://reviews.llvm.org/D84200
-
Logan Smith authored
[llvm][unittest] Add -Wno-suggest-override to more infrastructure that includes googletest/googlemock headers
-
AndreyChurbanov authored
Add check of negative gtid before indexing __kmp_threads. This makes static analyzers happier. This is the first part of the patch split in two parts. Differential Revision: https://reviews.llvm.org/D84062
-
Gabor Marton authored
Summary: Adding networking functions from the POSIX standard (2017). This includes functions that deal with sockets from socket.h, netdb.h. In 'socket.h' of some libc implementations (e.g. glibc) with C99, sockaddr parameter is a transparent union of the underlying sockaddr_ family of pointers instead of being a pointer to struct sockaddr. In these cases, the standardized signature will not match, thus we try to match with another signature that has the joker Irrelevant type. In the case of transparent unions, we also not add those constraints which require pointer types for the sockaddr param. Interestingly, in 'netdb.h' sockaddr is not handled as a transparent union. Tags: #clang Differential Revision: https://reviews.llvm.org/D83407
-
Louis Dionne authored
Since we include <cstdlib> instead of <stdlib.h>, it makes sense to use std::free.
-
Sanjay Patel authored
We might want to also allow trunc of the shift amount, but that seems less likely? define i32 @src(i32 %x, i1 %y) { %0: %rem = and i1 %y, 1 %cmp = icmp eq i1 %rem, 0 %sh_prom = zext i1 %rem to i32 %sub = sub nsw nuw i1 0, %rem %sh_prom1 = zext i1 %sub to i32 %shr = lshr i32 %x, %sh_prom1 %shl = shl i32 %x, %sh_prom %or = or i32 %shl, %shr %r = select i1 %cmp, i32 %x, i32 %or ret i32 %r } => define i32 @tgt(i32 %x, i1 %y) { %0: %t = zext i1 %y to i32 %r = fshl i32 %x, i32 %x, i32 %t ret i32 %r } Transformation seems to be correct! https://alive2.llvm.org/ce/z/xgMvE3 http://bugs.llvm.org/PR45701 -
Sanjay Patel authored
-
Florian Hahn authored
This patch uses the TileInfo introduced in D77550 to generate a loop nest for tiled matrix multiplication, instead of generating the unrolled code for the whole multiplication. This makes code-generation more scalable for larger matrixes. Initially loops are only used if both the number of rows and columns are divisible by the tile size. Other cases will be added as follow-up. Reviewers: anemet, Gerolf, hfinkel, andrew.w.kaylor, LuoYuanke, nicolasvasilache Reviewed By: anemet Differential Revision: https://reviews.llvm.org/D81308
-
Eli Friedman authored
This isn't a natively supported operation, so convert it to a mask+compare. In addition to the operation itself, fix up some surrounding stuff to make the testcase work: we need concat_vectors on i1 vectors, we need legalization of i1 vector truncates, and we need to fix up all the relevant uses of getVectorNumElements(). Differential Revision: https://reviews.llvm.org/D83811
-
Martin Storsjö authored
Differential Revision: https://reviews.llvm.org/D84070
-
Logan Smith authored
This patch adds Clang's new (and GCC's old) -Wsuggest-override to the warning flags for the LLVM build. The warning is a stronger form of -Winconsistent-missing-override which warns _everywhere_ that override is missing, not just in places where it's inconsistent within a class. Some directories in the monorepo need the warning disabled for compatibility's, or sanity's, sake; in particular, libcxx/libcxxabi, and any code implementing or interoperating with googletest, googlemock, or google benchmark (which do not themselves use override). This patch adds -Wno-suggest-override to the relevant CMakeLists.txt's to accomplish this. Differential Revision: https://reviews.llvm.org/D84126
-
Hiroshi Yamauchi authored
Following up D81682 and enable the new, extended value profile buckets for mem op sizes. Differential Revision: https://reviews.llvm.org/D83903
-
Aleksandr Platonov authored
Summary: This patch mostly reverts D74850. We could not use `AST.getTokens()` here, because it does not have tokens from the preamble. Reviewers: sammccall, kadircet Reviewed By: kadircet Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, kbobyrev, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D84144
-
Anders Waldenborg authored
This new option allows controlling if there should be spaces around the ':' in a bitfield declaration. BitFieldColonSpacing accepts four different values: // "Both" - default unsigned bitfield : 5 unsigned bf2 : 5 // AlignConsecutiveBitFields=true // "None" unsigned bitfield:5 unsigned bf2 :5 // "Before" unsigned bitfield :5 unsigned bf2 :5 // "After" unsigned bitfield: 5 unsigned bf2 : 5 Differential Revision: https://reviews.llvm.org/D84090
-
Jonas Devlieghere authored
Setting the current working directory in the VFS will fail if the given path doesn't exist in the YAML mapping or on disk.
-
Jonas Devlieghere authored
recordInterestingDirectory -> RecordInterestingDirectory
-
Hiroshi Yamauchi authored
Remove the temporary flag PGSOIRPassOrTestOnly and the guard code which was used for the staged rollout. This is a cleanup (NFC) as it's now false by default. Differential Revision: https://reviews.llvm.org/D84057
-
Mircea Trofin authored
Summary: This is the InlineAdvisor used in 'development' mode. It enables two scenarios: - loading models via a command-line parameter, thus allowing for rapid training iteration, where models can be used for the next exploration phase without requiring recompiling the compiler. This trades off some compilation speed for the added flexibility. - collecting training logs, in the form of tensorflow.SequenceExample protobufs. We generate these as textual protobufs, which simplifies generation and testing. The protobufs may then be readily consumed by a tensorflow-based training algorithm. To speed up training, training logs may also be collected from the 'default' training policy. In that case, this InlineAdvisor does not use a model. RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-April/140763.html Reviewers: jdoerfert, davidxl Subscribers: mgorny, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D83733
-
LLVM GN Syncbot authored
-