<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 8/13/14, 9:03 AM, jiangshan wrote:<br>
</div>
<blockquote cite="mid:tencent_4D698AFC5AFAF97922846327@qq.com"
type="cite">
<div>I'm new to llvm. </div>
<div>I figured out that the llvm front-end translate the high
level language to IR. the back-end translate the IR to machine
ASM or machine code.</div>
<div>then, if their is inline ASM <span
id="_editor_bookmark_start_1" style="display: none;
line-height: 0px;"></span>in the high level language, what
will the frond-end do? will the ASM <span
id="_editor_bookmark_start_0" style="display: none;
line-height: 0px;"></span>be translated to llvm IR?</div>
</blockquote>
<br>
The LLVM IR encodes inline assembly as a special type of value which
can then be used in a call instruction. The LLVM IR also has a way
of encoding module-level assembly code.<br>
<br>
Please see
<a class="moz-txt-link-freetext" href="http://llvm.org/docs/LangRef.html#inline-assembler-expressions">http://llvm.org/docs/LangRef.html#inline-assembler-expressions</a> and
<a class="moz-txt-link-freetext" href="http://llvm.org/docs/LangRef.html#module-level-inline-assembly">http://llvm.org/docs/LangRef.html#module-level-inline-assembly</a> for
more details.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
</body>
</html>