Check out these files. There is a class StructLayout there, whose constructor generates the member offset information. include/llvm/IR/DataLayout.h lib/IR/DataLayout.cpp -Krzysztof -- Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation