Add new dialect boilerplate and poison op definition.
Discussion: https://discourse.llvm.org/t/rfc-poison-semantics-for-mlir/66245/24
Differential D154248
[mlir] Add `ub` dialect and `poison` op. Hardcode84 on Jun 30 2023, 11:56 AM. Authored by
Details Add new dialect boilerplate and poison op definition. Discussion: https://discourse.llvm.org/t/rfc-poison-semantics-for-mlir/66245/24
Diff Detail
Event Timeline
Comment Actions What happened with the idea of having a poison attribute? I think this would be required for poison constants.
Comment Actions Thanks for pushing this forward, I think it's the right first step
Comment Actions @kuhar so what's your opinion on typed vs typeless PoisonAttr (from discussion thread)
Comment Actions I think we will need more poison attributes in the future, but for all or nothing poison a single untyped attribute should work fine. And if we do need a typed full poison, this doesn't seem too hard to add to me. I'd probably start with a typed one from the beginning, following Karl's prototype, but I'm not the one doing the work so I don't get to complain about details like this. Comment Actions Please try to get at least one more approval before submitting. I'd like to make sure that we have enough consensus in the community to move forward. |
Could you land this sorting change as a separate NFC commit? This seems uncontroversial and provides clear value IMO, but would be worth separating from this PR.