Skip to content

Commit 3f9b0fb

Browse files
Vandana2896LewisCrawford
authored andcommitted
Update NVPTXAsmPrinter.cpp
1 parent 58dc372 commit 3f9b0fb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,12 +1607,17 @@ void NVPTXAsmPrinter::emitFunctionParamList(const Function *F, raw_ostream &O) {
16071607
O << "\t.param .u" << PTySizeInBits << " ";
16081608

16091609
int addrSpace = PTy->getAddressSpace();
1610+
<<<<<<< HEAD
16101611

16111612
if (static_cast<NVPTXTargetMachine &>(TM).getDrvInterface() == NVPTX::CUDA) {
16121613
// Special handling for pointer arguments to kernel
16131614
// CUDA kernels assume that pointers are in global address space
16141615
// See:
16151616
// https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#parameter-state-space
1617+
=======
1618+
if (static_cast<NVPTXTargetMachine &>(TM).getDrvInterface() ==
1619+
NVPTX::CUDA) {
1620+
>>>>>>> 3d49f303bf57 (Update NVPTXAsmPrinter.cpp)
16161621
assert(addrSpace == 0 && "Invalid address space");
16171622
O << ".ptr .global ";
16181623
if (I->getParamAlign().valueOrOne() != 1) {

0 commit comments

Comments
 (0)