[Mlir-commits] [llvm] [mlir] [OpenMPIRBuilder][MLIR] Pass target-cpu and target-features to outlined functions (PR #80283)
Sergio Afonso
llvmlistbot at llvm.org
Fri Feb 2 05:32:16 PST 2024
================
@@ -679,6 +679,15 @@ void OpenMPIRBuilder::finalize(Function *Fn) {
Function *OutlinedFn = Extractor.extractCodeRegion(CEAC);
+ // Forward target-cpu, target-features attributes to the outlined function.
+ if (auto Attr = OuterFn->getFnAttribute("target-cpu");
+ Attr.isStringAttribute())
----------------
skatrak wrote:
Done
https://github.com/llvm/llvm-project/pull/80283
More information about the Mlir-commits
mailing list