[LLVMbugs] [Bug 19610] New: Support template parameters in #pragma loop directives

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Apr 29 15:30:53 PDT 2014


            Bug ID: 19610
           Summary: Support template parameters in #pragma loop directives
           Product: clang
           Version: trunk
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
          Assignee: unassignedclangbugs at nondot.org
          Reporter: tnowicki at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Soon to be added #pragma loop directives allow the programmer to explicitly
enable vectorization and interleaving, and specify vector width and
interleaving count.

We want to be able to use a template parameter to specify the vector width or
interleaving count. For example:

template <unsigned V, unsigned I>
void foo() {
  #pragma vectorize(V) interleave(I)
  for(...) {...}

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140429/ccbcb412/attachment.html>

More information about the llvm-bugs mailing list