Is your feature request related to a problem? Please describe.
I am currently writing my own compiler, while writing it I tried to get an instruction based on its name, inside a block, but found out this was not possible. I already added the feature to my own project and thought it would be a useful feature for the library itself.
Describe the solution you'd like
I made a solution that adds a function to both the implementation of basic block, and InstructionValue, the implementation of IntstructionValue goes through all instruction using
get_next_instruction(). If it finds an instruction where the name is equal to that of the argument name, it returns that.
I am making this issue to request if I can make a merge request for the feature/ others want or need it.
Is your feature request related to a problem? Please describe.
I am currently writing my own compiler, while writing it I tried to get an instruction based on its name, inside a block, but found out this was not possible. I already added the feature to my own project and thought it would be a useful feature for the library itself.
Describe the solution you'd like
I made a solution that adds a function to both the implementation of basic block, and InstructionValue, the implementation of IntstructionValue goes through all instruction using get_next_instruction(). If it finds an instruction where the name is equal to that of the argument name, it returns that.
I am making this issue to request if I can make a merge request for the feature/ others want or need it.
Describe possible drawbacks to your solution
I don't think there are any drawbacks.