Lines Matching refs:PythonModule
65 if (PythonModule::Check(m_py_obj)) in GetObjectType()
786 PythonModule::PythonModule() : PythonObject() {} in PythonModule() function in PythonModule
788 PythonModule::PythonModule(PyRefType type, PyObject *py_obj) { in PythonModule() function in PythonModule
792 PythonModule::PythonModule(const PythonModule &dict) : PythonObject(dict) {} in PythonModule() function in PythonModule
794 PythonModule::~PythonModule() {} in ~PythonModule()
796 PythonModule PythonModule::BuiltinsModule() { in BuiltinsModule()
804 PythonModule PythonModule::MainModule() { return AddModule("__main__"); } in MainModule()
806 PythonModule PythonModule::AddModule(llvm::StringRef module) { in AddModule()
808 return PythonModule(PyRefType::Borrowed, PyImport_AddModule(str.c_str())); in AddModule()
811 PythonModule PythonModule::ImportModule(llvm::StringRef module) { in ImportModule()
813 return PythonModule(PyRefType::Owned, PyImport_ImportModule(str.c_str())); in ImportModule()
816 bool PythonModule::Check(PyObject *py_obj) { in Check()
823 void PythonModule::Reset(PyRefType type, PyObject *py_obj) { in Reset()
828 if (!PythonModule::Check(py_obj)) { in Reset()
838 PythonDictionary PythonModule::GetDictionary() const { in GetDictionary()