def post_lowering(self, mod, library): if self.is32bit: # 32-bit machine needs to replace all 64-bit div/rem to avoid # calls to compiler-rt intrinsics.fix_divmod(mod) library.add_linking_library(rtsys.library)
def post_lowering(self, func): mod = func.module if self.is32bit: # 32-bit machine needs to replace all 64-bit div/rem to avoid # calls to compiler-rt intrinsics.fix_divmod(mod) install_atomic_refct(mod)
def post_lowering(self, func): mod = func.module if (sys.platform.startswith('linux') or sys.platform.startswith('win32')): intrinsics.fix_powi_calls(mod) if self.is32bit: # 32-bit machine needs to replace all 64-bit div/rem to avoid # calls to compiler-rt intrinsics.fix_divmod(mod)