Displaying 20 results from an estimated 700 matches similar to: "evaluate a set of symbols within an IF statement"
2010 Oct 07
1
model.frame deficiency
The model.frame function has trouble with a certain type of really long
formula. Here is a test:
tname <- paste('var', 1:50, sep='')
tmat <- matrix(rnorm(500), ncol=50, dimnames=list(NULL, tname))
tdata <- data.frame(tmat)
temp1 <- paste( paste(tname, tname, sep='='), collapse=', ')
temp2 <- paste("~1 + cbind(", temp1, ")")
2006 Mar 29
2
inserts now set unset columns to null
Hi,
I upgraded to Ruby 1.8.4 and whatever the latest Rails is as of March 29
2006.
I am using PostgreSQL 7.4.
With the earlier version of rails, I had insert queries that looked like
this:
Topic Create (0.001189) INSERT INTO topics ("inlibrary",
"irx_display_title", "irx_title", "title", "creation_stamp",
"last_update_stamp",
2010 Sep 07
2
[LLVMdev] Complex regalloc contraints
Hi all,
The machine I am targeting has some special requirements for some
operations, say:
ADD or1, ir1, r5
would add ir1 (input reg 1) and r5 and put the result in or1 (output reg
1). The point id that input and output regs have to go paired (this
meaning an addition of ir1 with whatever always goes to or1, or an in
general irX + whatever goes to orX).
AFAIK, InstrInfo.td only allow
2008 Sep 14
5
string functions
Hello, trying to locate all the string commands in the base version of
R, can't seem to find an area that describes them. I am in need to do
some serious parsing of text data to create my dataset. Is there a
summary link to all the character operators? string manipulations that
would help in parsing text.
2016 May 21
1
Using an MCStreamer Directly to produce an object file?
llvm-dev,
Thanks so much in advance for any help, tips, or advice you may be able
to offer me. I'm going to try to avoid the big-picture description of
the project I'm working on, and only talk about the parts that I have
trouble with / currently need to implement. -- I've been starting by
taking the source code from the "llvm-mc" tool, and working that down
into a
2011 Nov 17
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
Basically I have two separate passes (first is a loop pass) which are two
different files and two different opts but I need to keep the data
consistent (ie, I want the changes to show up the resulting .bc output file
from the first (loop) pass so the second pass can use these new names.
Currently, when I print out "BB->getName().str()" after the code below, I
get the correct renaming
2010 Sep 07
0
[LLVMdev] Complex regalloc contraints
On Sep 7, 2010, at 3:01 AM, Carlos Sanchez de La Lama wrote:
> The machine I am targeting has some special requirements for some
> operations, say:
>
> ADD or1, ir1, r5
>
> would add ir1 (input reg 1) and r5 and put the result in or1 (output reg
> 1). The point id that input and output regs have to go paired (this
> meaning an addition of ir1 with whatever always goes to
2011 Nov 17
0
[LLVMdev] Problem getting LoopInfo inside non-LoopPass
LLVMers,
So, I'm trying to write a pass that changes the names of the basic blocks
through the use of Value, so:
Value *V = *BasicBlockPtr;
const Twine Tname("new_name");
V->setName(Tname);
But when I run the opt and look at the IR output nothing is changed? Not
sure what I'm doing wrong.
Thanks.
-------------- next part --------------
An HTML attachment was
2012 Jul 18
2
[LLVMdev] Phi translation
I just accidently sent a partially complete email, so this contains the
rest (sorry!)
I'm working on translating llvm's optimized intermediate code to another
compiler's intermediate code, and I'm working on the PHI instruction.
Here's an example phi instruction to help explain what I'm trying to do:
%inc25 = phi i32 [ 1, %entry ], [ %inc, %for.body ]
What I would want to
2012 Jul 18
1
[LLVMdev] (no subject)
I'm working on translating llvm's optimized intermediate code to another
compiler's intermediate code, and I'm working on the PHI instruction.
Here's an example phi instruction to help explain what I'm trying to do:
%inc25 = phi i32 [ 1, %entry ], [ %inc, %for.body ]
What I would want to do here is allocate some memory memory (i'm trying to
use %phi1 = alloca i32,
2011 Nov 17
2
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
Nick,
Thanks for this info, though this didn't help my problem at all.
On Wed, Nov 16, 2011 at 7:21 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
> Never create a Twine as a local variable.
>
> V->setName(Twine("new_name"));
>
> should work fine, however. Note that Twine itself has an implicit
> constructor from const char *, so this code:
>
>
2007 May 02
1
Query about RODBC to access MySQL from Windows
Hi
I am trying to use RODBC in R installed on Windows to
access MySQL database (on a linux box).
I set up a DSN and specified this DSN in R as follows
library(RODBC);
channel <- odbcConnect("mysqldsn");
RODB Connection 5
Details:
case=nochange
PORT=3306
........
Although this seems to connect properly, running any
command yields NO results.
i.e. sqlQuery(channel, "show
2011 Nov 17
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
Never create a Twine as a local variable.
V->setName(Twine("new_name"));
should work fine, however. Note that Twine itself has an implicit
constructor from const char *, so this code:
V->setName("new_name");
should also work fine.
Nick
Ryan Taylor wrote:
> Basically I have two separate passes (first is a loop pass) which are
> two different files and
2011 Nov 17
0
[LLVMdev] Fwd: Problem getting LoopInfo inside non-LoopPass
So is this simply not possible?
On Thu, Nov 17, 2011 at 10:31 AM, Ryan Taylor <ryta1203 at gmail.com> wrote:
> Nick,
>
> Thanks for this info, though this didn't help my problem at all.
>
>
> On Wed, Nov 16, 2011 at 7:21 PM, Nick Lewycky <nicholas at mxc.ca> wrote:
>
>> Never create a Twine as a local variable.
>>
>>
2010 Sep 08
3
[LLVMdev] Complex regalloc contraints
Hi Carlos, Jakob,
The PBQP allocator was designed to support a very wide range of constraints,
and can handle something like this easily.
Say you have 4 of these orX/irX registers, then for any pair of virtual
registers used in such an add instruction you would add the following
constraint matrix to the PBQP instance:
[ 0 inf inf inf ]
[ inf 0 inf inf ]
[ inf inf 0 inf ]
[ inf inf inf 0
2008 Nov 04
2
ggplot & annotating charts
Dear "R-listers"
I've been trying to figure out how to annotate charts in ggplot (ie add text
to line charts, highlighted boxes etc). By and large, I can get close to
what i want with base graphics, but would ideally like to use ggplot
whenever possible (additionally, i would like to add text labels
automatically to the chart). The code is below
I suspect I need to use geom_rect,
2008 Sep 16
1
Some Questions From the beginner of Xapian
Dear, guys:
I am a beginner of Xapian, when reading the documents, I encountered follow questions.
(1) I see the Xapian::Document has a method
void add_value (Xapian::valueno valueno, const std::string &value)
What's the purpose of this method? Document will related to the terms, but what's the purpose of this?
(2) add_posting method will add term to a documents.
void
2017 Nov 29
2
How to count instructions in a function?
Hello,
I am trying to count IR instructions in a function for static analysis
using llvm pass. In contrast with existing examples, I am trying to include
instruction counts of all the callees of the function.
Counting the instructions of a function is easy using passes, but iterating
through the module's CallGraph is proving to be confusing. I believe I have
to use CallGraphWrapperPass to
2017 Nov 30
1
How to count instructions in a function?
Thanks so much John! That works :)
Previously I wrote a pass that inherited from CallGraphWrapperPass and used
its getCallGraph() function within runOnModule() which resulted in
segmentation faults for me. Not sure why that happened, perhaps callgraph
wasn't setup by the time runOnModule() was called internally. If you know
why, kindly enlighten me and perhaps document the behavior for the
2006 Jul 19
2
voronoi tessellations
Okay, been working with tripack, seems the most mature package for this. Got it to work well with their test data set - data(tritest). When i tried random numbers to explore further, i am getting some results that don't reconcile.
example run this:
library(tripack)
y <- runif(100)
x <- runif(100)
vm <- voronoi.mosaic(x,y)
plot(vm)
par(new=T)
plot(x,y,col='blue')
when