[LLVMdev] Why IR portable?

汶翰 (Wen-Han) nowar100 at gmail.com
Wed Dec 22 04:21:59 PST 2010


Dear all,

I cannot find the answer of this question.
We all know LLVM IR is portable, but it uses ILP32 and record the target
layout within the IR.

target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64
: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"

target triple = "x86_64-linux-gnu"


It seems it already assigned their sizes mapping with types.
How can it be portable? Isn't it been written there?

If any response, I'm appreciated for that.
Thank you.

-- 
Best regards,
Wen-Han (Nowar)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101222/2086848a/attachment.html>


More information about the llvm-dev mailing list