http://llvm.org/bugs/show_bug.cgi?id=9214
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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs