[flang-commits] [flang] [flang] Pass to add frame pointer attribute (PR #74598)

Tom Eccles via flang-commits flang-commits at lists.llvm.org
Mon Dec 11 03:05:12 PST 2023


================
@@ -64,32 +40,19 @@ void FunctionAttrPass::runOnOperation() {
 
   LLVM_DEBUG(llvm::dbgs() << "Func-name:" << func.getSymName() << "\n");
 
-  auto context = &getContext();
-
-  func->setAttr("frame_pointer", mlir::LLVM::FramePointerKindAttr::get(
-                                     context, framePointerKind));
+  mlir::MLIRContext* context = &getContext();
----------------
tblah wrote:

nit
```
mlir::MLIRContext *context = &getContext();
```

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


More information about the flang-commits mailing list