pub fn size_of(ty: &Type) -> usize {
    unsafe {
        let mut gen = LlvmGenerator::new(ParsedConf::default()).unwrap();
        gen.size_of_ty(ty)
    }
}
Returns the size of a type in bytes.
weld/src/codegen/llvm2/mod.rs