added CFG_withUnreachable option
This commit is contained in:
@@ -112,7 +112,8 @@ namespace SAPFOR
|
||||
CFG_withDVM = 5,
|
||||
CFG_withCallsInBlocks = 6,
|
||||
CFG_withCallFrom = 7,
|
||||
CFG_withDominators = 8 };
|
||||
CFG_withDominators = 8,
|
||||
CFG_withUnreachable = 9 };
|
||||
|
||||
bool atLeastOneIterInLoop = false;
|
||||
bool withRD = false;
|
||||
@@ -122,6 +123,7 @@ namespace SAPFOR
|
||||
bool withCallsInBlocks = false; // separate each F_CALL to own BasicBlock
|
||||
bool withCallFrom = false;
|
||||
bool withDominators = false;
|
||||
bool withUnreachable = false;
|
||||
|
||||
explicit CFG_Settings(const std::set<setting> &settings = { CFG_withRD, CFG_withCallFrom, CFG_withDominators })
|
||||
{
|
||||
@@ -143,6 +145,8 @@ namespace SAPFOR
|
||||
withCallFrom = true;
|
||||
else if (set == CFG_withDominators)
|
||||
withDominators = true;
|
||||
else if (set == CFG_withUnreachable)
|
||||
withUnreachable = true;
|
||||
else
|
||||
printInternalError(convertFileName(__FILE__).c_str(), __LINE__);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user