[llvm-dev] Mapping of llvm variable types to C types

Peng Yu via llvm-dev llvm-dev at lists.llvm.org
Sat Jan 19 16:39:52 PST 2019


Hi,

I find the following mapping between llvm variable types and C types.
But it may not be complete. Is there any official documentation of the
mapping between llvm and C? Thanks.

  ▸          dso_local▸  ▸              constant # extern const
  ▸          dso_local▸  ▸              global   # extern initialized
  common▸    dso_local▸  ▸              global   # extern uninitialized
  external▸  ▸           ▸              global   # need to link to a library
  internal▸  ▸           ▸              constant # static const
  internal▸  ▸           ▸              global   # static
  private▸   ▸           unnamed_addr▸  constant # string literals

-- 
Regards,
Peng


More information about the llvm-dev mailing list