This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Pass] Provide default implemenation for `canScheduleOn`
Needs ReviewPublic

Authored by springerm on Jun 19 2023, 5:04 AM.

Details

Summary

The previous API was misleading because it suggested that a pass can be restricted to a certain op type by simply setting an opName via the constructor of Pass. However, canScheduleOn should be adapted accordingly. This revision provides a default implementation for canScheduleOn, such that setting opName alone is sufficient. (Users can still override canScheduleOn to specify other constraints.)

Depends On: D153144

Diff Detail