TheDan64 / inkwell

It's a New Kind of Wrapper for Exposing LLVM (Safely)
https://thedan64.github.io/inkwell/
Apache License 2.0
2.38k stars 229 forks source link

Find a InstructionValue based on its name #416

Closed Faouzi1406 closed 1 year ago

Faouzi1406 commented 1 year ago

Description

Added function to find an Instruction Value based on its name. I thought it was useful for finding instruction values within blocks based on their name. If for example you create a variable, you could use this function to then find it.

Related Issue

https://github.com/TheDan64/inkwell/issues/415

How This Has Been Tested

Tested it within my project to retrieve created variables. Also added doc tests.

Checklist

TheDan64 commented 1 year ago

Also, adding a test would be much appreciated

Faouzi1406 commented 1 year ago

Hey, is there anything I should change/update?