From 15e90e331cecd9fcedcd0e1565816682e2535a27 Mon Sep 17 00:00:00 2001 From: Konstantin Zhuravlyov Date: Wed, 7 Nov 2018 21:42:13 +0000 Subject: [PATCH] AMDGPU/NFC: Split FLAT_Global_Atomic_Pseudo into RTN/NO_RTN multiclasses llvm-svn: 346361 --- llvm/lib/Target/AMDGPU/FLATInstructions.td | 41 ++++++++++++++++------ 1 file changed, 30 insertions(+), 11 deletions(-) diff --git a/llvm/lib/Target/AMDGPU/FLATInstructions.td b/llvm/lib/Target/AMDGPU/FLATInstructions.td index 43130dfcae99..18e8b8a1c2d1 100644 --- a/llvm/lib/Target/AMDGPU/FLATInstructions.td +++ b/llvm/lib/Target/AMDGPU/FLATInstructions.td @@ -275,7 +275,7 @@ multiclass FLAT_Atomic_Pseudo< AtomicNoRet ; } -multiclass FLAT_Global_Atomic_Pseudo< +multiclass FLAT_Global_Atomic_Pseudo_NO_RTN< string opName, RegisterClass vdst_rc, ValueType vt, @@ -292,16 +292,6 @@ multiclass FLAT_Global_Atomic_Pseudo< let PseudoInstr = NAME; } - def _RTN : FLAT_AtomicRet_Pseudo , - AtomicNoRet { - let has_saddr = 1; - } - def _SADDR : FLAT_AtomicNoRet_Pseudo { + + def _RTN : FLAT_AtomicRet_Pseudo , + AtomicNoRet { + let has_saddr = 1; + } def _SADDR_RTN : FLAT_AtomicRet_Pseudo : + FLAT_Global_Atomic_Pseudo_NO_RTN, + FLAT_Global_Atomic_Pseudo_RTN; + class flat_binary_atomic_op : PatFrag< (ops node:$ptr, node:$value), (atomic_op node:$ptr, node:$value),