[flang-commits] [flang] [flang][NFC] turn fir.call is_bind_c into enum for procedure flags (PR #105691)

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Thu Aug 22 09:39:47 PDT 2024


================
@@ -1103,6 +1103,15 @@ void fir::CallOp::print(mlir::OpAsmPrinter &p) {
     p << getOperand(0);
   p << '(' << (*this)->getOperands().drop_front(isDirect ? 0 : 1) << ')';
 
+  // Print `proc_attrs<...>`, if present.
+  fir::FortranProcedureFlagsEnumAttr procAttrs = getProcedureAttrsAttr();
+  if (procAttrs &&
+      procAttrs.getValue() != fir::FortranProcedureFlagsEnum::none) {
+    p << ' ' << fir::FortranProcedureFlagsEnumAttr::getMnemonic();
+    mlir::arith::FastMathFlagsAttr::getMnemonic();
----------------
vzakhari wrote:

Is this needed?

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


More information about the flang-commits mailing list