-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michalis Kokologiannakis <[email protected]>
- Loading branch information
1 parent
3be12e2
commit e2a7f1f
Showing
249 changed files
with
22,433 additions
and
21,320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
AC_INIT([GenMC], [0.10.1], [[email protected]], [genmc], [https://plv.mpi-sws.org/genmc]) | ||
AC_INIT([GenMC], [0.10.2], [[email protected]], [genmc], [https://plv.mpi-sws.org/genmc]) | ||
|
||
m4_include([m4/ax_llvm.m4]) | ||
m4_include([m4/ax_clang.m4]) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Modifying GenMC | ||
|
||
## Adding new label types | ||
|
||
To add a new label, follow these steps: | ||
|
||
1. Add a number and a name for the new label in Instruction.def | ||
2. Add a class for the new label in ExecutionGraph/EventLabel.hpp. | ||
Macros are provided for dummy labels and standard subclasses | ||
3. Add a case for the new label in LabelVisitor.hpp | ||
4. Define how the label should be printed in EventLabel.cpp | ||
(optionally: LabelPrinterBase too) | ||
5. Create a handler for the new label in GenMCDriver.{hpp,cpp} | ||
(if necessary), and at DriverHandlerDispatcher | ||
6. In case a new LLVM-IR function leads to the creation of | ||
the new label: | ||
- Add a number and a name for the internal function in | ||
Runtime/InternalFunction.def. | ||
- Define a function that dispatches the driver at | ||
Runtime/Execution.cpp | ||
|
||
*Note:* the procedure above describes the bare minimum, and works well | ||
for dummy labels or subclasses of existing labels. If e.g., the new | ||
label has attributes like location then extra changes might be | ||
required to ensure that iterators, etc still work. |
Oops, something went wrong.