Skip to content

Commit 1e76250

Browse files
committed
Add warning to comment
1 parent 8ebcad4 commit 1e76250

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mlir/include/mlir/Target/LLVMIR/Import.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ class ModuleOp;
4242
/// The `loadAllDialects` flag (default on) will load all dialects in the
4343
/// context.
4444
/// The `preferUnregisteredIntrinsics` flag (default off) controls whether to
45-
/// prefer generic version of imported intrinsics with `llvm.intrinsic_call`
46-
/// than using versions supported by a dialects.
45+
/// import all intrinsics using `llvm.intrinsic_call` even if a dialect
46+
/// registered an explicit intrinsic operation. Warning: passes that rely on
47+
/// matching explicit intrinsic operations may not work properly if this flag is
48+
/// enabled.
4749
OwningOpRef<ModuleOp> translateLLVMIRToModule(
4850
std::unique_ptr<llvm::Module> llvmModule, MLIRContext *context,
4951
bool emitExpensiveWarnings = true, bool dropDICompositeTypeElements = false,

0 commit comments

Comments
 (0)