- May 28, 2020
-
-
Sam McCall authored
Summary: D76801 caused some regressions in debuginfo compatibility by changing how certain functions were named. For CodeView we try to mirror MSVC exactly: this was fixed in a549c0d0 For DWARF the situation is murkier. Per David Blaikie: > In general DWARF doesn't specify this at all. > [...] > This isn't the only naming divergence between GCC and Clang Nevertheless, including the space seems to provide better compatibility with GCC and GDB. E.g. cpexprs.cc in the GDB testsuite requires this formatting. And there was no particular desire to change the printing of names in debug info in the first place (just in diagnostics and other more user-facing text). Fixes PR46052 Reviewers: dblaikie, labath Subscribers: aprantl, cfe-commits, dyung Tags: #clang Differential Revision: https://reviews.llvm.org/D80554
-
Florian Hahn authored
-
Alok Kumar Sharma authored
There were some bot failures due unused funtion `rotateSign` left in code. http://lab.llvm.org:8011/builders/clang-ppc64le-rhel/builds/3731 error: unused function 'rotateSign' [-Werror,-Wunused-function] static uint64_t rotateSign(int64_t I)
-
Cullen Rhodes authored
Summary: This patch enables the register allocator to spill/fill lists of 2, 3 and 4 SVE vectors registers to/from the stack. This is implemented with pseudo instructions that get expanded to individual LDR_ZXI/STR_ZXI instructions in AArch64ExpandPseudoInsts. Patch by Sander de Smalen. Reviewed By: efriedma Differential Revision: https://reviews.llvm.org/D75988
-
Victor Campos authored
Summary: Instead of generating two i32 instructions for each load or store of a volatile i64 value (two LDRs or STRs), now emit LDRD/STRD. These improvements cover architectures implementing ARMv5TE or Thumb-2. The code generation explicitly deviates from using the register-offset variant of LDRD/STRD. In this variant, the register allocated to the register-offset cannot be reused in any of the remaining operands. Such restriction seems to be non-trivial to implement in LLVM, thus it is left as a to-do. Differential Revision: https://reviews.llvm.org/D70072
-
Thomas Preud'homme authored
Summary: This patch is part of a patch series to add support for FileCheck numeric expressions. This specific patch adds support signed numeric values, thus allowing negative numeric values. As such, the patch adds a new class to represent a signed or unsigned value and add the logic for type promotion and type conversion in numeric expression mixing signed and unsigned values. It also adds the %d format specifier to represent signed value. Finally, it also adds underflow and overflow detection when performing a binary operation. Copyright: - Linaro (changes up to diff 183612 of revision D55940) - GraphCore (changes in later versions of revision D55940 and in new revision created off D55940) Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson Reviewed By: jhenderson, arichardson Subscribers: MaskRay, hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, kristina, hfinkel, rogfer01, JonChesterfield Tags: #llvm Differential Revision: https://reviews.llvm.org/D60390 -
Cullen Rhodes authored
Summary: TableGen interprets braces ('{}') in the asm string of instruction aliases as variants but when defining aliases with literal braces they have to be escaped to prevent them being removed. Braces are escaped with '\\', for example: def FooBraces : InstAlias<"foo \\{$imm\\}", (foo IntOperand:$imm)>; Although when TableGen is emitting the assembly writer (-gen-asm-writer) the AsmString that gets emitted is: AsmString = "foo \{$\x01\}"; In c/c++ braces don't need to be escaped which causes compilation warnings: warning: use of non-standard escape character '\{' [-Wpedantic] This patch fixes the issue by unescaping the flattened alias asm string in the asm writer, by replacing '\{\}' with '{}'. Reviewed By: hfinkel Differential Revision: https://reviews.llvm.org/D79991 -
Marco Elver authored
Summary: Versions of LLVM built on {arm,thumb}v7 appear to have differently configured pass managers, which causes restrictions on which sanitizers we may use. As such, expect failure of the recently added "sanitize-coverage.c" test on these architectures until we can investigate armv7's restrictions. Bugzilla: https://bugs.llvm.org/show_bug.cgi?id=46117 Reviewers: vitalybuka, glider Reviewed By: glider Subscribers: glider, kristof.beyls, danielkiss, cfe-commits, vvereschaka Tags: #clang Differential Revision: https://reviews.llvm.org/D80668 -
Dmitry Vyukov authored
pthread_barrier_t is not supported on darwin. Do what other tests that use pthread_barrier_t do.
-
Sander de Smalen authored
This patch contains changes to the description of EXTRACT_SUBVECTOR, INSERT_SUBVECTOR, INSERT_VECTOR_ELT, EXTRACT_VECTOR_ELT and CONCAT_VECTORS to specify their behaviour for scalable vectors. For EXTRACT_SUBVECTOR it specifies that the IDX is scaled by the same runtime scaling as the extracted (or inserted) vector. This definition is the most natural extension to EXTRACT_SUBVECTOR for scalable vectors, as most use-cases that work on fixed-width types will have the same meaning for scalable types. For legalization for example, it is common to split the vector operation to operate on the LO and HI halfs of a vector. For a fixed width vector <16 x i8> this would be expressed with: v16i8 %res = EXTRACT_SUBVECTOR v32i8 %v, i32 16 For a scalable vector, this would similarly be expressed as: nxv16i8 %res = EXTRACT_SUBVECTOR nxv32i8 %V, i32 16 By extending the meaning of IDX for scalable vectors, most existing optimisations on EXTRACT/INSERT_SUBVECTOR work for scalable vectors without any changes. This definition also allows extracting a fixed-width subvector from a scalable vector, which is useful to e.g. extract the low N lanes of a scalable vector. This patch is not NFC because it sets the meaning of these nodes for scalable vectors, which future patches will build upon. Reviewers: efriedma, ctetreau, rogfer01, craig.topper Reviewed By: efriedma Tags: #llvm Differential Revision: https://reviews.llvm.org/D79806
-
Alok Kumar Sharma authored
This patch upgrades DISubrange to support fortran requirements. Summary: Below are the updates/addition of fields. lowerBound - Now accepts signed integer or DIVariable or DIExpression, earlier it accepted only signed integer. upperBound - This field is now added and accepts signed interger or DIVariable or DIExpression. stride - This field is now added and accepts signed interger or DIVariable or DIExpression. This is required to describe bounds of array which are known at runtime. Testing: unit test cases added (hand-written) check clang check llvm check debug-info Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D80197
-
Mehdi Amini authored
This changes will catch error where C++ op are used without being registered, either through creation with the OpBuilder or when trying to cast to the C++ op. Differential Revision: https://reviews.llvm.org/D80651
-
LLVM GN Syncbot authored
-
Kazushi (Jam) Marukawa authored
Summary: Define ELF binary code for VE and modify code where should use this new code. Depends on D79544. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D79545
-
Sjoerd Meijer authored
The HardwareLoop intrinsics were missing and not described in LangRef. This adds these descriptions/definitions. Differential Revision: https://reviews.llvm.org/D80316
-
Balázs Kéri authored
Summary: According to the standard, after a `wread` or `fwrite` call the file position becomes "indeterminate". It is assumable that a next read or write causes undefined behavior, so a (fatal error) warning is added for this case. The indeterminate position can be cleared by some operations, for example `fseek` or `freopen`, not with `clearerr`. Reviewers: Szelethus, baloghadamsoftware, martong, NoQ, xazax.hun, dcoughlin Reviewed By: Szelethus Subscribers: rnkovacs, NoQ, xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gamesh411, Charusso, martong, ASDenysPetrov, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D80018
-
Kazu Hirata authored
Summary: This patch replaces push_back with emplace_back where appropriate. Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80688
-
Shengchen Kan authored
Summary: Before this patch, we use two different ways to pass options to align branch depending on whether LTO is enabled. For example, `-mbranches-within-32B-boundaries` w/o LTO and `-Wl,-plugin-opt=-x86-branches-within-32B-boundaries` w/ LTO. It's inconvenient, so this patch unifies the way: we only need to pass options like `-mbranches-within-32B-boundaries` to align branches, no matter LTO is enabled or not. Differential Revision: https://reviews.llvm.org/D80289
-
Sourabh Singh Tomar authored
Updated the release notes for the changes in the DIModule metadata. Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D80614
-
Jonas Devlieghere authored
Fixes "NameError: name 'skipIfReproducer' is not defined".
-
Jonas Devlieghere authored
After this patch all remaining tests should pass on macOS when replayed from a reproducer. To capture the reproducers: ./bin/llvm-lit ../llvm-project/lldb/test/ --param lldb-run-with-repro=capture To replay the reproducers: ./bin/llvm-lit ../llvm-project/lldb/test/ --param lldb-run-with-repro=replay
-
Vitaly Buka authored
-
LLVM GN Syncbot authored
-
Jan Korous authored
Differential Revision: https://reviews.llvm.org/D77178
-
Dan Liew authored
AddressSanitizer-Unit :: ./Asan-i386-calls-Test/AddressSanitizer.LongJmpTest AddressSanitizer-Unit :: ./Asan-i386-calls-Test/AddressSanitizer.SigLongJmpTest AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.LongJmpTest AddressSanitizer-Unit :: ./Asan-i386-inline-Test/AddressSanitizer.SigLongJmpTest These failures will be examined properly when time permits. rdar://problem/62141412
-
Philip Reames authored
Can't quite fully remove it yet as some more items need sunk the GCStatepointInst class from the wrapper, but we can at least reduce scope.
-
Xing GUO authored
Currently, `yaml2macho` doesn't support error handling. This patch helps improve it. Differential Revision: https://reviews.llvm.org/D80535
-
Philip Reames authored
Now that all of the statepoint related routines have classes with isa support, let's cleanup. I'm leaving the (dead) utitilities in tree for a few days so that I can do the same cleanup downstream without breakage.
-
Philip Reames authored
Starting with the obvious stuff. I initially tried to include the inline operand sequences too, but managed to get code which confused *me*. Since several parts of those are being entirely removed in the near future, I may defer that portion until the cleanup is done.
-
Vitaly Buka authored
-
Fangrui Song authored
Give %t3.so a DT_SONAME so that the DT_NEEDED entry in a dependent executable has a fixed length.
-
Richard Smith authored
arr is a volatile non-local array. This fixes a recent regression exposed by removing lvalue-to-rvalue conversion of discarded volatile arrays. In passing, regularize the rules we use to determine whether '(void)expr;' warns when expr is a volatile glvalue.
-
Philip Reames authored
Back when we had CallSite, we implemented the current Statepoint/ImmutableStatepoint structure in analogous manner. Now that CallSite has been removed, the structure used for statepoints looks decidely out of place. gc.statepoint is one of the small handful of intrinsics which are invokable. Because of this, it can't subclass IntrinsicInst as is idiomatic. This change simply introduces the GCStatepointInst class, restructures the existing Statepoint/ImmutableStatepoint types to wrap it. I will be landing a series of changes to sink functionality into GCStatepointInst and updating callers to be more idiomatic.
-
Fangrui Song authored
-
Mircea Trofin authored
Follow-up from https://reviews.llvm.org/D79920
-
Fangrui Song authored
-
Rui Ueyama authored
In D34993, we discussed and concluded that we should drop `__real_ symbol from the symbol table, but I did the opposite in D50569. This patch is to drop `__real_` symbol. MaskRay's note: omitting `__real_` is important if it is undefined: otherwise a subsequent link may error due to the undefined `__real_` in .dynsym Differential Revision: https://reviews.llvm.org/D51283
-
Layton Kifer authored
Currently we can only eliminate call return pairs that either return the result of the call or a dynamic constant. This patch removes that limitation. Differential Revision: https://reviews.llvm.org/D79660
-
Stanislav Mekhanoshin authored
Differential Revision: https://reviews.llvm.org/D80653
-
Leonard Chan authored
Committing on behalf of nagart, who authored this patch. Differential Revision: https://reviews.llvm.org/D80412
-