[LLVMdev] Target data question

Kenneth Uildriks kennethuil at gmail.com
Tue Oct 20 09:26:28 PDT 2009


According to the "LLVM Assembly Language Reference Manual":

When constructing the data layout for a given target, LLVM starts with
a default set of specifications which are then (possibly) overriden by
the specifications in the datalayout keyword. The default
specifications are given in this list:

    * E - big endian
    * p:32:64:64 - 32-bit pointers with 64-bit alignment


Are these the specifications that are assumed by LLVM tools such as
"opt" when a module doesn't have a target data specification?  And
does that mean that "opt", when given a module without a target data
specification, might assume that GEP pointer-to-pointer, 1 should
increment that pointer by eight bytes?



More information about the llvm-dev mailing list