Issue |
131251
|
Summary |
Move unregistered intrinsic logic to ModuleImport
|
Labels |
new issue
|
Assignees |
bcardosolopes
|
Reporter |
bcardosolopes
|
Interface can do the following:
- Try to convert intrinsics to registered intrinsics in one of the dialects.
- Return failure if it couldn't convert the intrinsic.
(no handling for unregistered intrinsics at all)
The module import could then:
- Try to convert the intrinsic to an operation using the interface (except of course your new flag is set).
- If the conversion fails instead of emitting en error just translate to llvm intrinsic call.
I would expect that this works quite smoothly except there is some issue with the error handling. I coming back to it bcs the interface should usually do the dialect specific stuff while the import itself contains most of the LLVM IR specific stuff.
_Originally posted by @gysit in https://github.com/llvm/llvm-project/issues/130685#issuecomment-2715445986_
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs