Skip to content

Commit 44bfda0

Browse files
committed
[Flang][OpenMP] Additional global address space modifications for device
A prior PR added a portion of the global address space modifications required for declare target to, this PR seeks to add a small amount more leftover from that PR. The intent is to allow for more correct IR that the backends (in particular AMDGPU) can treat more aptly for optimisations and code correctness 1/3 required PRs to enable declare target to mapping, should look at PR 3/3 to check for full green passes (this one will fail a number due to some dependencies). Co-authored-by: Raghu Maddhipatla [email protected]
1 parent 1169d60 commit 44bfda0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7561,8 +7561,12 @@ static Expected<Function *> createOutlinedFunction(
75617561
// preceding mapped arguments that refer to the same global that may be
75627562
// seperate segments. To prevent this, we defer global processing until all
75637563
// other processing has been performed.
7564+
<<<<<<< HEAD
75647565
if (llvm::isa<llvm::GlobalValue, llvm::GlobalObject, llvm::GlobalVariable>(
75657566
removeASCastIfPresent(Input))) {
7567+
=======
7568+
if (llvm::isa<llvm::GlobalValue, llvm::GlobalObject, llvm::GlobalVariable>(removeASCastIfPresent(Input))) {
7569+
>>>>>>> 65492890a185 ([Flang][OpenMP] Additional global address space modifications for device)
75667570
DeferredReplacement.push_back(std::make_pair(Input, InputCopy));
75677571
continue;
75687572
}

0 commit comments

Comments
 (0)