Repository navigation
Tags
Tags
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
Integrate LLVM at llvm/llvm-project@c54ccc6bbe29 Updates LLVM usage to match [c54ccc6bbe29](llvm/llvm-project@c54ccc6) PiperOrigin-RevId: 1021527743
Update CanonicalizationPass documentation comment. Refresh the Gemini-generated C++ header comment in `canonicalization_pass.h` for `CanonicalizationPass` to reflect its current implementation, and regenerate the pass documentation Markdown. PiperOrigin-RevId: 1020680843
Integrate LLVM at llvm/llvm-project@85a7e596c0f0 Updates LLVM usage to match [85a7e596c0f0](llvm/llvm-project@85a7e59) PiperOrigin-RevId: 1019739113
Support precomputed estimator model protos in delay and area estimators. Generating C++ delay and area estimator lookup tables at build time via `generate_delay_lookup` and `generate_area_lookup` pulls Python curve-fitting dependencies (`scipy` and `numpy`) into the build graph of targets linking the XLS delay and area models. Add `CompiledEstimatorModel`, `CompiledOpModel`, and `CompiledEstimator` messages to `estimator_model.proto` to represent pre-fitted estimator parameters, along with `ProtoDelayEstimator` and `ProtoAreaEstimator` classes that evaluate embedded `.binpb` model protos directly at runtime. Update the `delay_model` and `area_model` Bazel macros to compile models into embedded binary protos via `generate_compiled_estimator_model`, accept an optional `precomputed_proto` file (with a `diff_test` keeping checked-in precomputed protos in sync and automatic updates in `rebuild_golden_files.sh`), and remove the obsolete `generate_delay_lookup` and `generate_area_lookup` C++ code generators. PiperOrigin-RevId: 1018870531
PreviousNext