From b69f334c9c122fad3759fcf388d3f039689b6fc0 Mon Sep 17 00:00:00 2001 From: Hanchen Ye Date: Thu, 8 Feb 2024 14:31:02 -0600 Subject: [PATCH] [HLS] Fix select op printing issue --- lib/Dialect/HLS/HLS.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Dialect/HLS/HLS.cpp b/lib/Dialect/HLS/HLS.cpp index 48211ae6..7034b8f8 100644 --- a/lib/Dialect/HLS/HLS.cpp +++ b/lib/Dialect/HLS/HLS.cpp @@ -1000,12 +1000,11 @@ void AffineSelectOp::print(OpAsmPrinter &p) { p.printOperand(getTrueValue()); p << ", "; p.printOperand(getFalseValue()); - p << " : "; - p.printType(getType()); - // Print the attribute list. p.printOptionalAttrDict((*this)->getAttrs(), /*elidedAttrs=*/getConditionAttrStrName()); + p << " : "; + p.printType(getType()); } IntegerSet AffineSelectOp::getIntegerSet() {