Commit c17a839
authored
[OMPIRBuilder] Fix addrspace of internal critical section lock (#166459)
First, for internal variables, they are always global, so use the global
AS by default unless specified otherwise. We can't really use `0` as a
default like we do now because that has an actual meaning on some
targets, so we really need specified vs unspecified, so I used
`std::optional` which is already used in many places in OMPIRBuilder.
Second, for the critical lock variable, add an addrspace cast if needed.
Signed-off-by: Nick Sarnie <[email protected]>1 parent 69c8756 commit c17a839
File tree
5 files changed
+31
-17
lines changed- clang
- lib/CodeGen
- test/OpenMP
- llvm
- include/llvm/Frontend/OpenMP
- lib/Frontend/OpenMP
5 files changed
+31
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2000 | 2000 | | |
2001 | 2001 | | |
2002 | 2002 | | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
2003 | 2014 | | |
2004 | | - | |
| 2015 | + | |
2005 | 2016 | | |
2006 | 2017 | | |
2007 | 2018 | | |
2008 | 2019 | | |
2009 | 2020 | | |
2010 | 2021 | | |
2011 | | - | |
2012 | | - | |
2013 | | - | |
2014 | | - | |
2015 | | - | |
2016 | | - | |
2017 | | - | |
2018 | | - | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
2019 | 2026 | | |
2020 | 2027 | | |
2021 | 2028 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 | | |
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
| 20 | + | |
15 | 21 | | |
16 | 22 | | |
17 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3654 | 3654 | | |
3655 | 3655 | | |
3656 | 3656 | | |
3657 | | - | |
| 3657 | + | |
3658 | 3658 | | |
3659 | 3659 | | |
3660 | 3660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8460 | 8460 | | |
8461 | 8461 | | |
8462 | 8462 | | |
8463 | | - | |
8464 | | - | |
8465 | | - | |
| 8463 | + | |
| 8464 | + | |
8466 | 8465 | | |
8467 | 8466 | | |
8468 | 8467 | | |
| |||
8472 | 8471 | | |
8473 | 8472 | | |
8474 | 8473 | | |
| 8474 | + | |
| 8475 | + | |
| 8476 | + | |
8475 | 8477 | | |
8476 | 8478 | | |
8477 | 8479 | | |
8478 | 8480 | | |
8479 | 8481 | | |
8480 | 8482 | | |
8481 | | - | |
8482 | | - | |
| 8483 | + | |
8483 | 8484 | | |
8484 | | - | |
| 8485 | + | |
8485 | 8486 | | |
8486 | 8487 | | |
8487 | 8488 | | |
| |||
0 commit comments