bool isLoadOrStore(Operation &op) {
return op.isa<LoadOp>() || op.isa<StoreOp>();
-};
+}
} // end namespace matcher
} // end namespace mlir
/*UGT*/ "ugt",
/*UGE*/ "uge"};
return predicateNames;
-};
+}
// Returns a value of the ICmp predicate corresponding to the given mnemonic.
// Returns -1 if there is no such mnemonic.
::ensureDistinctSuccessors(bb);
}
}
-};
+}
// Create a set of converters that live in the pass object by passing them a
// reference to the LLVM IR dialect. Store the module associated with the
}
mlir::tblgen::OpTrait::OpTrait(Kind kind, const llvm::Record *def)
- : def(def), kind(kind){};
+ : def(def), kind(kind) {}
llvm::StringRef mlir::tblgen::NativeOpTrait::getTrait() const {
return def->getValueAsString("trait");
std::vector<Operation *> worklist;
DenseMap<Operation *, unsigned> worklistMap;
};
-}; // end anonymous namespace
+} // end anonymous namespace
/// Perform the rewrites.
bool GreedyPatternRewriteDriver::simplifyFunction(int maxIterations) {