- May 27, 2020
-
-
Shoaib Meenai authored
Clang has supported __builtin_assume_aligned since r217349 back in 2014, so the comment is very out of date.
-
Matt Arsenault authored
Prepare to switch to using StoreSDNode for atomic stores.
-
Pete Steinfeld authored
Summary: We were not detecting declaring multiple interfaces to the same procedure. Also, we were not handling the initialization of entitiies where the associated Symbol had previously had errors. I added the function `IsInterfaceSet()` to ProcEntityDetails to see if the value of `interface_` had been previously set. I then checked this function before calling set_interface() and emitted an error message if the interface was already set. Also, in situations where we were emitting error messages for symbols, I set the Error flag on the Symbol. Then when performing initialization on the Symbol, I first check to see if the Symbol had an error. Reviewers: tskeith, klausler, DavidTruby Subscribers: llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80453
-
Stefanos Baziotis authored
-
Jonas Devlieghere authored
-
David Blaikie authored
-
Eric Christopher authored
-
Sanjay Patel authored
The -reassociate pass tends to transform this kind of pattern into something that is worse for vectorization and codegen. See PR43953: https://bugs.llvm.org/show_bug.cgi?id=43953 Follows-up the FP version of the same transform: rGa0ce2338
-
Sanjay Patel authored
-
Sanjay Patel authored
-
Lei Huang authored
Summary: This patch simply adds support for the new CPU in anticipation of Power10. There isn't really any functionality added so there are no associated test cases at this time. Reviewers: stefanp, nemanjai, amyk, hfinkel, power-llvm-team, #powerpc Reviewed By: stefanp, nemanjai, amyk, #powerpc Subscribers: NeHuang, steven.zhang, hiraditya, llvm-commits, wuzish, shchenz, cfe-commits, kbarton, echristo Tags: #clang, #powerpc, #llvm Differential Revision: https://reviews.llvm.org/D80020
-
Adam Balogh authored
-
Nemanja Ivanovic authored
The test case provided in PR45709 can be simplified by DCE to an empty function. To prevent this from happening if DCE is run prior to ISEL in the back end, just add optnone to the function. The behaviour it is testing for is in the SDAG legalization and is not sensitive to optnone so the test case still achieves its desired objective.
-
Kostya Serebryany authored
Summary: Fixes this build error with GCC 9.3.0: ``` ../lib/fuzzer/afl/afl_driver.cpp:114:30: error: expected unqualified-id before string constant 114 | __attribute__((weak)) extern "C" void __sanitizer_set_report_fd(void *); | ^~~ ``` Reviewers: metzman, kcc Reviewed By: kcc Subscribers: #sanitizers Tags: #sanitizers Differential Revision: https://reviews.llvm.org/D80479 -
Jonas Devlieghere authored
Ficed warning: 'clang::ento::ExprEngine' has virtual functions but non-virtual destructor [- Wnon-virtual-dtor] ~ExprEngine() = default;
-
Jonas Devlieghere authored
Skip the remaining two failing test in the python_api subdirectory. See inline comments for the reason why.
-
Simon Pilgrim authored
We just need to include Passes.h in ObjCARCAliasAnalysis.cpp to compensate
-
Simon Pilgrim authored
Move includes to ResourcePriorityQueue.cpp
-
Fangrui Song authored
Bazel created interface shared objects (.ifso) may be misaligned. We use llvm::support::detail::packed_endian_specific_integral under the hood which allows reading of misaligned values, so there is not a need to diagnose (in LLD we don't intend to support sophisticated parsing for SHT_GNU_*).
-
Jonas Devlieghere authored
As discussed in https://reviews.llvm.org/D79745
-
LLVM GN Syncbot authored
-
Adam Balogh authored
The `SubEngine` interface is an interface with only one implementation `EpxrEngine`. Adding other implementations are difficult and very unlikely in the near future. Currently, if anything from `ExprEngine` is to be exposed to other classes it is moved to `SubEngine` which restricts the alternative implementations. The virtual methods are have a slight perofrmance impact. Furthermore, instead of the `LLVM`-style inheritance a native inheritance is used here, which renders `LLVM` functions like e.g. `cast<T>()` unusable here. This patch removes this interface and allows usage of `ExprEngine` directly. Differential Revision: https://reviews.llvm.org/D80548
-
mydeveloperday authored
[clang-format] Fix an ObjC regression introduced with new [[likely]][[unlikely]] support in if/else clauses Summary: {D80144} introduce an ObjC regression Only parse the `[]` if what follows is really an attribute Reviewers: krasimir, JakeMerdichAMD Reviewed By: krasimir Subscribers: rdwampler, aaron.ballman, curdeius, cfe-commits Tags: #clang, #clang-format Differential Revision: https://reviews.llvm.org/D80547 -
Stefanos Baziotis authored
- Added more info about what we refer as a clobber in MSSA. - Added more info about MemoryDefs and how there is a single Def chain. - The doc portrayed MSSA as modeling the heap whileit is modeling the whole memory, so I changed the wording to not be heap-specific. Differential Revision: https://reviews.llvm.org/D80000
-
Sean Fertile authored
-
Hiroshi Yamauchi authored
Summary: This adds support for memcmp/bcmp to the existing memcpy/memset value profiling. Reviewers: davidxl Subscribers: hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D79751
-
Sanjay Patel authored
The -reassociate pass tends to transform this kind of pattern into something that is worse for vectorization and codegen. See PR43953: https://bugs.llvm.org/show_bug.cgi?id=43953
-
Matt Arsenault authored
This reverts commit fb38b983. This will regress compile time.
-
alex-t authored
Summary: Target specific method encapsulated into the Target Lowering Info. Reviewers: rampitec, vpykhtin Reviewed By: rampitec Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D70085
-
Jonas Devlieghere authored
Revision 333565 started escaping HTML special characters in the plist written by dsymutil, but didn't include the updated CFBundleIdentifier.
-
Fangrui Song authored
In the 64-bit ELF V2 API Specification: Power Architecture, 2.3.3.1. GPR Save and Restore Functions defines some special functions which may be referenced by GCC produced assembly (LLVM does not reference them). With GCC -Os, when the number of call-saved registers exceeds a certain threshold, GCC generates `_savegpr0_* _restgpr0_*` calls and expects the linker to define them. See https://sourceware.org/pipermail/binutils/2002-February/017444.html and https://sourceware.org/pipermail/binutils/2004-August/036765.html . This is weird because libgcc.a would be the natural place. However, the linker generation approach has the advantage that the linker can generate multiple copies to avoid long branch thunks. We don't consider the advantage significant enough to complicate our trunk implementation, so we take a simple approach. * Check whether `_savegpr0_{14..31}` are used * If yes, define needed symbols and add an InputSection with the code sequence. `_savegpr1_*` `_restgpr0_*` and `_restgpr1_*` are similar. Reviewed By: sfertile Differential Revision: https://reviews.llvm.org/D79977
-
Sean Fertile authored
Extend the CSR save/restore insertion code to support both 32-bit and 64-bit AIX. Differential Revision: https://reviews.llvm.org/D79252
-
Sanne Wouda authored
MemoryLocation.h was changed to only include Instruction.h. However, cast<> still needs the full definiton, so move MemoryLocation::getOrNone to the cpp file.
-
Matt Arsenault authored
I consider this to be a hack, since we probably should not mark any 16-bit extract as legal, and require all extracts to be done on multiples of 32. There are quite a few more battles to fight in the legalizer for sub-dword vectors, so just select this for now so we can pass OpenCL conformance without crashing. Also fix the same assert for G_INSERTs. Unlike G_EXTRACT there's not a trivial way to select this so just fail on it.
-
Adrian Prantl authored
-
Adrian Prantl authored
The os_log helper functions are linkonce_odr and supposed to be uniqued across TUs, so attachine a DW_AT_decl_line on it is highly misleading. By setting the function decl to implicit, CGDebugInfo properly marks the functions as artificial and uses a default file / line 0 location for the function. rdar://problem/63450824 Differential Revision: https://reviews.llvm.org/D80463
-
- May 26, 2020
-
-
Matt Arsenault authored
Confusingly, these were unrelated and had different semantics. The G_PTR_MASK instruction predates the llvm.ptrmask intrinsic, but has a different format. G_PTR_MASK only allows clearing the low bits of a pointer, and only a constant number of bits. The ptrmask intrinsic allows an arbitrary mask. Replace G_PTR_MASK to match the intrinsic. Only selects the cases that look like the old instruction. More work is needed to select the general case. Also new legalization code is still needed to deal with the case where the incoming mask size does not match the pointer size, which has a specified behavior in the langref.
-
Daniel Frampton authored
Summary: The existing logic has a workaround where configure_file is used to write a single dummy file output many times. CMake has a feature to more directly add the dependency and avoid the dummy file (it is available in the minimum version specified). Reviewers: theraven Reviewed By: theraven Subscribers: theraven, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D80218
-
Nemanja Ivanovic authored
As reported in PR45186, we could be in a situation where we don't want to handle unaligned memory accesses for FP scalars but still have VSX (which allows unaligned access for vectors). Change the default to only apply to scalars. Fixes: https://bugs.llvm.org/show_bug.cgi?id=45186
-
Matt Arsenault authored
This is currently missing most of the hard parts to lower correctly, so disable it for now. This fixes at least one OpenCL conformance test and allows it to pass with fallback. Hide this behind an option for now.
-