Commit Graph

  • b8327ad00d Merge pull request #912 from odin-lang/llvm-api-ci-changes gingerBill 2021-04-25 19:02:24 +01:00
  • 1bdce19c18 Update nightly.yml to support -llvm-api gingerBill 2021-04-25 18:44:05 +01:00
  • 041ff13672 Update CI for Linux gingerBill 2021-04-25 18:06:29 +01:00
  • 60a2eaf666 Revert changes to macOS Makefile gingerBill 2021-04-25 18:04:07 +01:00
  • ec2db568c1 Update Makefile for macOS to be more "correct" with Linux gingerBill 2021-04-25 15:57:35 +01:00
  • 1387fd9047 Make -llvm-api run first before old backend on Linux gingerBill 2021-04-25 15:52:24 +01:00
  • fb6288a54e Try specifying the specific libs on Linux gingerBill 2021-04-25 15:48:54 +01:00
  • 4d00058858 Try clang-11 gingerBill 2021-04-24 22:11:38 +01:00
  • 5c26cf9d73 Try llvm-config-11 in the Makefil gingerBill 2021-04-24 21:58:44 +01:00
  • 6048d25d36 Try llvm-config-11 gingerBill 2021-04-24 21:26:14 +01:00
  • 748f094e15 Add llvm-dev-11 to Linux CI (just testing) gingerBill 2021-04-24 21:20:18 +01:00
  • 184c686c7e Add clang-11 for Linux; blank out threading_example on darwin gingerBill 2021-04-24 21:13:40 +01:00
  • 240a568eb9 Update CI to run both old and new backends gingerBill 2021-04-24 21:09:35 +01:00
  • ad953c4670 Add cast on S_ISDIR gingerBill 2021-04-24 21:08:15 +01:00
  • 0f9b0c2052 Remove libllvm-11 gingerBill 2021-04-24 21:04:38 +01:00
  • cde334ada3 Modify flags in Makefile gingerBill 2021-04-24 21:03:22 +01:00
  • 2b4010998d Up ci.yml gingerBill 2021-04-24 20:55:50 +01:00
  • 4272fe5e85 Update Makefile to compile with LLVM C API gingerBill 2021-04-24 20:46:47 +01:00
  • c29b643a58 Move out some intrinsics into separate procedures in llvm_backend.cpp; Rename InlineRangeStmt to UnrollRangeStmt (eventually merge the two AST nodes) gingerBill 2021-04-24 15:00:01 +01:00
  • 87bfd31664 force all enums newlined if there is more than one line Daniel Gavin 2021-04-23 23:42:53 +02:00
  • 5fba548aa0 more fixes with wierd comment placements Daniel Gavin 2021-04-23 23:22:48 +02:00
  • aafbf5bac7 odinfmt Daniel Gavin 2021-04-23 22:55:59 +02:00
  • 951e940470 handle comments in stupid places Daniel Gavin 2021-04-23 21:52:27 +02:00
  • 3b5b845ea6 refractor Daniel Gavin 2021-04-23 16:45:55 +02:00
  • 3f9ad6ba09 fix proc group, struct align with internal structs Daniel Gavin 2021-04-23 16:33:11 +02:00
  • c9b82a21e9 Move check_builtin_procedure to check_builtin.cpp gingerBill 2021-04-23 10:01:52 +01:00
  • bd31a99bf7 Remove redundant auto_cast gingerBill 2021-04-23 09:50:26 +01:00
  • f10f7ebbf1 Merge remote-tracking branch 'upstream/master' into prototype-fmt Daniel Gavin 2021-04-23 10:24:05 +02:00
  • 17bbb48d8a Warn on redundant auto_cast, and make an error on -vet gingerBill 2021-04-22 17:36:28 +01:00
  • ac53577e9b Improve auto_cast logic gingerBill 2021-04-22 17:29:48 +01:00
  • 896057b5a7 Reuse unused 'context' variables to minimize stack usage (-llvm-api) gingerBill 2021-04-22 16:56:02 +01:00
  • 01db195b47 Make main calling convention "odin" rather than "contextless" to simplify code generation gingerBill 2021-04-22 16:26:28 +01:00
  • d33350e3a5 Add truncate_to_byte and truncate_to_rune for packages strings and bytes gingerBill 2021-04-22 15:49:10 +01:00
  • 8a86c4c7cc Remove old code gingerBill 2021-04-22 14:24:30 +01:00
  • 1c9f48031d Change function pass manager passes gingerBill 2021-04-22 13:54:26 +01:00
  • 7fcd5ecbd5 Change how lb_populate_function_pass_manager works by using the default LLVM passes when not using minimal optimizations gingerBill 2021-04-22 12:35:01 +01:00
  • b68b090f13 Add intrinsics: overflow_add, overflow_sub, overflow_mul; Change byte swap behaviour in -llvm-api to be the same as the intrinsic gingerBill 2021-04-22 11:33:46 +01:00
  • 542098dc6f Add intrinsics: byte_swap (integers and floats); count_ones; trailing_zeros; reverse_bits gingerBill 2021-04-22 11:06:16 +01:00
  • 0a66f8c9a3 Remove intrinsics.x86_mmx type gingerBill 2021-04-22 10:39:20 +01:00
  • 158e4c0b6c Add @(cold) tag gingerBill 2021-04-22 10:35:37 +01:00
  • 47c7dc6a9b Add new intrinsics: debug_trap, trap, read_cycle_counter, expect gingerBill 2021-04-22 10:35:17 +01:00
  • 65551ba8fb Add optimization_mode attribute for procedures gingerBill 2021-04-22 00:04:47 +01:00
  • 40ed7e48d0 remove prints Daniel Gavin 2021-04-22 00:56:31 +02:00
  • ab53900c95 check comma count in enum instead Daniel Gavin 2021-04-22 00:55:25 +02:00
  • c7d92562c2 Fix typo gingerBill 2021-04-21 23:40:19 +01:00
  • 5b3802b8ca Add new -o:<string> flag as an alternative to -opt:<integer> gingerBill 2021-04-21 23:39:48 +01:00
  • 43589a56b7 odinfmt on printer Daniel Gavin 2021-04-22 00:32:36 +02:00
  • 2fb0383e82 Add -build-mode:llvm-ir for -llvm-api backend gingerBill 2021-04-21 23:25:08 +01:00
  • de1838c0cb align not mutable correctly Daniel Gavin 2021-04-22 00:23:17 +02:00
  • 9b8563dfc0 style Daniel Gavin 2021-04-22 00:08:03 +02:00
  • b18e8898d8 ran odinfmt on source Daniel Gavin 2021-04-22 00:07:07 +02:00
  • ca112c0b6d better placing of the end brace Daniel Gavin 2021-04-22 00:04:01 +02:00
  • 6eb64f2bdc align enum Daniel Gavin 2021-04-21 23:40:08 +02:00
  • 25c3b6dc95 align value decls Daniel Gavin 2021-04-21 23:21:45 +02:00
  • 8077d5f565 Merge branch 'master' of https://github.com/odin-lang/Odin gingerBill 2021-04-21 10:52:34 +01:00
  • 6b45856e81 Remove useless error message for constant binary expressions with non-constant operations gingerBill 2021-04-21 10:52:26 +01:00
  • 28e5df6e7f Merge pull request #907 from awwdev/fix-variable-name-in-path_unix gingerBill 2021-04-20 21:14:25 +01:00
  • 22867ec6f0 fix variable name in path_unix André 2021-04-20 22:09:10 +02:00
  • d0a50ff0a3 Merge pull request #905 from jasmcaus/patch-1 gingerBill 2021-04-20 10:44:54 +01:00
  • e9b1d4f633 Fix #906 gingerBill 2021-04-20 10:34:41 +01:00
  • ba9f0dd553 Hack ABI for windows passing pointers to structures gingerBill 2021-04-19 23:03:22 +01:00
  • c3b3194a00 Update builtin procedures to support the new allocator features (without breaking other code) gingerBill 2021-04-19 22:44:20 +01:00
  • 201cad51a9 Fix typo gingerBill 2021-04-19 22:41:52 +01:00
  • d21e522208 Add code that was accidentally removed gingerBill 2021-04-19 22:35:59 +01:00
  • f1bdd2e60f Improve #optional_ok logic for procedures; Add #optional_second for package runtime usage gingerBill 2021-04-19 22:31:14 +01:00
  • 3464784e5e add proc to format multiline Daniel Gavin 2021-04-19 19:41:53 +02:00
  • f1dc7c0b27 more work Daniel Gavin 2021-04-19 19:38:08 +02:00
  • 0eb75886d1 Allow assignment of procedure calls with #optional_ok to single values gingerBill 2021-04-19 16:02:36 +01:00
  • 3612569624 Allow casting of #optional_ok call expressions gingerBill 2021-04-19 15:46:12 +01:00
  • c83d13d0cb Fix update_expr_type behaviour, along with fixing procedure groups updating the proc expr type gingerBill 2021-04-19 15:12:10 +01:00
  • f98c4d6837 Improve the Allocator interface to support returning Allocator_Error to allow for safer calls gingerBill 2021-04-19 12:31:31 +01:00
  • a4d0092b16 Remove temporary reference types gingerBill 2021-04-19 11:02:09 +01:00
  • eb49b5f84a Fix override_entity_in_scope behaviour to correctly to report the changes upstream better gingerBill 2021-04-19 11:01:00 +01:00
  • 9d949ef82e Fix potential Typo : S32 ==> I32 Jason Dsouza 2021-04-19 11:41:02 +05:30
  • c708f649ec Merge remote-tracking branch 'upstream/master' into prototype-fmt Daniel Gavin 2021-04-19 02:13:29 +02:00
  • f7b8b3a340 ensure that the comments gets pushed if it's in the beginning before package Daniel Gavin 2021-04-18 22:06:32 +02:00
  • 2cbb3443d3 ran odinfmt Daniel Gavin 2021-04-18 21:53:52 +02:00
  • 11bd518f36 fix bugs Daniel Gavin 2021-04-18 21:52:00 +02:00
  • ae04af4e4e Add package flags gingerBill 2021-04-18 20:19:03 +01:00
  • 3baddd4116 Improve init_string determination for constants gingerBill 2021-04-18 20:13:20 +01:00
  • a721802337 fixing calls in calls Daniel Gavin 2021-04-18 21:07:58 +02:00
  • 6ae468828c Improve odin-doc type information for Named types by storing the base type gingerBill 2021-04-18 19:59:24 +01:00
  • b59e110fec Add calling_convention to Type gingerBill 2021-04-18 19:26:36 +01:00
  • 4282688e60 Add calling_convention to odin-doc Type format gingerBill 2021-04-18 19:26:21 +01:00
  • 9b3fb25a41 Fix enumerated arrays for .odin-doc gingerBill 2021-04-18 19:15:14 +01:00
  • 2ce9873464 Remove dead comment gingerBill 2021-04-18 18:53:19 +01:00
  • 986844a0f0 Change elem_counts to i64le from u64 gingerBill 2021-04-18 18:48:56 +01:00
  • 7c1f538c02 Change u32 to u32le gingerBill 2021-04-18 18:46:29 +01:00
  • 2f1c896290 Add -doc-format command for the new .odin-doc file format (to be used to generate documentation tools) gingerBill 2021-04-18 18:33:15 +01:00
  • 5a8c7b4f90 support multiline for and if Daniel Gavin 2021-04-16 02:15:29 +02:00
  • f17fc05ff2 format call and binary expression Daniel Gavin 2021-04-16 00:44:16 +02:00
  • a12db382e0 damn, ran the odinfmt with spaces instead of tabs... Daniel Gavin 2021-04-15 00:24:00 +02:00
  • 22daa50374 ran the odinfmt - looks good, except for multi line binary operations Daniel Gavin 2021-04-15 00:19:13 +02:00
  • a09300fb0e more fixes Daniel Gavin 2021-04-15 00:11:10 +02:00
  • 8827818b1d Clean-up fallback io.read_at and io.write_at behaviour gingerBill 2021-04-14 21:25:46 +01:00
  • bab4e5531a remove print Daniel Gavin 2021-04-14 21:53:11 +02:00
  • e19958152a Fix floattidf gingerBill 2021-04-14 20:45:05 +01:00
  • 05a181d719 Fix style issues; Use new attribute @(cold) where appropriate in the new sync package gingerBill 2021-04-14 20:19:02 +01:00
  • d24784074c Add extra error to io.Error gingerBill 2021-04-14 20:17:54 +01:00
  • cd2476e084 Add buffer_read_at buffer_write_at gingerBill 2021-04-14 20:13:26 +01:00