pub fn get_alignment(val: &ValueRef) -> u32Expand description
Obtain the preferred alignment of the value.
§Details
Retrieves the alignment of a global value in bytes.
This function wraps the LLVMGetAlignment function from the LLVM core library. It returns the alignment
requirement of the global value represented by ValueRef, in terms of the number of bytes. Knowing the alignment
can be useful for understanding how the global value is laid out in memory and ensuring that it meets the
requirements of the target architecture.
§Returns
Returns a u32 representing the alignment of the global value in bytes.