This patch adds support for matching multiple OpenMP if clauses to their specified directive in a combined construct. It also enables this clause to be attached by name to simd and teams directives, in addition to the others that were already supported.
This patch on its own cannot yet be tested because there is currently no lowering to MLIR support for any combined construct containing two or more OpenMP directives that can have an if clause attached.
Depends on D155981.
Nit: While you are here, could you check whether it is possible to print the name of the directive?