Skip to content

Commit 86d9e42

Browse files
authored
[CIR] Remove redundant BoolType customAssemblyFormat (NFC) (#1407)
1 parent fb4ab6e commit 86d9e42

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
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: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,6 @@ void CIRDialect::printType(Type type, DialectAsmPrinter &os) const {
104104
});
105105
}
106106

107-
Type BoolType::parse(mlir::AsmParser &parser) {
108-
return get(parser.getContext());
109-
}
110-
111-
void BoolType::print(mlir::AsmPrinter &printer) const {}
112-
113107
//===----------------------------------------------------------------------===//
114108
// StructType Definitions
115109
//===----------------------------------------------------------------------===//

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)