code: def compile_ir(engine, llvm_ir):
      
      # Create a LLVM module object from the IR
      mod = llvm.parse_assembly(llvm_ir)
      mod.verify()
      # Now add the module and make sure it is ready for execution
      engine.add_module(mod)
      engine.finalize_object()
      engine.run_static_constructors()
      return mod
docs: Compile the LLVM IR string with the given engine.
      The compiled module object is returned.