[clang] [CIR] Add framework for CIR to LLVM IR lowering (PR #124650)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 28 11:10:38 PST 2025
================
@@ -0,0 +1,41 @@
+//====- LowerToLLVM.cpp - Lowering from CIR to LLVMIR ---------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+//
+// This file implements lowering of CIR operations to LLVMIR.
+//
+//===----------------------------------------------------------------------===//
+
+#include "clang/CIR/LowerToLLVM.h"
+
+#include "mlir/IR/BuiltinOps.h"
+#include "mlir/Pass/Pass.h"
+#include "mlir/Pass/PassManager.h"
+#include "llvm/IR/Module.h"
+#include "llvm/Support/TimeProfiler.h"
+
----------------
AaronBallman wrote:
Is this from include what you use? (Code might be fine, I'm just surprised at how much is required to be included given the implementation.)
https://github.com/llvm/llvm-project/pull/124650
More information about the cfe-commits
mailing list