Skip to content

Commit 017b695

Browse files
committed
[CIR] Remove redundant BoolType customAssemblyFormat
1 parent aff6245 commit 017b695

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

clang/include/clang/CIR/Dialect/IR/CIRTypes.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,6 @@ def CIR_BoolType :
322322
let description = [{
323323
`cir.bool` represent's C++ bool type.
324324
}];
325-
326-
let hasCustomAssemblyFormat = 1;
327325
}
328326

329327
//===----------------------------------------------------------------------===//

clang/lib/CIR/Dialect/IR/CIRTypes.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,11 @@ void CIRDialect::printType(Type type, DialectAsmPrinter &os) const {
104104
});
105105
}
106106

107-
Type BoolType::parse(mlir::AsmParser &parser) {
108-
return get(parser.getContext());
109-
}
107+
// Type BoolType::parse(mlir::AsmParser &parser) {
108+
// return get(parser.getContext());
109+
// }
110110

111-
void BoolType::print(mlir::AsmPrinter &printer) const {}
111+
// void BoolType::print(mlir::AsmPrinter &printer) const {}
112112

113113
//===----------------------------------------------------------------------===//
114114
// StructType Definitions

clang/test/CIR/IR/invalid.cir

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ cir.global external @f = #cir.fp<42> : !cir.float
14861486
// Verify
14871487
!s32i = !cir.int<s, 32>
14881488
cir.func @cast0(%arg0: !s32i, %arg1: !s32i) {
1489-
// expected-error @below {{custom op 'cir.cmp' invalid kind of Type specified}}
1489+
// expected-error @below {{custom op 'cir.cmp' invalid kind of type specified}}
14901490
%1 = cir.cmp(eq, %arg0, %arg1): !s32i, !s32i
14911491
cir.return
14921492
}

0 commit comments

Comments
 (0)