14#ifndef CIRCT_SUPPORT_PATH_H
15#define CIRCT_SUPPORT_PATH_H
18#include "llvm/Support/ToolOutputFile.h"
27 const llvm::Twine &suffix);
39std::unique_ptr<llvm::ToolOutputFile>
41 function_ref<InFlightDiagnostic()> emitError);
The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
void makeCommonDirectoryPrefix(llvm::SmallVectorImpl< char > &a, StringRef b)
Truncate a in place to the longest common directory prefix of a and b, ensuring that the result ends ...
std::unique_ptr< llvm::ToolOutputFile > createOutputFile(StringRef filename, StringRef dirname, function_ref< InFlightDiagnostic()> emitError)
Creates an output file with the given filename in the specified directory.
void appendPossiblyAbsolutePath(llvm::SmallVectorImpl< char > &base, const llvm::Twine &suffix)
Append a path to an existing path, replacing it if the other path is absolute.