| #
75c649c9 |
| 01-Mar-2018 |
Rafael Espindola <[email protected]> |
Pass a GlobalDecl to SetCommonAttributes. NFC.
Part of D43900.
llvm-svn: 326392
|
| #
e4e78135 |
| 01-Mar-2018 |
Rafael Espindola <[email protected]> |
Inline a trivial function. NFC.
llvm-svn: 326391
|
| #
285271cb |
| 28-Feb-2018 |
Rafael Espindola <[email protected]> |
Pass a GlobalDecl to setNonAliasAttributes. NFC.
Also part of D43900.
llvm-svn: 326388
|
| #
51ec5a9c |
| 28-Feb-2018 |
Rafael Espindola <[email protected]> |
Pass a GlobalDecl to SetInternalFunctionAttributes. NFC.
This just reduces the noise in a followup patch.
Part of D43900.
llvm-svn: 326385
|
| #
fa2fc906 |
| 28-Feb-2018 |
Rafael Espindola <[email protected]> |
Pass a GlobalDecl to setAliasAttributes. NFC.
This just makes a followup change easier to read.
llvm-svn: 326270
|
| #
64393cfc |
| 27-Feb-2018 |
Rafael Espindola <[email protected]> |
Pass a GlobalDecl to setFunctionDefinitionAttributes. NFC.
This just makes a followup patch easier to read.
llvm-svn: 326265
|
| #
80af005a |
| 23-Feb-2018 |
Sriraman Tallam <[email protected]> |
Set Module Metadata "RtLibUseGOT" when fno-plt is used.
Differential Revision: https://reviews.llvm.org/D42217
llvm-svn: 325961
|
| #
922f2aa9 |
| 23-Feb-2018 |
Rafael Espindola <[email protected]> |
Bring r325915 back.
The tests that failed on a windows host have been fixed.
Original message:
Start setting dso_local for COFF.
With this there are still some GVs where we don't set dso_local be
Bring r325915 back.
The tests that failed on a windows host have been fixed.
Original message:
Start setting dso_local for COFF.
With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF.
llvm-svn: 325940
show more ...
|
| #
43ce3a3a |
| 23-Feb-2018 |
Rafael Espindola <[email protected]> |
Revert "Start setting dso_local for COFF."
This reverts commit r325915.
It will take some time to fix the failures on a windows host.
llvm-svn: 325929
|
| #
004d240b |
| 23-Feb-2018 |
Rafael Espindola <[email protected]> |
Start setting dso_local for COFF.
With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the
Start setting dso_local for COFF.
With this there are still some GVs where we don't set dso_local because setGVProperties is never called. I intend to fix that in followup commits. This is just the bare minimum to teach shouldAssumeDSOLocal what it should do for COFF.
llvm-svn: 325915
show more ...
|
|
Revision tags: llvmorg-6.0.0-rc3 |
|
| #
3dd49812 |
| 23-Feb-2018 |
Rafael Espindola <[email protected]> |
Simplify setting dso_local. NFC.
The value of dso_local can be computed from just IR properties and global information (object file type, command line options, etc).
With this patch we no longer pa
Simplify setting dso_local. NFC.
The value of dso_local can be computed from just IR properties and global information (object file type, command line options, etc).
With this patch we no longer pass in the Decl. It was almost unused and making it fully unused guarantees that dso_local is consistent with the rest of the IR.
llvm-svn: 325846
show more ...
|
| #
124a2187 |
| 20-Feb-2018 |
Ivan A. Kosarev <[email protected]> |
[CodeGen] Fix generation of TBAA tags for may-alias accesses
This patch fixes creating TBAA access descriptors for may_alias-marked access types. Currently, for such types we generate ordinary descr
[CodeGen] Fix generation of TBAA tags for may-alias accesses
This patch fixes creating TBAA access descriptors for may_alias-marked access types. Currently, for such types we generate ordinary descriptors with char as its access type. The patch changes this to produce proper may-alias descriptors.
Differential Revision: https://reviews.llvm.org/D42366
llvm-svn: 325575
show more ...
|
| #
93e58667 |
| 12-Feb-2018 |
Erich Keane <[email protected]> |
Make attribute-target on a Definition-after-use update the LLVM attributes
As reported here: https://bugs.llvm.org/show_bug.cgi?id=36301 The issue is that the 'use' causes the plain declaration to e
Make attribute-target on a Definition-after-use update the LLVM attributes
As reported here: https://bugs.llvm.org/show_bug.cgi?id=36301 The issue is that the 'use' causes the plain declaration to emit the attributes to LLVM-IR. However, if the definition added it later, these would silently disappear.
This commit extracts that logic to its own function in CodeGenModule, and has the attribute-applications done during 'definition' update the attributes properly.
Differential Revision: https://reviews.llvm.org/D43095
llvm-svn: 324907
show more ...
|
| #
30994d24 |
| 08-Feb-2018 |
Erich Keane <[email protected]> |
Fix improper indentation issue in CodeGenModule [NFC]
llvm-svn: 324644
|
| #
75e57369 |
| 07-Feb-2018 |
Rafael Espindola <[email protected]> |
Don't try to use copy relocations with tls variables.
Should fix the lldb bot.
llvm-svn: 324539
|
| #
699f5d6b |
| 07-Feb-2018 |
Rafael Espindola <[email protected]> |
Recommit r324107 again.
The difference from the previous try is that we no longer directly access function declarations from position independent executables. It should work, but currently doesn't w
Recommit r324107 again.
The difference from the previous try is that we no longer directly access function declarations from position independent executables. It should work, but currently doesn't with some linkers.
It now includes a fix to not mark available_externally definitions as dso_local.
Original message:
Start setting dso_local in clang.
This starts adding dso_local to clang.
The hope is to eventually have TargetMachine::shouldAssumeDsoLocal go away. My objective for now is to move enough of it to clang to remove the need for the TargetMachine one to handle PIE copy relocations and -fno-plt. With that it should then be easy to implement a -fno-copy-reloc in clang.
This patch just adds the cases where we assume a symbol to be local based on the file being compiled for an executable or a shared library.
llvm-svn: 324535
show more ...
|
|
Revision tags: llvmorg-6.0.0-rc2 |
|
| #
880c3b24 |
| 07-Feb-2018 |
Rafael Espindola <[email protected]> |
Revert "Recommit r324107."
This reverts commit r324500.
The bots found two failures:
ThreadSanitizer-x86_64 :: Linux/pie_no_aslr.cc ThreadSanitizer-x86_64 :: pie_test.cc
when using gold.
Revert "Recommit r324107."
This reverts commit r324500.
The bots found two failures:
ThreadSanitizer-x86_64 :: Linux/pie_no_aslr.cc ThreadSanitizer-x86_64 :: pie_test.cc
when using gold. The issue is a limitation in gold when building pie binaries. I will investigate how to work around it.
llvm-svn: 324505
show more ...
|
| #
fa9874c3 |
| 07-Feb-2018 |
Rafael Espindola <[email protected]> |
Recommit r324107.
It now includes a fix to not mark available_externally definitions as dso_local.
Original message:
Start setting dso_local in clang.
This starts adding dso_local to clang.
The
Recommit r324107.
It now includes a fix to not mark available_externally definitions as dso_local.
Original message:
Start setting dso_local in clang.
This starts adding dso_local to clang.
The hope is to eventually have TargetMachine::shouldAssumeDsoLocal go away. My objective for now is to move enough of it to clang to remove the need for the TargetMachine one to handle PIE copy relocations and -fno-plt. With that it should then be easy to implement a -fno-copy-reloc in clang.
This patch just adds the cases where we assume a symbol to be local based on the file being compiled for an executable or a shared library.
llvm-svn: 324500
show more ...
|
| #
deb10bec |
| 07-Feb-2018 |
Rafael Espindola <[email protected]> |
Don't pass ForDefinition_t in places it is redundant.
I found this while looking at the ppc failures caused by the dso_local change.
The issue was that the patch would produce the wrong answer for
Don't pass ForDefinition_t in places it is redundant.
I found this while looking at the ppc failures caused by the dso_local change.
The issue was that the patch would produce the wrong answer for available_externally. Having ForDefinition_t available in places where the code can just check the linkage is a bit of a foot gun.
This patch removes the ForDefiniton_t argument in places where the linkage is already know.
llvm-svn: 324499
show more ...
|
| #
fd4db533 |
| 07-Feb-2018 |
Saleem Abdulrasool <[email protected]> |
Support `#pragma comment(lib, "name")` in the frontend for ELF
This adds the frontend support required to support the use of the comment pragma to enable auto linking on ELFish targets. This is a ge
Support `#pragma comment(lib, "name")` in the frontend for ELF
This adds the frontend support required to support the use of the comment pragma to enable auto linking on ELFish targets. This is a generic ELF extension supported by LLVM. We need to change the handling for the "dependentlib" in order to accommodate the previously discussed encoding for the dependent library descriptor. Without the custom handling of the PCK_Lib directive, the -l prefixed option would be encoded into the resulting object (which is treated as a frontend error).
llvm-svn: 324438
show more ...
|
| #
9f34b7b9 |
| 02-Feb-2018 |
Rafael Espindola <[email protected]> |
Revert "Start setting dso_local in clang."
This reverts commit r324107.
I will have to test it on OS X.
llvm-svn: 324108
|
| #
7e34a308 |
| 02-Feb-2018 |
Rafael Espindola <[email protected]> |
Start setting dso_local in clang.
This starts adding dso_local to clang.
The hope is to eventually have TargetMachine::shouldAssumeDsoLocal go away. My objective for now is to move enough of it to
Start setting dso_local in clang.
This starts adding dso_local to clang.
The hope is to eventually have TargetMachine::shouldAssumeDsoLocal go away. My objective for now is to move enough of it to clang to remove the need for the TargetMachine one to handle PIE copy relocations and -fno-plt. With that it should then be easy to implement a -fno-copy-reloc in clang.
This patch just adds the cases where we assume a symbol to be local based on the file being compiled for an executable or a shared library.
llvm-svn: 324107
show more ...
|
| #
32b615c2 |
| 01-Feb-2018 |
Richard Smith <[email protected]> |
PR36181: Teach CodeGen to properly ignore requests to emit dependent entities.
Previously, friend function definitions within class templates slipped through the gaps and caused the MS mangler to as
PR36181: Teach CodeGen to properly ignore requests to emit dependent entities.
Previously, friend function definitions within class templates slipped through the gaps and caused the MS mangler to assert.
llvm-svn: 323935
show more ...
|
| #
1860b520 |
| 25-Jan-2018 |
Ivan A. Kosarev <[email protected]> |
[CodeGen] Decorate aggregate accesses with TBAA tags
Differential Revision: https://reviews.llvm.org/D41539
llvm-svn: 323421
|
| #
123ce97f |
| 24-Jan-2018 |
Rafael Espindola <[email protected]> |
Don't create hidden dllimport global values.
Hidden visibility is almost the opposite of dllimport. We were producing them before (dllimport wins in the existing llvm implementation), but now the ll
Don't create hidden dllimport global values.
Hidden visibility is almost the opposite of dllimport. We were producing them before (dllimport wins in the existing llvm implementation), but now the llvm verifier produces an error.
llvm-svn: 323361
show more ...
|