• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1; RUN: llc < %s -mtriple=i686-pc-win32 | FileCheck %s
2; REQUIRES: asserts
3; XFAIL: *
4
5declare token @llvm.call.preallocated.setup(i32)
6declare i8* @llvm.call.preallocated.arg(token, i32)
7
8%Foo = type { i32, i32 }
9
10declare void @init(%Foo*)
11
12
13
14declare void @foo_p(%Foo* preallocated(%Foo))
15
16define void @no_call() {
17; CHECK-LABEL: _no_call:
18  %t = call token @llvm.call.preallocated.setup(i32 1)
19  %a = call i8* @llvm.call.preallocated.arg(token %t, i32 0) preallocated(%Foo)
20  %b = bitcast i8* %a to %Foo*
21  call void @init(%Foo* %b)
22  ret void
23}
24