[Mlir-commits] [mlir] [mlir][emitc] Inline constant when translate (PR #143485)
Kirill Chibisov
llvmlistbot at llvm.org
Mon Jun 16 04:19:08 PDT 2025
kchibisov wrote:
>I've thought about side effects in the past and I don't know if we want to simply mark the ops as pure as you might target overloaded C++ classes that do whatever. But especially on the call_opaque op I want to be able to mark an instance as pure with an attribute for example and then override getMemoryEffects accordingly.
Wouldn't the constant op be able to check for that with the new interface proposed here https://github.com/llvm/llvm-project/pull/142771 ? We can check if the type is scalar and then e.g. say that it doesn't have side effects.
https://github.com/llvm/llvm-project/pull/143485
More information about the Mlir-commits
mailing list