Files
carbon-lang/toolchain/lower/lower.cpp
T
Jon Ross-Perkins 530541e56c Add boilerplate framework for lowering. (#2607)
This adds boilerplate for lowering; a `dump llvm-ir` command, a `lower` directory, some files to give basic structure, and a trivial test.
2023-02-17 16:14:57 -08:00

17 lines
539 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
#include "toolchain/lower/lower.h"
namespace Carbon {
auto Lower::Make(llvm::LLVMContext& llvm_context, llvm::StringRef module_name,
const SemanticsIR& /*semantics_ir*/)
-> std::unique_ptr<llvm::Module> {
auto result = std::make_unique<llvm::Module>(module_name, llvm_context);
return result;
}
} // namespace Carbon