Skip to content

Commit a4dc015

Browse files
committed
sdc: specialize stubs for the call graph
1 parent dead2aa commit a4dc015

File tree

3 files changed

+2
-17
lines changed

3 files changed

+2
-17
lines changed

passes/cmds/sdc/Makefile.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
OBJS += passes/cmds/sdc/sdc.o
22

3-
$(eval $(call add_share_file,share/sdc,passes/cmds/sdc/stubs.sdc))
3+
$(eval $(call add_share_file,share/sdc,passes/cmds/sdc/graph-stubs.sdc))

passes/cmds/sdc/stubs.sdc renamed to passes/cmds/sdc/graph-stubs.sdc

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,3 @@
1-
# with Tcl's eager evaluation, we will still eval args if they're unused by a stub
2-
proc stub {function_name} {
3-
proc $function_name {args} "puts \"stubbed $function_name\""
4-
}
5-
6-
proc is_suppressed {args} {
7-
return 0
8-
}
9-
10-
# stub current_design
11-
#stub ys_track_typed_key
12-
stub ys_track_untyped_key
13-
stub ys_err_key
14-
stub ys_err_flag
15-
161
proc unknown {args} {
172
global sdc_call_index
183
global sdc_calls

passes/cmds/sdc/sdc.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ struct SdcPass : public Pass {
805805
SDCInterpreter& sdc = SDCInterpreter::get();
806806
Tcl_Interp *interp = sdc.fresh_interp(design);
807807
Tcl_Preserve(interp);
808-
std::string stub_path = "+/sdc/stubs.sdc";
808+
std::string stub_path = "+/sdc/graph-stubs.sdc";
809809
rewrite_filename(stub_path);
810810
if (Tcl_EvalFile(interp, stub_path.c_str()) != TCL_OK)
811811
log_cmd_error("SDC interpreter returned an error in stub preamble file: %s\n", Tcl_GetStringResult(interp));

0 commit comments

Comments
 (0)