86 Commits

Author SHA1 Message Date
Duncan Ogilvie 44840dc279 Minor API changes
Closes #11
Closes #12
Closes #13
2026-05-13 20:18:43 +02:00
Duncan Ogilvie ad55024932 Attribute add_memory 2026-05-13 18:50:39 +02:00
Duncan Ogilvie 48d7999bf1 Add function.optimize 2026-05-13 18:16:55 +02:00
Duncan Ogilvie 1034b9750f Remove explicit target initialization from API surface and do on startup 2026-05-13 17:51:53 +02:00
Duncan Ogilvie 723641ee50 Add high-level API for (named) metadata 2026-05-13 16:58:02 +02:00
Duncan Ogilvie 2c832090ee Add JIT/optimize/intrinsic/object support 2026-05-13 01:58:02 +02:00
Duncan Ogilvie 796f78e0bc Add plan 2026-05-13 01:22:03 +02:00
Duncan Ogilvie 46643f2523 Refactor attribute API 2026-05-12 23:20:21 +02:00
Duncan Ogilvie 57074d321c Consistently use Python properties where appropriate 2026-05-12 17:55:29 +02:00
Duncan Ogilvie 231c74cdd2 Rename get_or_insert to reuse_existing
Closes #5
2026-05-12 16:15:28 +02:00
Duncan Ogilvie 6dd2bdb9f0 cleanup: address API cleanup review comments 2026-05-12 13:52:40 +02:00
Duncan Ogilvie acb6632e59 cleanup: add get_or_insert semantics for named structs 2026-05-12 11:44:14 +02:00
Duncan Ogilvie 6f084ea459 cleanup: refresh API surface docs 2026-05-12 04:22:34 +02:00
Duncan Ogilvie 4871621fff cleanup: remove legacy module-level API aliases 2026-05-12 04:14:05 +02:00
Duncan Ogilvie 2caf139ac9 cleanup: finish context and vector constant factories 2026-05-12 04:08:17 +02:00
Duncan Ogilvie 8b343f7c63 cleanup: move API helpers onto owning objects 2026-05-12 04:05:14 +02:00
Duncan Ogilvie a7bdd91770 Improve Type.const_xxx API 2026-05-12 03:27:20 +02:00
Duncan Ogilvie 1aa11847c7 Refresh public examples 2026-05-12 01:49:51 +02:00
Duncan Ogilvie 26763333c2 Remove llvm_c_test from package 2026-05-11 16:45:05 +02:00
expend20 5600f16eed CI attempt 2026-02-20 19:48:39 -05:00
Duncan Ogilvie 11a0daaef6 Fix more LLVM-C test bugs 2026-02-19 23:30:30 +01:00
Duncan Ogilvie 31235208a3 Improve LLVM-C test coverage 2026-02-19 22:02:59 +01:00
Duncan Ogilvie affa8258d6 Improve API design 2026-02-16 12:50:51 +01:00
Duncan Ogilvie 5b4132a6ef Better documentation for .operands 2026-02-16 03:31:07 +01:00
Duncan Ogilvie f7079dd0df We love assertions 2026-02-16 02:56:43 +01:00
Duncan Ogilvie f315105314 Assertions go brr 2026-02-16 02:44:50 +01:00
Duncan Ogilvie a4858fb5a2 We do a bit of asserting 2026-02-16 02:24:36 +01:00
Duncan Ogilvie b1701a76d2 Progress transformation-api 2026-02-16 01:09:28 +01:00
Duncan Ogilvie 62bd819a07 Small pass to update devdocs for transformation-api 2026-02-15 22:43:29 +01:00
expend20 654bb90daa Add transformation API primitives and improve type ergonomics
Make ctx.types.ptr a property (address space 0) instead of a method call,
  with addrspace_ptr(n) for non-default address spaces. Add split_basic_block,
  instruction_clone, and set_called_operand to support IR transformation
  workflows. Improve get_operand bounds checking to report index and count
  instead of segfaulting. Add LibXml2 workaround for LLVM 21 on Windows.

  New regression tests for operand bounds and split_basic_block. Update all
  existing tests, examples, and docs to use the new ptr property syntax.
  Fix test_type_crash.py to use function_type instead of type (pointer)
2026-02-15 18:55:25 +01:00
Duncan Ogilvie 7cec92243c Do a bit of API cleanup 2026-02-13 00:41:09 +01:00
Duncan Ogilvie 2f9f59d312 Various API updates 2026-02-05 22:34:19 +01:00
Duncan Ogilvie dc720751c2 Archive review task to increase test coverage 2025-12-28 14:04:13 +01:00
Duncan Ogilvie 254a307b4e Improve API documentation 2025-12-26 02:47:08 +01:00
Duncan Ogilvie 63fd2e4325 Archive feature-matrix task 2025-12-26 01:08:14 +01:00
Duncan Ogilvie 1c00676a6f Progress feature-matrix 2025-12-26 00:20:59 +01:00
Duncan Ogilvie 49a481d4c6 Progress feature-matrix 2025-12-26 00:03:34 +01:00
Duncan Ogilvie e4854a255c Progress feature-matrix 2025-12-25 23:20:32 +01:00
Duncan Ogilvie 71438041e8 Progress feature-matrix 2025-12-25 22:49:13 +01:00
Duncan Ogilvie 04dda7e947 Progress feature-matrix 2025-12-25 22:21:54 +01:00
Duncan Ogilvie d12b461d35 Progress feature-matrix 2025-12-25 20:52:24 +01:00
Duncan Ogilvie 035d43edfd Progress feature-matrix 2025-12-25 20:11:02 +01:00
Duncan Ogilvie 3ebd8cef24 Additional planning with python equivalents 2025-12-25 18:49:17 +01:00
Duncan Ogilvie 45aaf3e4ab Initial feature matrix planning 2025-12-25 18:48:59 +01:00
Duncan Ogilvie fc6429874d Remove next_use manual iterator APIs 2025-12-21 14:54:50 +01:00
Duncan Ogilvie cc15076d54 Pythonic API for uses/users and successors/predecessors 2025-12-21 14:49:32 +01:00
Duncan Ogilvie fd9af360bd Update API design philosophy document 2025-12-21 12:50:55 +01:00
Duncan Ogilvie 9fc23c8a3d More API refactoring 2025-12-21 12:47:56 +01:00
Duncan Ogilvie 46917df48c Refactor module API 2025-12-21 01:44:32 +01:00
Duncan Ogilvie 56b16f359a Refactor attribute and metadata APIs 2025-12-21 01:25:16 +01:00