We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133e3ef commit a789891Copy full SHA for a789891
mlir/lib/Dialect/Ptr/IR/PtrDialect.cpp
@@ -45,7 +45,7 @@ void PtrDialect::initialize() {
45
// PtrAddOp
46
//===----------------------------------------------------------------------===//
47
48
-/// Fold the op to the base ptr when the offset is 0.
+/// Fold: ptradd ptr + 0 -> ptr
49
OpFoldResult PtrAddOp::fold(FoldAdaptor adaptor) {
50
Attribute attr = adaptor.getOffset();
51
if (!attr)
0 commit comments