[Mlir-commits] [mlir] [mlir][LLVM] Add disjoint flag (PR #115855)
Tobias Gysi
llvmlistbot at llvm.org
Tue Nov 12 04:05:32 PST 2024
================
@@ -1898,6 +1898,14 @@ void ModuleTranslation::setLoopMetadata(Operation *op,
inst->setMetadata(llvm::LLVMContext::MD_loop, loopMD);
}
+void ModuleTranslation::setDisjointFlag(Operation *op, llvm::Value *inst) {
+ auto iface = cast<DisjointFlagInterface>(op);
+
+ auto inst_disjoint = cast<llvm::PossiblyDisjointInst>(inst);
+
+ inst_disjoint->setIsDisjoint(iface.getIsDisjoint());
----------------
gysit wrote:
```suggestion
auto iface = cast<DisjointFlagInterface>(op);
auto inst_disjoint = cast<llvm::PossiblyDisjointInst>(inst);
inst_disjoint->setIsDisjoint(iface.getIsDisjoint());
```
nit: here as well.
https://github.com/llvm/llvm-project/pull/115855
More information about the Mlir-commits
mailing list