<div dir="ltr"><span style="font-size:12.8px">Hi,</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Can anyone let me know if LLVM IR can generate Intel SGX instructions</span><br style="font-size:12.8px"><span style="font-size:12.8px">in some way? Either through intrinsics or other? (I know that the</span><br style="font-size:12.8px"><span style="font-size:12.8px">assembler support exists, but what about llvm IR)</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">I have a toy research language that needs to be compiled to Intel SGX.</span><br style="font-size:12.8px"><span style="font-size:12.8px">At the moment my only option seems to be writing my own (very simple)</span><br style="font-size:12.8px"><span style="font-size:12.8px">compiler that does this job. The code generation is easy but I don't</span><br style="font-size:12.8px"><span style="font-size:12.8px">want to handle the infamous register allocation issues. sigh :/</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Any advice/pointers helps.</span><br style="font-size:12.8px"><br style="font-size:12.8px"><span style="font-size:12.8px">Best</span><br><div><span style="font-size:12.8px">Anitha</span></div></div>