- Jul 14, 2020
-
-
Kiran Chandramohan authored
This patch introduces lowering of the OpenMP parallel operation to LLVM IR using the OpenMPIRBuilder. Functions topologicalSort and connectPhiNodes are generalised so that they work with operations also. connectPhiNodes is also made static. Lowering works for a parallel region with multiple blocks. Clauses and arguments of the OpenMP operation are not handled. Reviewed By: rriddle, anchu-rajendran Differential Revision: https://reviews.llvm.org/D81660
-
Vedant Kumar authored
This should address the bot failure here: http://lab.llvm.org:8011/builders/sanitizer-windows/builds/66309/
-
Dokyung Song authored
Summary: Fixed an implicit definition warning by including <string.h>. Also fixed run-time assertions that the return value of strxfrm_l calls is less than the buffer size by increasing the size of the referenced buffer. Reviewers: morehouse Reviewed By: morehouse Subscribers: dberris, #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D83593
-
Gui Andrade authored
Currently, a transformation like pow(2.0, x) -> exp2(x) copies the pow attribute list verbatim and applies it to exp2. This works out fine when the attribute list is empty, but when it isn't clang may error due due to the mismatch. The source function and destination don't necessarily have anything to do with one another, attribute-wise. So it makes sense to remove the attribute lists (this is similar to what IPO does in this situation). This was discovered after implementing the `noundef` param attribute. Differential Revision: https://reviews.llvm.org/D82820
-
Vedant Kumar authored
This reverts commit 9649c209. See discussion on the llvm-commits thread: if it's OK to preserve the location when sinking a call, it's probably OK to always preserve the location.
-
Vedant Kumar authored
-
Jinsong Ji authored
This is exposed by https://reviews.llvm.org/D83486. When the host is UTF8, we may get n >10, causing assert failure. Increase the buffersize to support UTF-8 to C conversion. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D83719
-
Gui Andrade authored
Differential Revision: https://reviews.llvm.org/D83000
-
Vedant Kumar authored
Check that the implicit cast from `id` used to construct the element variable in an ObjC for-in statement is valid. This check is included as part of a new `objc-cast` sanitizer, outside of the main 'undefined' group, as (IIUC) the behavior it's checking for is not technically UB. The check can be extended to cover other kinds of invalid casts in ObjC. Partially addresses: rdar://12903059, rdar://9542496 Differential Revision: https://reviews.llvm.org/D71491
-
Benjamin Kramer authored
That's just asking for ODR violations. Also drop a call to lower() that's not needed.
-
Vedant Kumar authored
https://reviews.llvm.org/D78411 introduced test changes which relied on the ability to strip debugify metadata even if module-level metadata is missing. This introduces a more targeted test for that ability.
-
Quentin Colombet authored
Fix the requirements for that test. NFC
-
Nicolas Vasilache authored
Summary: The native alignment may generally not be used when lowering a vector.transfer to the underlying load/store operation. This revision fixes the unmasked load/store alignment to match that of the masked path. Differential Revision: https://reviews.llvm.org/D83684
-
Nikita Popov authored
This is intended to address a compile-time regression from 1eddce41. A SmallPtrSet was replaced with a SetVector there, which had an unexpected large compile-time impact. It turns out that this structure is getting swapped a lot, and previously this used an optimized std::swap() specialization for SmallPtrSet. Now it ends up using the default, triple-move based implementation, which is much more expensive. This patch (partly) addresses the issue by specializing std::swap() for SetVector. Differential Revision: https://reviews.llvm.org/D82230
-
Walter Erquinigo authored
Original commit c60216db. The test can only run on Darwin because of how it was setup, so I'm enforcing that. Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags:
-
Jonas Devlieghere authored
Nobody is writing to the stream so there's no point in passing it around.
-
Rahul Joshi authored
[MLIR] Change ODS collective params build method to provide an empty default value for named attributes - Provide default value for `ArrayRef<NamedAttribute> attributes` parameter of the collective params build method. - Change the `genSeparateArgParamBuilder` function to not generate build methods that may be ambiguous with the new collective params build method. - This change should help eliminate passing empty NamedAttribue ArrayRef when the collective params build method is used - Extend op-decl.td unit test to make sure the ambiguous build methods are not generated. Differential Revision: https://reviews.llvm.org/D83517
-
AlexisPerry authored
[flang] Extended the flang driver options to include gfortran equivalents to pgf90 specific options. Summary: Added gfortran equivalents of pgf90's -Mfixed, -Mfree, -Mextend, -Mstandard, -Munlimited and also added -fdefault-double-8 Reviewers: sscalpone, richard.barton.arm, DavidTruby, clementval, jdoerfert Reviewed By: sscalpone, richard.barton.arm Subscribers: sstefan1, llvm-commits, flang-commits Tags: #llvm, #flang Differential Revision: https://reviews.llvm.org/D83687
-
Thomas Raoux authored
Right now slicing would assert if an operation with multiple results is in the slice. Differential Revision: https://reviews.llvm.org/D83627
-
LLVM GN Syncbot authored
-
Lei Zhang authored
Per the Vulkan's SPIR-V environment spec, "for the OpSRem and OpSMod instructions, if either operand is negative the result is undefined." So we cannot directly use spv.SRem/spv.SMod if either operand can be negative. Emulate it via spv.UMod. Because the emulation uses spv.SNegate, this commit also defines spv.SNegate. Differential Revision: https://reviews.llvm.org/D83679
-
Davide Italiano authored
This reverts commit 83080a29 as it breaks the macOS modules build.
-
Adrian Prantl authored
This allows skipping a test when running the testsuite on macOS under the Rosetta translation layer. Differential Revision: https://reviews.llvm.org/D83600
-
Martin Storsjö authored
-
Lang Hames authored
-
Mircea Trofin authored
This is in preparation for the 'development' mode advisor. We currently want to track what the default policy's decision would have been, this refactoring makes it easier to do that.
-
Tim Keith authored
Character literals can be formatted using octal or hex escapes for non-ascii characters. This is so that the program can be unparsed for either pgf90 or gfortran to compile. But modfiles should not be affected by that -- they should be consistent. This changes causes modfiles to always have character literals formatted with octal escapes. Differential Revision: https://reviews.llvm.org/D83703
-
Nikita Popov authored
Place the ssa.copy instructions for assumes after the assume, instead of before it. Both options are valid, but placing them afterwards prevents assumes from being replaced with assume(true). This fixes https://bugs.llvm.org/show_bug.cgi?id=37541 in NewGVN and will avoid a similar issue in SCCP when we handle more predicate infos. Differential Revision: https://reviews.llvm.org/D83631
-
Nikita Popov authored
Result might not be exactly the same as under GVN, but all the desired transforms are made.
-
Nikita Popov authored
Add an -xfail.ll suffix to tests marked XFAIL, so these files can be split into passing and failing parts.
-
Lang Hames authored
Hopefully this will get the Windows bots building again.
-
Matt Arsenault authored
-
Matt Arsenault authored
-
Matt Arsenault authored
Add a placeholder legality rule for AMDGPU until the rest of the actions are handled.
-
Matt Arsenault authored
-
Sam McCall authored
-
Lei Zhang authored
Differential Revision: https://reviews.llvm.org/D83706
-
serge-sans-paille authored
Differential Revision: https://reviews.llvm.org/D83460
-
Arthur Eubanks authored
Fixes 53 check-llvm tests under NPM. Reviewed By: asbirlea Differential Revision: https://reviews.llvm.org/D83633
-
LLVM GN Syncbot authored
-