- Dec 17, 2021
-
-
Ben Langmuir authored
With a fix for BUILD_SHARED_LIBS. Original commit message: When building LLVM static libraries, we should not make symbols more visible than CMAKE_CXX_VISIBILITY_PRESET, since the goal may be to have a purely hidden llvm embedded in another library. Instead, we only define LLVM_EXTERNAL_VISIBILITY for the dynamic library build (when LLVM_BUILD_LLVM_DYLIB=YES or BUILD_SHARED_LIBS=YES). Original Review: https://reviews.llvm.org/D113610 Differential Revision: https://reviews.llvm.org/D115825
-
Tue Ly authored
Add documentation about how to add a math function to LLVM-libc. Differential Revision: https://reviews.llvm.org/D115608
-
Arthur O'Dwyer authored
Remove `s.base()`; every test that wants to get the base of a "test sentinel" should use the ADL `base(s)` from now on. Differential Revision: https://reviews.llvm.org/D115766
-
Michał Górny authored
Pass QUIET to find_package() in order to quiet the warning about missing FindFBSDVMCore.cmake. FBSDVMCore always provides native CMake config files, therefore providing a fallback module serves no purpose. Differential Revision: https://reviews.llvm.org/D115882
-
Craig Topper authored
Our Zfhmin support is only MC layer, but these are CodeGen layer interfaces. If f16 isn't a Legal type for CodeGen with Zfhmin, then these interfaces should keep their non-Zfh behavior. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D115822
-
Simon Pilgrim authored
If either operand has a zero element, then we don't need the equivalent element from the other operand, as no bits will be set.
-
Ella Ma authored
[analyzer][ctu] Fix wrong 'multiple definitions' errors caused by space characters in lookup names when parsing the ctu index file This error was found when analyzing MySQL with CTU enabled. When there are space characters in the lookup name, the current delimiter searching strategy will make the file path wrongly parsed. And when two lookup names have the same prefix before their first space characters, a 'multiple definitions' error will be wrongly reported. e.g. The lookup names for the two lambda exprs in the test case are `c:@S@G@F@G#@Sa@F@operator int (*)(char)#1` and `c:@S@G@F@G#@Sa@F@operator bool (*)(char)#1` respectively. And their prefixes are both `c:@S@G@F@G#@Sa@F@operator` when using the first space character as the delimiter. Solving the problem by adding a length for the lookup name, making the index items in the format of `USR-Length:USR File-Path`. Reviewed By: steakhal Differential Revision: https://reviews.llvm.org/D102669
-
Julian Lettner authored
This test would hang when the system ran out of resources and we fail to create all 300 threads. Differential Revision: https://reviews.llvm.org/D115845
-
Mike Rice authored
Add an assert and avoid unneeded checks of Fn in CodeGenFunction::GenerateCode. Differential Revision: https://reviews.llvm.org/D115817
-
Matt Arsenault authored
I don't think this fixes anything.
-
Simon Pilgrim authored
-
Simon Pilgrim authored
Rename them to LowerShiftByScalarImmediate/LowerShiftByScalarVariable to make it easier to find them wrt LowerShift()
-
- Dec 16, 2021
-
-
Jamie Schmeiser authored
This reverts commit dff0e8b4. Failing build: https://lab.llvm.org/buildbot/#/builders/42/builds/2800
-
Tor Arne Vestbø authored
Reviewed By: sylvestre.ledru Differential Revision: https://reviews.llvm.org/D115877
-
Nikita Popov authored
This is enough to build sqlite3 with opaque pointers.
-
David Spickett authored
Reviewed By: awarzynski, jhenderson Differential Revision: https://reviews.llvm.org/D115519
-
Hans Wennborg authored
MSVC's libc doesn't provide thread.h, so we should set the macro to indicate that. We could just set it in C mode, but I noticed that Darwin sets it unconditionally, so perhaps we should do the same here. Differential revision: https://reviews.llvm.org/D112081
-
Nikita Popov authored
With opaque pointers the pointer cast may be a no-op, such that var and castedAddr are the same. However, we still need to update the map entry as the underlying global changed. We could explicitly check whether the global was replaced, but we may as well just always update the entry.
-
Daniel Kiss authored
Implement cet-report as supported in binutils. bti-report has the same behaviour for AArch64-BTI. Fixes https://github.com/llvm/llvm-project/issues/44828 Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D113901
-
Nathan Sidwell authored
These were detected by the new -Wauto-by-value-copy (D114989) warning, these by-value constant copies need only be references. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D114990
-
Nathan Sidwell authored
This implements p2085, allowing out-of-class defaulting of comparison operators, primarily so they need not be inline, IIUC intent. this was mostly straigh forward, but required reimplementing Sema::CheckExplicitlyDefaultedComparison, as now there's a case where we have no a priori clue as to what class a defaulted comparison may be for. We have to inspect the parameter types to find out. Eg: class X { ... }; bool operator==(X, X) = default; Thus reimplemented the parameter type checking, and added 'is this a friend' functionality for the above case. Reviewed By: mizvekov Differential Revision: https://reviews.llvm.org/D104478 -
Stuart Brady authored
This reverts commit 1a376bc2. This broke clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
-
Valentin Clement authored
Move the Factory.h header file to flang/Optimizer/Builder. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: kiranchandramohan Differential Revision: https://reviews.llvm.org/D115801
-
Stuart Brady authored
Use the "pure" attribute (or "readonly") for the vload, vload_half and vloada_half builtins. Reviewed By: svenvh Differential Revision: https://reviews.llvm.org/D110742
-
Alexander Belyaev authored
Differential Revision: https://reviews.llvm.org/D115875
-
Lei Zhang authored
This allows the pass to participate in progressive lowering and it also allows us to write tests better. Along the way, cleaned up the tests. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D115756
-
Nikita Popov authored
ParamValue is basically a union between an Address and a Value*. To be able to reconstruct the Address, we now need to store the pointer element type.
-
Florian Hahn authored
This will also be helpful for D115793.
-
Nikita Popov authored
-
Sanjay Patel authored
We got an unintended consequence of the optimizer getting smarter when compiling in a non-standard mode, and there's no good way to inhibit those optimizations at a later stage. The test is based on an example linked from D92270. We allow the "no-strict-float-cast-overflow" exception to normal C cast rules to preserve legacy code that does not expect overflowing casts from FP to int to produce UB. See D46236 for details. Differential Revision: https://reviews.llvm.org/D115804
-
Neumann Hon authored
This patch adds support for prologue and epilogue generation for the z/OS target under the XPLINK64 ABI for functions with a stack size of less than 1048576 bytes (huge stack frames). Reviewed By: uweigand Differential Revision: https://reviews.llvm.org/D114457
-
Jamie Schmeiser authored
Summary: A new option exec-on-ir-changed is defined that allows one to specify an exe that is called after each pass in the opt pipeline that changes the IR. The exec-on-ir-change=exe option saves the IR in a temporary file and calls exe with the name of the file and the name of the pass that just changed it after each pass alters the IR. exe is also called with the initial IR. This can be used, for example, to determine which pass corrupts the IR by having exe as a script that calls llc and runs a test to see after which pass the results change. The print-changed filtering options are respected. Note that this is only supported with the new pass manager. Author: Jamie Schmeiser <schmeise@ca.ibm.com> Reviewed By: aeubanks (Arthur Eubanks) Differential Revision: https://reviews.llvm.org/D110776
-
Alexander Belyaev authored
RFC: https://llvm.discourse.group/t/rfc-extend-tensor-fromelementsop-to-n-d/4715 Differential Revision: https://reviews.llvm.org/D115821
-
Kiran Chandramohan authored
Reviewed By: awarzynski Differential Revision: https://reviews.llvm.org/D115797
-
OCHyams authored
Currently, lld is marked as a dependency on Windows in cross-project-tests/CMakeLists.txt which means CMake will fail if lld isn't enabled. The idea of the cross-project-tests is that tests that don't have their dependencies met should just be unsupported. Remove the depenency from the CMake step and check whether Dexter's platform-specific dependencies have been met in cross-project-tests/lit.cfg.py. If the dependencies are met then add 'dexter' to the available_features, otherwise don't and the dexter tests will be "UNSUPPORTED". Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D115872
-
Yitzhak Mandelbaum authored
-
Nikolas Klauser authored
GCC currently does not allow `__builtin_strlen()` during constant evaluation. This PR adds a workaround in `std::char_traits<char>::length()` Reviewed By: Quuxplusone, ldionne, #libc, Mordante Spies: Mordante, libcxx-commits Differential Revision: https://reviews.llvm.org/D115795
-
Paul Altin authored
Allow disabling integer to floating-point narrowing conversions for cppcoreguidelines-narrowing-conversions This change adds an option to disable warnings from the cppcoreguidelines-narrowing-conversions check on integer to floating- point conversions which may be narrowing. An example of a case where this might be useful: ``` std::vector<double> v = {1, 2, 3, 4}; double mean = std::accumulate(v.cbegin(), v.cend(), 0.0) / v.size(); ``` The conversion from std::size_t to double is technically narrowing on 64-bit systems, but v almost certainly does not have enough elements for this to be a problem. This option would allow the cppcoreguidelines-narrowing-conversions check to be enabled on codebases which might otherwise turn it off because of cases like the above. -
Aaron Ballman authored
When parsing the following construct, we parse it as an erroneous deduction guide declaration and correctly diagnose the issues with it. template<class> struct B; struct A { B() noexcept(false); }; However, we then go on to finish late parsing the declaration and this expects that what we've parsed is a CXXMethodDecl. A CXXDeductionGuideDecl is not a CXXMethodDecl (it's a FunctionDecl), and so we assert on the cast. This fixes the crash by switching from cast<> to dyn_cast<> and not setting up a "this" scope when the declaration is not a CXXMethodDecl. This fixes PR49735. -
Pavel Labath authored
I've found my recent ventures into the swig land painful because of the strange way they are formatted. This patch attempts to alleviate future headaches by formatting these files into something resembling the normal llvm style. Unfortunately, completely formatting these files automatically does not work because clang format gets confused by swigs % syntax, so I have employed a hybrid approach where I formatted blocks of c++ code with clang-format and then manually massaged the code until it looked reasonable (and compiled). I don't expect these files to remain perfectly formatted (although, if one's editor is configured to configure the current line/block on request, one can get pretty good results by using it judiciously), but at least it will prevent the (mangled form of the) old lldb style being proliferated endlessly. Differential Revision: https://reviews.llvm.org/D115736
-