[Mlir-commits] [mlir] [MLIR] emitc: Add emitc.file op (PR #123298)
Matthias Gehre
llvmlistbot at llvm.org
Tue Feb 4 01:54:06 PST 2025
================
@@ -1742,7 +1767,8 @@ LogicalResult CppEmitter::emitTupleType(Location loc, ArrayRef<Type> types) {
}
LogicalResult emitc::translateToCpp(Operation *op, raw_ostream &os,
- bool declareVariablesAtTop) {
- CppEmitter emitter(os, declareVariablesAtTop);
+ bool declareVariablesAtTop,
+ StringRef fileId) {
+ CppEmitter emitter(os, declareVariablesAtTop, fileId);
return emitter.emitOperation(*op, /*trailingSemicolon=*/false);
----------------
mgehre-amd wrote:
yes, I was trying to be consistent with ModuleOp
https://github.com/llvm/llvm-project/pull/123298
More information about the Mlir-commits
mailing list