Closed jackalcooper closed 3 months ago
The changes primarily focus on renaming functions across various modules to enhance clarity and consistency in naming conventions. The adjustments involve both internal function calls and exported APIs, ensuring a clearer understanding of their purposes within the MLIR framework. Despite these changes, the overall functionality and control flow of the modules remain intact, promoting better readability and maintainability across the codebase.
Files | Change Summary |
---|---|
lib/beaver/mlir.ex , lib/beaver/mlir/attribute.ex , lib/beaver/mlir/execution_engine.ex , lib/beaver/mlir/module.ex , lib/beaver/mlir/operation/state.ex |
Renamed various is_null functions and their calls for consistency; logic remains unchanged. |
lib/beaver/mlir/pattern.ex |
Updated function call from beaverApplyPatternsAndFoldGreedily to beaverModuleApplyPatternsAndFoldGreedily . |
lib/beaver/slang.ex |
Renamed :beaverGetIRDLDefinedAttr to :beaverIRDLGetDefinedAttr and :beaverGetIRDLDefinedType to :beaverIRDLGetDefinedType . |
lib/beaver/walker.ex |
Simplified function names by removing the Mlir prefix in named attribute handling functions. |
native/include/mlir-c/Beaver/Context.h , native/include/mlir-c/Beaver/Op.h |
Renamed functions to improve clarity, e.g., adding "Context" to multi-threaded execution functions. |
native/lib/CAPI/Beaver.cpp |
Updated various exported functions for consistency, including renaming beaverGetRegisteredOps to beaverContextGetOps . |
native/src/pass.zig , native/src/registry.zig |
Modified function calls to reflect updated API names, retaining overall structure. |
test/capi_test.exs , test/pdl_test.exs |
Adjusted test cases to reflect renamed functions, ensuring assertions remain valid. |
sequenceDiagram
participant A as User
participant B as BeaverModule
participant C as CAPI
A->>B: Call is_null(attribute)
B->>C: Call CAPI.beaverIsNullAttribute(attribute)
C-->>B: Return boolean value
B-->>A: Return term
π In code we hop and play,
Renaming leads the way,
Clearer paths in every line,
Helping us to tune and shine.
With functions bright and clean,
Together, we'll achieve the dream! β¨
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
New Features
MLIR
context, potentially optimizing operations.Bug Fixes
Documentation