search for: 7f43a31a

Displaying 2 results from an estimated 2 matches for "7f43a31a".

2018 Jan 09
2
Passing Array base address/pointer to runtime function in LLVM IR
Hello LLVM, I am a beginner in LLVM My Goal is to initialize array element with random values. 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 =
2018 Jan 09
0
Passing Array base address/pointer to runtime function in LLVM IR
Hi Bernard, On 9 January 2018 at 07:08, Bernard Nongpoh via llvm-dev <llvm-dev at lists.llvm.org> wrote: > Tried the above code but no luck .. I'm afraid there's not enough context here to answer the question. The code you posted looks like it could work, but a lot would depend on the definitions you omitted: getElementPtrInst especially, though a dump of the whole Module as it