1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132
|
define i32 @_Z30__pocl_atomic_exchange__globalPU3AS1VU7_Atomicii12memory_order12memory_scope(i32 addrspace(1)* noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i32 addrspace(1)* %0, i32 %1 monotonic
ret i32 %res
}
define i32 @_Z30__pocl_atomic_exchange__globalPU3AS1VU7_Atomicjj12memory_order12memory_scope(i32 addrspace(1)* noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i32 addrspace(1)* %0, i32 %1 monotonic
ret i32 %res
}
define i64 @_Z30__pocl_atomic_exchange__globalPU3AS1VU7_Atomicll12memory_order12memory_scope(i64 addrspace(1)* noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i64 addrspace(1)* %0, i64 %1 monotonic
ret i64 %res
}
define i64 @_Z30__pocl_atomic_exchange__globalPU3AS1VU7_Atomicmm12memory_order12memory_scope(i64 addrspace(1)* noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i64 addrspace(1)* %0, i64 %1 monotonic
ret i64 %res
}
define i32 @_Z29__pocl_atomic_exchange__localPU3AS3VU7_Atomicii12memory_order12memory_scope(i32 addrspace(3)* noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i32 addrspace(3)* %0, i32 %1 monotonic
ret i32 %res
}
define i32 @_Z29__pocl_atomic_exchange__localPU3AS3VU7_Atomicjj12memory_order12memory_scope(i32 addrspace(3)* noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i32 addrspace(3)* %0, i32 %1 monotonic
ret i32 %res
}
define i64 @_Z29__pocl_atomic_exchange__localPU3AS3VU7_Atomicll12memory_order12memory_scope(i64 addrspace(3)* noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i64 addrspace(3)* %0, i64 %1 monotonic
ret i64 %res
}
define i64 @_Z29__pocl_atomic_exchange__localPU3AS3VU7_Atomicmm12memory_order12memory_scope(i64 addrspace(3)* noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i64 addrspace(3)* %0, i64 %1 monotonic
ret i64 %res
}
define i32 @_Z31__pocl_atomic_exchange__genericPVU7_Atomicii12memory_order12memory_scope(i32* noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i32* %0, i32 %1 monotonic
ret i32 %res
}
define i32 @_Z31__pocl_atomic_exchange__genericPVU7_Atomicjj12memory_order12memory_scope(i32* noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i32* %0, i32 %1 monotonic
ret i32 %res
}
define i64 @_Z31__pocl_atomic_exchange__genericPVU7_Atomicll12memory_order12memory_scope(i64* noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i64* %0, i64 %1 monotonic
ret i64 %res
}
define i64 @_Z31__pocl_atomic_exchange__genericPVU7_Atomicmm12memory_order12memory_scope(i64* noundef %0, i64 noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%res = atomicrmw xchg i64* %0, i64 %1 monotonic
ret i64 %res
}
; #####################################################################
define double @_Z29__pocl_atomic_exchange__localPU3AS3VU7_Atomicdd12memory_order12memory_scope(double addrspace(3)* noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%iptr = bitcast double addrspace(3)* %0 to i64 addrspace(3)*
%ival = bitcast double %1 to i64
%ires = atomicrmw xchg i64 addrspace(3)* %iptr, i64 %ival monotonic
%fres = bitcast i64 %ires to double
ret double %fres
}
define double @_Z30__pocl_atomic_exchange__globalPU3AS1VU7_Atomicdd12memory_order12memory_scope(double addrspace(1)* noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%iptr = bitcast double addrspace(1)* %0 to i64 addrspace(1)*
%ival = bitcast double %1 to i64
%ires = atomicrmw xchg i64 addrspace(1)* %iptr, i64 %ival monotonic
%fres = bitcast i64 %ires to double
ret double %fres
}
define double @_Z31__pocl_atomic_exchange__genericPVU7_Atomicdd12memory_order12memory_scope(double* noundef %0, double noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%iptr = bitcast double* %0 to i64*
%ival = bitcast double %1 to i64
%ires = atomicrmw xchg i64* %iptr, i64 %ival monotonic
%fres = bitcast i64 %ires to double
ret double %fres
}
define float @_Z29__pocl_atomic_exchange__localPU3AS3VU7_Atomicff12memory_order12memory_scope(float addrspace(3)* noundef %0, float noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%iptr = bitcast float addrspace(3)* %0 to i32 addrspace(3)*
%ival = bitcast float %1 to i32
%ires = atomicrmw xchg i32 addrspace(3)* %iptr, i32 %ival monotonic
%fres = bitcast i32 %ires to float
ret float %fres
}
define float @_Z30__pocl_atomic_exchange__globalPU3AS1VU7_Atomicff12memory_order12memory_scope(float addrspace(1)* noundef %0, float noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%iptr = bitcast float addrspace(1)* %0 to i32 addrspace(1)*
%ival = bitcast float %1 to i32
%ires = atomicrmw xchg i32 addrspace(1)* %iptr, i32 %ival monotonic
%fres = bitcast i32 %ires to float
ret float %fres
}
define float @_Z31__pocl_atomic_exchange__genericPVU7_Atomicff12memory_order12memory_scope(float* noundef %0, float noundef %1, i32 noundef %2, i32 noundef %3) local_unnamed_addr #0 {
entry:
%iptr = bitcast float* %0 to i32*
%ival = bitcast float %1 to i32
%ires = atomicrmw xchg i32* %iptr, i32 %ival monotonic
%fres = bitcast i32 %ires to float
ret float %fres
}
|