Skip to content

Commit 81f5a79

Browse files
committed
Address PR feedback
Signed-off-by: Lukas Sommer <[email protected]>
1 parent a048616 commit 81f5a79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,8 @@ class ReturnValuePattern : public SPIRVToLLVMConversion<spirv::ReturnValueOp> {
10281028
static LLVM::LLVMFuncOp lookupOrCreateSPIRVFn(Operation *symbolTable,
10291029
StringRef name,
10301030
ArrayRef<Type> paramTypes,
1031-
Type resultType) {
1031+
Type resultType,
1032+
bool convergent = true) {
10321033
auto func = dyn_cast_or_null<LLVM::LLVMFuncOp>(
10331034
SymbolTable::lookupSymbolIn(symbolTable, name));
10341035
if (func)
@@ -1039,7 +1040,7 @@ static LLVM::LLVMFuncOp lookupOrCreateSPIRVFn(Operation *symbolTable,
10391040
symbolTable->getLoc(), name,
10401041
LLVM::LLVMFunctionType::get(resultType, paramTypes));
10411042
func.setCConv(LLVM::cconv::CConv::SPIR_FUNC);
1042-
func.setConvergent(true);
1043+
func.setConvergent(convergent);
10431044
func.setNoUnwind(true);
10441045
func.setWillReturn(true);
10451046
return func;

0 commit comments

Comments
 (0)