search for: loopbound

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

Did you mean: lo_bound
2010 Mar 10
0
[LLVMdev] Source code annotations on loops
...ting an analysis pass that needs to know an upper bound on all loops. LLVM can determine loop bounds in some situations (Loop::getTripCount), but in other cases the developer of the analyzed code will need to supply them. One way this is accomplished is with commented annotations like: // @loopBound=10 while (i < j) { ... } I could use LLVM's debug info metadata to locate the source file and line number associated with this loop, then read the file and extract the comment, but I'm wondering if there's a better, more structured way. For example, there's the standard __...