14 #ifndef MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H
15 #define MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H
18 #include "llvm/ADT/StringRef.h"
26 class OpPrintingFlags;
29 #define GEN_PASS_DECL_LOCATIONSNAPSHOT
30 #include "mlir/Transforms/Passes.h.inc"
36 OpPrintingFlags flags);
41 OpPrintingFlags flags);
48 Operation *op, OpPrintingFlags flags);
53 Operation *op, OpPrintingFlags flags);
62 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...