[LLVMdev] LLVM ERROR: Cannot select: intrinsic %llvm.annotation
David Peixotto
dmp at rice.edu
Thu Nov 17 11:33:23 PST 2011
I'm trying to insert some annotations using the @llvm.annotation.i32 intrinsic. When I compile the file with llc, it gives me the error "LLVM ERROR: Cannot select: intrinsic %llvm.annotation". My IR file looks like this:
$ cat test.ll
@.str = private unnamed_addr constant [6 x i8] c"Hello\00"
declare i32 @llvm.annotation.i32(i32, i8* , i8*, i32)
define i32 @main(i32 %argc, i8** %argv) nounwind ssp {
%1 = call i32 @llvm.annotation.i32(
i32 0,
i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0),
i8* getelementptr inbounds ([6 x i8]* @.str, i32 0, i32 0),
i32 0
)
ret i32 0
}
$ llc test.ll
LLVM ERROR: Cannot select: intrinsic %llvm.annotation
Is this a problem with LLVM, or am I doing something wrong? I'm seeing this on the release_30 branch.
-David
More information about the llvm-dev
mailing list