[Mlir-commits] [mlir] [mlir] Add optimization attrs for gpu-to-llvmspv function declarations (PR #99301)

Victor Perez llvmlistbot at llvm.org
Thu Jul 18 01:18:15 PDT 2024


================
@@ -53,7 +52,19 @@ static LLVM::LLVMFuncOp lookupOrCreateSPIRVFn(Operation *symbolTable,
         symbolTable->getLoc(), name,
         LLVM::LLVMFunctionType::get(resultType, paramTypes));
     func.setCConv(LLVM::cconv::CConv::SPIR_FUNC);
+    func.setNoUnwind(true);
+
+    if (!isMemNone) {
----------------
victor-eds wrote:

```suggestion
    if (isMemNone) {
```

https://github.com/llvm/llvm-project/pull/99301


More information about the Mlir-commits mailing list