[llvm.py] Define enumerations from Core.h; add OpCode class