llir / llvm

Library for interacting with LLVM IR in pure Go.
https://llir.github.io/document/
BSD Zero Clause License
1.2k stars 79 forks source link

ir: add value.User interface implemented by instructions and terminators #214

Closed mewmew closed 2 years ago

mewmew commented 2 years ago

Note, the Operands method of the value.User interface returns a mutable list of values used as operands by the given user (instruction or terminator).

Fixes #19 and fixes #42.

dannypsnl commented 2 years ago

@mewmew Looks good!

mewmew commented 2 years ago

Great!

@dannypsnl, feel free to delete the operands branch.