entry_point.h 622 B

12345678910111213141516171819
  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 SemIR::File& file, SemIR::FunctionId function_id)
  11. -> bool;
  12. } // namespace Carbon::SemIR
  13. #endif // CARBON_TOOLCHAIN_SEM_IR_ENTRY_POINT_H_