- Oct 07, 2022
-
-
Mariusz Borsa authored
An application running with ASAN can fail during shadow memory allocation, with an error indicating a failure to map shadow memory region due to negative size parameter passed to mmap. It turns out that the mach_vm_region_recurse() call can return an address of a module which is beyond the range of the VM address space available to the iOS process, i.e. greater than the value returned by GetMaxVirtualAddress(). It leads the FindAvailableMemoryRange function to the an incorrect conclusion that it has found a suitable gap where the shadow memory can fit in, while the shadow memory cannot be really allocated in this case. The fix just takes the maximum VM address into account, causing the function to return 0, meaning that the VM gap to fit the requested size could not be found. rdar://66530705 Differential Revision: https://reviews.llvm.org/D134836
-
Jonas Devlieghere authored
The call to `set_target_properties` should use the target passed to `add_lldb_library` instead of a hard-coded value. Upstream `liblldb` is the only target for which this matters, but downstream we have LLDBRPC.framework which needs this as well.
-
Jessica Paquette authored
Similar to the specific matchers for constants. The intention here is to make it easier to write combines which check if a specific register is used more than once. e.g. matching patterns like: ``` (X + Y) == Y ``` Differential Revision: https://reviews.llvm.org/D135378
-
Peter Klausler authored
NAMELIST input processing in the runtime support library treats an end-of-file found while searching for the initial '&' character as an error condition, but it really should be distinguishable. Call SignalEnd() rather than SignalError(). Differential Revision: https://reviews.llvm.org/D135212
-
Peter Klausler authored
An ASSOCIATE or SELECT TYPE statement's selector whose "right-hand side" is the result of a reference to a function that returns a pointer must be usable as a valid target (but not as a pointer). Differential Revision: https://reviews.llvm.org/D135211
-
Peter Klausler authored
When an I/O statement's UNIT= specifier is a variable that is a function reference, parse tree rewriting may determine the wrong type of the result because generic resolution has not yet been performed. So move this bit of parse tree rewriting into I/O semantic checking so that the right handling (integer -> external file unit number, character pointer -> internal I/O) applies. Differential Revision: https://reviews.llvm.org/D135210
-
Peter Klausler authored
Fortran strangely allows declarations to appear in procedure interface definitions when those declarations do not contribute anything to the characteristics of the procedure; in particular, one may declare local variables that are neither dummy variables nor function results. Such declarations "have no effect" on the semantics of the program, and that should include semantic error checking for things like special restrictions on PURE procedures. Differential Revision: https://reviews.llvm.org/D135209
-
Alex Brachet authored
Differential Revision: https://reviews.llvm.org/D135340
-
Peter Klausler authored
When a generic interface in a module shadows a procedure of the same name that has been brought into scope via USE association, ensure that that USE association is not lost when the module file is written. Differential Revision: https://reviews.llvm.org/D135207
-
Peter Klausler authored
f18 emits an error message when the same name is used in a scope for both a procedure and a generic interface, and the procedure is not a specific procedure of the generic interface. It may be questionable usage, and not portable, but it does not appear to be non-conforming by a strict reading of the standard, and many popular Fortran compilers accept it. Differential Revision: https://reviews.llvm.org/D135205
-
Peter Klausler authored
The implementation of the folding code for SET_EXPONENT() was written in such a fashion as to convert the I= actual argument value to a 32-bit integer. Which is usually not a problem, but it's not always correct and a test case ran into trouble with it. Fix to allow any kind of INTEGER without conversion. Differential Revision: https://reviews.llvm.org/D135203
-
Joao Moreira authored
Clang may optimize conditional tailcall blocks with the following layout: cmp <condition> je tailcall_target ret When retpoline is in place, indirect calls are converted into direct calls to a retpoline thunk. When these indirect calls are tail calls, they may be subject to the above described optimization (there is no indirect JCC, but since now the jump is direct it can be made conditional). The above layout is non-ideal for the Linux kernel scenario because the branches into thunks may be patched back into indirect branches during runtime depending on the underlying CPU features, what would not be feasible if the binary is emitted with the optimized layout above. Thus, prevent clang from emitting this it if CodeModel is Kernel. Feature request from the respective kernel mailing list: https://lore.kernel.org/llvm/Yv3uI%2FMoJVctmBCh@worktop.programming.kicks-ass.net/ Reviewed By: nickdesaulniers, pengfei Differential Revision: https://reviews.llvm.org/D134915
-
Craig Topper authored
-
Bill Wendling authored
-
Bjorn Pettersson authored
The limitation in LibCallSimplifier::optimizeStringLength to only optimize when the string is an i8 array was changed already in commit 50ec0b5d back in 2017. We still only simplify when 's' points at an array of 'CharSize', so the comment is still valid in the sense that we do not support arbitrary array types. Differential Revision: https://reviews.llvm.org/D135261
-
Craig Topper authored
Some tests had scalable vector intrinsic names with fixed vector types. Some had types in the wrong order. Remove scalable vector test from fixed vector files. Also replace insert+shuffle constexprs with fixed constant vectors.
-
Son Tuan Vu authored
This patch introduces support for default values of list of CL options. It fixes the issue in https://github.com/llvm/llvm-project/issues/52667 Reviewed By: bkramer Differential Revision: https://reviews.llvm.org/D135311
-
Bill Wendling authored
Use enums for the strict flex arrays flag so that it's more readable. Differential Revision: https://reviews.llvm.org/D135107
-
Arthur Eubanks authored
This reverts commit cd8f3e75. Causes miscompiles, see D132657
-
Aaron Ballman authored
-
Florian Hahn authored
-
Sanjay Patel authored
(X * Y) s/ (X << Z) --> Y s/ (1 << Z) https://alive2.llvm.org/ce/z/yRSddG issue #58137
-
Sanjay Patel authored
issue #58137
-
Ben Langmuir authored
Make the empty headers used by cl-pch-showincludes.cpp unique so that filesystems that link these files together by contents will not see different behaviour in this test, which is not testing linked files specifically. This was uncovered by 5ea78c41 which made us stop mutating the name of the presumed loc for the file in ContentCache, but that just surfaced an underlying issue that the filename of multiple includes of linked files are not separately tracked. Differential Revision: https://reviews.llvm.org/D135373
-
Florian Hahn authored
-
Gulfem Savrun Yeniceri authored
This patch adds support of printing profile version into llvm-profdata which was proposed in: https://discourse.llvm.org/t/llvm-profdata-failure-guarantees-for-code-coverage/64924 Differential Revision: https://reviews.llvm.org/D135317
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D135182
-
Erich Keane authored
isFileContext is exactly equal to these two, so simplify the function.
-
Ivan Tetyushkin authored
Optimization for using compressed beqz and bnez If there is pattern ``` br_cc val1 constval eq/neq place select_cc val1 constval eq/neq trueval falseval ``` and constval does not fit in compressed imm format(6 bit), but fit in imm format(12 bit), we can replace by non compress sub and compress c.beqz/c.bneqz: ``` addi val val -constval c.beqz val place ``` Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D132839
-
Shubham Sandeep Rastogi authored
This reverts commit 00089904.
-
Ellis Hoag authored
There can be lots of `MDTuple` debug metadata nodes. For example, `globals: !{!1, !2}` in `!DICompileUnit()`. Search through all debug info to find `MDTuple`'s and remove some of their elements. For D135114 I was able to get a reproducer with 364 lines without manually deleting elements. After this patch I got it down to 67 lines. Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D135237 -
Shubham Sandeep Rastogi authored
Differential Revision: https://reviews.llvm.org/D134817
-
Florian Hahn authored
Extend more general matching used for chains of ORs to also support chains of ANDs.
-
Valentin Clement authored
Update the `fir.dispatch` operation to prepare the lowering part. `nopass` and `pass_arg_pos` attributes are added in the arguments list so accessors are generated by MLIR tablegen. A verifier is added as well as some tests. This patch is part of the implementation of the poltymorphic entities. https://github.com/llvm/llvm-project/blob/main/flang/docs/PolymorphicEntities.md Reviewed By: jeanPerier, PeteSteinfeld Differential Revision: https://reviews.llvm.org/D135358
-
Petr Hosek authored
This module is used to find the system zstd library. The imported targets intentionally use the same name as the generate zstd config CMake file so these can be used interchangeably. Differential Revision: https://reviews.llvm.org/D134990
-
LLVM GN Syncbot authored
-
- Oct 06, 2022
-
-
Sam McCall authored
-
Tyker authored
Prior to this patch FixedPointSemantics and APFixedPoint only support semantics where the Scale larger or equal to zero and the Width is larger or equal to the Scale. This patch removes both those requirements while staying API compatible.
-
Peter Steinfeld authored
Rather than crashing in llvm code, nip things in the bud. Differential Revision: https://reviews.llvm.org/D135321
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D135077
-