entry_point.h 604 B

123456789101112131415161718
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #ifndef CARBON_TOOLCHAIN_SEM_IR_ENTRY_POINT_H_
  5. #define CARBON_TOOLCHAIN_SEM_IR_ENTRY_POINT_H_
  6. #include "toolchain/sem_ir/file.h"
  7. namespace Carbon::SemIR {
  8. // Returns whether the specified function is the entry point function for the
  9. // program, `Main.Run`.
  10. auto IsEntryPoint(const File& file, FunctionId function_id) -> bool;
  11. } // namespace Carbon::SemIR
  12. #endif // CARBON_TOOLCHAIN_SEM_IR_ENTRY_POINT_H_