Files
carbon-lang/toolchain/lowering/lower_to_llvm.h
T

23 lines
754 B
C++

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef CARBON_TOOLCHAIN_LOWERING_LOWER_TO_LLVM_H_
#define CARBON_TOOLCHAIN_LOWERING_LOWER_TO_LLVM_H_
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
#include "toolchain/semantics/semantics_ir.h"
namespace Carbon {
// Lowers Semantics IR to LLVM IR.
auto LowerToLLVM(llvm::LLVMContext& llvm_context, llvm::StringRef module_name,
const SemanticsIR& semantics_ir,
llvm::raw_ostream* vlog_stream)
-> std::unique_ptr<llvm::Module>;
} // namespace Carbon
#endif // CARBON_TOOLCHAIN_LOWERING_LOWER_TO_LLVM_H_