llvm-project
59252100 - [OpenMP][CIR] Implement basic 'parallel' lowering + some clause infra (#172308)

Commit
44 days ago
[OpenMP][CIR] Implement basic 'parallel' lowering + some clause infra (#172308) This patch adds some basic lowering for the OMP 'parallel' lowering, which adds an omp.parallel operation, plus tries to insert into its region, with a omp.terminator operation.. However, this patch doesn't implement CapturedStmt (and I don't intend to do so at all), so there is an NYI error when emitting a parallel region (plus it shows up in IR as 'empty'. This patch also adds some infrastructure to 'lower' clauses, however no clauses are emitted, and this simply adds a 'not yet implemented' warning any time a clause is attempted. The OMP clause visitor seems to have had a bug with how it 'degraded' when a clause wasn't handled (it would result in an infinite recursion if it wasn't supplied), so this fixes that as well. A followup patch or two may use this infrastructure to demonstrate how to use it.
Author
Parents
Loading