def callframe_alignment(self, ty): core.check_is_type(ty) return _core.LLVMCallFrameAlignmentOfType(self.ptr, ty.ptr)
def int_signed(ty, intval): core.check_is_type(ty) ptr = _core.LLVMCreateGenericValueOfInt(ty.ptr, intval, 1) return GenericValue(ptr)
def abi_size(self, ty): core.check_is_type(ty) return _core.LLVMABISizeOfType(self.ptr, ty.ptr)
def abi_alignment(self, ty): core.check_is_type(ty) return _core.LLVMABIAlignmentOfType(self.ptr, ty.ptr)
def size(self, ty): core.check_is_type(ty) return _core.LLVMSizeOfTypeInBits(self.ptr, ty.ptr)
def store_size(self, ty): core.check_is_type(ty) return _core.LLVMStoreSizeOfType(self.ptr, ty.ptr)
def as_real(self, ty): core.check_is_type(ty) # only float or double return _core.LLVMGenericValueToFloat(ty.ptr, self.ptr)
def real(ty, floatval): core.check_is_type(ty) # only float or double ptr = _core.LLVMCreateGenericValueOfFloat(ty.ptr, floatval) return GenericValue(ptr)
def pointer(ty, intval): core.check_is_type(ty) ptr = _core.LLVMCreateGenericValueOfPointer(ty.ptr, intval) return GenericValue(ptr)