[Mlir-commits] [mlir] [MLIR] Add support for frame pointers in MLIR (PR #72145)

Markus Böck llvmlistbot at llvm.org
Mon Nov 13 13:53:41 PST 2023


================
@@ -894,6 +894,10 @@ LogicalResult ModuleTranslation::convertOneFunction(LLVMFuncOp func) {
     llvmFunc->addFnAttr(llvm::Attribute::getWithVScaleRangeArgs(
         getLLVMContext(), attr->getMinRange().getInt(),
         attr->getMaxRange().getInt()));
+  
+  // Add function attribute frame-pointer, if found.
+  if (auto attr = func.getFramePointerAttr()) 
----------------
zero9178 wrote:

Could you spell out the `auto` here?

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


More information about the Mlir-commits mailing list