Closed jackalcooper closed 3 months ago
The recent updates streamline the build process and enhance application initialization in the Beaver project. Key enhancements include restructuring the Makefile
for a more linear build flow, integrating functionality for pass registration, and refining the application's startup logic. These changes improve maintainability, efficiency, and robustness, ensuring smoother operations and clearer code organization.
Files | Change Summary |
---|---|
Makefile |
Removed .PHONY declarations, restructured all , zig_build , and cmake_build targets for better control flow. Eliminated cmake_config for simplification. |
lib/beaver/application.ex |
Modified start function to use dynamic child specifications from Beaver.MLIR.Pass , removed start_phase . |
lib/beaver/mlir/pass.ex |
Added ensure_all_registered!/0 and global_registrar_child_specs/0 for improved pass registration management. |
mix.exs |
Added make_args: ~w{-j} for parallel compilation, removed start_phases for application startup simplification. |
native/include/mlir-c/Beaver/Op.h |
Changed unnamed parameter to named parameter in beaverMlirNamedAttributeGetName for clarity. |
scripts/update_generated.exs |
Removed dependency installation line, updated logging format, and added new parsing functions for enhanced functionality. |
test/support/beaver_case.ex |
Added call to Beaver.MLIR.Pass.ensure_all_registered!() in setup to ensure MLIR passes are registered. |
sequenceDiagram
participant User
participant Makefile
participant CMake
participant Zig
User->>Makefile: Invoke `make all`
Makefile->>CMake: Execute `cmake_build`
CMake-->>Makefile: Complete configuration
Makefile->>Zig: Execute `zig_build`
Zig-->>Makefile: Complete build
Makefile-->>User: Build successful
sequenceDiagram
participant Application
participant PassRegistrar
Application->>PassRegistrar: Call `ensure_all_registered!()`
PassRegistrar-->>Application: Confirm passes registered
Application->>Application: Initialize MLIR context
In the garden of code, where changes bloom,
A rabbit hops freely, dispelling all gloom.
With builds now more nimble, they dance and they play,
Streamlined and joyful, they brighten the day! πβ¨
From zig to cmake, each step is a cheer,
A smoother process, letβs all give a cheer! π
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit