-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #13 from MeowMJ/MeowMJ-patch-1
Meow mj patch 1
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -216,6 +216,30 @@ bool DFGNode::isGetptr() { | |
return false; | ||
} | ||
|
||
bool DFGNode::isSel() { | ||
if (m_opcodeName.compare("select") == 0) | ||
return true; | ||
return false; | ||
} | ||
|
||
bool DFGNode::isMAC() { | ||
if ((m_opcodeName.compare("getelementptr") == 0 or | ||
m_opcodeName.compare("add") == 0 or | ||
m_opcodeName.compare("fadd") == 0 or | ||
m_opcodeName.compare("sub") == 0 or | ||
m_opcodeName.compare("fsub") == 0) && | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
MeowMJ
Collaborator
|
||
(m_opcodeName.compare("fmul") == 0 or | ||
m_opcodeName.compare("mul") == 0)) | ||
return true; | ||
return false; | ||
} | ||
|
||
bool DFGNode::isLogic() { | ||
if (m_opcodeName.compare("or") == 0 or m_opcodeName.compare("and") == 0) | ||
return true; | ||
return false; | ||
} | ||
|
||
bool DFGNode::hasCombined() { | ||
return m_combined; | ||
} | ||
|
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
@MeowMJ I just noticed this. Why this is an
&&
? In your code, isMAC() will never returntrue
. Please fix in another PR.