Undo spaghettification of #hal.device.*
attrs and analysis.
#17694
Labels
compiler/dialects
Relating to the IREE compiler dialects (flow, hal, vm)
HAL devices have made their way into the flow and stream dialects in unfortunate ways. In most cases it's just the
IREE::HAL::DeviceAnalysis
that is required for resolving information about affinities such thatqueryBufferCompatibility
, hackier passes likeCPUMaterializeEncodingsPass
, and others can ask some basic questions about resources with differing affinities. It'd be good to add attr interfaces or extend the current ones in ways to resolve this information locally where possible, and short of that potentially a dialect interface for pulling in abstract analysis information that can be used to hide the dialect types. I've given up for now but if we want to target anything other than the HAL dialect or support wrapped affinities we'll need to decouple the analysis.The text was updated successfully, but these errors were encountered: