aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Add `#warning(<string>)` builtin compile time proceduregingerBill2024-06-201-0/+20
|
* Merge pull request #3524 from Feoramund/freebsd-amd64-syscall-errnogingerBill2024-06-201-6/+52
|\ | | | | Add `intrinsics.syscall_bsd`
| * Add `intrinsics.syscall_bsd`Feoramund2024-06-121-6/+52
| | | | | | | | | | | | This is a BSD-style syscall that checks for a high Carry Flag as the error state. If the CF is high, the boolean return value is false, and if it is low (no errors) then the boolean return value is true.
* | Merge pull request #3137 from laytan/show-defineablegingerBill2024-06-201-1/+27
|\ \ | |/ |/| Add flags to show/export defineable values and warn if a -define is unused in the project
| * collect and show docs of defineablesLaytan Laats2024-06-071-1/+7
| |
| * check if -define is actually usedLaytan Laats2024-06-061-2/+13
| |
| * -show-defineables and -export-defineablesLaytan Laats2024-06-061-1/+10
| |
* | Add `intrinsics.procedure_of`gingerBill2024-06-101-0/+46
| | | | | | | | | | | | | | | | ```odin foo :: proc(x: $T) { fmt.println(x) } bar :: intrinsics.procedure_of(foo(int(123))) // parameters are never ran at compile time, similar to `size_of` bar(333) // prints 333 ```
* | Prevent panic when `swizzle` called with < 2 indicesFeoramund2024-06-081-0/+3
| | | | | | | | | | | | The requirement for at least 2 indices has been sourced from `lb_addr_swizzle` in `llvm_backend_general.cpp`, where there is an assert to ensure the swizzle_count is `1 < n <= 4`.
* | Try to fix a possible race condition with polymorphic record parametersgingerBill2024-06-061-23/+8
|/
* implement `#exists(path)`Laytan Laats2024-06-041-24/+70
|
* fix crash when you have 2 `#load_directory` calls with the same pathLaytan Laats2024-06-041-0/+2
|
* Initial hash directive implementationDudejoe8702024-05-281-49/+118
|
* Fix #3603gingerBill2024-05-201-1/+7
|
* Add intrinsics `type_is_matrix_row_major` & `type_is_matrix_column_major`gingerBill2024-05-201-0/+28
|
* Fix `soa_zip` and `soa_unzip`gingerBill2024-05-161-2/+2
|
* Add intrinsics `type_bit_set_elem_type` & `type_bit_set_underlying_type`gingerBill2024-05-091-0/+52
|
* Fix #3464gingerBill2024-05-071-0/+3
|
* compiler: improve target features supportLaytan Laats2024-05-021-2/+44
|
* Make `intrinsics.overflow_*` NOT `#optional_ok`gingerBill2024-04-101-2/+2
|
* enable the required target feature `atomics` when using them in wasmLaytan Laats2024-04-081-0/+4
|
* Fix fields_wait_signal futex.rick-masters2024-03-241-0/+2
|
* Add error block around `error_line` callsgingerBill2024-03-231-0/+3
|
* Correct matrix builtins for `#row_major`gingerBill2024-03-191-2/+2
|
* Serialize errors to make them sortable, deterministic, and generally more ↵gingerBill2024-03-191-1/+1
| | | | control
* Merge branch 'haiku' of https://github.com/avanspector/Odin into haikuavanspector2024-02-251-0/+20
|\
| * Add `intrinsics.type_bit_set_backing_type`gingerBill2024-02-231-0/+20
| |
* | Improve Haiku supportavanspector2024-02-251-0/+1
|/
* Add `#load_directory(path: string) > []runtime.Load_Directory_File`gingerBill2024-02-091-52/+135
|
* Allow polymorphic checking with `intrinsics.type_is_subtype_of(Derived_Type, ↵gingerBill2024-02-081-1/+1
| | | | Poly_Type)`
* Fix `type_elem_type` for `complex32` and `quaternion64`gingerBill2024-02-021-0/+2
|
* Fix the type inference in `builtin.quaternion`gingerBill2024-01-051-7/+14
|
* Fix `builtin.quaternion` generationgingerBill2024-01-051-72/+54
|
* Enforce naming the parameters with `builtin.quaternion` to reduce confusiongingerBill2024-01-051-15/+124
|
* fix load directive with absolute pathsLaytan Laats2023-12-271-6/+9
|
* Add missing type information for soa structsgingerBill2023-11-231-0/+2
|
* Merge branch 'odin-lang:master' into union-tag-intrinsicsjakubtomsu2023-10-271-3/+3
|\
| * Change and to orjakubtomsu2023-10-251-3/+3
| |
* | Remove len,cap,min,max and implement type_union_base_tag_value, ↵jakubtomsu2023-10-271-24/+55
| | | | | | | | type_union_variant_count
* | Rename type_union_tag to type_union_tag_typejakubtomsu2023-10-251-1/+1
| |
* | Fix indentationjakubtomsu2023-10-251-2/+2
| |
* | Fix the intrinsics, add min and maxjakubtomsu2023-10-251-9/+37
| |
* | Implement new union intrinsics and add support for len/capjakubtomsu2023-10-231-1/+138
|/
* Rename simd bitwise operations from `intrinsics.simd_and` to ↵gingerBill2023-09-281-4/+4
| | | | `intrinsics.simd_bit_and` etc
* Fix #2812gingerBill2023-09-261-1/+1
|
* Remove #relative slices; Replace with #relative multi-pointersgingerBill2023-08-051-1/+1
|
* Add `raw_data(^matrix[R, C]T) -> [^]T`gingerBill2023-08-051-0/+3
|
* Replace a lot of warnings with errors; remove deprecated stuffgingerBill2023-08-011-1/+1
|
* Rename `ODIN_DISALLOW_RTTI` to `ODIN_NO_RTTI`; Remove dead command line flagsgingerBill2023-06-121-2/+2
|
* Make `intrinsics.type_merge` form a union of the types; ignoring duplicatesgingerBill2023-05-191-4/+18
|