1 /* 2 * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 /** 19 \file 20 \brief main exports 21 */ 22 23 #ifndef FORTRAN_COMPILER_MAIN_H_ 24 #define FORTRAN_COMPILER_MAIN_H_ 25 26 #include "gbldefs.h" 27 #include "error.h" 28 #include "lz.h" 29 30 // FIXME -- move these prototypes 31 void schedule(void); // cgmain 32 void acc_add_global(void); // acclin 33 // FIXME -- end of misplaced prototypes 34 35 /* actual exports from module */ 36 37 /** 38 \brief ... 39 */ 40 char *user_string(void); 41 42 /** 43 \brief ... 44 */ 45 int bu_auto_inline(void); 46 47 /** 48 \brief ... 49 */ 50 int export_cgraph_sub(lzhandle *fd); 51 52 /** 53 \brief ... 54 */ 55 int main(int argc, char *argv[]); 56 57 /** 58 \brief FIXME Comments say this belongs in upper.c 59 */ 60 void add_llvm_uplevel_symbol(int sptr); 61 62 /** 63 \brief ... 64 */ 65 void finish(void); 66 67 /** 68 \brief FIXME Comments say this belongs in upper.c 69 */ 70 void fixup_llvm_uplevel_symbol(void); 71 72 #endif // FORTRAN_COMPILER_MAIN_H_ 73