search for: shuy

Displaying 7 results from an estimated 7 matches for "shuy".

Did you mean: shut
2010 Nov 23
1
[LLVMdev] how to get a void type value in llvm
...on("foo", IntegerType::get(M.getContext(), 32), Type::getVoidTy(M.getContext())); INSTEAD, I changed to : fcall2 = M.getOrInsertFunction("foo", FunctionType::get( IntegerType::get(M.getContext(), 32), false)); combining with this, the insertion works finally. Thanks, --Shuying On Mon, Nov 22, 2010 at 6:07 PM, <o.j.sivart at gmail.com> wrote: > Hi Shuying, > You will find in the documentation that amongst the > overloaded CallInst::Create()'s there is one that takes no function > arguments: > static CallInst* > llvm::CallInst::Create ( Val...
2010 Nov 23
2
[LLVMdev] how to get a void type value in llvm
...nction("foo", IntegerType::get(M.getContext(), 32), Type::getVoidTy(M.getContext())); then the question is how to get the void type value to make the CallInst inserted sucessfully? (what should be ********) CallInst::Create(fcall2, ******, "", insertPos); -- --Shuying
2010 Nov 23
0
[LLVMdev] how to get a void type value in llvm
Hi Shuying, You will find in the documentation that amongst the overloaded CallInst::Create()'s there is one that takes no function arguments: static CallInst* llvm::CallInst::Create ( Value * F, const Twine & NameStr, BasicBlock * InsertAtEnd); Regards On 23/11/2010, at 11:20 AM, Shuying Liang...
2010 Oct 07
0
[LLVMdev] Segmentation Fault of BasicCallGraph?
Shuying Liang wrote: > Hi, > > I did a little experiment, basically to extract implemented CallGraph > to be a "new" pass with different registered name, and run the "new" > pass, but the result always gives out Segmentation Fault... I am > probably missing > sth...
2010 Oct 06
2
[LLVMdev] Segmentation Fault of BasicCallGraph?
Hi, I did a little experiment, basically to extract implemented CallGraph to be a "new" pass with different registered name, and run the "new" pass, but the result always gives out Segmentation Fault... I am probably missing sth? Implemented another new class, class BasicCallGraph2 : public ModulePass, public CallGraph { ..... ... } The inside code is exact same as
2010 Nov 18
0
[LLVMdev] How to construct parameters for a insert function? one from a return value from previous call, the other one is a string....
...I create a CallInstruction as follows, CallInst::Create(fcall, Args.begin(), Args.end(), "", insertPos); // insertPos is the Instruction * type, the position I want to insert write call. Does any one have some insight about it? Thanks for your time and any suggestions in advance.... --Shuying
2009 Mar 10
1
(no subject)
Dear Members, I have a question about using R2WinBUGS to obtain the WinBUGS results. By default, when R2WinBUGS returns summary stats, I got mean, sd, 2.5%, 25%, median, 75% and 97.5%. Could anyone tell me how to modify the code to obtain 5% and 95% summary results? Many thanks Alice _________________________________________________________________ [[elided Hotmail spam]]