CIRCT  20.0.0git
Namespaces | Macros | Functions
AssignOutputDirs.cpp File Reference
#include "circt/Dialect/FIRRTL/FIRRTLAnnotations.h"
#include "circt/Dialect/FIRRTL/FIRRTLInstanceGraph.h"
#include "circt/Dialect/FIRRTL/FIRRTLOps.h"
#include "circt/Dialect/FIRRTL/FIRRTLUtils.h"
#include "circt/Dialect/FIRRTL/Passes.h"
#include "circt/Dialect/HW/HWAttributes.h"
#include "circt/Support/Debug.h"
#include "llvm/ADT/PostOrderIterator.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 (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 20 of file AssignOutputDirs.cpp.

◆ GEN_PASS_DEF_ASSIGNOUTPUTDIRS

#define GEN_PASS_DEF_ASSIGNOUTPUTDIRS

Definition at line 24 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 38 of file AssignOutputDirs.cpp.

References assert().

Referenced by makeCommonPrefix().

◆ makeCommonPrefix()

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

Definition at line 57 of file AssignOutputDirs.cpp.

References makeAbsolute(), and circt::firrtl::makeCommonPrefix().

◆ tryMakeRelative()

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

Definition at line 50 of file AssignOutputDirs.cpp.