aboutsummaryrefslogtreecommitdiff
path: root/src/llvm_backend_proc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix-up inline asm for i386 syscalls emitflysand72023-10-301-1/+1
|
* llvm: specify calling convention on callMorten Hauke Solvang2023-10-131-0/+3
| | | | | | | 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.
* Remove debug messagegingerBill2023-09-291-1/+0
|
* Rename simd bitwise operations from `intrinsics.simd_and` to ↵gingerBill2023-09-281-8/+8
| | | | `intrinsics.simd_bit_and` etc
* Fix `ptr != ptr` type cast problem in LLVM 17gingerBill2023-09-261-2/+15
|
* Fix build times for `-o:<string>` in LLVM-17gingerBill2023-09-211-2/+2
|
* Add attributes for sanitize_memory and sanitize_threadgingerBill2023-09-211-0/+6
|
* Add `sanitize_address` attribute to all normal packagesgingerBill2023-09-211-1/+6
|
* Fix read_cycle_counter intrinsic on arm64William Roe2023-08-071-1/+1
| | | | | | | Running this code with the hard-coded x9 register results in not returning the cycle count, but some other value. This code (using $0 as the register), works on arm64 Linux and Darwin.
* Remove #relative slices; Replace with #relative multi-pointersgingerBill2023-08-051-2/+2
|
* Fix #2699gingerBill2023-08-051-3/+9
|
* Go through loads of `TODO`sgingerBill2023-08-011-4/+1
|
* Generalize name mangling rule to have a singular definition for a name separatordev-2023-07gingerBill2023-07-071-1/+1
|
* Fix #2606gingerBill2023-06-261-1/+5
|
* Fix empty varargsgingerBill2023-06-211-0/+3
|
* Handle `#c_vararg`gingerBill2023-06-211-6/+9
|
* Correct deferred proceduresgingerBill2023-06-211-87/+109
|
* Fix constant parameter passinggingerBill2023-06-211-17/+27
|
* Correct purely named argument handlinggingerBill2023-06-211-248/+2
|
* Start work on parapoly args for new and improvedgingerBill2023-06-201-1/+1
|
* Try to get make everything work with parapolygingerBill2023-06-201-1/+6
|
* Fix line error printing for error messagesgingerBill2023-06-191-7/+7
|
* Basic support for new procedure code (non-polymorphic, non-proc-group)gingerBill2023-06-151-0/+119
|
* Merge pull request #1309 from Yawning/fix/freebsd-syscallgingerBill2023-06-071-4/+45
|\ | | | | src: "Fix" the system call intrinsic for FreeBSD
| * Merge branch 'master' into fix/freebsd-syscallgingerBill2022-07-241-278/+1004
| |\
| * | src: "Fix" the system call intrinsic for FreeBSDYawning Angel2021-11-131-5/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FreeBSD's systemcall handler clears out R8, R9, and R10 prior to `sysretq`, and additionally returns positive errno (with CF) set on error. This modifies the syscall intrinsic such that LLVM knows about the additional clobbered registers. Note that propagating CF back to the caller of the syscall intrinsic is left for a future PR. As far as I can tell, Darwin does not use the syscall intrinsic at all, and FreeBSD only uses it for SYS_GETTID, so this should be "ok" for now. See: sys/amd64/amd64/exception.S in the FreeBSD src for more details.
* | | Fix wasm intrinsics; fix `len` for strings and slicesgingerBill2023-06-061-6/+6
| | |
* | | Merge branch 'master' into separate-int-word-sizesgingerBill2023-06-061-4/+4
|\ \ \
| * | | Minor change to handling of propagation of errors with `---` as a valuegingerBill2023-05-221-4/+4
| | | |
| * | | Revert "Change `intrinsics.read_cycle_counter` on ARM64"gingerBill2023-05-121-1/+1
| | | | | | | | | | | | | | | | This reverts commit b567679eb6cf3fd1820a6163c1f17d620d88894f.
| * | | Change `intrinsics.read_cycle_counter` on ARM64gingerBill2023-05-121-1/+1
| | | |
* | | | Rename `word_size` to `ptr_size` internally to make it clearergingerBill2023-04-201-2/+2
|/ / /
* | | Merge pull request #2464 from ap29600/simd_unaligned_loadgingerBill2023-04-201-5/+19
|\ \ \ | | | | | | | | Improve code generation for `intrinsics.unaligned_load/store` on `#simd` types
| * | | improve code generation for `intrinsics.unaligned_load/store` on `#simd` typesAndrea Piseri2023-04-161-5/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the default implementation calls memcpy on an `alloca` constant, which seems to heavily confuse the optimizer and produces overall suboptimal code. Introducing this specialization simplifies the intermediate representation produced, resulting in more efficient code.
* | | | Merge pull request #2450 from destroycomputers/mastergingerBill2023-04-201-1/+1
|\ \ \ \ | | | | | | | | | | Fix intrinsics.alloca code generation
| * | | | Fix intrinsics.alloca code generationdestroycomputers2023-04-111-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a disconnect between the declared return type for alloca intrinsic in check_builtin.cpp (multi_pointer(t_u8)) and the generated result type in llvm_backend_proc.cpp (t_u8_ptr). This allowed slicing the return type, but in the code generation process the type of the expression wasn't sliceable, which triggered the assert. Fixes #2139
* / / / Add `@(deferred_*_by_ptr=<proc>)`gingerBill2023-04-151-0/+16
|/ / /
* | | Increase use of `temporary_allocator()` where possiblegingerBill2023-03-161-7/+7
| | |
* | | Minimize severe memory usage by enforcing the `heap_allocator()` in placesgingerBill2023-03-161-5/+8
| | |
* | | Fix #2329gingerBill2023-02-191-3/+24
| | |
* | | Improve handling of passing constants to implicit immutable const ref parametersgingerBill2023-02-171-2/+18
| | |
* | | Rename built-in procedure to `expand_values`gingerBill2023-02-071-3/+3
| | |
* | | Enforce dynamic map calls for the time beinggingerBill2023-02-031-2/+2
| | |
* | | Minor change to `byval` for readonly parametersgingerBill2023-02-031-3/+12
| | |
* | | Use `~{}` syntaxgingerBill2023-01-231-1/+1
| | |
* | | Escape `$` in asmgingerBill2023-01-231-1/+1
| | |
* | | Fix #2286 by printing an error correctlygingerBill2023-01-161-1/+3
| | |
* | | Fix #2305gingerBill2023-01-161-1/+8
| | |
* | | Begin to generalize modules away from `AstPackage *` in `-use-separate-modules`gingerBill2023-01-121-1/+1
| | |
* | | Correct missing procedures in other build modules which cause a linkage problemgingerBill2023-01-121-6/+8
| | |