| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2022-10-06 | [CodeGenCXX] Convert some tests to opaque pointers (NFC) | Nikita Popov | |
| Conversion done using the script at https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34. These are tests where the conversion worked out of the box and no manual fixup was performed. | |||
| 2022-04-07 | [OpaquePtrs][Clang] Add -no-opaque-pointers to tests (NFC) | Nikita Popov | |
| This adds -no-opaque-pointers to clang tests whose output will change when opaque pointers are enabled by default. This is intended to be part of the migration approach described in https://discourse.llvm.org/t/enabling-opaque-pointers-by-default/61322/9. The patch has been produced by replacing %clang_cc1 with %clang_cc1 -no-opaque-pointers for tests that fail with opaque pointers enabled. Worth noting that this doesn't cover all tests, there's a remaining ~40 tests not using %clang_cc1 that will need a followup change. Differential Revision: https://reviews.llvm.org/D123115 | |||
| 2021-11-30 | [Clang] Add option to disable -mconstructor-aliases with ↵ | modimo | |
| -mno-constructor-aliases We've found that when profiling, counts are only generated for the real definition of constructor aliases (C2 in mangled name). However, when compiling the C1 version is present at the callsite and leads to a lack of counts due to this aliasing. This causes us to miss out on inlining an otherwise hot constructor. -mconstructor-aliases is AFAICT an optimization, so having a disabling flag if wanted seems valuable. Testing: ninja check-all Reviewed By: wenlei Differential Revision: https://reviews.llvm.org/D114130 | |||
| 2020-12-31 | [test] Add {{.*}} to make ELF tests immune to ↵ | Fangrui Song | |
| dso_local/dso_preemptable/(none) differences For a default visibility external linkage definition, dso_local is set for ELF -fno-pic/-fpie and COFF and Mach-O. Since default clang -cc1 for ELF is similar to -fpic ("PIC Level" is not set), this nuance causes unneeded binary format differences. To make emitted IR similar, ELF -cc1 -fpic will default to -fno-semantic-interposition, which sets dso_local for default visibility external linkage definitions. To make this flip smooth and enable future (dso_local as definition default), this patch replaces (function) `define ` with `define{{.*}} `, (variable/constant/alias) `= ` with `={{.*}} `, or inserts appropriate `{{.*}} `. | |||
| 2020-02-03 | Revert "[CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition" | Fangrui Song | |
| This reverts commit 789a46f2d742e11edaade28cb59a0f4d2a1d770e. Accidentally committed. | |||
| 2020-02-03 | [CodeGenModule] Assume dso_local for -fpic -fno-semantic-interposition | Fangrui Song | |
| Summary: Clang -fpic defaults to -fno-semantic-interposition (GCC -fpic defaults to -fsemantic-interposition). Users need to specify -fsemantic-interposition to get semantic interposition behavior. Semantic interposition is currently a best-effort feature. There may still be some cases where it is not handled well. Reviewers: peter.smith, rnk, serge-sans-paille, sfertile, jfb, jdoerfert Subscribers: dschuff, jyknight, dylanmckay, nemanjai, jvesely, kbarton, fedor.sergeev, asb, rbar, johnrusso, simoncook, sabuasal, niosHD, jrtc27, zzheng, edward-jones, atanasyan, rogfer01, MartinMosbeck, brucehoult, the_o, arphaman, PkmX, jocewei, jsji, Jim, lenary, s.egerton, pzheng, sameer.abuasal, apazos, luismarques, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D73865 | |||
| 2018-06-18 | IRgen: Mark aliases of ctors and dtors as unnamed_addr. | Peter Collingbourne | |
| This is not only semantically correct but ensures that they will not be marked as address-significant once D48155 lands. Differential Revision: https://reviews.llvm.org/D48206 llvm-svn: 334982 | |||
| 2015-09-11 | [opaque pointer type] update test cases for explicit pointee types on global ↵ | David Blaikie | |
| aliases llvm-svn: 247380 | |||
| 2013-03-19 | Don't try to set attributes in alias, they have none. | Rafael Espindola | |
| llvm-svn: 177402 | |||
