[clang] [flang] [mlir] [LLVM-Flang][Options] Add support for '-fprofile-sample-use' option (PR #188697)
Hocky Yudhiono via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 26 04:14:12 PDT 2026
================
@@ -99,6 +99,10 @@ void FunctionAttrPass::runOnOperation() {
func->setAttr(
mlir::LLVM::LLVMFuncOp::getPreferVectorWidthAttrName(llvmFuncOpName),
mlir::StringAttr::get(context, preferVectorWidth));
+ if (UseSampleProfile)
+ func->setAttr(
----------------
hockyy wrote:
Need to wrap with the `llvm.` prefix addition
https://github.com/llvm/llvm-project/pull/188697
More information about the cfe-commits
mailing list