[clang] [Clang][OpenMP] Allow `num_teams` to accept multiple expressions (PR #99732)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 23 09:28:56 PDT 2024
================
@@ -812,6 +812,7 @@ int bar(int n){
// CHECK1-NEXT: [[DOTCAPTURE_EXPR__ADDR:%.*]] = alloca i64, align 8
// CHECK1-NEXT: [[DOTCAPTURE_EXPR__ADDR2:%.*]] = alloca i64, align 8
// CHECK1-NEXT: [[AA_CASTED:%.*]] = alloca i64, align 8
+// CHECK1-NEXT: [[DOTCAPTURE_EXPR__CASTED:%.*]] = alloca i64, align 8
----------------
alexey-bataev wrote:
I think it is because you used the default capture region, which makes passing the value by reference instead of by value
https://github.com/llvm/llvm-project/pull/99732
More information about the cfe-commits
mailing list