I have a vector of integer values, vector<Value*> myIntegers in my LLVM code (not necessarily constant). I want to create a Store instruction to store these integers. To create the store instruction using the format below, for the first argument I need to create a Value* pointing to these integers (create an array out of them).
new StoreInst(Value *Val, Value *Ptr, ...);
If my integers were constants I would have used:
Constant *IntArrayConstant = ConstantDataArray::get(getGlobalContext(), ArrayRef<Value*> myIntegers);
How can I create a generic array of i32 types, with a Value* pointing to it? The documentation says storing ArrayRef is not safe either.