tqchen opened a new pull request, #19612:
URL: https://github.com/apache/tvm/pull/19612

   ## Summary
   
   `ApplyPassToFunction` is a general-purpose wrapper that runs a pass on only 
the functions in an IRModule whose name matches a regex. Its sole in-tree 
production callers are `DecomposeOpsForInference` / `DecomposeOpsForTraining` 
in `src/relax/transform/decompose_ops.cc`, and both callers always supply a 
literal function name (never a regex pattern). Inlining the logic as a 
file-local helper simplifies the module-level context and removes an 
abstraction that exists only to support one use case.
   
   - Inline the helper as `ApplyDecomposeToFunction` (exact-name match, not 
regex) in `src/relax/transform/decompose_ops.cc`
   - Delete `src/ir/apply_pass_to_function.cc`, its `transform.h` declaration, 
and the Python wrapper in `python/tvm/ir/transform.py`
   - Remove two DCE tests (`test_compatibility_with_apply_pass_to_function`, 
`test_well_formed_output_with_restricted_scope`) that tested the utility's 
plumbing rather than DCE behavior


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to