aboutsummaryrefslogtreecommitdiff
path: root/mlir/lib/Target/LLVMIR/ModuleImport.cpp
diff options
context:
space:
mode:
authorJean-Didier PAILLEUX <jean-didier.pailleux@sipearl.com>2025-04-11 09:31:18 +0200
committerGitHub <noreply@github.com>2025-04-11 09:31:18 +0200
commitaeb06c61523499bc88af1a24eb645be972b482d4 (patch)
tree3c395a912cab6beca4bd88eef1d7c069dc1ef833 /mlir/lib/Target/LLVMIR/ModuleImport.cpp
parent23c9cfcb7494b2331a80661a0cb83f95a422833c (diff)
downloadllvm-aeb06c61523499bc88af1a24eb645be972b482d4.zip
llvm-aeb06c61523499bc88af1a24eb645be972b482d4.tar.gz
llvm-aeb06c61523499bc88af1a24eb645be972b482d4.tar.bz2
[MLIR] Adding 'inline_hint' attribute on LLMV::CallOp (#134582)
Addition of `inlinehint` attributes for CallOps in MLIR in order to be able to say to a function call that the inlining is desirable without having the attribute on the FuncOp.
Diffstat (limited to 'mlir/lib/Target/LLVMIR/ModuleImport.cpp')
-rw-r--r--mlir/lib/Target/LLVMIR/ModuleImport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/mlir/lib/Target/LLVMIR/ModuleImport.cpp b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
index 187f1bd..8e7a7ab 100644
--- a/mlir/lib/Target/LLVMIR/ModuleImport.cpp
+++ b/mlir/lib/Target/LLVMIR/ModuleImport.cpp
@@ -2362,6 +2362,7 @@ LogicalResult ModuleImport::convertCallAttributes(llvm::CallInst *inst,
op.setNoInline(callAttrs.getFnAttr(llvm::Attribute::NoInline).isValid());
op.setAlwaysInline(
callAttrs.getFnAttr(llvm::Attribute::AlwaysInline).isValid());
+ op.setInlineHint(callAttrs.getFnAttr(llvm::Attribute::InlineHint).isValid());
llvm::MemoryEffects memEffects = inst->getMemoryEffects();
ModRefInfo othermem = convertModRefInfoFromLLVM(