<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 7, 2014 at 9:35 AM, Filip Pizlo <span dir="ltr"><<a href="mailto:fpizlo@apple.com" target="_blank">fpizlo@apple.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That would work. :-)<br>
<br>
What about exposing C API a function to query for the presence of an intrinsic?<br></blockquote><div><br></div><div>I don't know almost anything about how the C API works, but is it possible to do something like `getHandleToIntrinsic(Module, "llvm.experimental.patchpoint") == nullptr`? (I doubt that the function is actually called "getHandleToIntrinsic", but you get the idea)<br>
<br></div><div>-- Sean Silva<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
-Fil<br>
<div class="HOEnZb"><div class="h5"><br>
> On Jun 7, 2014, at 3:37 AM, Rafael Espíndola <<a href="mailto:rafael.espindola@gmail.com">rafael.espindola@gmail.com</a>> wrote:<br>
><br>
>> On 7 June 2014 00:14, Filip Pizlo <<a href="mailto:fpizlo@apple.com">fpizlo@apple.com</a>> wrote:<br>
>> The only setback is to ensure that we synchronize the renaming with WebKit.<br>
>><br>
>> The WebKit->LLVM interface currently avoids revision-lock; you can take any<br>
>> recent revision of either and build a working browser engine. This is mostly<br>
>> true even when we change the stack map format because of versioning in the<br>
>> format. I'd rather keep it that way.<br>
>><br>
>> Is there a way to do this with intrinsics?  I.e. is there a safe way for<br>
>> WebKit to query whether "llvm.patchpoint" is an available intrinsic, and<br>
>> then fallback to "llvm.experimental.patchpoint" if it's not available?<br>
><br>
> Keeping both names during a smallish time window should be sufficient, no?<br>
><br>
> Cheers,<br>
> Rafael<br>
</div></div></blockquote></div><br></div></div>