import_ref.h 776 B

1234567891011121314151617181920212223
  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_CHECK_IMPORT_REF_H_
  5. #define CARBON_TOOLCHAIN_CHECK_IMPORT_REF_H_
  6. #include "toolchain/check/context.h"
  7. #include "toolchain/sem_ir/file.h"
  8. namespace Carbon::Check {
  9. // If the passed in instruction ID is an ImportRefUnloaded, loads it for use.
  10. // The result will be an ImportRefUsed.
  11. auto LoadImportRef(Context& context, SemIR::InstId inst_id, SemIRLoc loc)
  12. -> void;
  13. // Load all impls declared in IRs imported into this context.
  14. auto ImportImpls(Context& context) -> void;
  15. } // namespace Carbon::Check
  16. #endif // CARBON_TOOLCHAIN_CHECK_IMPORT_REF_H_