[LLVMbugs] [Bug 9214] New: Convert APIs to use ArrayRef

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Feb 14 00:04:33 PST 2011


           Summary: Convert APIs to use ArrayRef
           Product: libraries
           Version: 1.0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: clattner at apple.com
                CC: llvmbugs at cs.uiuc.edu

Various LLVM APIs (such as the Constant*::get APIs, the
GetElementPtrInst::Create methods, IRBuilder CreateGEP method, etc) that take
multiple input values take std::vectors, and some now also can take a pointer
to the start of an array and a count (for use with SmallVector).  The new
ArrayRef class subsumes both of these uses and is more convenient to use.

The implementation side of these should switch to use a FoldingSet (tracked by
PR1210), eliminating the temporary std::vector stored in various maps.

Also, ConstantExpr::getIndices() should be changed to return an ArrayRef.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list