search for: buffgv

Displaying 2 results from an estimated 2 matches for "buffgv".

Did you mean: buffer
2005 Apr 11
0
[LLVMdev] JIT and array pointers
...gt; buff[0] = 1; > > // compile and execute code that will change buff[0] to 2 > Value *c0 = ConstantUInt::get (Type::UIntTy, 0); > Value *c2 = ConstantUInt::get (Type::UIntTy, 2); > > Module *m = new Module ("test_module"); Here, create an LLVM GlobalVariable 'BuffGV' of the appropriate type, and insert it into m: GlobalVariable *BuffGV = new GlobalVariable([4096 x uint], false, GlobalVariable::ExternalLinkage, 0, "Buff", m); > Function *f = m->getOrInsertFunction ("test_function", Type::VoidTy, > 0); > BasicBlock *b =...
2005 Apr 11
2
[LLVMdev] JIT and array pointers
On Sun, 2005-04-10 at 19:47 -0500, Chris Lattner wrote: > On Mon, 11 Apr 2005, Paul wrote: > > I'm trying to pass an array pointer to my run-time generated module, and > > after a long time of searching for the answer, the only thing I got was > > a headache. Basically I have a few arrays (few megabytes which will > > sometimes be accessed as 8 / 16 / 32 / 64 bit