[LLVMdev] gcroot intrinsic

Anderson, Todd A todd.a.anderson at intel.com
Wed Jun 8 17:20:03 PDT 2011


I’ve been tinkering around with some llvm assembly trying out some of the GC related features.  When I add a call to @llvm.gcroot, it is consistently acting like it doesn’t know what that function is.  I’m just getting started so it is probably something small and simple but some googling didn’t yield much in the  way of an answer.  Any help is appreciated.

Thanks,

Todd

----------------------------------------------------

llvm-as: test1.s:12:13: error: use of undefined value '@llvm.gcroot'
  call void @llvm.gcroot(i8** %p, i8* null)

define void @foo() gc "tgc" {
  %p = alloca i8*, align 4
  %1 = load i8** %p, align 4
  call void @llvm.gcroot(i8** %p, i8* null)
  ret void
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110608/931d255e/attachment.html>


More information about the llvm-dev mailing list