[clang] [llvm] [llvm:ir] Add support for constant data exceeding 4GiB (PR #126481)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 25 16:07:13 PST 2025


================
@@ -644,7 +644,7 @@ class ConstantDataSequential : public ConstantData {
   Type *getElementType() const;
 
   /// Return the number of elements in the array or vector.
-  unsigned getNumElements() const;
+  uint64_t getNumElements() const;
----------------
efriedma-quic wrote:

Adding a python script as a regression test isn't necessarily an issue, but I assume it would take an excessively large amount of time/memory to process a 4GB file.  We don't really have any place in-tree for a test like that.  Leaving it out is probably fine... it's here for reference if we need it in the future.

https://github.com/llvm/llvm-project/pull/126481


More information about the cfe-commits mailing list