================
@@ -292,6 +292,14 @@ bool CodeGenAction::beginSourceFileAction() {
mlir::BoolAttr::get(mod.getContext(), true));
}
+ if (ci.getInvocation().getLangOpts().CheckIntegerModZero) {
+ mlir::ModuleOp mod = lb.getModule();
+ mod.getOperation()->setAttr(
+ mlir::StringAttr::get(mod.getContext(),
+ llvm::Twine{"fir.check_integer_mod_zero"}),
----------------
junfengd-nv wrote:
Done.
https://github.com/llvm/llvm-project/pull/222790
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits