File: unmangled.ispc

package info (click to toggle)
ispc 1.28.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 97,620 kB
  • sloc: cpp: 77,067; python: 8,303; yacc: 3,337; lex: 1,126; ansic: 631; sh: 475; makefile: 17
file content (11 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
// RUN: %{ispc} --target=host %s -o - --emit-llvm-text | FileCheck %s
// RUN: %{ispc} --target=host --debug-phase=2:2 %s -o t.o | FileCheck %s --check-prefix=CHECK-BAR

// CHECK: define <[[WIDTH:[0-9]+]] x i32> @foo(i32 %x, <[[WIDTH]] x i32> {{.*}} %y, <[[WIDTH]] x {{.*}}> %__mask)
__attribute__((unmangled)) int foo(uniform int x, int y) { return y; }

// CHECK-BAR: declare void @bar({{.*}})
__attribute__((unmangled)) void bar();

// CHECK-BAR: declare void @bar1()
__attribute__((unmangled)) unmasked void bar1();