This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][doc] Clarify `allowUnregisteredDialects()` as "testing option" (NFC)
ClosedPublic

Authored by mehdi_amini on Feb 22 2023, 10:24 PM.

Diff Detail

Event Timeline

mehdi_amini created this revision.Feb 22 2023, 10:24 PM
mehdi_amini requested review of this revision.Feb 22 2023, 10:24 PM
jpienaar accepted this revision.Feb 24 2023, 11:19 AM
jpienaar added inline comments.
mlir/include/mlir/IR/MLIRContext.h
135

convenient during testing ? (testing way sounds awkard).

136

I don't know if I follow the "and ..." part. I'd just stop before then. E.g., MLIR here is opaque and I think rather refers to passes/lowerings (where these should be handled conservatively but be supported really) but you are more likely to run into unmet expectations/surprises wrt conservative behavior. But it does't seem to be specific to MLIR for me there.

This revision is now accepted and ready to land.Feb 24 2023, 11:19 AM
mehdi_amini added inline comments.Feb 24 2023, 4:30 PM
mlir/include/mlir/IR/MLIRContext.h
136

I'm trying to address "crashes" and other stuff around our "system" invariants, like https://github.com/llvm/llvm-project/issues/60569

Address comments

This revision was landed with ongoing or failed builds.Feb 24 2023, 4:34 PM
This revision was automatically updated to reflect the committed changes.
mehdi_amini added inline comments.Feb 24 2023, 4:35 PM
mlir/include/mlir/IR/MLIRContext.h
136

I made it a bit more explicit and pushed, but I'll adjust if you have other suggestions!