LLVM Discussion Forums

Identify if a function is a member function

Hi everyone!
Recently I am curious about how LLVM express class in IR. I read a doc: https://mapping-high-level-constructs-to-llvm-ir.readthedocs.io/en/latest/object-oriented-constructs/classes.html . It says it’s a trivial map from class to IR, namely adding an extra pointer as the first parameter. However, if one user also has a function whose first parameter is a pointer of the class, is there a method to identify such a function is member function of the class or not?