llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.85k stars 11.47k forks source link

Feature request: expose getOpcode through Python bindings #85549

Closed sergiunagy closed 1 month ago

sergiunagy commented 5 months ago

Hello,

I'm using clang and the Python bindings to perform some automated code analysis . I ran into the issue where I cannot differentiate between the different Binary Operations using just the available bindings. I am working on creating a custom binding for this but an exposed binding in the clang package would be cleaner (and probably more efficient).

Endilll commented 1 month ago

CC @DeinAlptraum can you take a look at this, too?

DeinAlptraum commented 1 month ago

Isn't this resolved through #98489?

Endilll commented 1 month ago

Indeed, thank you! This should be available in Clang 19. Feel free to reopen if that's not the case.