- Sep 13, 2021
-
-
Simon Pilgrim authored
The packed variants of the instructions had been modelled as the same as the scalar variants. Reported during a run of llvm-exegesis on a cheap SLM box and matches what Agner / InstLatX64 report as well.
-
Simon Pilgrim authored
-
Raphael Isemann authored
-
luxufan authored
This patch use the same way as the https://reviews.llvm.org/rGfe1fa43f16beac1506a2e73a9f7b3c81179744eb to handle the thread local variable. It allocates 2 * pointerSize space in GOT to represent the thread key and data address. Instead of using the _tls_get_addr function, I customed a function __orc_rt_elfnix_tls_get_addr to get the address of thread local varible. Currently, this is a wip patch, only one TLS relocation R_X86_64_TLSGD is supported and I need to add the corresponding test cases. To allocate the TLS descriptor in GOT, I need to get the edge kind information in PerGraphGOTAndPLTStubBuilder, So I add a `Edge::Kind K` argument in some functions in PerGraphGOTAndPLTStubBuilder.h. If it is not suitable, I can think further to solve this problem. Differential Revision: https://reviews.llvm.org/D109293
-
Mathieu Fehr authored
Types and attributes now have a `hasTrait` function that allow users to check if a type defines a trait. Also, AbstractType and AbstractAttribute has now a `hasTraitFn` field to carry the implementation of the `hasTrait` function of the concrete type or attribute. This patch also adds the remaining functions to access type and attribute traits in TableGen. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D105202
-
Mehdi Amini authored
Add sanity check in MLIR ODS to catch case where an arguments/results/regions/successors names overlap This is making a tablegen crash with a more friendly error. Differential Revision: https://reviews.llvm.org/D109474
-
Jan Kratochvil authored
Regex is matching a binary so it needs `re.DOTALL`. vFile:fstat packet data ATTACHMENT is not hex-encoded but it is only escaped. It is difficult to reproduce, it came from buildbot: https://lab.llvm.org/staging/#/builders/16/builds/10597 ******************** TEST 'lldb-api :: tools/lldb-server/TestGdbRemotePlatformFile.py' FAILED ******************** FAIL: test_platform_file_fstat_llgs (TestGdbRemotePlatformFile.TestGdbRemotePlatformFile) ---------------------------------------------------------------------- Traceback (most recent call last): File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 52, in test_method return attrvalue(self) File "lldb/test/API/tools/lldb-server/TestGdbRemotePlatformFile.py", line 259, in test_platform_file_fstat context = self.expect_gdbremote_sequence() File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py", line 621, in expect_gdbremote_sequence return expect_lldb_gdbserver_replay( File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 198, in expect_lldb_gdbserver_replay context = sequence_entry.assert_match( File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 479, in assert_match return self._assert_regex_match(asserter, actual_packet, context) File "lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py", line 446, in _assert_regex_match asserter.fail( AssertionError: regex '^\$F([0-9a-fA-F]+);(.*)#[0-9a-fA-F]{2}$' failed to match against content '$F40;^@^@^@ ^@ ^C<8d>^@^@<81><80>^@^@^@^A^@^@^CX^@^@^CX^@^@^@^@^@^@^@^@^@^@^@^W^@^@^@^@^@^@^P^@^@^@^@^@^@^@^@ a=XXa=XXa=XX#6b'
-
Vignesh Balasubramanian authored
OPENMP_INSTALL_LIBDIR is set to the installation path of shared and static libompd.This should avoid the mixing of 32 and 64 bit on same path in multi-lib set-up. Reviewed By: @mceier Differential Revision: https://reviews.llvm.org/D109352
-
Tom Praschan authored
See https://github.com/clangd/clangd/issues/839 Reviewed By: sammccall Differential Revision: https://reviews.llvm.org/D108320
-
Arthur Eubanks authored
-
Max Kazantsev authored
Implement TODO in optimizeLoopExits. Now if we have proved that some loop exit is taken on 1st iteration, we make all branches in the following exiting blocks always branch out of the loop and their conditions simplified away. Patch by Dmitry Makogon! Differential Revision: https://reviews.llvm.org/D108910 Reviewed By: lebedev.ri
-
Max Kazantsev authored
This is a part of D108910. We replace all loop PHIs with values coming from the loop preheader if we proved that backedge is never taken. Patch by Dmitry Makogon! Differential Revision: https://reviews.llvm.org/D109596 Reviewed By: lebedev.ri
-
Arthur Eubanks authored
-
Ahsan Saghir authored
This patch adds Big-Endian checks for the existing MMA test cases. It also changes the target for these test cases to pwr10. Reviewed By: #powerpc, nemanjai Differential Revision: https://reviews.llvm.org/D109126
-
Kuter Dinel authored
This patch fixes a error made in 2cc6f7c8. That patch added a call site position but there was a small error with the way the presence of a unknown call edge was being propagated from call site to function. This patch fixes that error. This error was effecting some AMDGPU tests.
-
Arthur Eubanks authored
A cmpxchg's new value type is the same as the pointer operand's pointee type.
-
Craig Topper authored
This allows for a custom encoding to be emitted. It can also be used with inline assembly to allow the custom instruction to be register allocated like other instructions. I initially started from SystemZ's implementation, but some of the formats allow operands to be specified in multiple ways so I had to add support for matching different operand class lists for the same format. That implementation is a simplified version of what is emitted by tablegen for regular instructions. I've left out the compressed formats. And I haven't supported the named opcodes like LUI or OP_IMM_32. Those can be added in future patches. Documentation can be found here https://sourceware.org/binutils/docs-2.37/as/RISC_002dV_002dFormats.html Reviewed By: jrtc27, MaskRay Differential Revision: https://reviews.llvm.org/D108602
-
Kuter Dinel authored
This patch makes it possible to query callbase reachability (Can a callbase reach a function Fn transitively). The patch moves the reachability query handling logic to a member class, this class will have more users within the AA once we add other function reachability queries. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106402
-
Kuter Dinel authored
This patch adds a call site position for AACallEdges, this allows us to ask questions about which functions a specific `CallBase` might call. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D106208
-
Usman Nadeem authored
Change-Id: I8148481a5ce3b721113327cc9b684f091cae5a8d
-
Florian Hahn authored
Users of VPValues are managed in a vector, so we need to be more careful when iterating over users while updating them. For now, just copy them. Fixes 51798.
-
- Sep 12, 2021
-
-
Nikita Popov authored
Rather than inspecting the pointer element type, use the access type of the load/store/atomicrmw/cmpxchg. In the process of doing this, simplify the logic by storing the address + type in MemoryUses, rather than an Instruction + Operand pair (which was then used to fetch the address).
-
Kazu Hirata authored
-
Sanjay Patel authored
https://alive2.llvm.org/ce/z/_AivbM This case seems clear since we can reduce instruction count and avoid an intermediate type change, but we might want to use mask-and-compare for other sequences. Currently, we can generate more instructions on some related patterns by trying to use bit-hacks instead of mask+cmp, so something is not behaving as expected.
-
Sam Clegg authored
This format is based on sub-sections (like the "linking" and "name" sections) and is therefore easier to extend going forward. spec change: https://github.com/WebAssembly/tool-conventions/pull/170 binaryen change: https://github.com/WebAssembly/binaryen/pull/4141 wabt change: https://github.com/WebAssembly/wabt/pull/1707 emscripten change: https://github.com/emscripten-core/emscripten/pull/15019 Differential Revision: https://reviews.llvm.org/D109595
-
David Green authored
This regenerates some of the tests that had very-close-to-updated check line already, in order to make them more maintainable.
-
Kiran Chandramohan authored
The conversion pattern is particularly useful for conversion of block arguments in the master op. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D109610
-
Mara Sophie Grosch authored
Fix definitions for MCUs xmega16a4u and xmega128a4u to match avr-libc Differential Revision: https://reviews.llvm.org/D109653
-
Lang Hames authored
This is broken now that llvm-jitlink-executor uses SimpleRemoteEPC. The example will be updated to use SimpleRemoteEPC in a future commit.
-
Lang Hames authored
Bootstrap symbols are symbols whose addresses may be required to bootstrap the rest of the JIT. The bootstrap symbols map generalizes the existing JITDispatchInfo class provide an arbitrary map of symbol names to addresses. The JITDispatchInfo class will be replaced by bootstrap symbols with reserved names in upcoming commits.
-
Lang Hames authored
-
Lang Hames authored
-
Lang Hames authored
-
Lang Hames authored
-
Lang Hames authored
-
LLVM GN Syncbot authored
-
Lang Hames authored
This reapplies bb27e456 (SimpleRemoteEPC support) and 2269a941 (#include <mutex> fix) with further fixes to support building with LLVM_ENABLE_THREADS=Off.
-
Kazu Hirata authored
-
Arthur O'Dwyer authored
This comes from lengthy discussion between Quuxplusone and ldionne over on D108216. Right now, libc++ uses a "SCARY metaprogramming" version of _EnableIf that bypasses all of Clang's clever diagnostic stuff and thus produces bad diagnostics. My recent benchmarks ( https://quuxplusone.github.io/blog/2021/09/04/enable-if-benchmark/ ) have determined that the SCARYness is not buying us any speedup; therefore we are happy to drop it and go back to using the standard std::enable_if for all our SFINAE needs. However, we don't want to type out typename std::enable_if<X>::type all over the library; we want to use an alias template. And we can't use std::enable_if_t because we need a solution that works in C++11, and we do not provide std::enable_if_t in C++11. Therefore, D109435 switches us from SCARY `_EnableIf` to a normal `__enable_if_t` (at least in C++11 mode, and possibly everywhere for consistency). Simultaneously, this Clang patch enables the good diagnostics for `__enable_if_t`. We don't need to enable good diagnostics for `_EnableIf` because the name `_EnableIf` has only ever been used for the SCARY version where the good diagnostics don't trigger anyway. (Btw, this existing code is all sorts of broken, theoretically speaking. I filed https://bugs.llvm.org/show_bug.cgi?id=51696 about it last week. So if someone wants to use this PR as an excuse to go down the rabbit hole and fix it for real, that would be cool too.) Differential Revision: https://reviews.llvm.org/D109411
-
Zhouyi Zhou authored
Some functions in cxa_exception_storage.cpp have incorrect indentation of braces; fix them. Original patch by Zhouyi Zhou <zhouzhouyi@gmail.com> Also, remove a line of commented-out (and no-longer-possible-to-compile) code. That thread-safe-static initialization of `init` was replaced with the call to pthread_once directly above it, back in 2012. Differential Revision: https://reviews.llvm.org/D109408
-