Repository navigation
Tags
Tags
Support decoupled proc state access in IR optimization passes. Several IR optimization passes assumed coupled proc state lowering, where every state element has a `StateRead` and every `Next` pairs with one. Under that assumption, `ArrayUntuplePass` and `ProcStateNarrowingPass` skipped or failed on zero-read state elements. `CanonicalizationPass` also kept always-false `StateRead`s alive, while `ConditionalSpecializationPass` intersected `StateRead` access conditions with `Next` predicates. Support zero-read state elements in `ArrayUntuplePass` and `ProcStateNarrowingPass`. Add `decouple_state_access` to `OptimizationPassOptions` and `opt_main`, defaulting to false until Codegen v1.5 scoreboarding lands. When enabled, `CanonicalizationPass` removes always-false `StateRead`s. `ConditionalSpecializationPass` also specializes `StateRead` predicates strictly from data uses, independent of pre-legalization `eliminate_noop_next` cleanup. PiperOrigin-RevId: 1028563699
Automated Code Change PiperOrigin-RevId: 1027628634
Update SelectSimplificationPass and SelectRangeSimplificationPass doc… …umentation comment. Refresh the Gemini-generated C++ header comment in `select_simplification_pass.h` for `SelectSimplificationPass` and `SelectRangeSimplificationPass` to reflect its current implementation, and regenerate the pass documentation Markdown. PiperOrigin-RevId: 1027412303
Integrate LLVM at llvm/llvm-project@86801a03ccc8 Updates LLVM usage to match [86801a03ccc8](llvm/llvm-project@86801a0) PiperOrigin-RevId: 1026858368
Integrate LLVM at llvm/llvm-project@663f3fbeea72 Updates LLVM usage to match [663f3fbeea72](llvm/llvm-project@663f3fb) PiperOrigin-RevId: 1026074645
xls/solvers: Fix Z3 HandleMulp sort-width mismatch on truncating mult… …iplies. `z3::IrTranslator::HandleMulp` previously created its symbolic `offset` constant with width `max(result_size, lhs_size, rhs_size)` even though `DoMul` always returns a bit-vector of width `result_size` (`mul->width()`). Whenever a `smulp` or `umulp` truncated to a width narrower than an operand, Z3 rejected `Z3_mk_bvsub(result, offset)` and the resulting tuple construction with a sort mismatch error. Match `offset`'s bit-vector sort width to `result_size`: * Construct `op_sort` with `result_size` in `IrTranslator::HandleMulp`. * Add `Z3IrTranslatorTest.HandlesTruncatingUMulp` and `Z3IrTranslatorTest.HandlesTruncatingSMulp` covering mixed-width truncating partial-product multiplies. PiperOrigin-RevId: 1025205428
Move `refresh_compile_commands` out of root `BUILD`. Move `refresh_compile_commands` into `//xls/dev_tools/compile_commands:refresh_compile_commands` and keep an `alias` at `//:refresh_compile_commands` so loading `//:BUILD` (for `//:LICENSE` or `//:license`) does not eagerly load the `dev_dependency` `@hedron_compile_commands` for external Bzlmod consumers. PiperOrigin-RevId: 1023420997
Integrate LLVM at llvm/llvm-project@bc0683cc7ba1 Updates LLVM usage to match [bc0683cc7ba1](llvm/llvm-project@bc0683c) PiperOrigin-RevId: 1022503860
Integrate LLVM at llvm/llvm-project@de574ff51d4f Updates LLVM usage to match [de574ff51d4f](llvm/llvm-project@de574ff) PiperOrigin-RevId: 1021645246
PreviousNext