mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[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
This commit is contained in:
parent
b71edafce2
commit
865511fe51
@ -106,7 +106,7 @@ def ACCC_Device : Clause<"device"> {
|
||||
|
||||
// 2.14.1
|
||||
def ACCC_DeviceNum : Clause<"device_num"> {
|
||||
let flangClassValue = "ScalarIntConstantExpr";
|
||||
let flangClassValue = "ScalarIntExpr";
|
||||
}
|
||||
|
||||
// 2.7.3
|
||||
@ -121,7 +121,7 @@ def ACCC_DeviceResident : Clause<"device_resident"> {
|
||||
|
||||
// 2.4
|
||||
def ACCC_DeviceType : Clause<"device_type"> {
|
||||
let flangClassValue = "Name";
|
||||
let flangClassValue = "ScalarIntExpr";
|
||||
let defaultValue = "*";
|
||||
let isValueOptional = 1;
|
||||
let isValueList = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user