arcana-lab / noelle

NOELLE Offers Empowering LLVM Extensions
MIT License
72 stars 35 forks source link

Error when building NOELLE V14 #132

Closed randreshg closed 1 month ago

randreshg commented 2 months ago

noelle/src/core/scheduler/src/Scheduler.cpp:859:64: error: expression list treated as compound expression in functional cast [-fpermissive]

I think it is fixed by casting the set to a pointer of BasicBlock

this->Blocks = std::set<BasicBlock*>(
    this->TheLoop->getBasicBlocks().begin(), 
    this->TheLoop->getBasicBlocks().end()
);
scampanoni commented 2 months ago

It's interesting that it compiles for me. Which compiler are you using to compile NOELLE? I'm using clang from LLVM 14.0.6

randreshg commented 2 months ago

I tried with both clang 14.0.1 and 14.0.6 and I get the same error

scampanoni commented 1 month ago

The latest commit includes the suggested change.