Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions lib/SPIRV/SPIRVReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -700,7 +700,7 @@ void SPIRVToLLVM::setLLVMLoopMetadata(const LoopInstType *LM,
if (!LM)
return;

auto Temp = MDNode::getTemporary(*Context, std::nullopt);
auto Temp = MDNode::getTemporary(*Context, {});
auto *Self = MDNode::get(*Context, Temp.get());
Self->replaceOperandWith(0, Self);
SPIRVWord LC = LM->getLoopControl();
Expand Down Expand Up @@ -850,8 +850,7 @@ void SPIRVToLLVM::setLLVMLoopMetadata(const LoopInstType *LM,
// Emit a distinct index group that will be referenced from
// llvm.loop.parallel_access_indices metadata; hash the new
// MDNode for future accesses to the same memory.
CurrentDepthIdxGroup =
llvm::MDNode::getDistinct(*Context, std::nullopt);
CurrentDepthIdxGroup = llvm::MDNode::getDistinct(*Context, {});
OffsetIdxGroupMap.emplace(Info, CurrentDepthIdxGroup);
} else {
// Previous accesses to that field have already been indexed,
Expand All @@ -861,8 +860,7 @@ void SPIRVToLLVM::setLLVMLoopMetadata(const LoopInstType *LM,
} else /* Regular kernel-scope array/pointer variable */ {
// Emit a distinct index group that will be referenced from
// llvm.loop.parallel_access_indices metadata
CurrentDepthIdxGroup =
llvm::MDNode::getDistinct(*Context, std::nullopt);
CurrentDepthIdxGroup = llvm::MDNode::getDistinct(*Context, {});
}

unsigned Safelen = PointerSflnMap.find(ArrayGEPIt.first)->second;
Expand Down