[Mlir-commits] [mlir] [mlir][LLVM] Add nsw and nuw flags (PR #74508)
Ivan Butygin
llvmlistbot at llvm.org
Wed Dec 6 06:15:55 PST 2023
================
@@ -69,7 +69,12 @@ static ParseResult parseLLVMOpAttrs(OpAsmParser &parser,
static void printLLVMOpAttrs(OpAsmPrinter &printer, Operation *op,
DictionaryAttr attrs) {
- printer.printOptionalAttrDict(processFMFAttr(attrs.getValue()));
+ if (auto iface = dyn_cast<IntegerOverflowFlagsInterface>(op))
+ printer.printOptionalAttrDict(
+ processFMFAttr(attrs.getValue()),
----------------
Hardcode84 wrote:
Maybe, bitenums worked differently back then and were printed even if they have none set.
Anyways, this is out of scope of current PR, so let's leave it as is.
https://github.com/llvm/llvm-project/pull/74508
More information about the Mlir-commits
mailing list