Dear all,<div><br></div><div>I cannot find the answer of this question.</div><div>We all know LLVM IR is portable, but it uses ILP32 and record the target layout within the IR.</div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; "><span class="llvm_keyword" style="font-weight: bold; color: blue; "><br>
</span></span></div><div><span class="Apple-style-span" style="font-family: monospace; font-size: medium; white-space: pre; "><span class="llvm_keyword" style="font-weight: bold; color: blue; ">target</span> datalayout = "e-p:64:64:64-<span class="llvm_type" style="font-style: oblique; color: green; ">i1</span>:8:8-<span class="llvm_type" style="font-style: oblique; color: green; ">i8</span>:8:8-<span class="llvm_type" style="font-style: oblique; color: green; ">i16</span>:16:16-<span class="llvm_type" style="font-style: oblique; color: green; ">i32</span>:32:32-<span class="llvm_type" style="font-style: oblique; color: green; ">i64</span>:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64"</span></div>
<div><span class="Apple-style-span" style="font-family: Arial; font-size: medium; "><pre><span class="llvm_keyword" style="font-weight: bold; color: blue; ">target</span> triple = "x86_64-linux-gnu"
</pre><pre><meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial; white-space: normal; font-size: small; "><div><br></div><div>It seems it already assigned their sizes mapping with types.</div>
<div>How can it be portable? Isn't it been written there?</div></span></pre></span><div>If any response, I'm appreciated for that.</div><div>Thank you.</div><br>-- <br>Best regards,<br>Wen-Han (Nowar)<br>
</div>