This project is mirrored from https://github.com/llvm-doe-org/llvm-project.git.
Pull mirroring updated .
- 24 Jan, 2020 40 commits
-
-
Austin Kerbow authored
Summary: Enable the new diveregence analysis by default for AMDGPU. Resubmit with test updates since GPUDA was causing failures on Windows. Reviewers: rampitec, nhaehnle, arsenm, thakis Subscribers: kzhuravl, jvesely, wdng, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73315
-
Yuta Saito authored
This adds basic support for the Swift calling convention with WebAssembly targets. Reviewed By: dschuff Differential Revision: https://reviews.llvm.org/D71823
-
Austin Kerbow authored
Summary: Fixes crash that could occur when a divergent terminator has an unreachable parent. Reviewers: rampitec, nhaehnle, arsenm Subscribers: jvesely, wdng, hiraditya, jfb, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73323
-
David Zarzycki authored
Summary: The libcxx test suite auto-detects spaceship operator, but __config does not. This means that the libcxx test suite has been broken for over a month when using top-of-tree clang. This also really ought to be fixed before 10.0. See: bc633a42 Reviewers: chandlerc, mclow.lists, EricWF, ldionne, CaseyCarter Reviewed By: EricWF Subscribers: broadwaylamb, hans, dexonsmith, tstellar, llvm-commits, libcxx-commits Tags: #libc, #llvm Differential Revision: https://reviews.llvm.org/D72980
-
Simon Pilgrim authored
-
Alina Sbirlea authored
-
Andy Kaylor authored
Patch by Chris Chrulski This fixes a problem with the current behavior when assertions are enabled. A loop that exits to a catchswitch instruction is skipped for the counter promotion, however this check was being done after the PGOCounterPromoter tried to collect an insertion point for the exit block. A call to getFirstInsertionPt() on a block that begins with a catchswitch instruction triggers an assertion. This change performs a check whether the counter promotion is possible prior to collecting the ExitBlocks and InsertPts. Differential Revision: https://reviews.llvm.org/D73222
-
Fangrui Song authored
Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D73301
-
David Zarzycki authored
Reviewers: lebedev.ri Reviewed By: lebedev.ri Subscribers: cfe-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D73363
-
David Green authored
The codegen for splitting a llvm.vector.reduction intrinsic into parts will be better than the codegen for the generic reductions. This will only directly effect when vectorization factors are specified by the user. Also added tests to make sure the codegen for larger reductions is OK. Differential Revision: https://reviews.llvm.org/D72257
-
Fangrui Song authored
Reviewed By: Bdragon28, jhenderson, grimar, sfertile Differential Revision: https://reviews.llvm.org/D73255
-
Kazushi (Jam) Marukawa authored
Summary: Asm expr fixups, isel patterns and tests for global variables addresses. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D73355
-
Tom Weaver authored
Previously LiveDebugValues pass would consider meta instructions that 'fiddle' with liveness of registers as register definitions when transfering register defs. This would mean that, for example, a KILL instruction would cause LiveDebugValues to terminate the range of an earlier DBG_VALUE instruction resulting in the none propogation of said DBG_VALUE instructions into later blocks. This patch adds the check and a helpful comment, fixes a test that previously tested for the broken behaviour by coincidence and adds a test specifically for this. reviewers: vsk, dstenb, djtodoro Differential Revision: https://reviews.llvm.org/D73210
-
Artem Dergachev authored
Differential Revision: https://reviews.llvm.org/D37963
-
Artem Dergachev authored
Differential Revision: https://reviews.llvm.org/D37812
-
-
Artem Dergachev authored
Differential Revision: https://reviews.llvm.org/D37807
-
Artem Dergachev authored
Differential Revision: https://reviews.llvm.org/D37806
-
Simon Pilgrim authored
Moves lowerShuffleWithSHUFPS commutation code from rG30fcd29f to catch cases during combine
-
Roman Lebedev authored
clang-armv7-linux-build-cache bot is complaining about undefined references to these variables during linking, so by explicitly placing them in some TU we should be able to fix that.
-
Sergey Dmitriev authored
Reviewers: jhenderson, MaskRay, alexshap, rupprecht, mstorsjo Reviewed By: jhenderson Subscribers: abrachet, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73107
-
Sam McCall authored
-
Sam McCall authored
Summary: This reflects its current function better and avoids confusion with clang::DiagnosticConsumer. The old name/constructor is left around temporarily for compatibility. (Metagame: merging with out-of-tree changes is harder than usual this month) Reviewers: hokein Subscribers: ilya-biryukov, javed.absar, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73346
-
Roman Lebedev authored
There is llvm::Value::MaximumAlignment, which is numerically equivalent to these constants, but we can't use it directly because we can't include llvm IR headers in clang Sema. So instead, copy-paste the constant, and fixup the places to use it. This was initially reviewed in https://reviews.llvm.org/D72998
-
Kazushi (Jam) Marukawa authored
Summary: Aligned load/store isel patterns and tests for i1/i8/16/32/64 (including extension and truncation) and fp32/64. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D73276
-
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 for selecting a matching format to match a numeric value against (ie. decimal, hex lower case letters or hex upper case letters). This commit allows to select what format a numeric value should be matched against. The following formats are supported: decimal value, lower case hex value and upper case hex value. Matching formats impact both the format of numeric value to be matched as well as the format of accepted numbers in a definition with empty numeric expression constraint. Default for absence of format is decimal value unless the numeric expression constraint is non null and use a variable in which case the format is the one used to define that variable. Conclict of format in case of several variable being used is diagnosed and forces the user to select a matching format explicitely. This commit also enables immediates in numeric expressions to be in any radix known to StringRef's GetAsInteger method, except for legacy numeric expressions (ie [[@LINE+<offset>]] which only support decimal immediates. 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: daltenty, MaskRay, hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, kristina, hfinkel, rogfer01, JonChesterfield Tags: #llvm Differential Revision: https://reviews.llvm.org/D60389
-
Roman Lebedev authored
Summary: For `__builtin_assume_aligned()`, we do validate that the alignment is not greater than `536870912` (D68824), but we don't do that for `__attribute__((assume_aligned(N)))` attribute. I suspect we should. This was initially committed in a4cfb15d but reverted in 210f0882 due to suspicious bot failures. Reviewers: erichkeane, aaron.ballman, hfinkel, rsmith, jdoerfert Reviewed By: erichkeane Subscribers: cfe-commits, llvm-commits Tags: #llvm, #clang Differential Revision: https://reviews.llvm.org/D72994
-
Victor Huang authored
Future CPU will include support for prefixed instructions. These prefixed instructions are formed by a 4 byte prefix immediately followed by a 4 byte instruction effectively making an 8 byte instruction. The new instruction paddi is a prefixed form of addi. This patch adds paddi and all of the support required for that instruction. The majority of the patch deals with supporting the new prefixed instructions. The addition of paddi is mainly to allow for testing. Differential Revision: https://reviews.llvm.org/D72569
-
Raphael Isemann authored
-
Kadir Cetinkaya authored
Summary: Currently 🡺 is used in hover response to represent return types, but it is not widely available. Changing this back to original to support more clients. Reviewers: sammccall Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73336
-
Simon Pilgrim authored
-
Simon Pilgrim authored
As mentioned on D73023.
-
Guillaume Chatelet authored
Summary: This is a follow up on https://reviews.llvm.org/D71473#inline-647262. There's a caveat here that `Align(1)` relies on the compiler understanding of `Log2_64` implementation to produce good code. One could use `Align()` as a replacement but I believe it is less clear that the alignment is one in that case. Reviewers: xbolva00, courbet, bollu Subscribers: arsenm, dylanmckay, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, jrtc27, atanasyan, jsji, Jim, kerbowa, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73099
-
Clement Courbet authored
Summary: What we're redoing already exists in the X86 backend, it's called `X86II::getOperandBias`. Reviewers: gchatelet Subscribers: tschuett, mstojanovic, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D73340
-
Roman Lebedev authored
[Sema] Try 2: Attempt to perform call-size-specific `__attribute__((alloc_align(param_idx)))` validation Summary: `alloc_align` attribute takes parameter number, not the alignment itself, so given **just** the attribute/function declaration we can't do any sanity checking for said alignment. However, at call site, given the actual `Expr` that is passed into that parameter, we //might// be able to evaluate said `Expr` as Integer Constant Expression, and perform the sanity checks. But since there is no requirement for that argument to be an immediate, we may fail, and that's okay. However if we did evaluate, we should enforce the same constraints as with `__builtin_assume_aligned()`/`__attribute__((assume_aligned(imm)))`: said alignment is a power of two, and is not greater than our magic threshold This was initially committed in c2a9061a but reverted in 00756b18 because of suspicious bot failures. Reviewers: erichkeane, aaron.ballman, hfinkel, rsmith, jdoerfert Reviewed By: erichkeane Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D72996
-
Georgii Rymar authored
We have a test/Object/no-section-header-string-table.test which checks what happens when an object does not have a section header string table. It does not check the full output though. Currently our output is different from GNU readelf, because the latter prints "<no-strings>" instead of a section name, while we print nothing. This patch fixes this, adds a proper test case and removes the one from test/Object, as it is not a right folder for llvm-readelf tests. Differential revision: https://reviews.llvm.org/D73193
-
Sam McCall authored
Summary: It simply shows the completed/total items on the background queue, e.g. indexing: 233/1000 The denominator is reset to zero every time the queue goes idle. The protocol is fairly complicated here (requires creating a remote "progress" resource before sending updates). We implement the full protocol, but I've added an extension allowing it to be skipped to reduce the burden on clients - in particular the lit test takes this shortcut. The addition of background index progress to DiagnosticConsumer seems ridiculous at first glance, but I believe that interface is trending in the direction of "ClangdServer callbacks" anyway. It's due for a rename, but otherwise actually fits. Reviewers: kadircet, usaxena95 Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, jfb, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73218
-
Simon Pilgrim authored
As mentioned on D73023, lowerShuffleWithSHUFPS should be able to commute the shufps inputs to fold the second arg as it will then permute the shufps result anyway.
-
Pavel Labath authored
This was needed when asking a compile unit for its dwo component triggered a infinite recursion if the dwo unit has not been already parsed. This has since been fixed.
-
Pavel Labath authored
The test was printing a char[3] variable without a terminating nul. The memory after that variable (an unnamed bitfield) was not initialized. If the memory happened to be nonzero, the summary provider for the variable would run off into the next field. This is probably not the right behavior (it should stop at the end of the array), but this is not the purpose of this test. I have filed pr44649 for this bug, and fixed the test to not depend on this behavior.
-