Stanislav Mekhanoshin
73e759b4c9
[AMDGPU] More descriptive names in the memory legalizer
...
NFC.
Differential Revision: https://reviews.llvm.org/D43054
llvm-svn: 324712
2018-02-09 06:05:33 +00:00
Stanislav Mekhanoshin
5d1899b98e
[AMDGPU] removed dead code handling rmw in memory legalizer
...
It was always using cmpxchg path and in rmw and cmpxchg instructions
are not distinguishable in the BE.
Differential Revision: https://reviews.llvm.org/D42976
llvm-svn: 324383
2018-02-06 19:11:56 +00:00
Konstantin Zhuravlyov
f29f02b282
AMDGPU/MemoryModel: Fix monotonic atomic loads
...
Those should have glc bit set for system and agent synchronization scopes
llvm-svn: 324314
2018-02-06 04:06:04 +00:00
Matthias Braun
ddd8ed6709
MachineFunction: Return reference from getFunction(); NFC
...
The Function can never be nullptr so we can return a reference.
llvm-svn: 320884
2017-12-15 22:22:58 +00:00
Konstantin Zhuravlyov
d45f9c8f96
AMDGPU: Handle non-temporal loads and stores
...
Differential Revision: https://reviews.llvm.org/D36862
llvm-svn: 312729
2017-09-07 17:14:54 +00:00
Konstantin Zhuravlyov
693d4420f7
AMDGPU: Handle more than one memory operand in SIMemoryLegalizer
...
Differential Revision: https://reviews.llvm.org/D37397
llvm-svn: 312725
2017-09-07 16:14:21 +00:00
Konstantin Zhuravlyov
696ac55220
AMDGPU: Cleanup/refactor SIMemoryLegalizer [3]:
...
- Refactor SIMemOpInfo's constructors
- Allow construction of NotAtomic SIMemOpInfo
Differential Revision: https://reviews.llvm.org/D37396
llvm-svn: 312563
2017-09-05 19:01:10 +00:00
Konstantin Zhuravlyov
f8f8f79ae7
AMDGPU/NFC: Cleanup/refactor SIMemoryLegalizer [2]:
...
- Make SIMemOpInfo a class
- Add accessor methods to SIMemOpInfo
- Move get*Info methods to SIMemOpInfo
Differential Revision: https://reviews.llvm.org/D37395
llvm-svn: 312541
2017-09-05 16:41:25 +00:00
Konstantin Zhuravlyov
2b3d09d8f1
AMDGPU/NFC: Cleanup/refactor SIMemoryLegalizer [1]:
...
- Rename MemOpInfo -> SIMemOpInfo
- Move SIMemOpInfo class out of SIMemoryLegalizer class
Differential Revision: https://reviews.llvm.org/D37394
llvm-svn: 312540
2017-09-05 16:18:05 +00:00
Konstantin Zhuravlyov
c624568e15
AMDGPU/NFC: Reorder functions in SIMemoryLegalizer:
...
- Move *load* functions before *atomic* functions
- Move *store* functions before *atomic* functions
llvm-svn: 311256
2017-08-19 18:44:27 +00:00
Konstantin Zhuravlyov
eec800fc3a
AMDGPU/NFC: Rename few things in SIMemoryLegalizer:
...
- AtomicInfo -> MemOpInfo
- getAtomicLoadInfo -> getLoadInfo
- getAtomicStoreInfo -> getStoreInfo
- expandAtomicLoad -> expandLoad
- expandAtomicStore -> expandStore
Differential Revision: https://reviews.llvm.org/D36861
llvm-svn: 311179
2017-08-18 17:30:02 +00:00
Eugene Zelenko
6d61ca9b21
[AMDGPU] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC).
...
llvm-svn: 310541
2017-08-10 00:46:15 +00:00
Konstantin Zhuravlyov
d6234de26c
AMDGPU: Implement memory model
...
llvm-svn: 308781
2017-07-21 21:19:23 +00:00