================
@@ -0,0 +1,39 @@
+//===----- ABIInfo.h - CIR's ABI information --------------------*- C++ 
-*-===//
+//
+// 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 the CodeGen/ABIInfo.h class. The main difference
+// is that this is adapted to operate on the CIR dialect.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_CLANG_LIB_CIR_DIALECT_TRANSFORMS_TARGETLOWERING_ABIINFO_H
+#define LLVM_CLANG_LIB_CIR_DIALECT_TRANSFORMS_TARGETLOWERING_ABIINFO_H
+
+#include "llvm/IR/CallingConv.h"
+
+namespace cir {
+
+// Forward declarations.
+class LowerTypes;
+
+/// Target specific hooks for defining how a type should be passed or returned
+/// from functions.
+/// FIXME(cir): this needs to be merged with clang/lib/CIR/CodeGen/ABIInfo.h
----------------
ayokunle321 wrote:

@Lancern @andykaylor I'm wondering what they mean by merged here (comment from 
the incubator). Should the members, `LowerTypes` and `runtimeCC`, and the 
constructor here be moved to `clang/lib/CIR/CodeGen/ABIInfo.h`. And the files, 
ABIInfo.h and ABIInfo.cpp, should then be deleted from the library? And if so, 
should I do that in this PR?

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