<div dir="ltr"><div>Hello LLVM,</div><div><br></div>I am a beginner in  LLVM<br><div><br>My Goal is to initialize array element with random values.<br><br><pre><code> llvm::Type *i32_type = llvm::IntegerType::getInt32Ty(allocaInst->getContext());

    llvm::Value *value = llvm::ConstantInt::get(i32_type, numberOfElement);


    args.push_back(getElementPtrInst->getPointerOperand());
    args.push_back(value);

callInst = llvm::CallInst::Create(runtimeInitializeRandomIntegerArrayValue, args,""
                                           , allocaInst->getNextNode());<br><br></code>Tried the above code but no luck .. 
Any method that can easily pass array base address/pointer to function.<br><br>Question on stackoverlfow:<br><a href="https://stackoverflow.com/questions/48162515/passing-array-base-address-pointer-to-runtime-function-in-llvm-ir">https://stackoverflow.com/questions/48162515/passing-array-base-address-pointer-to-runtime-function-in-llvm-ir</a><br><br> Thanks in advance..<br><br></pre><pre>Bernard Nongpoh<br></pre><pre><code></code></pre></div></div>