CIRCT  19.0.0git
Namespaces | Macros | Functions
AssignOutputDirs.cpp File Reference
#include "circt/Dialect/FIRRTL/AnnotationDetails.h"
#include "circt/Dialect/FIRRTL/FIRRTLAnnotations.h"
#include "circt/Dialect/FIRRTL/FIRRTLInstanceGraph.h"
#include "circt/Dialect/FIRRTL/FIRRTLOps.h"
#include "circt/Dialect/FIRRTL/Passes.h"
#include "circt/Dialect/HW/HWAttributes.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/Path.h"
#include "circt/Dialect/FIRRTL/Passes.h.inc"
Include dependency graph for AssignOutputDirs.cpp:

Go to the source code of this file.

Namespaces

 circt
 The InstanceGraph op interface, see InstanceGraphInterface.td for more details.
 
 circt::firrtl
 

Macros

#define DEBUG_TYPE   "firrtl-assign-output-dirs"
 
#define GEN_PASS_DEF_ASSIGNOUTPUTDIRS
 

Functions

static void makeAbsolute (StringRef outputDir, SmallString< 64 > &moduleOutputDir)
 
static void tryMakeRelative (StringRef outputDir, SmallString< 64 > &moduleOutputDir)
 
static void makeCommonPrefix (SmallString< 64 > &a, StringRef b)
 
static void makeCommonPrefix (StringRef outputDir, SmallString< 64 > &a, OutputFileAttr attr)
 
static OutputFileAttr getOutputFile (igraph::ModuleOpInterface op)
 

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "firrtl-assign-output-dirs"

Definition at line 21 of file AssignOutputDirs.cpp.

◆ GEN_PASS_DEF_ASSIGNOUTPUTDIRS

#define GEN_PASS_DEF_ASSIGNOUTPUTDIRS

Definition at line 25 of file AssignOutputDirs.cpp.

Function Documentation

◆ getOutputFile()

static OutputFileAttr getOutputFile ( igraph::ModuleOpInterface  op)
static

◆ makeAbsolute()

static void makeAbsolute ( StringRef  outputDir,
SmallString< 64 > &  moduleOutputDir 
)
static

Definition at line 39 of file AssignOutputDirs.cpp.

References assert().

Referenced by makeCommonPrefix().

◆ makeCommonPrefix() [1/2]

static void makeCommonPrefix ( SmallString< 64 > &  a,
StringRef  b 
)
static

Definition at line 58 of file AssignOutputDirs.cpp.

Referenced by makeCommonPrefix().

◆ makeCommonPrefix() [2/2]

static void makeCommonPrefix ( StringRef  outputDir,
SmallString< 64 > &  a,
OutputFileAttr  attr 
)
static

Definition at line 73 of file AssignOutputDirs.cpp.

References makeAbsolute(), and makeCommonPrefix().

◆ tryMakeRelative()

static void tryMakeRelative ( StringRef  outputDir,
SmallString< 64 > &  moduleOutputDir 
)
static

Definition at line 51 of file AssignOutputDirs.cpp.