Example #1
0
 def callframe_alignment(self, ty):
     core.check_is_type(ty)
     return _core.LLVMCallFrameAlignmentOfType(self.ptr, ty.ptr)
Example #2
0
 def int_signed(ty, intval):
     core.check_is_type(ty)
     ptr = _core.LLVMCreateGenericValueOfInt(ty.ptr, intval, 1)
     return GenericValue(ptr)
Example #3
0
 def abi_size(self, ty):
     core.check_is_type(ty)
     return _core.LLVMABISizeOfType(self.ptr, ty.ptr)
Example #4
0
 def abi_alignment(self, ty):
     core.check_is_type(ty)
     return _core.LLVMABIAlignmentOfType(self.ptr, ty.ptr)
Example #5
0
 def size(self, ty):
     core.check_is_type(ty)
     return _core.LLVMSizeOfTypeInBits(self.ptr, ty.ptr)
Example #6
0
 def store_size(self, ty):
     core.check_is_type(ty)
     return _core.LLVMStoreSizeOfType(self.ptr, ty.ptr)
Example #7
0
 def int_signed(ty, intval):
     core.check_is_type(ty)
     ptr = _core.LLVMCreateGenericValueOfInt(ty.ptr, intval, 1)
     return GenericValue(ptr)
Example #8
0
 def as_real(self, ty):
     core.check_is_type(ty)  # only float or double
     return _core.LLVMGenericValueToFloat(ty.ptr, self.ptr)
Example #9
0
 def abi_alignment(self, ty):
     core.check_is_type(ty)
     return _core.LLVMABIAlignmentOfType(self.ptr, ty.ptr)
Example #10
0
 def callframe_alignment(self, ty):
     core.check_is_type(ty)
     return _core.LLVMCallFrameAlignmentOfType(self.ptr, ty.ptr)
Example #11
0
 def abi_size(self, ty):
     core.check_is_type(ty)
     return _core.LLVMABISizeOfType(self.ptr, ty.ptr)
Example #12
0
 def store_size(self, ty):
     core.check_is_type(ty)
     return _core.LLVMStoreSizeOfType(self.ptr, ty.ptr)
Example #13
0
 def size(self, ty):
     core.check_is_type(ty)
     return _core.LLVMSizeOfTypeInBits(self.ptr, ty.ptr)
Example #14
0
 def real(ty, floatval):
     core.check_is_type(ty)  # only float or double
     ptr = _core.LLVMCreateGenericValueOfFloat(ty.ptr, floatval)
     return GenericValue(ptr)
Example #15
0
 def pointer(ty, intval):
     core.check_is_type(ty)
     ptr = _core.LLVMCreateGenericValueOfPointer(ty.ptr, intval)
     return GenericValue(ptr)
Example #16
0
 def as_real(self, ty):
     core.check_is_type(ty)  # only float or double
     return _core.LLVMGenericValueToFloat(ty.ptr, self.ptr)
Example #17
0
 def real(ty, floatval):
     core.check_is_type(ty)  # only float or double
     ptr = _core.LLVMCreateGenericValueOfFloat(ty.ptr, floatval)
     return GenericValue(ptr)