Open AtticusKuhn opened 1 month ago
There are some poison-generating flags that are not yet supported:
disjoint
: orexact
: lshr/ashr/sdiv/udivnsw/nusw
: getelementptrnneg
: zext/uitofpnsw/nuw
: trunc@llvm/issue-subscribers-mlir-llvm
Author: Atticus Kuhn (AtticusKuhn)
There are some poison-generating flags that are not yet supported:
disjoint
: orexact
: lshr/ashr/sdiv/udivnsw/nusw
: getelementptrnneg
: zext/uitofpnsw/nuw
: trunc
Thanks you for your response. Are there any plans to support these features in the future? Otherwise, is there any way to get mlir-translate
to throw a warning
when it encounters an unsupported feature?
Are there any plans to support these features in the future?
I am not MLIR maintainer. IMO arith
dialect should support these flags first.
Otherwise, is there any way to get mlir-translate to throw a warning when it encounters an unsupported feature?
You can use Instruction::hasPoisonGeneratingFlags
.
Suprisingly, I think that MLIR doesn't support all the flags from LLVM. Here is one example.
Consider the following LLVM file:
Then, I run
mlir-translate -import-llvm disjoint.ll
and I getSo it seems that the
disjoint
flag has entirely disappeared from MLIR. I think this is a bug in MLIR.