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