yosys/kernel
Krystine Sherwin 7c24b69e62
register.cc: Make cmd paths proximate
The CMake refactor changes relative paths to absolute when calling `source_location::current()`.  Use the path to `register.cc` to find the root yosys dir, and use that as the base for other paths.
Includes provisions for when plugins have a valid location; if it's not in the yosys source tree we shouldn't try to make the path relative, and we shouldn't try to auto group by path (since such groups will never be allocated, leaving them as unknown is preferable).
Limited to non wasm (I think that's the only one where we can't (easily) use `<filesystem>`). But where we do use `<filesystem>` we can also simplify the auto group to use `fs::path::parent_path()`.
2026-06-04 20:34:52 +12:00
..
CMakeLists.txt Update top-level Python project for CMake compatibility. 2026-06-03 09:03:23 +00:00
binding.cc Generate an RTLIL representation of bind constructs 2021-08-13 17:11:35 -06:00
binding.h Generate an RTLIL representation of bind constructs 2021-08-13 17:11:35 -06:00
bitpattern.h Update kernel to avoid bits() 2025-09-16 03:17:23 +00:00
calc.cc Fix segfault from shift with 0-width signed arg. 2026-02-12 22:03:42 -06:00
cellaigs.cc cellaigs: remove some dead code 2026-03-31 09:37:18 +01:00
cellaigs.h mark all hash_into methods nodiscard 2025-01-14 12:39:15 +01:00
celledges.cc kernel/celledges: cover more cell types 2026-02-09 14:13:40 +01:00
celledges.h Fixing old e-mail addresses and deadnames 2021-06-08 00:39:36 +02:00
cellhelp.py Migrate build system to CMake 2026-06-03 08:58:10 +00:00
celltypes.h fix $specrule port naming 2026-04-13 22:34:46 +02:00
compute_graph.h convert class FunctionalIR to a namespace Functional, rename functionalir.h to functional.h, rename functional.h to compute_graph.h 2024-08-21 11:04:08 +01:00
consteval.h consteval: use newcelltypes 2026-03-04 12:22:14 +01:00
constids.inc add aiger2_zbuf to constids 2026-05-06 14:03:07 +01:00
cost.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
cost.h cost: add model for techmapped cell count, keep_hierarchy pass with -min_cost parameter 2024-07-29 10:26:02 +02:00
driver.cc Handle unused variable for WIN32 2026-05-13 09:49:39 +02:00
drivertools.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
drivertools.h drivertools: use newcelltypes 2026-03-04 12:22:14 +01:00
ff.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
ff.h ff: split out type-only information 2025-11-19 15:20:50 +01:00
ffinit.h Add `FfInitVals::set_parallel()` method 2026-03-06 02:03:21 +00:00
ffmerge.cc Instead of using builtin_ff_cell_types() directly, go through a method Cell::is_builtin_ff() 2025-09-17 03:24:19 +00:00
ffmerge.h Compute `is_port` in AbcPass without iterating through all cells and wires in the module every time we run ABC. 2025-08-14 22:29:45 +00:00
fmt.cc Bump gcc and clang versions 2026-05-14 10:51:40 +02:00
fmt.h fmt,cxxrtl: add option to group digits in numbers. 2024-04-02 12:13:22 +02:00
fstdata.cc Migrate build system to CMake 2026-06-03 08:58:10 +00:00
fstdata.h Add comments to make sure it is clear scale is an exponent of 10 2026-04-23 17:22:14 +01:00
functional.cc Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
functional.h Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
gzip.cc Remove .c_str() from log_cmd_error() and log_file_error() parameters 2025-09-16 22:59:08 +00:00
gzip.h gzip: back to pointers 2025-03-19 13:43:44 +01:00
hashlib.h hashlib: error on unused containers 2026-05-12 12:51:41 +02:00
io.cc Fix Windows portability issues that break MSVC build. 2026-06-03 08:58:11 +00:00
io.h Merge pull request #5882 from YosysHQ/std_cpp20 2026-05-15 13:13:43 +00:00
json.cc Support for BTOR witness to Yosys witness conversion 2023-01-11 18:07:16 +01:00
json.h Reapply "Add groups to command reference" 2025-08-06 13:52:12 +12:00
log.cc Migrate build system to CMake 2026-06-03 08:58:10 +00:00
log.h Make `log_error()` work in a `Multithreaded` context. 2026-03-06 02:03:21 +00:00
log_compat.cc Maintain logging ABI compatiblity with YosysHQ Verific Extensions 2025-09-09 15:41:03 +02:00
log_help.cc log_help: Don't reformat codeblocks 2026-01-28 08:07:44 +13:00
log_help.h log_help: Fix mem leaks 2025-08-06 13:52:12 +12:00
macc.h Update kernel to avoid bits() 2025-09-16 03:17:23 +00:00
mem.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
mem.h Update kernel to avoid bits() 2025-09-16 03:17:23 +00:00
modtools.h Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
newcelltypes.h newcelltypes: fix $specrule port naming 2026-04-13 22:34:46 +02:00
pattern.h OptDff more accurate ctrl/pattern desc. 2026-01-26 22:19:36 +01:00
qcsat.cc Add coarse-grain $buf buffer cell type 2024-09-17 10:46:20 +02:00
qcsat.h Refactor common parts of SAT-using optimizations into a helper. 2021-08-09 16:54:35 +02:00
register.cc register.cc: Make cmd paths proximate 2026-06-04 20:34:52 +12:00
register.h Drop `YOSYS_ENABLE_HELP_SOURCE` since C++20 is required. 2026-06-03 08:58:11 +00:00
rtlil.cc Remove id2cstr uses in our code base 2026-05-16 19:49:45 +02:00
rtlil.h rtlil: extend SigSpec::extract test 2026-04-24 11:04:19 +02:00
rtlil_bufnorm.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
satgen.cc Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
satgen.h Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
scopeinfo.cc Convert RTLIL::unescape_id of IdString to unescape() 2026-05-16 19:49:45 +02:00
scopeinfo.h Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
sexpr.cc Remove .c_str() calls from log()/log_error() 2025-09-11 20:59:37 +00:00
sexpr.h factor out SExpr/SExprWriter classes out of smtlib backend, and also tidy them up/document them 2024-08-21 11:03:27 +01:00
sigtools.h Compute `is_port` in AbcPass without iterating through all cells and wires in the module every time we run ABC. 2025-08-14 22:29:45 +00:00
tclapi.cc Update CI scripts for CMake 2026-06-03 08:58:11 +00:00
threading.cc threading: whitespace 2026-05-18 16:26:14 +02:00
threading.h Migrate build system to CMake 2026-06-03 08:58:10 +00:00
timinginfo.h Refactored uses of log_id() 2026-05-08 20:59:24 -07:00
topo_scc.h functional backend: topological sort starts with the output and next states nodes, other nodes get deleted 2024-08-21 11:03:29 +01:00
utils.h utils: forbid the use of std::less on pointers in TopoSort 2026-04-06 15:09:52 +02:00
version.cc.in Migrate build system to CMake 2026-06-03 08:58:10 +00:00
wallace_tree.h Consolidate Wallace from booth and CSA. 2026-04-13 12:48:05 +02:00
yosys.cc Update top-level Python project for CMake compatibility. 2026-06-03 09:03:23 +00:00
yosys.h version: add git hash string 2025-12-09 11:58:43 +01:00
yosys_common.h Migrate build system to CMake 2026-06-03 08:58:10 +00:00
yosys_config.h.in Drop `YOSYS_ENABLE_HELP_SOURCE` since C++20 is required. 2026-06-03 08:58:11 +00:00
yw.cc Update kernel to avoid bits() 2025-09-16 03:17:23 +00:00
yw.h mark all hash_into methods nodiscard 2025-01-14 12:39:15 +01:00