gingerBill
|
050f128554
|
Correct hashing for union #maybe
|
2021-05-03 13:40:36 +01:00 |
|
gingerBill
|
1a3784c4df
|
Allow unions which are comparable to also be valid map keys (i.e. hashable)
|
2021-05-03 13:38:15 +01:00 |
|
gingerBill
|
518ecaf9c9
|
Allow unions to be comparable if all their variants are comparable
|
2021-05-03 13:17:16 +01:00 |
|
gingerBill
|
77e2e1e1d0
|
Add missing skip_possible_newline_for_literal calls
|
2021-05-03 12:02:08 +01:00 |
|
gingerBill
|
348d25c43a
|
Fix parsing error for for
|
2021-05-02 00:11:36 +01:00 |
|
gingerBill
|
9854dbe889
|
Remove unused import
|
2021-05-01 23:14:14 +01:00 |
|
gingerBill
|
cf0bf1a7cb
|
Add testing.fail_now
|
2021-05-01 23:06:14 +01:00 |
|
gingerBill
|
364e6c9573
|
Move comment
|
2021-05-01 22:58:13 +01:00 |
|
gingerBill
|
52d38ae42b
|
Make the core:testing runner on windows run in a separate thread to handle crashes in more safe manner
|
2021-05-01 22:54:27 +01:00 |
|
gingerBill
|
b845db1618
|
Add prototypes for intrinsics.fixed_point_*
|
2021-05-01 18:26:51 +01:00 |
|
gingerBill
|
ced7700cdb
|
Add extra check for #no_bounds_check etc being followed by a newline or empty statement
|
2021-05-01 17:59:30 +01:00 |
|
gingerBill
|
406d2ab6ba
|
Simplify/Fix the state_flag behaviour for code generation
|
2021-05-01 17:42:59 +01:00 |
|
gingerBill
|
327116b84b
|
Merge branch 'master' of https://github.com/odin-lang/Odin
|
2021-05-01 17:30:27 +01:00 |
|
gingerBill
|
fd56b48825
|
Add ODIN_ROOT information
|
2021-05-01 17:30:22 +01:00 |
|
gingerBill
|
956b59d48c
|
Update old bin/README.md
|
2021-05-01 16:27:11 +01:00 |
|
gingerBill
|
97b537f800
|
Update intrinsics.odin for documentation
|
2021-05-01 16:23:50 +01:00 |
|
gingerBill
|
5f617c56e1
|
Minor stylistic code changes to compress and image packages
|
2021-04-30 10:58:29 +01:00 |
|
gingerBill
|
222bab501c
|
Disallow unnamed polymorphic records
|
2021-04-29 11:00:14 +01:00 |
|
gingerBill
|
bee637aef1
|
Update Makefile for Linux
|
2021-04-28 16:23:42 +01:00 |
|
gingerBill
|
d5844dfd2a
|
Update llvm-config checking on Linux
|
2021-04-28 16:07:46 +01:00 |
|
gingerBill
|
3751322521
|
Add -no-pie flag to linker on Linux
|
2021-04-28 15:36:29 +01:00 |
|
gingerBill
|
71ac145f49
|
Remove dead code related to old backend
|
2021-04-28 15:28:14 +01:00 |
|
gingerBill
|
e50ef33c2a
|
Fix #921
|
2021-04-28 12:34:16 +01:00 |
|
gingerBill
|
3061dd2497
|
Update build.bat to use wmic os get LocalDateTime /value instead of %DATE% which is not consistent across computers
|
2021-04-28 11:56:47 +01:00 |
|
gingerBill
|
102c29575b
|
Allow @(test) to be ran outside of *_test.odin files
|
2021-04-28 10:49:40 +01:00 |
|
gingerBill
|
24fce21d90
|
Add "naked" calling convention (removes prologue and epilogue)
|
2021-04-28 10:49:30 +01:00 |
|
gingerBill
|
afe185ee22
|
Fix procedure entity finding
|
2021-04-27 21:08:18 +01:00 |
|
gingerBill
|
ffffb04d85
|
Remove unused import
|
2021-04-27 17:21:52 +01:00 |
|
gingerBill
|
17390cd317
|
Implement sync2.Recursive_Mutex using WaitOnAddress and friends on Windows
|
2021-04-27 17:19:12 +01:00 |
|
gingerBill
|
7ac80544a1
|
Max sync2.Sema on windows be i32 for the counter internally.
|
2021-04-27 16:59:25 +01:00 |
|
gingerBill
|
96b60d8779
|
Reimplement sync2.Sema on windows with WaitOnAddress primitives
|
2021-04-27 16:56:11 +01:00 |
|
gingerBill
|
24f2d97c0e
|
Make atomic compare related intrinsics optional ok
|
2021-04-27 16:55:39 +01:00 |
|
gingerBill
|
f6d98d2a16
|
Fix Makefile for macOs
|
2021-04-27 13:29:14 +01:00 |
|
gingerBill
|
ab5460e2e2
|
Update CI
|
2021-04-27 13:22:30 +01:00 |
|
gingerBill
|
cd1658e56c
|
Update Makefile
|
2021-04-27 13:14:54 +01:00 |
|
gingerBill
|
e7e1866e50
|
Fix #893
|
2021-04-27 13:09:37 +01:00 |
|
gingerBill
|
94fd59e6f0
|
Make compound literals require trailing commas if followed by a newline
|
2021-04-26 23:05:00 +01:00 |
|
gingerBill
|
c07ab5f9ad
|
Change expr_level increment rules within a compound literal
|
2021-04-26 23:02:00 +01:00 |
|
gingerBill
|
06e0da97b7
|
Implement ODIN_ROOT #913
|
2021-04-26 22:56:32 +01:00 |
|
gingerBill
|
04535b2913
|
Fix constant aliasing for debug information
|
2021-04-26 22:36:20 +01:00 |
|
gingerBill
|
6667b78c12
|
Correct core:os/os2 mock-up
|
2021-04-26 22:08:15 +01:00 |
|
gingerBill
|
7e0c78eae7
|
Fix logic for \n ignoring
|
2021-04-26 21:39:49 +01:00 |
|
gingerBill
|
6d1eb473cf
|
Correct \n ignore rules
|
2021-04-26 21:25:44 +01:00 |
|
gingerBill
|
898245431f
|
Make -strict-style the default #871
|
2021-04-26 21:07:58 +01:00 |
|
gingerBill
|
43942a6199
|
Fix odin run on Windows
|
2021-04-26 20:54:18 +01:00 |
|
gingerBill
|
a38586420c
|
Fix race condition with procedure aliases checking for declarations on constant aliases
|
2021-04-26 19:46:42 +01:00 |
|
gingerBill
|
1aa9c49172
|
Remove warning for "Redundant 'auto_cast' applied to expression"
|
2021-04-26 19:17:25 +01:00 |
|
gingerBill
|
5a88fef483
|
Make corrections
|
2021-04-26 18:07:34 +01:00 |
|
gingerBill
|
43b55223af
|
Merge branch 'master' into old-backend-removal
|
2021-04-26 11:46:58 +01:00 |
|
gingerBill
|
aa846d0ea5
|
Fix union #maybe comparison against nil -llvm-api
|
2021-04-26 11:46:26 +01:00 |
|
gingerBill
|
1d628a5e3d
|
Change how GIT_SHA is rendered in odin version
|
2021-04-25 22:23:47 +01:00 |
|
gingerBill
|
af3784ebb6
|
Add -DODIN_VERSION_RAW to Makefile
|
2021-04-25 22:19:34 +01:00 |
|
gingerBill
|
ff933ca37f
|
Remove old shell scripts in favour of Makefile
|
2021-04-25 22:13:01 +01:00 |
|
gingerBill
|
bbf79fc1d4
|
Add ODIN_VERSION_RAW define to build.bat
|
2021-04-25 22:10:52 +01:00 |
|
gingerBill
|
2af8e956a6
|
Change versioning system from v0.13.1 to dev-2021-04
|
2021-04-25 22:09:22 +01:00 |
|
gingerBill
|
9ed826f6fb
|
Remove import "core:runtime" from core:math/bits
|
2021-04-25 21:51:33 +01:00 |
|
gingerBill
|
07f9e551c1
|
Revert build.bat
|
2021-04-25 21:38:29 +01:00 |
|
gingerBill
|
df4404e093
|
Fix typo in gb_get_env
|
2021-04-25 21:24:33 +01:00 |
|
gingerBill
|
583fd89fcf
|
Add gb_get_env
|
2021-04-25 21:22:15 +01:00 |
|
gingerBill
|
2691c394e0
|
Add intrinsics.count_zeros
|
2021-04-25 20:50:25 +01:00 |
|
gingerBill
|
4662bad59c
|
Remove unused file
|
2021-04-25 20:31:35 +01:00 |
|
gingerBill
|
7086b49ae6
|
Rename intrinsics to count_trailing_zeros and count_leading_zeros
|
2021-04-25 20:26:11 +01:00 |
|
gingerBill
|
72aa0e6e38
|
Replace many foreign llvm calls with intrinsics
|
2021-04-25 20:22:26 +01:00 |
|
gingerBill
|
cb2e6ea31d
|
Remove use_llvm_api related checks and other related things
|
2021-04-25 20:03:05 +01:00 |
|
gingerBill
|
74c683e908
|
Remove -llvm-api from CI
|
2021-04-25 19:59:35 +01:00 |
|
gingerBill
|
6383714bff
|
Remove old procedure ABI code
|
2021-04-25 19:56:46 +01:00 |
|
gingerBill
|
a25e796b00
|
Delete ir.cpp and related files
|
2021-04-25 19:52:37 +01:00 |
|
gingerBill
|
833784e196
|
Remove old backend specific code in main
|
2021-04-25 19:51:57 +01:00 |
|
gingerBill
|
66a70b9d27
|
Remove the need for LLVM_BACKEND_SUPPORT
|
2021-04-25 19:49:29 +01:00 |
|
gingerBill
|
cd125c0f41
|
Override -llvm-api to always be true
|
2021-04-25 19:46:48 +01:00 |
|
gingerBill
|
ff620422fa
|
Fix #857
|
2021-04-25 19:40:02 +01:00 |
|
gingerBill
|
5685a8d885
|
Fix #911 for -llvm-api backend
|
2021-04-25 19:19:44 +01:00 |
|
gingerBill
|
1bdce19c18
|
Update nightly.yml to support -llvm-api
|
2021-04-25 18:44:05 +01:00 |
|
gingerBill
|
041ff13672
|
Update CI for Linux
|
2021-04-25 18:06:29 +01:00 |
|
gingerBill
|
60a2eaf666
|
Revert changes to macOS Makefile
|
2021-04-25 18:04:07 +01:00 |
|
gingerBill
|
ec2db568c1
|
Update Makefile for macOS to be more "correct" with Linux
|
2021-04-25 15:57:35 +01:00 |
|
gingerBill
|
1387fd9047
|
Make -llvm-api run first before old backend on Linux
|
2021-04-25 15:52:24 +01:00 |
|
gingerBill
|
fb6288a54e
|
Try specifying the specific libs on Linux
|
2021-04-25 15:48:54 +01:00 |
|
gingerBill
|
4d00058858
|
Try clang-11
|
2021-04-24 22:11:38 +01:00 |
|
gingerBill
|
5c26cf9d73
|
Try llvm-config-11 in the Makefil
|
2021-04-24 21:58:44 +01:00 |
|
gingerBill
|
6048d25d36
|
Try llvm-config-11
|
2021-04-24 21:26:14 +01:00 |
|
gingerBill
|
748f094e15
|
Add llvm-dev-11 to Linux CI (just testing)
|
2021-04-24 21:20:18 +01:00 |
|
gingerBill
|
184c686c7e
|
Add clang-11 for Linux; blank out threading_example on darwin
|
2021-04-24 21:13:40 +01:00 |
|
gingerBill
|
240a568eb9
|
Update CI to run both old and new backends
|
2021-04-24 21:09:35 +01:00 |
|
gingerBill
|
ad953c4670
|
Add cast on S_ISDIR
|
2021-04-24 21:08:15 +01:00 |
|
gingerBill
|
0f9b0c2052
|
Remove libllvm-11
|
2021-04-24 21:04:38 +01:00 |
|
gingerBill
|
cde334ada3
|
Modify flags in Makefile
|
2021-04-24 21:03:22 +01:00 |
|
gingerBill
|
2b4010998d
|
Up ci.yml
|
2021-04-24 20:55:50 +01:00 |
|
gingerBill
|
4272fe5e85
|
Update Makefile to compile with LLVM C API
|
2021-04-24 20:46:47 +01:00 |
|
gingerBill
|
c29b643a58
|
Move out some intrinsics into separate procedures in llvm_backend.cpp; Rename InlineRangeStmt to UnrollRangeStmt (eventually merge the two AST nodes)
|
2021-04-24 15:00:01 +01:00 |
|
gingerBill
|
c9b82a21e9
|
Move check_builtin_procedure to check_builtin.cpp
|
2021-04-23 10:01:52 +01:00 |
|
gingerBill
|
bd31a99bf7
|
Remove redundant auto_cast
|
2021-04-23 09:50:26 +01:00 |
|
gingerBill
|
17bbb48d8a
|
Warn on redundant auto_cast, and make an error on -vet
|
2021-04-22 17:36:28 +01:00 |
|
gingerBill
|
ac53577e9b
|
Improve auto_cast logic
|
2021-04-22 17:29:48 +01:00 |
|
gingerBill
|
896057b5a7
|
Reuse unused 'context' variables to minimize stack usage (-llvm-api)
|
2021-04-22 16:56:02 +01:00 |
|
gingerBill
|
01db195b47
|
Make main calling convention "odin" rather than "contextless" to simplify code generation
|
2021-04-22 16:26:28 +01:00 |
|
gingerBill
|
d33350e3a5
|
Add truncate_to_byte and truncate_to_rune for packages strings and bytes
|
2021-04-22 15:49:10 +01:00 |
|
gingerBill
|
8a86c4c7cc
|
Remove old code
|
2021-04-22 14:24:30 +01:00 |
|
gingerBill
|
1c9f48031d
|
Change function pass manager passes
|
2021-04-22 13:54:26 +01:00 |
|
gingerBill
|
7fcd5ecbd5
|
Change how lb_populate_function_pass_manager works by using the default LLVM passes when not using minimal optimizations
|
2021-04-22 12:35:01 +01:00 |
|