[clang] [CIR] Upstream ThreeWayCmpOp (PR #169963)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 3 00:11:36 PST 2025
Hendrik =?utf-8?q?Hübner?Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/169963 at github.com>
================
@@ -447,6 +447,68 @@ def CIR_ConstPtrAttr : CIR_Attr<"ConstPtr", "ptr", [TypedAttrInterface]> {
}];
}
+//===----------------------------------------------------------------------===//
+// CmpThreeWayInfoAttr
+//===----------------------------------------------------------------------===//
+
+def CIR_CmpOrdering : CIR_I32EnumAttr<
+ "CmpOrdering", "three-way comparison ordering kind", [
+ I32EnumAttrCase<"Strong", 0, "strong">,
+ I32EnumAttrCase<"Partial", 1, "partial">
+]> {
+ let genSpecializedAttr = 0;
+}
+
+def CIR_CmpThreeWayInfoAttr : CIR_Attr<"CmpThreeWayInfo", "cmp3way_info"> {
----------------
xlauko wrote:
oh ok
https://github.com/llvm/llvm-project/pull/169963
More information about the cfe-commits
mailing list