[flang-commits] [flang] [fang][cuda] Allow * in call chevron syntax (PR #115381)
Zhen Wang via flang-commits
flang-commits at lists.llvm.org
Thu Nov 7 17:23:50 PST 2024
================
@@ -3087,9 +3091,13 @@ std::optional<Chevrons> ExpressionAnalyzer::AnalyzeChevrons(
return std::nullopt;
}
} else {
+ blockIsStar = true;
result.emplace_back(
AsGenericExpr(evaluate::Constant<evaluate::SubscriptInteger>{-1}));
}
+ if (gridIsStar && blockIsStar) {
+ Say("Grid and block can not be * in kernel launch parameter"_err_en_US);
----------------
wangzpgi wrote:
Maybe change to `can not both be *`?
https://github.com/llvm/llvm-project/pull/115381
More information about the flang-commits
mailing list