<div dir="ltr"><div>I have defined the intrinsic as <br><i> def int_loop: Intrinsic<[],[llvm_i8_ty, llvm_empty_ty],[]>;</i><br><br></div><div>and also got the Codegen backend support in Instructioninfo.td file.<br></div>
<div><br>Then created a .ll file to test it.<br></div><div>The .ll file is like this<br><br><i>declare void @llvm.loop(i8, label)<br><br>define void @fn() nounwind readnone {<br>entry:<br> .....<br> .....<br> call void @llvm.loop(i8 10, label %entry)<br>
ret void<br>}</i><br><br></div><div>But when I run it with llc, I get the following error message<br><br>Intrinsic has incorrect argument type!<br>void (i8, label)* @llvm.loop<br>Broken module found, compilation aborted!<br>
<br></div><div>The 'Module Verifier' is complaining about the 'label' type. Any suggestions on how I go about doing this ? Would appreciate your help.<br></div><div><br></div><div><br><br></div><div><br></div>
<div><br></div><br></div>