Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
4429fff
result io name
murphe67 Jul 31, 2025
130beba
typo
murphe67 Jul 31, 2025
5924e83
typo
murphe67 Jul 31, 2025
f57bed1
remove default implementations
murphe67 Jul 31, 2025
b925da3
remove default naming
murphe67 Jul 31, 2025
f0253fc
remove default calls
murphe67 Jul 31, 2025
b26a471
typo
murphe67 Jul 31, 2025
939573b
custom and simple
murphe67 Jul 31, 2025
da229b5
methods to interface
murphe67 Jul 31, 2025
c0ce4db
arith ops fixed
murphe67 Jul 31, 2025
4d86084
move to header
murphe67 Jul 31, 2025
deaf392
change infer functions
murphe67 Jul 31, 2025
b3fcd0a
arith io interface
murphe67 Jul 31, 2025
0cca80f
individual arith interfaces
murphe67 Jul 31, 2025
2db35bc
typo
murphe67 Jul 31, 2025
1805654
typo
murphe67 Jul 31, 2025
1524c23
typo
murphe67 Jul 31, 2025
01870a1
fix mux names
murphe67 Jul 31, 2025
0072329
namespace
murphe67 Jul 31, 2025
1c824e7
up to memory controller
murphe67 Jul 31, 2025
9bdf571
remove some num results
murphe67 Jul 31, 2025
89b9cf6
remove nameiointerface
murphe67 Jul 31, 2025
c3c2ca7
simple port name for end
murphe67 Jul 31, 2025
57c7638
more functions into tablegen
murphe67 Jul 31, 2025
4ef039b
move common funcs into header
murphe67 Jul 31, 2025
bd73f81
move out of detail
murphe67 Jul 31, 2025
58baf07
move autogenerated?
murphe67 Jul 31, 2025
3a56061
forward declaration
murphe67 Jul 31, 2025
e22ff87
move into ops h
murphe67 Jul 31, 2025
75ff38d
mem interface in hs
murphe67 Jul 31, 2025
8e8e289
remove body of end op get operands
murphe67 Jul 31, 2025
389668a
get array
murphe67 Jul 31, 2025
d42e4a0
remove namedio from name analysis
murphe67 Jul 31, 2025
3cbbda0
typo
murphe67 Jul 31, 2025
d913d1a
typo
murphe67 Jul 31, 2025
9c394cb
try declaration?
murphe67 Jul 31, 2025
7b951d6
move back into header
murphe67 Jul 31, 2025
098ddb4
remove lsq temporarily
murphe67 Jul 31, 2025
c125231
interfaces for name analysis
murphe67 Jul 31, 2025
30a842a
fix name
murphe67 Jul 31, 2025
d735920
more into header files
murphe67 Jul 31, 2025
9b79191
num operands on operation?
murphe67 Jul 31, 2025
894643d
results from get operation
murphe67 Jul 31, 2025
42b6598
merge declarations cond br
murphe67 Jul 31, 2025
5491bb1
remove polygeist path
murphe67 Aug 22, 2025
8282ba3
typo
murphe67 Aug 22, 2025
4bfed54
fix includes
murphe67 Aug 22, 2025
b719301
fixes
murphe67 Aug 22, 2025
1ab9e5e
clang format
murphe67 Aug 22, 2025
f6eed09
move into build include
murphe67 Aug 22, 2025
58ffe7e
clean up link creation
murphe67 Aug 22, 2025
3accda3
remove remove
murphe67 Aug 22, 2025
189e8a0
Merge branch 'main' of github.com:EPFL-LAP/dynamatic into polygeist-path
murphe67 Aug 22, 2025
6e369f1
Merge branch 'main' of github.com:EPFL-LAP/dynamatic into fix_naming
murphe67 Aug 23, 2025
f62b858
Merge branch 'polygeist-path' of github.com:EPFL-LAP/dynamatic into f…
murphe67 Aug 23, 2025
33aa07b
move naming into interfaces cpp
murphe67 Aug 23, 2025
9eb399f
add to header
murphe67 Aug 23, 2025
77003ab
remove compare funcs
murphe67 Aug 23, 2025
79b72d9
handshake
murphe67 Aug 23, 2025
bad71a5
lsq naming
murphe67 Aug 23, 2025
c1b92b3
typo
murphe67 Aug 23, 2025
e8efda1
mem controller op
murphe67 Aug 23, 2025
eebc5c9
typo
murphe67 Aug 23, 2025
0537c82
endop
murphe67 Aug 23, 2025
52a64a4
non static
murphe67 Aug 23, 2025
eaf7892
add simple naming?
murphe67 Aug 23, 2025
3af2447
2d
murphe67 Aug 23, 2025
5102c61
typo
murphe67 Aug 23, 2025
af393b3
move into function
murphe67 Aug 23, 2025
6a40f7f
typo
murphe67 Aug 23, 2025
aba1aec
endop
murphe67 Aug 23, 2025
a697a2d
typo
murphe67 Aug 23, 2025
9e3cc5f
fix ext
murphe67 Aug 23, 2025
28a5a7d
format
murphe67 Aug 23, 2025
cfd61fc
format
murphe67 Aug 23, 2025
b362a8f
try new interfaces
murphe67 Aug 23, 2025
879f4f6
end simple
murphe67 Aug 23, 2025
1b5c906
typo
murphe67 Aug 23, 2025
53c581b
semicolon
murphe67 Aug 23, 2025
3c23a89
typo
murphe67 Aug 23, 2025
651c465
typo
murphe67 Aug 23, 2025
25af5d5
func op header
murphe67 Aug 23, 2025
55e88fd
semicolon
murphe67 Aug 23, 2025
41c97fc
str copy?
murphe67 Aug 23, 2025
a034f1d
namespace
murphe67 Aug 23, 2025
6af72e1
fix call
murphe67 Aug 23, 2025
324afc0
concrete op
murphe67 Aug 23, 2025
a36d107
merge main
murphe67 Oct 14, 2025
fcde84a
commenting, check funcop?
murphe67 Oct 14, 2025
4e1fced
commenting, check funcop?
murphe67 Oct 14, 2025
60825b3
commenting, check end op?
murphe67 Oct 14, 2025
382f494
commenting, check end op?
murphe67 Oct 14, 2025
0d5894d
commenting, validate?
murphe67 Oct 14, 2025
6654307
commenting, inherit?
murphe67 Oct 14, 2025
8a3dd96
commenting, inherit?
murphe67 Oct 14, 2025
e551320
commenting, inherit?
murphe67 Oct 14, 2025
c35de58
commenting, inherit?
murphe67 Oct 14, 2025
1b218b0
commenting, inherit?
murphe67 Oct 14, 2025
ae77057
commenting, inherit?
murphe67 Oct 14, 2025
2ab2594
commenting, inherit?
murphe67 Oct 14, 2025
23ce952
inherit fixes
murphe67 Oct 14, 2025
41d16de
inherit fixes
murphe67 Oct 14, 2025
7fc4cdb
remove port namer
murphe67 Oct 14, 2025
fe6e660
remove port namer
murphe67 Oct 14, 2025
0370d0a
remove port namer
murphe67 Oct 14, 2025
0a0dff6
remove port namer
murphe67 Oct 14, 2025
d75b2a5
remove port namer
murphe67 Oct 14, 2025
d2a4551
remove port namer
murphe67 Oct 14, 2025
ac34325
remove port namer
murphe67 Oct 14, 2025
0f1f74e
remove port namer
murphe67 Oct 14, 2025
e59c39c
comments
murphe67 Oct 14, 2025
d50a1b4
need num ports?
murphe67 Oct 14, 2025
63958ab
need num ports?
murphe67 Oct 14, 2025
5236836
need num ports?
murphe67 Oct 14, 2025
00c887f
need num ports?
murphe67 Oct 14, 2025
043761e
need num ports?
murphe67 Oct 14, 2025
8dd2a0e
no port names
murphe67 Oct 14, 2025
158a8d7
no port names
murphe67 Oct 14, 2025
518528a
no port names
murphe67 Oct 14, 2025
47a8ba2
no port names
murphe67 Oct 14, 2025
7119bfe
no port names
murphe67 Oct 14, 2025
663b640
no port names
murphe67 Oct 14, 2025
26e6517
no port names
murphe67 Oct 14, 2025
72b7a81
no port names
murphe67 Oct 14, 2025
f5c16ac
small fixes
murphe67 Oct 14, 2025
c2ea688
small fixes
murphe67 Oct 14, 2025
4125ee0
small fixes
murphe67 Oct 14, 2025
9edf40f
small fixes
murphe67 Oct 14, 2025
e9beac0
small fixes
murphe67 Oct 14, 2025
f4adfe1
small fixes
murphe67 Oct 14, 2025
511aab7
small fixes
murphe67 Oct 14, 2025
4b81210
small fixes
murphe67 Oct 14, 2025
df47dc9
clang format
murphe67 Oct 17, 2025
26a7aac
merge
murphe67 Oct 17, 2025
38d75f5
format
murphe67 Oct 17, 2025
e9d0bdd
better comments
murphe67 Oct 17, 2025
e94e231
syntax
murphe67 Oct 17, 2025
f72f97b
format
murphe67 Oct 17, 2025
217ea16
remove duplicate
murphe67 Oct 17, 2025
37c0cd0
fix interface
murphe67 Oct 17, 2025
d5c042d
fix comments
murphe67 Oct 17, 2025
b881946
try base interface
murphe67 Oct 22, 2025
172a4cf
try base interface
murphe67 Oct 22, 2025
481a433
try base interface
murphe67 Oct 22, 2025
9f44066
try base interface
murphe67 Oct 22, 2025
0a622ce
try different order
murphe67 Oct 22, 2025
85c482c
try different order
murphe67 Oct 22, 2025
aac7552
comment out
murphe67 Oct 22, 2025
79c7306
fix bug
murphe67 Oct 22, 2025
c781876
add back
murphe67 Oct 22, 2025
8927309
export dot
murphe67 Oct 22, 2025
5023e63
log 2 csv
murphe67 Oct 22, 2025
3feaeb1
syntax
murphe67 Oct 22, 2025
353e0a8
detail
murphe67 Oct 22, 2025
c32ba80
detail
murphe67 Oct 22, 2025
515e14a
detail
murphe67 Oct 22, 2025
34d59d2
detail
murphe67 Oct 22, 2025
d54c540
detail
murphe67 Oct 22, 2025
245f3f8
detail
murphe67 Oct 22, 2025
7c0c3f4
detail
murphe67 Oct 22, 2025
5320690
detail
murphe67 Oct 22, 2025
5d239a1
detail
murphe67 Oct 22, 2025
60b2381
detail
murphe67 Oct 22, 2025
796fae4
detail
murphe67 Oct 22, 2025
ee6016d
detail
murphe67 Oct 22, 2025
5a14db8
failure
murphe67 Oct 22, 2025
544247c
failure
murphe67 Oct 22, 2025
12e5f9c
const
murphe67 Oct 22, 2025
0032e12
const
murphe67 Oct 22, 2025
a9a659e
const
murphe67 Oct 22, 2025
ecbb01b
wrapper
murphe67 Oct 22, 2025
0e3dff5
wrapper
murphe67 Oct 22, 2025
da6761f
wrapper
murphe67 Oct 22, 2025
65ebc90
format
murphe67 Oct 22, 2025
363090d
format
murphe67 Oct 22, 2025
3258817
syntax
murphe67 Oct 22, 2025
103d9e8
syntax
murphe67 Oct 22, 2025
914c58b
syntax
murphe67 Oct 22, 2025
3af1baf
syntax
murphe67 Oct 22, 2025
4f056a9
safety
murphe67 Oct 22, 2025
bef6f72
failure test
murphe67 Oct 22, 2025
60548e3
remove free functions
murphe67 Oct 22, 2025
6776ce3
remove free functions
murphe67 Oct 22, 2025
0d141b4
remove free functions
murphe67 Oct 22, 2025
3636a6e
remove free functions
murphe67 Oct 22, 2025
674ff06
remove free functions
murphe67 Oct 22, 2025
08e667a
remove free functions
murphe67 Oct 22, 2025
77ef046
remove free functions
murphe67 Oct 22, 2025
05f8adf
remove free functions
murphe67 Oct 22, 2025
8f6d196
remove free functions
murphe67 Oct 22, 2025
e41811d
remove free functions
murphe67 Oct 22, 2025
76db7b3
merge
murphe67 Oct 22, 2025
69d3aff
format
murphe67 Oct 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions experimental/lib/Support/FormalProperty.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//===----------------------------------------------------------------------===//
#include "experimental/Support/FormalProperty.h"
#include "dynamatic/Analysis/NameAnalysis.h"
#include "dynamatic/Dialect/Handshake/HandshakeInterfaces.h"
#include "dynamatic/Dialect/Handshake/HandshakeOps.h"
#include "dynamatic/Support/JSON/JSON.h"
#include "llvm/Support/JSON.h"
#include <memory>
Expand Down Expand Up @@ -128,9 +128,6 @@ AbsenceOfBackpressure::AbsenceOfBackpressure(unsigned long id, TAG tag,
Operation *ownerOp = res.getOwner();
Operation *userOp = *res.getUsers().begin();

handshake::PortNamer ownerNamer(ownerOp);
handshake::PortNamer userNamer(userOp);
Comment on lines -131 to -132
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

port namers no longer required


unsigned long operandIndex = userOp->getNumOperands();
for (auto [j, arg] : llvm::enumerate(userOp->getOperands())) {
if (arg == res) {
Expand All @@ -144,9 +141,11 @@ AbsenceOfBackpressure::AbsenceOfBackpressure(unsigned long id, TAG tag,
userChannel.operationName = getUniqueName(userOp).str();
ownerChannel.channelIndex = res.getResultNumber();
userChannel.channelIndex = operandIndex;
auto handshakeOwnerOp = handshake::getHandshakeBase(ownerOp);
ownerChannel.channelName =
ownerNamer.getOutputName(res.getResultNumber()).str();
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since port names match directly to operand/result names, the formal property annotation can go use the getResultName and getOperandName functions

userChannel.channelName = userNamer.getInputName(operandIndex).str();
handshakeOwnerOp.getResultName(res.getResultNumber());
auto handshakeUserOp = handshake::getHandshakeBase(userOp);
userChannel.channelName = handshakeUserOp.getOperandName(operandIndex);
}

llvm::json::Value AbsenceOfBackpressure::extraInfoToJSON() const {
Expand Down Expand Up @@ -184,18 +183,18 @@ ValidEquivalence::ValidEquivalence(unsigned long id, TAG tag,
: FormalProperty(id, tag, TYPE::VEQ) {
Operation *op1 = res1.getOwner();
unsigned int i = res1.getResultNumber();
handshake::PortNamer namer1(op1);

Operation *op2 = res2.getOwner();
unsigned int j = res2.getResultNumber();
handshake::PortNamer namer2(op2);

ownerChannel.operationName = getUniqueName(op1).str();
targetChannel.operationName = getUniqueName(op2).str();
ownerChannel.channelIndex = i;
targetChannel.channelIndex = j;
ownerChannel.channelName = namer1.getOutputName(i).str();
targetChannel.channelName = namer2.getOutputName(j).str();
auto handshakeOp1 = handshake::getHandshakeBase(op1);
auto handshakeOp2 = handshake::getHandshakeBase(op2);
ownerChannel.channelName = handshakeOp1.getResultName(i);
targetChannel.channelName = handshakeOp2.getResultName(j);
}

llvm::json::Value ValidEquivalence::extraInfoToJSON() const {
Expand Down
Loading
Loading