GPUOpen-Drivers / llvm-dialects

LLVM Dialects Library
Apache License 2.0
22 stars 22 forks source link

Add VisitorResult #81

Closed nhaehnle closed 8 months ago

nhaehnle commented 8 months ago

Allow a visitor callback to decide whether additional matching callbacks for the same instruction should be called or not.

This is useful when a visitor callback wants to erase an instruction and there are multiple visitors that might match the same instruction (as sometimes happens with generic instructions like load and store).