hi, all.
As some target have special size and alignment, how to set that? I don’t find related target hook. such as, long type may be 8 bytes on some target, while it may be 4 bytes on other target.
That’s in clang/lib/Basic/Targets/XYZ.h
, variables like LongWidth
and LongAlign
. You probably also want to make sure (both LLVM and Clang) set the right datalayout
too, though I think it’s mostly a fallback for alignment from Clang.