Nikita Popov
edb2fc6dab
[llvm] Remove explicit -opaque-pointers flag from tests (NFC)
...
Opaque pointers mode is enabled by default, no need to explicitly
enable it.
2023-07-12 14:35:55 +02:00
Matt Arsenault
143ca74ed3
AtomicExpand: Convert tests to opaque pointers
2022-11-28 08:43:16 -05:00
Kai Luo
ad2f7fd286
[AtomicExpand] Make floating point conversion happens before fence insertion
...
IIUC, the conversion part is not part of atomic operations and fences should be put around converted atomic operations.
This also fixes atomic load of floating point values which requires fence on PowerPC.
Reviewed By: efriedma
Differential Revision: https://reviews.llvm.org/D127609
2022-08-31 09:54:58 +08:00
Kai Luo
6710b21d46
[PowerPC] Allow llvm.ppc.cfence to accept pointer types
...
In the context of atomic load, integer, pointer and float point types are allowed, thus we should allow llvm.ppc.cfence to accept any type mentioned.
Fixes https://github.com/llvm/llvm-project/issues/55983 .
Reviewed By: shchenz, vchuravy
Differential Revision: https://reviews.llvm.org/D127554
2022-06-24 10:55:32 +08:00
Kai Luo
029fc37270
[PowerPC][AtomicExpand] Precommit IR tests for D127609. NFC.
2022-06-14 14:24:21 +08:00