[Mlir-commits] [mlir] [MLIR][LLVMIR] Import unregistered intrinsics via llvm.intrinsic_call (PR #128626)
Tobias Gysi
llvmlistbot at llvm.org
Tue Feb 25 23:21:21 PST 2025
================
@@ -367,6 +409,14 @@ static LogicalResult setIntelReqdSubGroupSizeAttr(Builder &builder,
return success();
}
+namespace mlir {
+// Generate llvm.call_intrinsic when no supporting dialect available.
+LogicalResult LLVMImportInterface::convertUnregisteredIntrinsic(
+ OpBuilder &builder, llvm::CallInst *inst,
+ LLVM::ModuleImport &moduleImport) const {
+ return convertUnregisteredIntrinsicImpl(builder, inst, moduleImport);
----------------
gysit wrote:
Optionally we could move the implementation here and drop `convertUnregisteredIntrinsicImpl`?
https://github.com/llvm/llvm-project/pull/128626
More information about the Mlir-commits
mailing list