[Mlir-commits] [mlir] [MLIR][LLVM] Add explicit target_cpu attribute to llvm.func (PR #78287)
Sergio Afonso
llvmlistbot at llvm.org
Wed Jan 17 04:18:19 PST 2024
================
@@ -1744,6 +1744,11 @@ void ModuleImport::processFunctionAttributes(llvm::Function *func,
.value()));
}
+ if (llvm::Attribute attr = func->getFnAttribute("target-cpu");
+ attr.isStringAttribute()) {
+ funcOp.setTargetCpuAttr(StringAttr::get(context, attr.getValueAsString()));
+ }
----------------
skatrak wrote:
Thanks for noticing, I just copied the statement below but it's true that the braces weren't needed. I removed them from both.
https://github.com/llvm/llvm-project/pull/78287
More information about the Mlir-commits
mailing list