Commit Graph

4128 Commits

Author SHA1 Message Date
Jeroen van Rijn
8028033513 Merge pull request #2957 from laytan/no-crt-and-compile-assembly-on-darwin
-no-crt on darwin_arm64 and assembly compilation on darwin
2023-11-15 18:46:35 +01:00
Laytan Laats
6b9202dfbf -no-crt and assembly compilation on darwin 2023-11-15 18:06:27 +01:00
Laytan Laats
9e5e49a65d checker: suggest ..[]T when passing a slice to variadic arg ..T 2023-11-14 16:56:52 +01:00
gingerBill
c36ac4bdfd Bodge: fix matrix_flatten issue in Win64 ABI 2023-11-06 13:59:06 +00:00
gingerBill
5edb2c5688 Fix #2913 2023-11-04 14:53:42 +00:00
gingerBill
ce5e7998ba Add warning for things like 1.0 / some_int 2023-11-04 11:22:06 +00:00
gingerBill
864b29f7f1 Add missing calls 2023-11-01 13:57:20 +00:00
Laytan
9b68671082 Fix empty pass because of trailing comma 2023-10-31 19:29:54 +01:00
gingerBill
51caa930ca Merge pull request #2905 from odin-lang/llvm-17-custom-passes
Explicit Optimization Passes for LLVM-17 Passes
2023-10-30 15:00:55 +00:00
gingerBill
b7af4e7f6b Explicitly write out the passes for each level and remove certain passes 2023-10-30 12:31:24 +00:00
flysand7
82263a8b38 Merge branch 'master' into i386-syscall-asm-fix 2023-10-30 10:32:11 +11:00
gingerBill
61ad2a1345 TEST: Add sroa passes back 2023-10-29 20:45:19 +00:00
gingerBill
d589914956 Ignore store undef calls 2023-10-29 20:43:02 +00:00
gingerBill
f54a026acc Remove trailing comma 2023-10-29 20:33:29 +00:00
gingerBill
fc06d7011d Use default passes without coro, openmp, and sroa passes 2023-10-29 20:31:53 +00:00
gingerBill
ed7c9ec619 Test: use custom passes for -o:speed 2023-10-29 20:13:03 +00:00
gingerBill
1d9f6346d4 Force dynamic map calls on non-windows targets 2023-10-29 17:23:24 +00:00
flysand7
a3a3156ddd Fix-up inline asm for i386 syscalls emit 2023-10-30 02:03:35 +11:00
gingerBill
034aead930 Only make static map get calls inlineable outside of debug builds 2023-10-27 14:55:54 +01:00
gingerBill
c8a5bafc6b Fix static map calls and default to them! 2023-10-27 14:53:48 +01:00
gingerBill
bc0fa1240b Disable using giant packed struct for type info table for the time being 2023-10-27 13:03:21 +01:00
jakubtomsu
ba536d67b4 Change and to or 2023-10-25 22:17:38 +02:00
gingerBill
6ee7b05b27 Merge pull request #2850 from jcmdln/linux-llvm-17
Support LLVM >=17.0.1 on Darwin and Linux
2023-10-16 16:15:59 +01:00
jcmdln
8fe431e53e Only check LLVM_VERSION_MAJOR >= 17 for PassBuilder inclusion 2023-10-15 12:03:56 -04:00
Jeroen van Rijn
a62039882e Merge pull request #2867 from flysand7/linux-asm
Implement foreign asm (x86) imports for linux and osx
2023-10-15 12:53:32 +02:00
flysand7
a2a05e40e6 implemented foreign asm imports on linux/osx 2023-10-15 21:25:55 +11:00
Morten Hauke Solvang
fb5bb1cd83 llvm: specify calling convention on call
Looks like the compiler only was specifying the calling convention on
function declarations, but not on function calls.
But LLVM seems to produce "bad" code when optimizing with level -O2
unless you specify the same calling convention on the call too.
2023-10-13 21:21:54 +02:00
gingerBill
23c4615f5e Disallow direct return a compound literal of a slice with elements 2023-10-13 12:19:48 +01:00
jcmdln
bd86cb22e0 Support LLVM >=17.0.1 on Darwin and Linux 2023-10-11 21:06:42 -04:00
gingerBill
cffa035c1b Add ERROR_BLOCK() to check_unique_package_names 2023-10-09 13:36:15 +01:00
jakubtomsu
394c12f68d Remove unnecessary check zero fields check 2023-10-01 13:13:09 +02:00
jakubtomsu
1a57ad233d Fix field count in enumerated array type info 2023-10-01 13:09:08 +02:00
jakubtomsu
c268463413 Allow zero-length enumerated arrays 2023-10-01 12:21:44 +02:00
gingerBill
f9c6f6856b Fix #2261 2023-09-30 20:32:24 +01:00
gingerBill
3e0fd63682 Fix or_break code generation issue 2023-09-30 18:58:28 +01:00
gingerBill
1f643b5816 Remove -vet-extra 2023-09-30 18:29:18 +01:00
gingerBill
648b83d6ea Add or_break and or_continue constructs 2023-09-30 15:04:17 +01:00
gingerBill
3fae38a2f8 Correct get_file_line_as_string to fix #2829 2023-09-29 12:17:15 +01:00
gingerBill
23054138c2 Remove debug message 2023-09-29 12:12:14 +01:00
gingerBill
63f755554b Rename simd bitwise operations from intrinsics.simd_and to intrinsics.simd_bit_and etc 2023-09-28 16:42:08 +01:00
gingerBill
70aff9fbb2 Update src/build_settings.cpp
Co-authored-by: Laytan Laats <laytanlaats@hotmail.com>
2023-09-27 14:01:45 +01:00
gingerBill
c529b1b73a Generate the global type info member values even if the count is 0 2023-09-27 11:44:29 +01:00
gingerBill
acc29fbceb Merge branch 'master' into llvm-17 2023-09-27 11:38:11 +01:00
gingerBill
fc93ea7aa3 Fix #2820 2023-09-26 15:15:31 +01:00
gingerBill
fb935541c9 Fix #2809 - disallow files to start with _ 2023-09-26 13:10:18 +01:00
gingerBill
47023b2e6c Fix #2812 2023-09-26 13:04:47 +01:00
gingerBill
f4a390201c Fix #2819 2023-09-26 13:02:40 +01:00
gingerBill
d358ebd7e6 Potentially fix race condition #2463 #2814 2023-09-26 12:57:26 +01:00
gingerBill
9711dd1381 Fix #2816 2023-09-26 12:41:33 +01:00
gingerBill
4c328d83ba Fix #2817 2023-09-26 12:40:35 +01:00