(fn: FuncIR, capi_version: tuple[int, int])
| 1592 | |
| 1593 | |
| 1594 | def is_fastcall_supported(fn: FuncIR, capi_version: tuple[int, int]) -> bool: |
| 1595 | if fn.class_name is not None: |
| 1596 | if fn.name == "__call__": |
| 1597 | # We can use vectorcalls (PEP 590) when supported |
| 1598 | return True |
| 1599 | # TODO: Support fastcall for __init__ and __new__. |
| 1600 | return fn.name != "__init__" and fn.name != "__new__" |
| 1601 | return True |
| 1602 | |
| 1603 | |
| 1604 | def collect_literals(fn: FuncIR, literals: Literals) -> None: |
no outgoing calls
no test coverage detected
searching dependent graphs…