search for: 4fb0c505

Displaying 4 results from an estimated 4 matches for "4fb0c505".

2011 Oct 05
2
[LLVMdev] replacing a global variable by a constant
hi i want replacing a global variable by a constant value for erase instruction. i had seen the code that as follows for (llvm::GlobalVariable::use_iterator U = gv->use_begin(); U != gv->use_end();--U ) { llvm::Instruction *I = llvm::cast<llvm::Instruction>(U); I->replaceAllUsesWith(constPtr); I->eraseFromParent(); } but i dont know how can declare constptr.
2011 Oct 05
0
[LLVMdev] replacing a global variable by a constant
Hi nada, > i want replacing a global variable by a constant value for erase instruction. I'm not sure what you mean exactly. A GlobalVariable has pointer type. Do you want to replace that pointer by a constant pointer? Or is it rather that you want to say that the contents of the memory pointed to by the GlobalVariable is constant, and have all places that load that GlobalVariable
2011 Oct 06
1
[LLVMdev] replacing a global variable by a constant
...amp; "Uses remain when a value is destroyed!"' failed. 0 opt 0x0848e569 Stack dump: What suggestions do you have for solve this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111006/4fb0c505/attachment.html>
2011 Oct 06
0
[LLVMdev] MIPS 32bit code generation
...;& "Uses remain when a value is destroyed!"' failed. 0 opt 0x0848e569 Stack dump: What suggestions do you have for solve this problem? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20111006/4fb0c505/attachment-0001.html ------------------------------ Message: 7 Date: Thu, 06 Oct 2011 10:05:18 +0200 From: Duncan Sands <baldrick at free.fr> Subject: Re: [LLVMdev] replacing a global variable by a constant To: neda 8664 <neda8664 at gmail.com> Cc: llvmdev at cs.uiuc.edu Message-ID: &...