started implementing llvm-ir adapter functions