[llvm-dev] llvm, new language and inline assembly.

AlexandreFressange via llvm-dev llvm-dev at lists.llvm.org
Sat Nov 14 13:09:35 PST 2015


Hello,

I am creating a very small language which needs inline assembly, with llvm as a compiler framework.

On x86, I am interested in the "out","in","mfence","lfence".. and other specific sse operations.

How may I tell llvm about them in my language?

-> I read that "module asm" should be my companion but I am not sure how it works (the doc about it, is only a few lines of not so complete information. What is the syntax when the final register the value comes from or goes in doesn't matter? so no explicit %%rax or %%rdx but rather something like %%r?x; here the question mark let the compiler to choose the best register for the value);

I need the same functionalities as "asm" in C but in my language basically.

Thanks
-- 
Alex


More information about the llvm-dev mailing list