[flang-commits] [flang] [flang][NFC] turn fir.call is_bind_c into enum for procedure flags (PR #105691)
via flang-commits
flang-commits at lists.llvm.org
Fri Aug 23 00:24:10 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();
----------------
jeanPerier wrote:
No, thanks for the catch.
https://github.com/llvm/llvm-project/pull/105691
More information about the flang-commits
mailing list