File: addrspace_operators.ll

package info (click to toggle)
pocl 6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,320 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 175; java: 72; xml: 49
file content (20 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

define dso_local i8 addrspace(3)* @__to_local(i8 addrspace(4)* %address) local_unnamed_addr #0 {
  %1 = addrspacecast i8 addrspace(4)* %address to i8 addrspace(3)*
  ret i8 addrspace(3)* %1
}

define dso_local i8 addrspace(1)* @__to_global(i8 addrspace(4)* %address) local_unnamed_addr #0 {
  %1 = addrspacecast i8 addrspace(4)* %address to i8 addrspace(1)*
  ret i8 addrspace(1)* %1
}

define dso_local i8* @__to_private(i8 addrspace(4)* %address) local_unnamed_addr #0 {
  %1 = addrspacecast i8 addrspace(4)* %address to i8*
  ret i8* %1
}

attributes #0 = { noinline nounwind optnone uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }

!0 = !{i32 1, !"wchar_size", i32 4}