14 #ifndef MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H
15 #define MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H
18 #include "llvm/ADT/StringRef.h"
25 class OpPrintingFlags;
28 #define GEN_PASS_DECL_LOCATIONSNAPSHOT
29 #include "mlir/Transforms/Passes.h.inc"
35 OpPrintingFlags flags);
40 OpPrintingFlags flags);
47 Operation *op, OpPrintingFlags flags);
52 Operation *op, OpPrintingFlags flags);
61 StringRef fileName =
"",
Include the generated interface declarations.
void generateLocationsFromIR(raw_ostream &os, StringRef fileName, Operation *op, OpPrintingFlags flags)
This function generates new locations from the given IR by snapshotting the IR to the given stream,...
std::unique_ptr< Pass > createLocationSnapshotPass(OpPrintingFlags flags, StringRef fileName="", StringRef tag="")
Create a pass to generate new locations by snapshotting the IR to the given file, and using the print...