compiler/codegen/symbol.cpp
// Supports the creation of a python module with --library-python
Supports the creation of a python module with --library-python
Supports the creation of a python module with -- library - python
void FnSymbol::codegenPython(PythonFileType pxd) {
  GenInfo *info = gGenInfo;
  if (!hasFlag(FLAG_EXPORT)) return;
  if (hasFlag(FLAG_NO_PROTOTYPE)) return;
  if (hasFlag(FLAG_NO_CODEGEN)) return;
  if (info->cfile) {
    FILE* outfile = info->cfile;
    if (fGenIDS)
      fprintf(outfile, "%s", idCommentTemp(this));
    if (pxd == C_PXD) {
      fprintf(outfile, "\t%s;\n", codegenPXDType().c.c_str());
    } else if (pxd == PYTHON_PYX) {
      fprintf(outfile, "\n%s", codegenPYXType().c.c_str());
    } else {
      INT_FATAL("python file type not handled");
    }
  } else {
  }
}
void FnSymbol :: codegenPython ( PythonFileType pxd ) { GenInfo * info = gGenInfo ; if ( ! hasFlag ( FLAG_EXPORT ) ) return ; if ( hasFlag ( FLAG_NO_PROTOTYPE ) ) return ; if ( hasFlag ( FLAG_NO_CODEGEN ) ) return ; if ( info -> cfile ) { FILE * outfile = info -> cfile ; if ( fGenIDS ) fprintf ( outfile , " " , idCommentTemp ( this ) ) ; if ( pxd == C_PXD ) { fprintf ( outfile , " \t \n " , codegenPXDType ( ) . c . c_str ( ) ) ; } else if ( pxd == PYTHON_PYX ) { fprintf ( outfile , " \n " , codegenPYXType ( ) . c . c_str ( ) ) ; } else { INT_FATAL ( " " ) ; } } else { } }
Supports the creation of a python module with --library-python
Supports the creation of a python module with -- library - python
// Should I add the break-on-codegen-id stuff here? // TODO: LLVM stuff