[clang] [OpenACC][CIR] Implement member exprs for 'copy' lowering (PR #142998)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 5 14:44:18 PDT 2025
================
@@ -226,6 +228,10 @@ class OpenACCClauseCIREmitter final
mlir::Location exprLoc = cgf.cgm.getLoc(curVarExpr->getBeginLoc());
llvm::SmallVector<mlir::Value> bounds;
+ std::string exprString;
+ llvm::raw_string_ostream os(exprString);
+ e->printPretty(os, nullptr, cgf.getContext().getPrintingPolicy());
----------------
andykaylor wrote:
Admittedly, I know very little about printing policy handling, but just using whatever the context gives us here makes me nervous. Does the format of the string matter? Is it just used for diagnostics?
https://github.com/llvm/llvm-project/pull/142998
More information about the cfe-commits
mailing list