- Mar 10, 2023
-
-
Ben Shi authored
RISCV has "vfabs.v" and "vfsqrt.v" so math functions abs and sqrt can be SLP vectorized. But others exp/log/sin/asin/sinh/asinh/... can not. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D145562
-
Renaud-K authored
-
Emilio Cota authored
While at it, add a dep that we missed in https://reviews.llvm.org/D145638. Reviewed By: kuhar, dcaballe Differential Revision: https://reviews.llvm.org/D145731
-
Jason Molenda authored
When ObjectFileMachO::LoadCoreFileImages load a binary into the target with a valid load address, we don't need to re-load its segments into the Target's SectionLoadList again. But we should still call ModulesDidLoad on these modules so breakpoints can be inserted etc.
-
Bruno Cardoso Lopes authored
Fix https://github.com/llvm/llvm-project/issues/56532 Effectively, this reverts behavior introduced in https://reviews.llvm.org/D117087, which did two things: 1. Change delayed to early conversion of return object. 2. Introduced RVO possibilities because of early conversion. This patches fixes (1) and removes (2). I already worked on a follow up for (2) in a separated patch. I believe it's important to split these two because if the RVO causes any problems we can explore reverting (2) while maintaining (1). Notes on some testcase changes: - `pr59221.cpp` changed to `-O1` so we can check that the front-end honors the value checked for. Sounds like `-O3` without RVO is more likely to work with LLVM optimizations... - Comment out delete members `coroutine-no-move-ctor.cpp` since behavior now requires copies again. Differential Revision: https://reviews.llvm.org/D145639
-
Christopher Ferris authored
On Android, the _COARSE version of clock_gettime is about twice as fast. Therefore, add a getMonotonicTimeFast function that is used in the releaseToOSMaybe functions. Reviewed By: Chia-hungDuan Differential Revision: https://reviews.llvm.org/D145636
-
bzcheeseman authored
Testing the COFFPlatform on MSVC, a name shadowing issue surfaced where `LoadDynLibrary` inside the constructor was actually using the moved-from function argument. This patch simply renames the argument to avoid that shadowing. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D145710
-
Aart Bik authored
DO NOT SUBMIT YET, test exposes bug Reviewed By: Peiming Differential Revision: https://reviews.llvm.org/D145708
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145621
-
Leonard Chan authored
asan+lsan We should follow suite with how asan handles this now that lsan also works with hwasan. Differential Revision: https://reviews.llvm.org/D145613
-
Nikolas Klauser authored
-
Nadeem, Usman authored
Thin and full LTO modes use different pre-link pipelines compared to regular compilation. This patch adds support for calling those pipelines. This patch closely mimics Clang's implementation with the exception that I changed the codegen option name from `PrepareForLTO` to `PrepareForFullLTO` to be more precise. With this patch: - Compilation for full LTO should be as we expect (except possibly missing optimizations enabled by module summaries which we do not produce yet). - thinLTO uses the correct prelink pipeline but will use the postlink backend for fullLTO due to missing metadata and summary in the llvm module. I have added a warning regarding this: `flang-new: warning: the option '-flto=thin' is a work in progress`. Differential Revision: https://reviews.llvm.org/D142420 Change-Id: I6b94b775b5b8e93340e520c5cd4bf60834b2e209
-
Jez Ng authored
It's helpful Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D145541
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145728
-
Arthur Eubanks authored
As requested in D145413. Reviewed By: aaron.ballman Differential Revision: https://reviews.llvm.org/D145714
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145723
-
Joshua Batista authored
Add codegen for llvm exp/exp2 elementwise builtin The exp/exp2 elementwise builtins are necessary for HLSL codegen. Tests were added to make sure that the expected errors are encountered when these functions are given inputs of incompatible types. The new builtins are restricted to floating point types only. Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D145270
-
Jakub Kuderski authored
Post-commit fix for https://reviews.llvm.org/D145638.
-
Jakub Kuderski authored
This pattern is not specific to nvgpu; I intend to use in SPIR-V codegen. `VectorTransforms` seems like a more generally useful place. In addition: - Fix a bug in the second condition (the dimensions were swapped for RHS). - Add tests. - Add support for externally provided filter functions, similar to other vector transforms. - Prefer to transpose before zero/sign-extending inputs. Reviewed By: ThomasRaoux Differential Revision: https://reviews.llvm.org/D145638
-
Snehasish Kumar authored
The memprof profiles and binaries need to be updated in case of version updates. This change adds three scripts for llvm-profdata, clang and llvm tests where memprof profiles are used as inputs. Also update the tests, profiles and binaries in this change. Change based on the review suggestions in D145023. Reviewed By: tejohnson Differential Revision: https://reviews.llvm.org/D145644
-
Jonas Devlieghere authored
Disable the test as Windows (or at least the bot) doesn't have 'strip': 'strip' is not recognized as an internal or external command
-
Jennifer Yu authored
This reverts commit 8cf85a0c. This is add back change of "Add map info for dereference pointer." In addition turn off test run on amdgpu, since I don't know the way to reprodue the problem.
-
Fehr Mathieu authored
Add functions to set the verifier, printer, and parser of dynamic attributes definitions, and dynamic type definitions. This feature was already implemented for dynamic operations, but is missing for attributes and types. This is necessary to define attributes and types verifiers that refer to each others in a cyclic way. Differential Revision: https://reviews.llvm.org/D144690
-
Michael Jones authored
Reviewed By: lntue Differential Revision: https://reviews.llvm.org/D145633
-
Jonas Devlieghere authored
Add the same nullptr check to SymbolVendorWasm that was added to SymbolVendorELF.
-
Jonas Devlieghere authored
The Mach-O file format uses 32-bit values to encodes offsets which they cannot exceed UIN32_MAX (4GB). The Mach-O file itself can be larger than 4GB as long as none of the offsets fall within this limit. For universal binaries, dsymutil determines if the offset is going to exceed the 4GB limit by computing the size of the header and adding it to the size of all the slices. This is incorrect because it computes the end offset of the final slice. For the purpose of the 4GB limit, only the starting offset matters. The size of the last slice is irrelevant as long as it itself is a valid Mach-O. rdar://104435018 Differential revision: https://reviews.llvm.org/D145637
-
Michal Paszkowski authored
This change fixes "Pass modifies its input and doesn't report it" error when running SPIRVPrepareFunctions pass with LLVM_ENABLE_EXPENSIVE_CHECKS enabled. Differential Revision: https://reviews.llvm.org/D145121
-
Zain Jaffal authored
Add checks to prevent decomposing constants bigger than 64. relates to https://github.com/llvm/llvm-project/issues/61127 Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D145677
-
Peiming Liu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D145532
-
Hanhan Wang authored
It also simplifies the implementation of the method. The map is not needed in the check. Reviewed By: chelini Differential Revision: https://reviews.llvm.org/D145522
-
Ed Maste authored
Reviewed by: ldionne, Mordante Differential Revision: https://reviews.llvm.org/D128084
-
Peter Klausler authored
The predicate used to determine whether the initial "dtv" argument to a user-defined derived type I/O procedure specified by a generic interface that is not in the derived type definition is wrong. The "dtv" argument must be passed via a descriptor whenever it is polymorphic. Differential Revision: https://reviews.llvm.org/D145255
-
Peter Klausler authored
In the calculation of derived type component byte sizes, ensure that CLASS(*) unlimited polymorphic components have space allocated for their addenda. Differential Revision: https://reviews.llvm.org/D145248
-
Luke Lau authored
Precommit test for D145155 Reviewed By: reames Differential Revision: https://reviews.llvm.org/D145697
-
Paul Robinson authored
We don't configure this way and don't intend to.
-
Alexey Lapshin authored
The result of DWARFFormValue::isFormClass depends on DWARF version in some cases. The current implementation takes DWARF version from the stored DWARFUnit. If there is no stored DWARFUnit then the current behavior is to assume DwarfVersion <= 3. This patch adds new function which has a DWARF version as a parameter so it is possible to check form class for various DWARF versions. Differential Revision: https://reviews.llvm.org/D145499
-
Aiden Grossman authored
Didn't fail locally for some reason with my gcc toolchain.
-
Erich Keane authored
GH58452 is a regression in the 16.0 release branch caused by both: b8a1b698 and 3a0309c5 This patch reverts both of those to make the 'valid' code stop diagnosing at the expense of crashes on invalid + unclear diagnostics. This patch also adds the tests from GH58452 to prevent any re-application from breaking this again. Revert "[clang] Improve diagnostics for expansion length mismatch" This reverts commit 3a0309c5. Revert "[clang] fix missing initialization of original number of expansions" This reverts commit b8a1b698. Differential Revision: https://reviews.llvm.org/D145605
-
Aiden Grossman authored
This refactoring will allow for this utility function to be used in other places in the codebase outside of the llvm-readobj tool. Reviewed By: jhenderson, rahmanl Differential Revision: https://reviews.llvm.org/D144783
-
Siva Chandra authored
Also, added riscv64 startup code for static linking which is used by the integration tests. Functions from the C standard threads library have been enabled. Reviewed By: mikhail.ramalho Differential Revision: https://reviews.llvm.org/D145670
-