================
@@ -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())
----------------
DominikAdamski wrote:

Nit:
```
auto CpuAttr  = OuterFn->getFnAttribute("target-cpu");
if (CpuAttr.isStringAttribute()) 
```

https://github.com/llvm/llvm-project/pull/80283
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to