[flang-commits] [flang] [flang] Set fast math related function attributes for -Ofast/-ffast-math (PR #79301)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Mon Feb 5 08:32:38 PST 2024


================
@@ -45,14 +51,42 @@ void FunctionAttrPass::runOnOperation() {
     func->setAttr("frame_pointer", mlir::LLVM::FramePointerKindAttr::get(
                                        context, framePointerKind));
 
+  auto llvmFuncOpName = mlir::OperationName("llvm.func", context);
----------------
vzakhari wrote:

```suggestion
  auto llvmFuncOpName = mlir::OperationName(LLVMFuncOp::getOperationName(), context);
```

https://github.com/llvm/llvm-project/pull/79301


More information about the flang-commits mailing list