search for: myreg1

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

Did you mean: myreg
2012 Dec 02
3
[LLVMdev] GetElementPtrInst question
Hi all, How can I create an llvm::GetElementPtrInst in which the pointer and the index are in registers previously loaded with llvm::LoadInst ? I mean, the generated instruction will be like this: %1 = getelementptr i8* %myreg1, i32 %myreg2 here, %myreg1 and %myreg2 are previously created by load instructions (llvm::LoadInst). Please, let me know if there is an example of something similar. Thanks for the help, Eduardo
2012 Dec 02
0
[LLVMdev] GetElementPtrInst question
Hi, You'd use an IRBuilder, like you did to create your LoadInsts. IRBuilder<> IRB(BB); IRB.CreateGEP(myreg1, myreg2); I assume because you asked this question, something went wrong when using the above method. What was it? :) Cheers, James ________________________________________ From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] On Behalf Of Eduardo [erocha.ssa at gmail.com] Sent:...
2012 Dec 02
1
[LLVMdev] GetElementPtrInst question
...something went wrong when using the above method. What was it? :) No, I am not using this method. I was trying to create a llvm::GetElementPtrInst . I didn't create IRBuilder. I am writing a ModulePass that insert new instruction to an existing Module. Besides, how can you get a reference to myreg1 ? Looking at your snippet this variable would be a llvm::Value* (I saw that in the documentation of IRBuilder). All I have in my code is something like: llvm::LoadInst *inst2 = new llvm::LoadInst( oneGlobalVariable, "myreg1", inst1); Probably I can get a Value pointer to the output re...
2004 Sep 23
0
followup: Re: Issue with predict() for glm models
...e based on linear regression, just for clarity. I have followed the procedure described below to create predictions and now want to plot the predicted values "on top" of a small section of the x-y scatterplot. x <- rnorm(100, 10, 10) e <- rnorm(100, 0, 5) y <- 5 + 10 *x + e myReg1 <- lm (y~x) plot(x,y) newX <- seq(1,10,1) myPred <- predict(myReg1,data.frame(x=newX)) Now, if I do this, I get 2 graphs "overlaid" but their axes do not "line up". par(new=T) plot(newX,myPred$fit) The problem is that the second one uses the "whole width"...