- Feb 21, 2020
-
-
Quentin Colombet authored
The type here isn't guaranteed to be a simple type. Fixes PR44976
-
Nico Weber authored
follow-up "libclang: Make shared object symbol exporting by default" This reverts commit 7a7c753b. This reverts commit 7ff1f55a. They broke building libclang.dll on Windows, see https://reviews.llvm.org/D74564
-
Nico Weber authored
This reverts commit ce70e289. It broke MC/AArch64/SVE2/bsl-diagnostics.s everywhere.
-
Sanjay Patel authored
-
Sourabh Singh Tomar authored
This reverts commit 3e109092 as per Paul Robinson's suggestion.
-
Francesco Petrogalli authored
The code at https://reviews.llvm.org/D74808 has broken builds that are configured with -DBUILD_SHARED_LIBS=On. This patch adds the correct library dependencies.
-
Richard Smith authored
We merged support for -std=c++20 to the Clang 10 branch, so -std=c++2a is only needed in Clang 9 and earlier.
-
Quentin Colombet authored
When analyzing PHIs, we gather the known bits for every operand and merge them together to get the known bits of the result of the PHI. It is not unusual that merging the information leads to know nothing on the result (e.g., phi a: i8 3, b: i8 unknown, ..., after looking at the second argument we know we will know nothing on the result), thus, as soon as we reach that state, stop analyzing the following operand (i.e., on the previous example, we won't process anything after looking at `b`). This improves compile time in particular with PHIs with a large number of operands. NFC.
-
Jan Korous authored
For tag typedefs like this one: /*! @class Foo */ typedef class { } Foo; clang -Wdocumentation gives: warning: '@class' command should not be used in a comment attached to a non-struct declaration [-Wdocumentation] ... while doxygen seems fine with it. Differential Revision: https://reviews.llvm.org/D74746 -
David Tenty authored
Summary: D51664 introduces a new structure BasicBlockBits which it expects to be packed a certain way. This change is very similar to D60164, and we apply the same fix: "On AIX, the canonical layout of bit-fields would cause these ... to span four bytes. Applying the pack pragma for compilers that employ the AIX canonical layout allows these ... to fit within the expected two bytes. In the future, the pragma would also likely need to be applied when building with Clang on AIX." Reviewers: jasonliu, hubert.reinterpretcast, sfertile, xingxue Reviewed By: sfertile Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74911
-
Cristian Adam authored
https://reviews.llvm.org/D74564 enabled static building for libclang, and for non CMake consumers they had to set the `CMAKE_EXPORTS` define when consuming libclang. This commit makes the non CMake users of the static building have to define `CMAKE_NO_EXPORTS`. Differential Revision: https://reviews.llvm.org/D74907
-
Jonathan Coe authored
Summary: Merge 'argumentName' and ':' into a single token in foo(argumentName: bar). Add C# named argument as a token type. Reviewers: krasimir, MyDeveloperDay Reviewed By: krasimir Tags: #clang-format Differential Revision: https://reviews.llvm.org/D74894
-
Simon Pilgrim authored
The not_avg_v16i8_wide_constants test shouldn't assume NSW/NUW for the addition of -1 - copy + paste typo from other avg tests
-
Lang Hames authored
Can be used to set a custom pre-configured ExecutionSession for the LLJIT or LLLazyJIT instance being constructed.
-
Lang Hames authored
-
Matthias Kramm authored
Summary: Fix minor typos in the tutorial and the "writing a pass" page. Differential Revision: https://reviews.llvm.org/D74905
-
Alex Brachet authored
Summary: This patch adds signal support on Linux. The current implementation gets the SIG* macros and types like `sigset_t` from <linux/signals.h> This patch also adds raise(3), and internal routines `block_all_signals` and `restore_signals` Reviewers: sivachandra, MaskRay, gchatelet Reviewed By: sivachandra Subscribers: libc-commits, mgorny, tschuett Differential Revision: https://reviews.llvm.org/D74528
-
Sanjay Patel authored
The motivating case is seen in "splat4_v8f32_load_store" and based on code in PR42024: https://bugs.llvm.org/show_bug.cgi?id=42024 (I haven't stepped through the v8i32 sibling test yet to see why that diverged.) There are other potential improvements visible like allowing scalarization or vector narrowing. Differential Revision: https://reviews.llvm.org/D74909
-
Sean Fertile authored
-
Francis Visoiu Mistrih authored
This reverts commit 726c342c. This breaks the windows bots with linker errors.
-
River Riddle authored
Summary: The current structure suffers from several problems, but the main one is that a construction failure is impossible to debug when using the 'get' methods. This is because we only optionally emit errors, so there is no context given to the user about the problem. This revision restructures this so that errors are always emitted, and the 'get' methods simply pass in an UnknownLoc to emit to. This allows for removing usages of the more constrained "emitOptionalLoc", as well as removing the need for the context parameter. Fixes [PR#44964](https://bugs.llvm.org/show_bug.cgi?id=44964) Differential Revision: https://reviews.llvm.org/D74876
-
Francis Visoiu Mistrih authored
This moves all the logic of converting LLVM Triples to MachO::CPU_(SUB_)TYPE from the specific target (Target)AsmBackend to more convenient functions in libObject. This also gets rid of the separate two X86AsmBackend classes. Differential Revision: https://reviews.llvm.org/D74808
-
Simon Pilgrim authored
-
Jordan Rupprecht authored
Summary: lldb's format string (line one) is: `lldb version $clang_version ($lldb_repo revision $lldb_revision)` When only using $lldb_revision and not $lldb_repo, this might look like: `lldb version 11 ( revision 12345)` which looks pretty ugly. Aside: I'm not sure we really need all the different versions since we've moved to the monorepo layout -- I don't think anyone is using different llvm/clang/lldb revisions, are they? We could likely tidy this up further if we knew how people consumed the output of lldb --version. Reviewers: labath, JDevlieghere, friss Subscribers: lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D74859
-
Muhammad Omair Javaid authored
Summary: Requesting registers one by one takes a while in our project. We want to get rid of it by using target.xml. Reviewers: jarin, labath, omjavaid Reviewed By: labath, omjavaid Subscribers: omjavaid, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D74217
-
Louis Dionne authored
For each absolute path given to C_INCLUDE_DIRS, we want it to be added as-is to the include search path. Relative paths should be prefixed with the sysroot. Thanks to Marco Hinz for the patch. Differential Revision: https://reviews.llvm.org/D69221
-
Craig Topper authored
-
Eugene Zelenko authored
Summary: Also use //check// in add_new_check.py for terminology consistency. PS My GitHub ID is [[ https://github.com/EugeneZelenko | EugeneZelenko ]], if it's necessary for attribution. Reviewers: alexfh, hokein, aaron.ballman, njames93, MyDeveloperDay Reviewed By: njames93 Subscribers: Andi, xazax.hun, cfe-commits Tags: #clang-tools-extra, #clang Differential Revision: https://reviews.llvm.org/D73580
-
Logan Smith authored
This prevents unintended ADL: https://gcc.godbolt.org/z/EHw3Gy This issue was mentioned as an addendum in PR44398. Differential Revision: https://reviews.llvm.org/D74289
-
Logan Smith authored
This patch qualifies calls to ref and cref inside ref(reference_wrapper<T>) and cref(reference_wrapper<T>), respectively. These previously unqualified calls could break in the presence of user functions called ref/cref inside associated namespaces: https://gcc.godbolt.org/z/8VfprT Fixes PR44398. Differential Revision: https://reviews.llvm.org/D74287
-
Craig Topper authored
There's a lot of old leftover code in LowerBRCOND. Especially the detecting or AND or OR of X86ISD::SETCC nodes. Those were needed before LegalizeDAG was changed to visit nodes before their operands. It also relied on reversing the output of LowerSETCC to find the flags producing node to use for the X86ISD::BRCOND node. Rather than using LowerSETCC this patch uses emitFlagsForSetcc to handle the integer ISD::SETCC case. This gives the flag producer and the comparison code to use directly. I've removed the addTest flag and just produce a X86ISD::BRCOND and return immediately. Floating point ISD::SETCC case is just an X86ISD::FCMP with special care for OEQ and UNE derived from the previous code. I've left f128 out so it will emit a test. And LowerSETCC will be called later to produce a libcall and X86ISD::SETCC. We have combines that can merge the test and X86ISD::SETCC. We need to handle two cases for overflow ops. Either they are used directly or they have a seteq 0 or setne 1 to invert the overflow. The old code did not handle the setne 1 case, but I think some other combines were making up for it. If we fail to find a condition, we'll wrap an AND with 1 on the original condition and tell emitFlagsForSetcc to emit a compare with 0. This will pickup the LowerAndToBT and or the EmitTest case. I kept the isTruncWithZeroHighBitsInput call, but we might be able to fold that in to emitFlagsForSetcc. Differential Revision: https://reviews.llvm.org/D74750
-
Craig Topper authored
Enables sharing with an upcoming X86 change.
-
Sanjay Patel authored
These correspond to patterns seen in PR42024: https://bugs.llvm.org/show_bug.cgi?id=42024
-
Danilo Carvalho Grael authored
Summary: Add intrinsics for the following operations: - eor3, bcax - bsl, bsl1n, bsl2n, nbsl Reviewers: kmclaughlin, c-rhodes, sdesmalen, efriedma, rengolin Reviewed By: efriedma Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D74785
-
Craig Topper authored
[X86] Add DAG combines to form CVTPH2PS/CVTPS2PH from vXf16->vXf32/vXf64 fp_extends and vXf32->vXf16 fp_round. Only handle power of 2 element count for simplicity. Not sure what to do with vXf64->vXf16 fp_round to avoid double rounding Differential Revision: https://reviews.llvm.org/D74886
-
Utkarsh Saxena authored
Summary: PutenvWithAutoChecker.cpp used to include "AllocationState.h" that is present in project root. This makes build systems like blaze unhappy. Made it include the header relative to source file. Reviewers: kadircet Subscribers: xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, Charusso, martong, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D74906
-
- Feb 20, 2020
-
-
Simon Pilgrim authored
Similar to what we already do with SimplifyDemandedVectorElts, call SimplifyDemandedBits across all the extracted elements of the source vector, treating it as single use. There's a minor regression in store-weird-sizes.ll which will be addressed in an upcoming SimplifyDemandedBits patch.
-
Hans Wennborg authored
See https://reviews.llvm.org/D74300#1884614
-
Sanjay Patel authored
For shuffles with memory operands, we generally don't want to hide the asm because we want to verify that the address offsets are as expected.
-
Sean Fertile authored
Extend lit test to show that we don't save or restore vrsave register when expanding @llvm.eh.unwind.init().
-