================
@@ -0,0 +1,62 @@
+//===--- LowerTypes.cpp - Type lowering for CIR dialect 
-------------------===//
+//
+// 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 partially mimics clang/lib/CodeGen/CodeGenTypes.cpp. The queries
+// are adapted to operate on the CIR dialect, however.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_LIB_CIR_DIALECT_TRANSFORMS_TARGETLOWERING_LOWERTYPES_H
+#define LLVM_CLANG_LIB_CIR_DIALECT_TRANSFORMS_TARGETLOWERING_LOWERTYPES_H
+
+#include "ABIInfo.h"
+#include "CIRCXXABI.h"
+#include "CIRLowerContext.h"
+#include "mlir/IR/MLIRContext.h"
+#include "clang/CIR/Dialect/IR/CIRDataLayout.h"
+
+namespace cir {
+
+// Forward declarations.
+class LowerModule;
+
+/// This class organizes lowering to ABI-specific types in CIR.
+class LowerTypes {
+  // FIXME(cir): This abstraction could likely be replaced by a MLIR interface
+  // or direct queries to CIR types. It's here mostly for code parity.
+
+private:
+  LowerModule &lm;
+  CIRLowerContext &context;
+  const clang::TargetInfo ⌖
+  CIRCXXABI &CXXABI;
----------------
Lancern wrote:

```suggestion
  CIRCXXABI &cxxabi;
```

https://github.com/llvm/llvm-project/pull/182645
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to