Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pip pkg5 #2

Closed
wants to merge 107 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
107 commits
Select commit Hold shift + click to select a range
77c8016
Allow global initialization only using the compile_item value,
Thirumalai-Shaktivel Apr 6, 2023
01e1216
Register a test in CMakeLists
Thirumalai-Shaktivel Apr 6, 2023
ffde7ed
Add list.count and tests
virendrakabra14 Apr 8, 2023
fb0428c
Merge pull request #1672 from Thirumalai-Shaktivel/var_init
Thirumalai-Shaktivel Apr 8, 2023
2d25371
Support passing `dict` as return value of functions (#1659)
harshsingh-24 Apr 8, 2023
ea36ba7
Support for dict as args in function
harshsingh-24 Apr 8, 2023
7d78dba
Initial implementation of the time module (#1680)
gptsarthak Apr 8, 2023
a1791ae
Merge pull request #1683 from harshsingh-24/dict/func-params
certik Apr 9, 2023
522581d
Redesign pass_array_by_data.cpp for enhancing its robustness
czgdp1807 Apr 9, 2023
7d08405
Merge pull request #1689 from czgdp1807/bug_fixes_01
czgdp1807 Apr 9, 2023
c20fc3b
Add more tests
virendrakabra14 Apr 9, 2023
ec62fdd
Register test
virendrakabra14 Apr 9, 2023
1efcc7f
Merge pull request #1676 from virendrakabra14/scratch
certik Apr 9, 2023
ade107a
Fix some typos in comments
harshitmathur2000 Apr 10, 2023
a1504ac
Show Type Mismatch Error for Division (#1686)
gptsarthak Apr 11, 2023
c1804d2
CI: Remove existing node
Shaikh-Ubaid Apr 11, 2023
6281476
CI: Display node info
Shaikh-Ubaid Apr 11, 2023
721c6d4
CI: Install specific emsdk version
Shaikh-Ubaid Apr 11, 2023
7e55c07
Merge pull request #1696 from Shaikh-Ubaid/ci_fix_build_to_wasm2
certik Apr 11, 2023
95a77f7
WASM: Implement WASMAssembler Class
Shaikh-Ubaid Apr 4, 2023
45e59e1
WASM: Move type and mem_align to wasm_utils
Shaikh-Ubaid Apr 7, 2023
bf4ff47
WASM: Bring WASMAssembler outside of wasm namespace
Shaikh-Ubaid Apr 7, 2023
0b95d97
WASM: Rename wa to m_wa
Shaikh-Ubaid Apr 7, 2023
e1c55fd
Merge pull request #1675 from Shaikh-Ubaid/wasm_assembler
Shaikh-Ubaid Apr 11, 2023
d377bf9
CI: Install and use specific node version (#1699)
Shaikh-Ubaid Apr 12, 2023
43bfbae
Add SetChar to emulate std::set<std::string> API
czgdp1807 Apr 12, 2023
5699f80
Use SetChar inplace of std::set<std::string> and Vec<char*>
czgdp1807 Apr 12, 2023
f248074
Updated reference tests
czgdp1807 Apr 12, 2023
ae6c547
Merge pull request #1693 from czgdp1807/deps
czgdp1807 Apr 12, 2023
01ab069
Add verbose option
Smit-create Apr 12, 2023
82a8376
Merge pull request #1702 from Smit-create/verbose
Smit-create Apr 12, 2023
a1fff8b
Changes for supporting global array pointers in LLVM (#1705)
czgdp1807 Apr 13, 2023
61a613e
Re-desgin nested_vars pass
Smit-create Apr 13, 2023
a4a1316
Remove nested_vars from LLVM
Smit-create Apr 13, 2023
623a401
Merge pull request #1706 from Smit-create/nested_vars_lp
Smit-create Apr 14, 2023
b766d8a
X64: Define elf ehdr, phdr structs for x86 and x64
Shaikh-Ubaid Apr 10, 2023
dab6068
X64: Define header constructing functions
Shaikh-Ubaid Apr 10, 2023
bd19300
WASM: X64: Emit alignment bytes before segment end
Shaikh-Ubaid Apr 13, 2023
a05b71c
WASM_X64: Define and use common get_seg_header()
Shaikh-Ubaid Apr 13, 2023
150a9c8
WASM_X64: Support elf headers, footer in asm text
Shaikh-Ubaid Apr 13, 2023
9ffc308
X86Assembler: Isolate get_asm() and save_bin() for 32 and 64bit
Shaikh-Ubaid Apr 13, 2023
06ed809
WASM: Fix neg val assign to global_var_idx
Shaikh-Ubaid Apr 12, 2023
f12e42c
WASM_X64: Remove unused functions
Shaikh-Ubaid Apr 13, 2023
14b1197
WASM_X64: Create and return only header binary
Shaikh-Ubaid Apr 14, 2023
0630d23
WASM_X64: Pass only required params to create_elf64_x86_header()
Shaikh-Ubaid Apr 14, 2023
1a99f9a
WASM_X64: Assign mod value directly as constant
Shaikh-Ubaid Apr 14, 2023
f6bcbd2
Add ``list.index`` using ``IntrinsicFunction`` API (#1703)
virendrakabra14 Apr 14, 2023
57ebbc8
Merge pull request #1694 from Shaikh-Ubaid/elf_structs
Shaikh-Ubaid Apr 14, 2023
81ca86b
Never inline `BindC` functions (#1709)
gptsarthak Apr 16, 2023
90be4b0
Replace BlockCall symbol with the one in current scope (#1688)
Thirumalai-Shaktivel Apr 18, 2023
3812ea4
Register more intrinsics in IntrinsicFunctions
Thirumalai-Shaktivel Apr 18, 2023
a033f67
Remove unused references
Thirumalai-Shaktivel Apr 18, 2023
d76440f
Add Initial support for IntrinsicFunction in C & CPP
Thirumalai-Shaktivel Apr 18, 2023
8eb6ea4
Add initial support for IntrinsicFunction in Julia
Thirumalai-Shaktivel Apr 18, 2023
d8e96db
Update tests
Thirumalai-Shaktivel Apr 18, 2023
ab38df1
Merge pull request #1715 from Thirumalai-Shaktivel/intrinsics_03
certik Apr 18, 2023
825364d
Added built in method upper() for string (#1714)
AtmegaBuzz Apr 19, 2023
9938e6c
TEST: Indent all AST and ASR tests
Shaikh-Ubaid Apr 19, 2023
1f64eb8
TEST: Update reference tests
Shaikh-Ubaid Apr 19, 2023
aa1f195
Merge pull request #1717 from Shaikh-Ubaid/indent_ref_test
certik Apr 19, 2023
dd2413b
Sync from LFortran's IntrinsicFunctions (#1720)
Thirumalai-Shaktivel Apr 20, 2023
9a3f46b
Pass: Refactor code into a function
Shaikh-Ubaid Apr 19, 2023
e768338
Pass: Refactor: Check for nullptr earlier
Shaikh-Ubaid Apr 19, 2023
deed90e
Pass: Refactor code into function
Shaikh-Ubaid Apr 19, 2023
7923055
PKG: Basic package ready
Shaikh-Ubaid Apr 19, 2023
9696125
PKG: Use list inplace of numpy arrays
Shaikh-Ubaid Apr 19, 2023
c9a5727
PKG: Fix weights initialization
Shaikh-Ubaid Apr 19, 2023
397124d
PKG: Use floating points
Shaikh-Ubaid Apr 19, 2023
4f5d2bc
Support importing StructType
Shaikh-Ubaid Apr 19, 2023
b2d0853
TEST: Add package test
Shaikh-Ubaid Apr 19, 2023
779ff70
ASR: Fix derived_type points outside symtab
Shaikh-Ubaid Apr 20, 2023
a507c7f
TEST: Add assert and finalize test_pkg_lnn.py
Shaikh-Ubaid Apr 20, 2023
5265a01
lpdraw pkg: flip graph along y-axis
Shaikh-Ubaid Apr 20, 2023
ca9af51
TEST: Plot results in test_pkg_lnn.py
Shaikh-Ubaid Apr 20, 2023
f8fe296
TEST: Make test case work with both lpython, python
Shaikh-Ubaid Apr 20, 2023
6b4bf07
TEST: Add another test
Shaikh-Ubaid Apr 20, 2023
1feb3bb
TEST: Enable added test case
Shaikh-Ubaid Apr 20, 2023
fb669dd
PASS: Refactor: Rename to
Shaikh-Ubaid Apr 20, 2023
b28a440
Merge pull request #1719 from Shaikh-Ubaid/perceptron_pkg
certik Apr 20, 2023
ba15bf1
Always insert global symbols to _global_symbols module
czgdp1807 Apr 21, 2023
1798e93
Don't create _global_symbols if global_scope has no symbol
czgdp1807 Apr 21, 2023
eb7b62e
Merge pull request #1732 from czgdp1807/disable_main
certik Apr 21, 2023
5148356
Handle arguments of ``sizeof`` by distinguishing ``ttype`` and ``expr…
czgdp1807 Apr 21, 2023
c215565
Respect --disable-main in global_stmts pass
czgdp1807 Apr 21, 2023
ff4b716
Merge pull request #1734 from czgdp1807/disable_main_1
certik Apr 21, 2023
18c7757
Fix a test failure on linux
certik Apr 21, 2023
d389ef3
Update tests
certik Apr 21, 2023
618a890
Merge pull request #1738 from certik/test_fix_linux
certik Apr 21, 2023
1614c4e
lpython.py: allow Python implementations of ccall
certik Apr 21, 2023
d7eecef
lpython.py: Set __name__ for overload()
certik Apr 21, 2023
c1d45ef
lpython.py: handle bool and uint16
certik Apr 21, 2023
3ba6878
Merge pull request #1740 from certik/em
certik Apr 21, 2023
e5fa3b8
Allow multiple -I flags
certik Apr 21, 2023
1efe736
Disallow allow_extra_args()
certik Apr 21, 2023
7e6c1b9
Merge pull request #1741 from certik/cli
certik Apr 22, 2023
ce6cae0
C/LLVM: Support for ``dict.get`` (#1700)
Smit-create Apr 22, 2023
fd6ee57
LLVM: Refactor to use cleaner ``create_if_else`` (#1742)
Smit-create Apr 22, 2023
941d034
ASR: Update paths to only include found path (if any)
Shaikh-Ubaid Apr 22, 2023
4f94d55
TEST: Add and enable test
Shaikh-Ubaid Apr 22, 2023
f3da969
ASR: Remove unneeded/duplicate if check
Shaikh-Ubaid Apr 22, 2023
9276d77
ASR: Include runtime_library_dir in paths
Shaikh-Ubaid Apr 22, 2023
cbd49a4
TEST: Return integer and add assert()
Shaikh-Ubaid Apr 23, 2023
5fe474b
Merge pull request #1743 from Shaikh-Ubaid/fix_import
Shaikh-Ubaid Apr 23, 2023
2259815
ASR: Ignore lptypes and numpy
Shaikh-Ubaid Apr 22, 2023
0972054
ASR: Import paths as higher priority
Shaikh-Ubaid Apr 22, 2023
579b185
TEST: Add test case
Shaikh-Ubaid Apr 24, 2023
019f1a9
CI: TEST: Enable testing pip installed packages
Shaikh-Ubaid Apr 24, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
lpython.py: Set __name__ for overload()
  • Loading branch information
certik committed Apr 21, 2023
commit d7eecef0594a8bbe9202512d94bfc81fea4da2e7
3 changes: 3 additions & 0 deletions src/runtime/lpython/lpython.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ def __call__(self, *args, **kwargs):

def overload(f):
overloaded_f = OverloadedFunction(f)
overloaded_f.__name__ = f.__name__
overloaded_f.__code__ = f.__code__
overloaded_f.__annotations__ = f.__annotations__
return overloaded_f

# To be handled in ASR
Expand Down