[MLIR][OpenMP] Add check for appropriate module operation during convertFlagsAttr
authorAndrew Gozillon <Andrew.Gozillon@amd.com>
Thu, 27 Apr 2023 13:18:57 +0000 (08:18 -0500)
committerAndrew Gozillon <Andrew.Gozillon@amd.com>
Thu, 27 Apr 2023 14:23:39 +0000 (09:23 -0500)
commit2f5477df95616c690e0bd049d340a6111ecbe28e
tree6b20de836f912e397b18aa0f219030ee04603237
parent843450b9a67c57f134913a2b90dcb5ba95114e0f
[MLIR][OpenMP] Add check for appropriate module operation during convertFlagsAttr

Checks if the operation the attirbute resides on is an ModuleOp otherwise it fails.
mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp