mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
* Fix __from_gpu_new__ * Fix GPU tests * Update GPU debug codegen * Add will-return attribute for GPU compilation * Fix isinstance on unresolved types * Fix union type instantiation and pendingRealizations placement * Add float16, bfloat16 and float128 IR types * Add float16, bfloat16 and float128 types * Mark complex64 as no-python * Fix float methods * Add float tests * Disable some float tests * Fix bitset in reaching definitions analysis * Fix static bool unification * Add property setters * Remove log * Add Union hasattr support * Fix union bugs; Move union logic to internal.codon; Add fn_can_call for any expression * Fix isinstance(x, Union) --------- Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
42 lines
794 B
Python
42 lines
794 B
Python
# Copyright (C) 2022-2023 Exaloop Inc. <https://exaloop.io>
|
|
|
|
# Methods for static reflection. Implemented within call.cpp and/or loops.cpp.
|
|
# !! Not intended for public use !!
|
|
|
|
def fn_overloads(T: type, F: Static[str]):
|
|
pass
|
|
|
|
def fn_args(F): # function: (i, name)
|
|
pass
|
|
|
|
def fn_arg_has_type(F, i: Static[int]):
|
|
pass
|
|
|
|
def fn_arg_get_type(F, i: Static[int]):
|
|
pass
|
|
|
|
def fn_can_call(F, *args, **kwargs):
|
|
pass
|
|
|
|
def fn_wrap_call_args(F, *args, **kwargs):
|
|
pass
|
|
|
|
def fn_has_default(F, i: Static[int]):
|
|
pass
|
|
|
|
def fn_get_default(F, i: Static[int]):
|
|
pass
|
|
|
|
@no_type_wrap
|
|
def static_print(*args):
|
|
pass
|
|
|
|
def vars(obj, with_index: Static[int] = 0):
|
|
pass
|
|
|
|
def vars_types(T: type, with_index: Static[int] = 0):
|
|
pass
|
|
|
|
def tuple_type(T: type, N: Static[int]):
|
|
pass
|