[Mlir-commits] [mlir] [mlir][Math][LLVMSPV] Add Math to LLVM-SPV conversion pass (PR #198370)

Akhil Goel llvmlistbot at llvm.org
Fri May 29 14:53:04 PDT 2026


================
@@ -119,6 +123,74 @@ struct ConvertNativeFuncPattern final : public OpConversionPattern<Op> {
   const StringRef nativeFunc;
 };
 
+template <typename OpTy>
+static void populateOCLExtSetOpPatterns(const LLVMTypeConverter &converter,
+                                        RewritePatternSet &patterns,
+                                        PatternBenefit benefit,
+                                        StringRef opName) {
+  std::string mangledName =
+      "_Z" + std::to_string(12 + opName.size()) + "__spirv_ocl_" + opName.str();
----------------
akhilgoe wrote:

That's a great suggestion, thanks!

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


More information about the Mlir-commits mailing list