Commit 6f109380 authored by Jason Hiser's avatar Jason Hiser 🚜

changed to use ALLOF in a few places

parent aece7b16
Pipeline #2615 passed with stages
in 6 minutes and 30 seconds
......@@ -150,12 +150,12 @@ bool StackStamp_t::can_stamp(Function_t* f)
// So, let's check for those
// find a target that leaves
const auto leaver=find_if(icfs->begin(), icfs->end(), [&](Instruction_t* target){
const auto leaver=find_if(ALLOF(*icfs), [&](Instruction_t* target){
return target->getFunction()!=f;
});
// find a target that stays
const auto stayer=find_if(icfs->begin(), icfs->end(), [&](Instruction_t* target){
const auto stayer=find_if(ALLOF(*icfs), [&](Instruction_t* target){
return target->getFunction()==f;
});
......@@ -448,12 +448,12 @@ void StackStamp_t::stamp(Function_t* f)
assert(icfs->size() != 0);
// find a target that leaves
auto leaver=find_if(icfs->begin(), icfs->end(), [&](Instruction_t* target){
auto leaver=find_if(ALLOF(*icfs), [&](Instruction_t* target){
return target->getFunction()!=f;
});
// find a target that stays
auto stayer=find_if(icfs->begin(), icfs->end(), [&](Instruction_t* target){
auto stayer=find_if(ALLOF(*icfs), [&](Instruction_t* target){
return target->getFunction()==f;
});
......@@ -532,7 +532,7 @@ bool StackStamp_t::execute()
const auto ss_max_do_transform = getenv("SS_MAX_DO_TRANSFORM");
// let's sort the functions so the order of xform is deterministic.
const auto sorted_funcs = set<Function_t*, nameSorter> (getFileIR()->getFunctions().begin(), getFileIR()->getFunctions().end());
const auto sorted_funcs = set<Function_t*, nameSorter> (ALLOF(getFileIR()->getFunctions()));
// try to stamp functions one at a time, in the sorted order
for(auto func : sorted_funcs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment