Skip to content

Commit 727df08

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 44bfda0 commit 727df08

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7561,12 +7561,8 @@ 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
75657564
if (llvm::isa<llvm::GlobalValue, llvm::GlobalObject, llvm::GlobalVariable>(
75667565
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)
75707566
DeferredReplacement.push_back(std::make_pair(Input, InputCopy));
75717567
continue;
75727568
}

0 commit comments

Comments
 (0)