[all-commits] [llvm/llvm-project] a60fda: [mlir][OpenMP] Restrict types for omp.parallel args

Shraiysh via All-commits all-commits at lists.llvm.org
Mon May 2 01:47:53 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a60fda59dc6b1dda25cad26214b02d1f630319e7
      https://github.com/llvm/llvm-project/commit/a60fda59dc6b1dda25cad26214b02d1f630319e7
  Author: Shraiysh Vaishay <Shraiysh.Vaishay at amd.com>
  Date:   2022-05-02 (Mon, 02 May 2022)

  Changed paths:
    M flang/lib/Lower/OpenMP.cpp
    M flang/test/Lower/OpenMP/parallel.f90
    M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
    M mlir/test/Dialect/OpenMP/ops.mlir

  Log Message:
  -----------
  [mlir][OpenMP] Restrict types for omp.parallel args

This patch restricts the value of `if` clause expression to an I1 value.
It also restricts the value of `num_threads` clause expression to an I32
value.

Reviewed By: kiranchandramohan

Differential Revision: https://reviews.llvm.org/D124142




More information about the All-commits mailing list