mirror of https://github.com/llvm/torch-mlir
Add NoMemoryEffect for ops with value semantics
parent
b176939808
commit
896bcd3cf7
File diff suppressed because it is too large
Load Diff
|
@ -255,6 +255,7 @@ def emit_op(
|
||||||
traits += ["AllowsTypeRefinement"]
|
traits += ["AllowsTypeRefinement"]
|
||||||
if operator.has_value_semantics():
|
if operator.has_value_semantics():
|
||||||
traits += ["HasValueSemantics"]
|
traits += ["HasValueSemantics"]
|
||||||
|
traits += ["NoMemoryEffect"]
|
||||||
if operator.is_readonly():
|
if operator.is_readonly():
|
||||||
traits += ["ReadOnly"]
|
traits += ["ReadOnly"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue