[clang] [CIR] Upstream type `bool` (PR #128601)
Henrich Lauko via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 02:09:17 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;
----------------
xlauko wrote:
Custom assembly format and related `BoolType::print`, `BoolType::parse` are unnecessary here as default printer/parser generates `!cir.bool` anyway.
I cleaned this in incubator in https://github.com/llvm/clangir/pull/1407
https://github.com/llvm/llvm-project/pull/128601
More information about the cfe-commits
mailing list