[clang] [CIR] Upstream type `bool` (PR #128601)

David Olsen via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 07:15:30 PST 2025


================
@@ -266,6 +266,22 @@ def CIR_PointerType : CIR_Type<"Pointer", "ptr",
   }];
 }
 
+//===----------------------------------------------------------------------===//
+// BoolType
+//===----------------------------------------------------------------------===//
+
+def CIR_BoolType :
+    CIR_Type<"Bool", "bool",
+             [DeclareTypeInterfaceMethods<DataLayoutTypeInterface>]> {
+
+  let summary = "CIR bool type";
+  let description = [{
+    `cir.bool` represents C++ bool type.
+  }];
+
+  let hasCustomAssemblyFormat = 1;
----------------
dkolsen-pgi wrote:

Done.  I changed this PR to mimic the referenced incubator PR.


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


More information about the cfe-commits mailing list