- Dec 05, 2020
-
-
Florian Hahn authored
ConstraintSystem::dump only generates output with -debug, but there's no need to call it without -debug.
-
Florian Hahn authored
Constraints where all variable coefficients are 0 do not add any useful information. When checking, we can check if they are always true/false.
-
Dmitry Preobrazhensky authored
See bug 48295 (https://bugs.llvm.org/show_bug.cgi?id=48295) Reviewers: rampitec Differential Revision: https://reviews.llvm.org/D92088
-
Nikita Popov authored
Fix mistake introduced in f8afba5f: I failed to initialize the Depth member to zero.
-
Dmitry Preobrazhensky authored
See bug 47518 (https://bugs.llvm.org/show_bug.cgi?id=47518) Reviewers: rampitec Differential Revision: https://reviews.llvm.org/D92084
-
mydeveloperday authored
I use several of the clang-format clean directories as a test suite, this one had got slightly out of wack in a prior commit Reviewed By: HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D92666
-
Nikita Popov authored
Count how many NoAlias/MustAlias/MayAlias we get from top-level queries.
-
Nikita Popov authored
-
Fangrui Song authored
PPCMCInstLower does not actually call shouldAssumeDSOLocal for ppc32 so this is dead. Actually Clang ppc32 does produce a pair of absolute relocations which match GCC. This also fixes a comment (R_PPC_COPY and R_PPC64_COPY do exist).
-
Fangrui Song authored
-
Francis Visoiu Mistrih authored
Avoid calling getFlags on a non-existent symbol. The way this is triggered is by calling strip -N on a binary, which sets the MH_NLIST_OUTOFSYNC_WITH_DYLDINFO header flag. Then, in the LC_FUNCTION_STARTS command, nm is trying to print the stripped symbols and needs the proper checks.
-
Kazu Hirata authored
-
Kazu Hirata authored
IsSigned and its accessor, isSigned, were introduced on Oct 25, 2017 in commit 9ac7021a. The last use was removed on Nov 20, 2017 in commit 26846786.
-
Hsiangkai Wang authored
Authored-by:Hsiangkai Wang <kai.wang@sifive.com>
-
River Riddle authored
Trailing objects are really nice for storing additional data inline with the main class, and is something that we heavily take advantage of for Operation(and many other classes). To get the address of the inline data you need to compute the address by doing some pointer arithmetic taking into account any objects stored before the object you want to access. Most classes keep the count of the number of objects, so this is relatively cheap to compute. This is not the case for results though, which have two different types(inline and trailing) that are not necessarily as cheap to compute as the count for other objects. This revision moves the storage for results to before the operation and stores them in reverse order. This allows for getting results to still be very fast given that they are never iterated directly in order, and also greatly improves the speed when accessing the other trailing objects of an operation(operands/regions/blocks/etc). This reduced compile time when compiling a decently sized mlir module by about ~400ms, or 2.17s -> 1.76s. Differential Revision: https://reviews.llvm.org/D92687
-
River Riddle authored
The check for formatting enum attributes was missing a call to get the base attribute, which is necessary to strip off the top-level OptionalAttr<> wrapper. Differential Revision: https://reviews.llvm.org/D92713
-
Zhuojia Shen authored
This patch fixes builtins' CMakeLists.txt and their VFP tests to check the standard macro defined in the ACLE for VFP support. It also enables the tests to be built and run for single-precision-only targets while builtins were built with double-precision support. Differential revision: https://reviews.llvm.org/D92497
-
Jonas Devlieghere authored
Use the newly added spawnattr API, posix_spawnattr_setarchpref_np, to select a slice preferences per cpu and subcpu types, instead of just cpu with posix_spawnattr_setarchpref_np. rdar://16094957 Differential revision: https://reviews.llvm.org/D92712
-
Jonas Devlieghere authored
-
Fangrui Song authored
-
Fangrui Song authored
clang/lib/CodeGen/CodeGenModule sets dso_local on applicable global variables, we don't need to duplicate the work in TargetMachine:shouldAssumeDSOLocal. (Actually the long-term goal (started by r324535) is to remove as much additional implied dso_local in TargetMachine:shouldAssumeDSOLocal as possible.) By not implying dso_local, we will respect dso_local/dso_preemptable specifiers set by the frontend. This allows the proposed -fno-direct-access-external-data option to work with -fno-pic and prevent copy relocations. This patch should be NFC in terms of the Clang behavior because the case we don't set dso_local is a case Clang sets dso_local. However, some tests don't set dso_local on some `external global` and expose some differences. Most tests have been fixed to be more robust in previous commits.
-
Fangrui Song authored
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for Static. Split some tests so that these `external dso_local global` will align with the Clang behavior.
-
Craig Topper authored
-
Tony authored
- Document code object V2 gfx800. - Document amdpal is supported by Linux Pro. Differential Revision: https://reviews.llvm.org/D92708
-
Fangrui Song authored
TargetMachine::shouldAssumeDSOLocal currently implies dso_local for Static. Split some tests so that these `external dso_local global` will align with the Clang behavior.
-
Sam Clegg authored
This change improves our support for shared memory to include PIC executables (and shared libraries). To handle this case the linker-generated `__wasm_init_memory` function (that only exists in shared memory builds) must be capable of loading memory segements at non-const offsets based on the runtime value of `__memory_base`. Differential Revision: https://reviews.llvm.org/D92620
-
Fangrui Song authored
This is currently implied by TargetMachine::shouldAssumeDSOLocal but will be changed in the future.
-
Nathan Lanza authored
llvm's minimum fms-compatability-version was just bumped to 19.14 and thus the WinMsvc.cmake file needs to be adjusted accordingly.
-
Hsiangkai Wang authored
Differential Revision: https://reviews.llvm.org/D92650
-
Alex Lorenz authored
in their corresponding class interfaces Categories that add protocol conformances to classes with direct members should prohibit protocol conformances when the methods/properties that the protocol expects are actually declared as 'direct' in the class. Differential Revision: https://reviews.llvm.org/D92602
-
Alex Lorenz authored
The swift_async_name attribute provides a name for a function/method that can be used to call the async overload of this method from Swift. This name specified in this attribute assumes that the last parameter in the function/method its applied to is removed when Swift invokes it, as the the Swift's await/async transformation implicitly constructs the callback. Differential Revision: https://reviews.llvm.org/D92355
-
Alex Lorenz authored
The swift_attr attribute is a generic annotation attribute that's not used by clang, but is used by the Swift compiler. The Swift compiler can use these annotations to provide various syntactic and semantic sugars for the imported Objective-C API declarations. Differential Revision: https://reviews.llvm.org/D92354
-
Philip Reames authored
-
Duncan P. N. Exon Smith authored
Looks like nothing has included this header since d21485d2 / r286279 in 2016. Delete the dead code.
-
shafik authored
Currently we have a diagnostic that catches the other storage class specifies for the range based for loop declaration but we miss the thread_local case. This changes adds a diagnostic for that case as well. Differential Revision: https://reviews.llvm.org/D92671
-
Fangrui Song authored
In preparation for D92078
-
Arthur O'Dwyer authored
The synopsis now reflects what's implemented. It does NOT reflect all of what's specified in C++20. The "constexpr in C++20" markings are still missing from these 12 algorithms, because they are still unimplemented by libc++: reverse partition sort nth_element next_permutation prev_permutation push_heap pop_heap make_heap sort_heap partial_sort partial_sort_copy All of the above algorithms were excluded from [P0202]. All of the above algorithms were made constexpr in [P0879] (along with swap_ranges, iter_swap, and rotate — we've already implemented those three). Differential Revision: https://reviews.llvm.org/D92255 -
Arthur O'Dwyer authored
These had been waiting on the ability to use `std::copy` from constexpr code (which in turn had been waiting on the ability to use `is_constant_evaluated()` to switch between `memmove` and non-`memmove` implementations of `std::copy`). That work landed a while ago, so these algorithms can all be constexpr in C++20 now. Simultaneously, update the tests for the set algorithms. - Use an element type with "equivalent but not identical" values. - The custom-comparator tests now pass something different from `operator<`. - Make the constexpr coverage match the non-constexpr coverage. Differential Revision: https://reviews.llvm.org/D92255
-
Arthur O'Dwyer authored
Differential Revision: https://reviews.llvm.org/D92255
-
Kazushi (Jam) Marukawa authored
Add vfsqrt, vfcmp, vfmax, and vfmin intrinsic instructions and regression tests. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92651
-