Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
9 changes: 4 additions & 5 deletions mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,7 @@ class ReturnValuePattern : public SPIRVToLLVMConversion<spirv::ReturnValueOp> {
static LLVM::LLVMFuncOp lookupOrCreateSPIRVFn(Operation *symbolTable,
StringRef name,
ArrayRef<Type> paramTypes,
Type resultType,
bool convergent = true) {
Type resultType) {
auto func = dyn_cast_or_null<LLVM::LLVMFuncOp>(
SymbolTable::lookupSymbolIn(symbolTable, name));
if (func)
Expand All @@ -1040,7 +1039,7 @@ static LLVM::LLVMFuncOp lookupOrCreateSPIRVFn(Operation *symbolTable,
symbolTable->getLoc(), name,
LLVM::LLVMFunctionType::get(resultType, paramTypes));
func.setCConv(LLVM::cconv::CConv::SPIR_FUNC);
func.setConvergent(convergent);
func.setConvergent(true);
func.setNoUnwind(true);
func.setWillReturn(true);
return func;
Expand Down Expand Up @@ -1253,8 +1252,8 @@ class GroupReducePattern : public SPIRVToLLVMConversion<ReduceOp> {
Operation *symbolTable =
op->template getParentWithTrait<OpTrait::SymbolTable>();

LLVM::LLVMFuncOp func = lookupOrCreateSPIRVFn(
symbolTable, funcName, paramTypes, retTy, !NonUniform);
LLVM::LLVMFuncOp func =
lookupOrCreateSPIRVFn(symbolTable, funcName, paramTypes, retTy);

Location loc = op.getLoc();
Value scope = rewriter.create<LLVM::ConstantOp>(
Expand Down
Loading
Loading