constant.h 870 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_LOWER_CONSTANT_H_
  5. #define CARBON_TOOLCHAIN_LOWER_CONSTANT_H_
  6. #include "llvm/ADT/ArrayRef.h"
  7. #include "toolchain/base/fixed_size_value_store.h"
  8. #include "toolchain/lower/file_context.h"
  9. namespace Carbon::Lower {
  10. // Forms LLVM constant values for all constants used in the file described by
  11. // `file_context`. The indexes in the `constants` array corresponding to
  12. // concrete constant instructions are populated with corresponding constant
  13. // values.
  14. auto LowerConstants(FileContext& file_context,
  15. FileContext::LoweredConstantStore& constants) -> void;
  16. } // namespace Carbon::Lower
  17. #endif // CARBON_TOOLCHAIN_LOWER_CONSTANT_H_