[all-commits] [llvm/llvm-project] 2f40e2: [flang][openacc] Fix device_num and device_type cl...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Oct 6 18:27:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2f40e20613758b3e11a15494c09f4b6973673d6b
      https://github.com/llvm/llvm-project/commit/2f40e20613758b3e11a15494c09f4b6973673d6b
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2020-10-06 (Tue, 06 Oct 2020)

  Changed paths:
    M flang/lib/Parser/openacc-parsers.cpp
    M flang/test/Semantics/acc-clause-validity.f90
    M llvm/include/llvm/Frontend/OpenACC/ACC.td

  Log Message:
  -----------
  [flang][openacc] Fix device_num and device_type clauses for init directive

This patch fix the device_num and device_type clauses used in the init clause. device_num was not
spelled correctly in the parser and was to restrictive with scalarIntConstantExpr instead of scalarIntExpr.
device_type is now taking a list of ScalarIntExpr.

Reviewed By: kiranchandramohan

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




More information about the All-commits mailing list