- Dec 06, 2020
-
-
Lang Hames authored
-
Craig Topper authored
On the surface this would be slightly less optimal for the isel table, but due to a tablegen issue with HW mode this ends up generating a smaller isel table.
-
Fangrui Song authored
-
Fangrui Song authored
AddressSanitizer instrumentation does not set dso_local on non-thread-local global variables in -fno-pic and it seems to rely on implied dso_local to work. Add a hack until we have fixed AddressSanitizer to call setDSOLocal() as appropriate. Thanks to Vitaly Buka for reporting the issue and suggesting the way to detect asan.
-
Jonas Devlieghere authored
Fourth time is the charm? Of course all of these issues don't show up when the function is available...
-
Vitaly Buka authored
The test demonstrates invalid behaviour which will be fixed soon.
-
Kazu Hirata authored
The function was renamed to runImpl on Jul 2, 2016 in commit 071d8306, but the old declaration has remained since.
-
Philip Reames authored
The basic idea is that by looking through operand instructions which don't change the equality result that we can push the existing known bits comparison down past instructions which would obscure them. We have analogous handling in InstSimplify for most - though weirdly not all - of these cases starting from an icmp root. It's a bit unfortunate to duplicate logic, but since my actual goal is to extend BasicAA, the icmp logic doesn't help. (And just makes it hard to test here.) The BasicAA change will be posted separately for review. Differential Revision: https://reviews.llvm.org/D92698
-
Fangrui Song authored
This does not deserve special handling. The code should be added to Clang instead if deemed useful. With this simplification, we can additionally delete the PIC extern_weak special case.
-
Kazu Hirata authored
-
Aditya Kumar authored
Differential Revision: https://reviews.llvm.org/D92506
-
Fangrui Song authored
[TargetMachine] Clean up TargetMachine::shouldAssumeDSOLocal after x86-32 specific hack is moved to X86Subtarget With my previous commit, X86Subtarget::classifyGlobalReference has learned to use MO_NO_FLAG for 32-bit ELF -fno-pic code, the x86-32 special case in TargetMachine::shouldAssumeDSOLocal can be removed. Since we no longer imply dso_local for function declarations, we can drop the ppc64 special case as well. This is NFC in terms of Clang emitted assembly.
-
Fangrui Song authored
clang/lib/CodeGen/CodeGenModule sets dso_local on applicable function declarations, we don't need to duplicate the work in TargetMachine:shouldAssumeDSOLocal. (Actually the long-term goal (started by r324535) is to drop TargetMachine::shouldAssumeDSOLocal.) By not implying dso_local, we will respect dso_local/dso_preemptable specifiers set by the frontend. This allows the proposed -fno-direct-access-external-data option to work with -fno-pic and prevent a canonical PLT entry (SHN_UNDEF with non-zero st_value) when taking the address of a function symbol. This patch should be NFC in terms of the Clang emitted assembly because the case we don't set dso_local is a case Clang sets dso_local. However, some tests don't set dso_local on some function declarations and expose some differences. Most tests have been fixed to be more robust in the previous commit.
-
Fangrui Song authored
They are currently implicit because TargetMachine::shouldAssumeDSOLocal implies dso_local. For such function declarations, clang -fno-pic emits the dso_local specifier. Adding explicit dso_local makes these tests align with the clang behavior and helps implementing an option to use GOT indirection when taking the address of a function symbol in -fno-pic (to avoid a canonical PLT entry (SHN_UNDEF with non-zero st_value)).
-
Philip Reames authored
Due to the recursion through phis basicaa does, the code needs to be extremely careful not to reason about equality between values which might represent distinct iterations. I'm generally skeptical of the correctness of the whole scheme, but this particular patch fixes one particular instance which is demonstrateable incorrect. Interestingly, this appears to be the second attempted fix for the same issue. The former fix is incomplete and doesn't address the actual issue. Differential Revision: https://reviews.llvm.org/D92694
-
Jonas Devlieghere authored
The @available check did not work as I thought it did. Use good old dlsym instead.
-
Fangrui Song authored
This essentially reverts the x86-64 side effect of r327198. For x86-32, @PLT (R_386_PLT32) is not suitable in -fno-pic mode so the code forces MO_NO_FLAG (like a forced dso_local) (https://bugs.llvm.org//show_bug.cgi?id=36674#c6). For x86-64, both `call/jmp foo` and `call/jmp foo@PLT` emit R_X86_64_PLT32 (https://sourceware.org/bugzilla/show_bug.cgi?id=22791) so there is no difference using @PLT. Using @PLT is actually favorable because this drops a difference with -fpie/-fpic code and makes it possible to avoid a canonical PLT entry when taking the address of an undefined function symbol.
-
Chris Sears authored
LLVMBuild has been removed from the build system. However, three LLVMBuild.txt files remain in the tree. This patch simply removes them. llvm/lib/ExecutionEngine/Orc/TargetProcess/LLVMBuild.txt llvm/tools/llvm-jitlink/llvm-jitlink-executor/LLVMBuild.txt llvm/tools/llvm-profgen/LLVMBuild.txt Differential Revision: https://reviews.llvm.org/D92693
-
Fangrui Song authored
[TargetMachine] Move X86 specific shouldAssumeDSOLocal logic to X86Subtarget::classifyGlobalFunctionReference
-
Nikita Popov authored
-
Fangrui Song authored
The function accrues many `GV` nullness checks. Process `!GV` (ExternalSymbolSDNode) early to simplify code. Also improve a comment added in r327198 (intrinsics is a subset of ExternalSymbolSDNode). Intended to be NFC.
-
Jonas Devlieghere authored
I didn't realize that the 'bridgeos' is not part of the public SDK.
-
Benjamin Kramer authored
-
Joachim Protze authored
D91692 missed various locations in kmp_gsupport, where the scope for OMPT_STORE_RETURN_ADDRESS is too narrow, i.e. the scope ends before the OMPT callback is called in some nested function. This patch fixes the scoping issue, so that all OMPT tests pass, when the tests are built with gcc. Differential Revision: https://reviews.llvm.org/D92121
-
Zbigniew Sarbinowski authored
This is the the minimal change introduced in [[ https://reviews.llvm.org/D88599 | D88599 ]] to unblock the controversial change and discussion of proper separation between thread from thread id which will continue in D88599. This patch will address the differences of definition of pthread_t on z/OS vs. Linux and other OS. Main trick to make the code work on z/OS relies on redefining libcpp_thread_id type and _LIBCPP_NULL_THREAD macro. This is necessary to separate initialization of libcxx_thread_id from the one of __libcxx_thread_t; Reviewed By: #libc, ldionne Differential Revision: https://reviews.llvm.org/D91875
-
mydeveloperday authored
I think the title says everything. Reviewed By: MyDeveloperDay Patch By: HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D91507
-
- Dec 05, 2020
-
-
Mark de Wever authored
Properly mark LWG1203 as completed and move the version number to the version column.
-
Mark de Wever authored
-
Florian Hahn authored
ConstraintSystem::dump only generates output with -debug, but there's no need to call it without -debug.
-
Florian Hahn authored
Constraints where all variable coefficients are 0 do not add any useful information. When checking, we can check if they are always true/false.
-
Dmitry Preobrazhensky authored
See bug 48295 (https://bugs.llvm.org/show_bug.cgi?id=48295) Reviewers: rampitec Differential Revision: https://reviews.llvm.org/D92088
-
Nikita Popov authored
Fix mistake introduced in f8afba5f: I failed to initialize the Depth member to zero.
-
Dmitry Preobrazhensky authored
See bug 47518 (https://bugs.llvm.org/show_bug.cgi?id=47518) Reviewers: rampitec Differential Revision: https://reviews.llvm.org/D92084
-
mydeveloperday authored
I use several of the clang-format clean directories as a test suite, this one had got slightly out of wack in a prior commit Reviewed By: HazardyKnusperkeks Differential Revision: https://reviews.llvm.org/D92666
-
Nikita Popov authored
Count how many NoAlias/MustAlias/MayAlias we get from top-level queries.
-
Nikita Popov authored
-
Fangrui Song authored
PPCMCInstLower does not actually call shouldAssumeDSOLocal for ppc32 so this is dead. Actually Clang ppc32 does produce a pair of absolute relocations which match GCC. This also fixes a comment (R_PPC_COPY and R_PPC64_COPY do exist).
-
Fangrui Song authored
-
Francis Visoiu Mistrih authored
Avoid calling getFlags on a non-existent symbol. The way this is triggered is by calling strip -N on a binary, which sets the MH_NLIST_OUTOFSYNC_WITH_DYLDINFO header flag. Then, in the LC_FUNCTION_STARTS command, nm is trying to print the stripped symbols and needs the proper checks.
-
Kazu Hirata authored
-