Commit Graph

12 Commits

Author SHA1 Message Date
Bea Healy 6723ec62de
[circt-lec] Move `circt-lec` files to CIRCT library (#4544)
This moves most of the circt-lec code into a CIRCT library. No existing library directories seemed appropriate, hence the addition of the Verification directories.

---------

Co-authored-by: frog-in-the-well <106834163+frog-in-the-well@users.noreply.github.com>
2023-05-24 08:46:28 -07:00
Fabian Schuiki e7be36f307 [CMake] Produce a proper CIRCTTargets.cmake file
Ensure that during installation we produce a `CIRCTTargets.cmake` file
to allow out-of-tree users to link against CIRCT more easily. This
requires adding an `install(TARGETS ...)` command to
`add_circt_library_install`, and an `install(EXPORT CIRCTTargets ...)`
to `cmake/modules/CMakeLists.txt`.
2022-01-13 11:19:03 +01:00
Fabian Schuiki 416560123e [CMake] Align CIRCTConfig.cmake more closely with MLIR
Update the `cmake/modules/CMakeLists.txt` file and friends such that the
config file also includes the `CIRCT_TOOLS_BINARY_DIR` variable, and the
generation of that file resembles that in MLIR more closely. This should
make it easier in the future to use some of LLVM's cmake utilities.
2022-01-13 11:19:03 +01:00
Fabian Schuiki 486ec2223d
[CMake] Install CIRCTConfig and AddCIRCT cmake files
Add the `CIRCTConfig.cmake` and `AddCIRCT.cmake` files to the list of
installed files. This mimics the behaviour implemented in MLIR, and
allows for CIRCT to be used out of tree (e.g. as part of the Moore
compiler, among other things).
2022-01-12 19:02:19 +01:00
Morten Borup Petersen c227f5c3d3
Add boilerplate for an "Analysis" library (#1688)
This commit adds necessary files and code for adding new code under an "Analysis" folder.
2021-09-01 18:12:55 +01:00
Andrew Young 29e2f43cab
[CMAKE] Properly export CIRCT targets (#306) 2020-12-10 13:12:00 -05:00
stephenneuendorffer 6e8df0f39a
Add cmake export information so that out-of-tree projects can properly call "find_package(CIRCT)" (#242)
Generally speaking, this should allow

cake -DCIRCT_DIR="<something>/lib/cmake/circt" myprojectdirectory, where <something> is
either a build or install area.  Then in your project cmake file you can have:
find_package(CIRCT REQUIRED CONFIG)
2020-11-18 11:00:00 -08:00
Stephen Neuendorffer 7d03c27a82 Fix CMakeFiles to include information from LLVM.
Also: fix 'check-circt' and 'install' rules.  Linkage was broken for
most of the tools.
2020-06-17 13:27:14 -07:00
Chris Lattner 3202062646 Mechanical rename of cirt -> circt. 2020-06-17 10:19:08 -07:00
Chris Lattner c216617817 Move the remaining references of SPT to CIRT. NFC. 2020-04-29 11:57:17 -07:00
Chris Lattner 5411096ddd Move macro-like SPT_ names to CIRT_. NFC. 2020-04-29 11:41:42 -07:00
Chris Lattner 64cec97240 Introduce a CMakefile scaffolding to build and test an executable.
This also updates the README to include some building information.

Lots of caveats:
 - This is all experimental
 - The actual tool isn't interesting yet.
 - The naming is arbitrary and will likely change.
 - Much of the cmake files were cargo culted from other places
   because I don't know what I'm doing.
2020-03-05 15:16:55 -08:00