mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 10:40:29 +00:00
This adds boilerplate for lowering; a `dump llvm-ir` command, a `lower` directory, some files to give basic structure, and a trivial test.
17 lines
539 B
C++
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
|