search for: sizemetr

Displaying 1 result from an estimated 1 matches for "sizemetr".

Did you mean: sizemetric
2013 Jul 12
14
[LLVMdev] [Proposal] Parallelize post-IPO stage.
...G(0) {} + + virtual bool runOnModule(Module &M); + virtual void getAnalysisUsage(AnalysisUsage &AU) const; + +private: + // Partition threshold, currently the metric for "size" is the number + // of functions in a partition. + enum { + MaxFuncInPart = 3 + }; + + class SizeMetric { + public: + SizeMetric(int func_num=0) : FuncNum(func_num) {}; + bool ExceedThreshold() const { return FuncNum > MaxFuncInPart; } + bool ExceedThresholdTooMuch() const + { return FuncNum >= MaxFuncInPart * 3 / 2; } + void IncFuncNum(int amt = 1) { FuncNum += amt; }; +...