Stanislav Mekhanoshin
9c6cd0458b
[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
ce2d428a98
[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
8818d13ed2
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
f1caa2833f
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
5f5b586c99
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
c8c9d4a0a6
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
80528702c9
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
1aa667fe64
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
844845ae06
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
89377c440c
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
f5d826a294
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
c8fbf6ffea
[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
e9a5a77ee3
AMDGPU: Implement memory model
...
llvm-svn: 308781
2017-07-21 21:19:23 +00:00