search for: extractfeatures

Displaying 4 results from an estimated 4 matches for "extractfeatures".

2012 Nov 06
1
[LLVMdev] Adding function attributes
.../Analysis/LoopPass.h" #include "llvm/Analysis/ScalarEvolution.h" #include "llvm/Function.h" #include "llvm/Module.h" #include "llvm/Pass.h" #include "llvm/Support/raw_ostream.h" using namespace llvm; using namespace std; namespace { class ExtractFeatures : public ModulePass { public: static char ID; ExtractFeatures() : ModulePass(ID) { module = NULL; loopInfo = NULL; scalarEvolution = NULL; } virtual bool runOnModule(Module&...
2012 Nov 05
0
[LLVMdev] Adding function attributes
Hi Arnaldo, On 05/11/12 10:02, Arnaldo wrote: > Hi Duncan, thanks for the quick answer. > > Yes I'm sure the runOnModule is being called, and when I dump the functions > before exiting the method I can see the AlwaysInline attribute. > > I'll check InlineAlways.cpp and will reimplement as last resource but I still > wonder why this is not working. if you want more
2012 Nov 05
2
[LLVMdev] Adding function attributes
Hi Duncan, thanks for the quick answer. Yes I'm sure the runOnModule is being called, and when I dump the functions before exiting the method I can see the AlwaysInline attribute. I'll check InlineAlways.cpp and will reimplement as last resource but I still wonder why this is not working. On Mon, Nov 5, 2012 at 5:03 PM, Duncan Sands <baldrick at free.fr> wrote: > Hi Arnaldo,
2012 Nov 09
0
[LLVMdev] Loop carried dependence analysis?
...endence = dependenceAnalysis->depends(instructions[src], instructions[dst], true); if (dependence) { unsigned direction = dependence->getDirection(nestingLevel); // Returns DVEntry::ALL if (const SCEV* scev = dependence->getDistance(nestingLevel)) // Returns null {...} } void ExtractFeatures::getAnalysisUsage(AnalysisUsage &analysisUsage) const { analysisUsage.addRequired<LoopInfo>(); analysisUsage.addPreserved<LoopInfo>(); analysisUsage.addRequired<ScalarEvolution>(); analysisUsage.addPreserved<ScalarEvolution>(); analysisUsage.addRequir...