- Oct 13, 2021
-
-
Jacques Pienaar authored
This exposes creating a CallSiteLoc with a callee & list of frames for callers. Follows the creation approach in C++ side where a list of frames may be provided. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D111670
-
Valentin Clement authored
This reverts commit edec659f.
-
Matthias Springer authored
`DenseSet<Value>` works but `DenseSet<OpResult>` currently results in a compile error. Differential Revision: https://reviews.llvm.org/D111694
-
Heejin Ahn authored
This makes Wasm EH work with dynamic linking. So far we were only able to handle destructors, which do not use any tags or LSDA info. 1. This uses `TargetExternalSymbol` for `GCC_except_tableN` symbols, which points to the address of per-function LSDA info. It is more convenient to use than `MCSymbol` because it can take additional target flags. 2. When lowering `wasm_lsda` intrinsic, if PIC is enabled, make the symbol relative to `__memory_base` and generate the `add` node. If PIC is disabled, continue to use the absolute address. 3. Make tag symbols (`__cpp_exception` and `__c_longjmp`) undefined in the backend, because it is hard to make it work with dynamic linking's loading order. Instead, we make all tag symbols undefined in the LLVM backend and import it from JS. 4. Add support for undefined tags to the linker. Companion patches: - https://github.com/WebAssembly/binaryen/pull/4223 - https://github.com/emscripten-core/emscripten/pull/15266 Reviewed By: sbc100 Differential Revision: https://reviews.llvm.org/D111388
-
Michael Kruse authored
-
Lang Hames authored
Negative deltas for LDRLiteral19 have their high bits set. If these bits aren't masked out then they will overwrite other instruction bits, leading to a bogus encoding. This long-standing relocation bug was exposed by e50aea58, "[JITLink][ORC] Major JITLinkMemoryManager refactor.", which caused memory layouts to be reordered, which in turn lead to a previously unseen negative delta. (Unseen because LDRLiteral19s were only created in JITLink passes where they always pointed at segments that were layed-out-after in the old layout). No testcase yet: Our existing regression test infrastructure is good at checking that operand bits are correct, but provides no easy way to test for bad opcode bits. I'll have a think about the right way to approach this. https://llvm.org/PR52153
-
Michael Kruse authored
Instead of being inline and having a neverCalled() workaround to make it work in the debugger, define it as a regular exported function. Also add overloads for the C API types isl_* so it works with managed as well as unmanaged ISL objects.
-
Visa Hankala authored
The mips-specific includes have been unnecessary ever since the __clear_cache() builtin replaced cacheflush(). Differential Revision: https://reviews.llvm.org/D111486
-
Hsiangkai Wang authored
This reverts commit 97f0c637. As discussed in https://reviews.llvm.org/D110684, it increased the compile time and the binary size of clang more than 1%. I reverted this patch first to think about a better way to do it.
-
Stella Laurenzo authored
As discussed on discord, we have never actually been able to build with the project-wide published min version of 3.14.3. The buildbot that tests the Python configuration is currently pinned to 3.19.1, and there are a number of non-version/policy controlled features that Python building relies on that makes it unreliable with older versions. Some of the issues are pretty fundamental and I don't know how to do them on the older version. I think that, as an optional feature, at least advertising the PSA as in this patch is a good middle ground until the next project-wide CMake version bump. Also moves setup logic to a macro so that everyone can use it.
-
Philip Reames authored
-
Philip Reames authored
The newly introduced API for checking whether poison comes solely from flags which can be dropped was out of sync. This was noticed by a reviewer post commit. For the moment, disable the floating point flags. In a follow up change, I plan to add support in dropPoisonGeneratingFlags, but that deserves to be a change of it's own.
-
Mogball authored
Precursor: https://reviews.llvm.org/D110200 Removed redundant ops from the standard dialect that were moved to the `arith` or `math` dialects. Renamed all instances of operations in the codebase and in tests. Reviewed By: rriddle, jpienaar Differential Revision: https://reviews.llvm.org/D110797
-
Jinsong Ji authored
This patch enable profile test for supported options on AIX. Reviewed By: w2yehia Differential Revision: https://reviews.llvm.org/D110945
-
Joe Loser authored
Mark LWG3274 as complete. The feature test macro `__cpp_lib_span` was added in `6d2599e4`. https://wg21.link/p1024 mentions marking `span:::empty()` with `[[nodiscard]]` which is not done yet. So, do that and add tests. Reviewed By: ldionne, Quuxplusone, Mordante, #libc Differential Revision: https://reviews.llvm.org/D111516
-
David Blaikie authored
Follow-on from 40acc0ad with help from Richard Smith on how to provoke this particular case.
-
Weiwei Li authored
1. To avoid two ExecutionModeOp using the same name, adding the value of execution mode in name when converting to LLVM dialect. 2. To avoid syntax error in spv.OpLoad, add OpTypeSampledImage into SPV_Type. Reviewed by:antiagainst Differential revision:https://reviews.llvm.org/D111193
-
peter klausler authored
Add explicit casts to replace implicit conversions and recently deleted assignment operators from uint128.h used in runtime/edit-output.cpp.
-
Gulfem Savrun Yeniceri authored
Fuchsia Clang code coverage pipeline started to use binary ids that are embedded in profiles. This patch removes emitting symbolizer markup, which is not necessary in the coverage pipeline anymore. Differential Revision: https://reviews.llvm.org/D111674
-
peter klausler authored
Remove the offending "operator=()" member functions. This should silence the MSVC warnings that persist in uint128.h.
-
Ben Shi authored
Do the following optimization for immediate materialisation: 1. For values in range 0xffffffff 7fffffff ~ 0xffffffff 00000000, first generate the lower 32-bit with Val|0x80000000 (which is expected be an int32), then emit (BCLRI r, 31). 2. For values in range 0x80000000 ~ 0xffffffff, first generate the lower 32-bit with Val&~0x80000000 (which is expected to be an int32), then emit (BSETI r, 31). Reviewed By: craig.topper Differential Revision: https://reviews.llvm.org/D111532
-
Matthias Springer authored
Move functionality into a separate function `isInplaceMemoryWrite`. Differential Revision: https://reviews.llvm.org/D111040
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D110982
-
peter klausler authored
A recent patch to fix warnings from a Windows build regarding inconsistent "struct" vs "class" usage missed a few code sites and now the "latest-clang" build bot is also failing. This patch should resolve those failing builds.
-
Matthias Springer authored
Reuse `getResultBuffer`. Differential Revision: https://reviews.llvm.org/D110941
-
Matthias Springer authored
This is to avoid code duplication. Differential Revision: https://reviews.llvm.org/D110940
-
Matthias Springer authored
By doing so, it is not necessary to get the OpOperand a second time via getAliasingOpOperand. Also, code slightly more readable because we do not have to deal with Optional<> return value. Differential Revision: https://reviews.llvm.org/D110918
-
peter klausler authored
A recently added class constructor needs to be "explicit" to prevent it from being available for use as a conversion, which is breaking the MSVC build of flang.
-
Matthias Springer authored
Differential Revision: https://reviews.llvm.org/D111380
-
Fangrui Song authored
GCC 9.1 removed Intel MPX support. Linux kernel removed MPX in 2019. glibc 2.35 will remove MPX. Our support is limited: we support assembling of bndmov but not bnd. Just remove it. Reviewed By: pengfei, skan Differential Revision: https://reviews.llvm.org/D111517
-
Fangrui Song authored
Intel MPX failed to gain wide adoption and has been deprecated for a while. GCC 9.1 removed Intel MPX support. Linux kernel removed MPX in 2019. glibc 2.35 will remove the support.
-
thomasraoux authored
-
peter klausler authored
B/O/Z integer output editing must not reflect any sign extension of scalar output values. Add more size-dependent OutputInteger I/O APIs and kind instantiations of EditIntegerOutput. Differential Revision: https://reviews.llvm.org/D111678
-
peter klausler authored
The Fortran 2018 standard defines the concept of simple contiguity in subclause 9.5.4 as a characteristic of arrays. So that scalars may also be used in contexts where simply contiguous arrays are allowed, f18 treats them as single-element arrays that are trivially contiguous. This patch documents this semantic extension and also adds comments to the predicate that implements the concept. Differential Revision: https://reviews.llvm.org/D111679
-
peter klausler authored
An LLVM Flang build bot for Windows recently failed with a bunch of warning messages. None were from recent changes to the Fortran compiler; I suspect that a newer (or maybe older) version of MSVC was being used, or perhaps a different set of compiler options were temporarily applied to the build, since the buildbot status went back to green shortly thereafter. Most of the warnings looked bogus to me, but some are legitimate concerns and we might as well clean them up. This patch does so. Differential Revision: https://reviews.llvm.org/D111677
-
Vitaly Buka authored
Now StackDepotGet can retrive the stack in O(1). Depends on D111612. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111613
-
Vitaly Buka authored
This lets us reduce size of Node, similar to D111183 proposal. Depends on D111610. Reviewed By: dvyukov Differential Revision: https://reviews.llvm.org/D111612
-
thomasraoux authored
We shouldn't broadcast the original value when doing reduction. Instead we compute the reduction and then combine it with the original value. Differential Revision: https://reviews.llvm.org/D111666
-
Arthur Eubanks authored
To reflect the fact that the new PM is the default now. Differential Revision: https://reviews.llvm.org/D111680
-
Vitaly Buka authored
-