- Mar 08, 2021
-
-
Tim Northover authored
The DevKits had A12 processors, but they're all gone now and real hardware has an A13.
-
Andy Yankovsky authored
`memory_read_error` -> `memory_write_error` Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D98170
-
Stephen Tozer authored
Changes to function calls in LocalTest resulted in comparisons between unsigned values and signed literals; the latter have been updated to be unsigned to prevent this warning.
-
Peyton, Jonathan L authored
Restrict the chunk_size * chunk_num to only occur for valid chunk_nums and reimplement calculating the limit to avoid overflow. Differential Revision: https://reviews.llvm.org/D96747
-
Nemanja Ivanovic authored
Adds support for the TLS general dynamic access model to assembly files on AIX 32-bit. To generate the correct code sequence when accessing a TLS variable `v`, we first create two TOC entry nodes, one for the variable offset, one for the region handle. These nodes are followed by a `PPCISD::TLSGD_AIX` node (new node introduced by this patch). The `PPCISD::TLSGD_AIX` node (`TLSGDAIX` pseudo instruction) is expanded to 2 copies (to put the variable offset and region handle in the right registers) and a call to `__tls_get_addr`. This patch also changes the way TC entries are generated in asm files. If the generated TC entry is for the region handle of a TLS variable, we add the `@m` relocation and the `.` prefix to the entry name. For example: ``` L..C0: .tc .v[TC],v[TL]@m -> region handle L..C1: .tc v[TC],v[TL] -> variable offset ``` Reviewed By: nemanjai, sfertile Differential Revision: https://reviews.llvm.org/D97948
-
Giorgis Georgakoudis authored
Some tests in clang require running non-filechecked commands to generate the actual filecheck input. For example, tests for openmp offloading require generating the host bc without any checking, before running the clang command to actually generate the filechecked IR of the target device. This patch enables `update_cc_test_checks.py` to run non-filechecked run lines in-place. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D97068
-
Yashaswini authored
Implementation of Do loop threadprivate check. Files: resolve-directives.cpp Testcases: omp-do04-positivecase.f90 omp-do04.f90 Reviewed by: Kiran Chandramohan @kiranchandramohan Differential Revision: https://reviews.llvm.org/D96686
-
Stephen Tozer authored
This patch removed the only use of a lambda capture, triggering an error on `-Werror -Wunused-lambda-capture` builds.
-
Anirudh Prasad authored
- This patch adds in support to determine whether a particular label is valid for the hlasm variant - The label syntax being checked is that of an ordinary HLASM symbol (Reference, Chapter 2 (Coding and Structure) - Terms, Literals and Expressions - Terms - Symbols - Ordinary Symbol) - To achieve this, the virtual function isLabel defined in MCTargetAsmParser.h is made use of - The isLabel function is overridden in SystemZAsmParser for the hlasm variant, and the syntax is checked appropriately - Things remain unchanged for the att variant - Further patches will add in support to emit the label. These future patches will make use of this isLabel function Reviewed By: uweigand, Kai Differential Revision: https://reviews.llvm.org/D97748
-
gbtozers authored
This patch updates DbgVariableIntrinsics to support use of a DIArgList for the location operand, resulting in a significant change to its interface. This patch does not update all IR passes to support multiple location operands in a dbg.value; the only change is to update the DbgVariableIntrinsic interface and its uses. All code outside of the intrinsic classes assumes that an intrinsic will always have exactly one location operand; they will still support DIArgLists, but only if they contain exactly one Value. Among other changes, the setOperand and setArgOperand functions in DbgVariableIntrinsic have been made private. This is to prevent code from setting the operands of these intrinsics directly, which could easily result in incorrect/invalid operands being set. This does not prevent these functions from being called on a debug intrinsic at all, as they can still be called on any CallInst pointer; it is assumed that any code directly setting the operands on a generic call instruction is doing so safely. The intention for making these functions private is to prevent DIArgLists from being overwritten by code that's naively trying to replace one of the Values it points to, and also to fail fast if a DbgVariableIntrinsic is updated to use a DIArgList without a valid corresponding DIExpression.
-
serge-sans-paille authored
-
Ahsan Saghir authored
This changes the target data layout to make stack align to 16 bytes on Power10. Before this change, stack was being aligned to 32 bytes. Reviewed By: #powerpc, nemanjai Differential Revision: https://reviews.llvm.org/D96265
-
Nico Weber authored
From `man ld`: -why_load Log why each object file in a static library is loaded. That is, what symbol was needed. Also called -whyload for compatibility. `-why_load` is the spelling preferred by the linker and `-whyload` an old compatibility setting. clang should accept the preferred form, and map both forms to the preferred form. Differential Revision: https://reviews.llvm.org/D98156 -
Sanjay Patel authored
I noticed that we were not folding expressions like this: icmp ult (constexpr), null in https://llvm.org/PR49355, so we end up with extremely large icmp instructions as the constant expressions pile up on each other. There is no potential to mis-fold an unsigned boundary condition with a zero/null, so this is just falling through a crack in the pattern matching. The more general case of comparisons of non-zero constants and constexpr are more tricky and may require the datalayout to know how to cast to different types, etc. Negative tests verify that we are only changing a subset of potential patterns. Differential Revision: https://reviews.llvm.org/D98150
-
Sanjay Patel authored
See D98150.
-
Martin Storsjö authored
This was requested in the review of D98138. Differential Revision: https://reviews.llvm.org/D98155
-
Sanjay Patel authored
-
Haojian Wu authored
The test is using "debug-only", it was failing in opt built mode.
-
Raphael Isemann authored
ModuleID is just an integer so let's use a DenseSet.
-
Simon Pilgrim authored
Pulled out of the original D90479 patch - also includes the "impossible shift amount" filtering from computeKnownBitsFromShiftOperator. Differential Revision: https://reviews.llvm.org/D90479
-
Simon Pilgrim authored
Both if blocks affect control flow - we don't need the else. Fixes clang-tidy warning.
-
Alex Richardson authored
Previously, on GLibc systems, the interceptor was calling __compat_regexec (regexec@GLIBC_2.2.5) insead of the newer __regexec (regexec@GLIBC_2.3.4). The __compat_regexec strips the REG_STARTEND flag but does not report an error if other flags are present. This can result in infinite loops for programs that use REG_STARTEND to find all matches inside a buffer (since ignoring REG_STARTEND means that the search always starts from the first character). The underlying issue is that GLibc's dlsym(RTLD_NEXT, ...) appears to always return the oldest versioned symbol instead of the default. This means it does not match the behaviour of dlsym(RTLD_DEFAULT, ...) or the behaviour documented in the manpage. It appears a similar issue was encountered with realpath and worked around in 77ef78a0. See also https://sourceware.org/bugzilla/show_bug.cgi?id=14932 and https://sourceware.org/bugzilla/show_bug.cgi?id=1319. Fixes https://github.com/google/sanitizers/issues/1371 Reviewed By: #sanitizers, vitalybuka, marxin Differential Revision: https://reviews.llvm.org/D96348
-
serge-sans-paille authored
-
Jeremy Morse authored
This reverts commit bde2e560. This patch produces a compile failure on linux amd64 environments, when running: ninja GotsanRuntimeCheck I get various build errors: ../rtl/tsan_platform.h:608: error: use of undeclared identifier 'Mapping' return MappingImpl<Mapping, Type>(); Here's a buildbot with the same failure during stage "check-tsan in gcc build", there are other unrelated failures in there. http://lab.llvm.org:8011/#/builders/37/builds/2831
-
Frederik Gossen authored
`Tensorizable` traits. Differential Revision: https://reviews.llvm.org/D97841
-
Fraser Cormack authored
While working on adding fixed-length vectors to the calling convention, it was necessary to be able to query for a fixed-length vector container type without access to an instance of SelectionDAG. This patch modifies the "main" getContainerForFixedLengthVector function to use an instance of TargetLowering rather than SelectionDAG, and preserves the SelectionDAG overload as a wrapper. An additional non-static version of the function was also added to simplify the common case in RISCVTargetLowering. Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D97925
-
Saurabh Jha authored
Make sure CompLHSTy is set correctly for += and -= and matrix type operands. Bugzilla ticket is here https://bugs.llvm.org/show_bug.cgi?id=46164 Patch by Saurabh Jha <saurabh.jhaa@gmail.com> Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D98075
-
David Sherwood authored
For loops of the form: void foo(int *a, int *cond, short *inv, long long n) { for (long long i=0; i<n; ++i) { if (cond[i]) a[i] = *inv; } } we can vectorise for SVE using masked gather loads where the array of pointers is simply a vector splat of 'inv' and the mask comes from the condition 'cond[i] != 0'. This patch simply adds tests upstream to defend this capability. Differential Revision: https://reviews.llvm.org/D98043 -
Raul Tambre authored
As reported in D93278 post-review symlinking requires privilege escalation on Windows. Copying is functionally same, so fallback to it for systems that aren't Unix-like. This is similar to the solution in AddLLVM.cmake. Reviewed By: ikudrin Differential Revision: https://reviews.llvm.org/D98111
-
Freddy Ye authored
Refine "Support -march=alderlake" Compare with tremont, it includes 25 more new features. They are adx, aes, avx, avx2, avxvnni, bmi, bmi2, cldemote, f16c, fma, hreset, invpcid, kl, lzcnt, movdir64b, movdiri, pclmulqdq, pconfig, pku, serialize, shstk, vaes, vpclmulqdq, waitpkg, widekl. Reviewed By: pengfei Differential Revision: https://reviews.llvm.org/D97832
-
Mehdi Amini authored
This allows to build and test MLIR with `-DLLVM_ENABLE_LIBCXX=ON`.
-
Ta-Wei Tu authored
The check `tightlyNested()` in `LoopInterchange` is similar to the one in `LoopNest`. In fact, the former misses some cases where loop-interchange is not feasible and results in incorrect behaviour. Replacing it with the much robust version provided by `LoopNest` reduces code duplications and fixes https://bugs.llvm.org/show_bug.cgi?id=48113. `LoopInterchange` has a weaker definition of tightly or perfectly nesting-ness than the one implemented in `LoopNest::arePerfectlyNested()`. Therefore, `tightlyNested()` is instead implemented with `LoopNest::checkLoopsStructure` and additional checks for unsafe instructions. Reviewed By: Whitney Differential Revision: https://reviews.llvm.org/D97290
-
Petr Hosek authored
There are two additional cases that were missed in D98131. Differential Revision: https://reviews.llvm.org/D98158
-
Arthur O'Dwyer authored
-
Mehdi Amini authored
One commit introduced after the reverted change was using an API introduced there, this is reintroducing the API, but not the original broken change.
-
Keith Smiley authored
This spelling matches binutils https://sourceware.org/bugzilla/show_bug.cgi?id=27408 Differential Revision: https://reviews.llvm.org/D83152
-
Mehdi Amini authored
This reverts commit 99108c79. Clang is miscompiling LLVM with this change, a stage-2 build hits multiple failures. As a repro, I built clang in a stage1 directory and used it this way: cmake -G Ninja ../llvm \ -DCMAKE_CXX_COMPILER=`pwd`/../build-stage1/bin/clang++ \ -DCMAKE_C_COMPILER=`pwd`/../build-stage1/bin/clang \ -DLLVM_TARGETS_TO_BUILD="X86;NVPTX;AMDGPU" \ -DLLVM_ENABLE_PROJECTS=mlir \ -DLLVM_BUILD_EXAMPLES=ON \ -DCMAKE_BUILD_TYPE=Release \ -DLLVM_ENABLE_ASSERTIONS=On ninja check-mlir
-
Whitney Tsang authored
`runtime-multiexit-heuristic.ll` Added -unroll-runtime-other-exit-predictable=false in runtime-multiexit-heuristic.ll to make it more robust. runtime-multiexit-heuristic.ll intention is to test -unroll-runtime-multi-exit=false, so the default value of -unroll-runtime-other-exit-predictable should not impact the result. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D98098
-
Whitney Tsang authored
predictable. (Add LIT) Reviewed By: Meinersbur, bmahjour Differential Revision: https://reviews.llvm.org/D97747
-
Martin Storsjö authored
Also clarify a nearby comment regarding block devices. Differential Revision: https://reviews.llvm.org/D98138
-