[llvm] [llvm] ABIInfo and TargetCodegenInfo (PR #190730)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 7 06:59:20 PDT 2026


================
@@ -0,0 +1,60 @@
+//===- TargetCodegenInfo.h - Target code generation info ---------*- 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Target-specific code generation information and factory functions.
+///
+//===----------------------------------------------------------------------===//
+
+#ifndef LLVM_ABI_TARGETCODEGENINFO_H
+#define LLVM_ABI_TARGETCODEGENINFO_H
+
+#include "llvm/ABI/ABIInfo.h"
+#include "llvm/TargetParser/Triple.h"
+#include <memory>
+
+namespace llvm {
+namespace abi {
+
+class TargetCodeGenInfo {
----------------
nikic wrote:

Hm... why do we need both TargetCodeGenInfo and ABIInfo? I think this split might make more sense in clang where TargetCodeGenInfo provides more stuff. But here it will just be the ABI info.

So I'm thinking we should just have a `TargetInfo` that combines TargetCodeGenInfo + ABIInfo.

https://github.com/llvm/llvm-project/pull/190730


More information about the llvm-commits mailing list