diff --git a/mappings/FalconCrimson/src/Parser.cpp b/mappings/FalconCrimson/src/Parser.cpp index bab95fe84..6c4498456 100644 --- a/mappings/FalconCrimson/src/Parser.cpp +++ b/mappings/FalconCrimson/src/Parser.cpp @@ -6,6 +6,9 @@ * * Last edited: June 1, 2017 * Author: Shail Dave +* +* Last edited: Mar 25 2022 +* Author: Vinh TA */ #include "Parser.h" @@ -143,13 +146,17 @@ bool Parser::ParseDFG(DFG* myDFG) { myDFG->make_Arc(node1, node2, arcID++, distance, MemoryDep, operandorder); } + else if (!strcmp(edge_type, "LCE")){ + node1->set_node_mode(2); + node2->set_node_mode(1); + cout << "ParseDFG: parsing loop control edge\n Node1: " << node1->getName() << " - Node2: " << node2->getName() << endl; + //cout << "Skipping LCE - node1: " << node1->getName() << " - node2: " << node2->getName() << endl; + } else { //allow live-in as true-data dependency to perform register allocation myDFG->make_Arc(node1, node2, arcID++, distance, TrueDep, operandorder); - } - } } else diff --git a/mappings/FalconCrimson/src/main.cpp b/mappings/FalconCrimson/src/main.cpp index d091d1666..6f5507dd2 100644 --- a/mappings/FalconCrimson/src/main.cpp +++ b/mappings/FalconCrimson/src/main.cpp @@ -1,7 +1,4 @@ -// Author: Mahdi Hamzeh - -// Last edited: 4 March 2017 -// Author: Shail Dave +// Author: Mahesh #include //#include "RAMP.h" @@ -26,7 +23,7 @@ int schedule_id=0; int map_id=0; ofstream debugfile; -std::string debugfilename = "debugfile"; +std::string debugfilename = "FalconCrimson_debug.txt"; int main(int argc, char *argv[]) {