14 #ifndef MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H 15 #define MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H 18 #include "llvm/ADT/StringRef.h" 26 class OpPrintingFlags;
33 OpPrintingFlags flags);
38 OpPrintingFlags flags);
45 Operation *op, OpPrintingFlags flags);
50 Operation *op, OpPrintingFlags flags);
59 StringRef fileName =
"",
66 #endif // MLIR_TRANSFORMS_LOCATIONSNAPSHOT_H TODO: Remove this file when SCCP and integer range analysis have been ported to the new framework...
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...
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...