9 #ifndef MLIR_DIALECT_LLVMIR_PRINTCALLHELPER_H_
10 #define MLIR_DIALECT_LLVMIR_PRINTCALLHELPER_H_
13 #include "llvm/ADT/StringRef.h"
19 class LLVMTypeConverter;
20 class SymbolTableCollection;
28 OpBuilder &builder, Location loc, ModuleOp moduleOp, StringRef symbolName,
29 StringRef
string,
const LLVMTypeConverter &typeConverter,
30 bool addNewline =
true, std::optional<StringRef> runtimeFunctionName = {},
31 SymbolTableCollection *symbolTables =
nullptr);
LogicalResult createPrintStrCall(OpBuilder &builder, Location loc, ModuleOp moduleOp, StringRef symbolName, StringRef string, const LLVMTypeConverter &typeConverter, bool addNewline=true, std::optional< StringRef > runtimeFunctionName={}, SymbolTableCollection *symbolTables=nullptr)
Generate IR that prints the given string to stdout.
Include the generated interface declarations.