[Mlir-commits] [mlir] [mlir][LLVM] Add nsw and nuw flags (PR #74508)
Ivan Butygin
llvmlistbot at llvm.org
Wed Dec 6 06:01:00 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:
It was me, who added this code almost 3 years ago, but I don't remember my exact motivation from back then. Should have left some comments )
https://github.com/llvm/llvm-project/pull/74508
More information about the Mlir-commits
mailing list