Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] How to get the const argument data from Function?"
2013 Feb 27
3
[LLVMdev] llvm get annotations
Hello everyone !
I followed
http://stackoverflow.com/questions/4976298/modern-equivalent-of-llvm-annotationmanagerin
order to get annotations from my target bytecode. All the examples
that
I give in the following is related to the code from that link. I have
`__attribute__((annotate("DS"))) int f=0;` into the target C++ program and
the related IR code:
@.str = private unnamed_addr
2013 Mar 01
0
[LLVMdev] llvm get annotations
Hi Sebastian,
Thanks for the response.
I already did this :
I cast the entire annotated expression to Value*. Then, in order to avoid
ugly things like getAsString(), I check if V->getValueID() ==
Value::ConstantArrayVal in order to cast it to ConstantArray. Because it
contains only array[0], I cast array0>getOperand(0) to ConstantStruct.
Therefore, from ConstantStruct you can get all the
2013 Mar 01
1
[LLVMdev] llvm get annotations
Hi, I solved it. From the ConstantStruct you can call getOperand() multiple
times, so "mine" as deep as you can.
On Fri, Mar 1, 2013 at 1:41 PM, Alexandru Ionut Diaconescu <
alexandruionutdiaconescu at gmail.com> wrote:
>
> Hi Sebastian,
>
> Thanks for the response.
>
> I already did this :
>
> I cast the entire annotated expression to Value*. Then, in
2013 Feb 28
0
[LLVMdev] how can I parse a Value* ?
Hello everyone,
I have the following LLVM IR :
@.str = private unnamed_addr constant [3 x i8] c"DS\00", section
"llvm.metadata"
@llvm.global.annotations = appending global [1 x { i8*, i8*, i8*, i32 }] [{
i8*, i8*, i8*, i32 } { i8* bitcast (i32* @f to i8*), i8* getelementptr
inbounds ([3 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([9 x
i8]* @.str1, i32 0, i32 0),
2012 Aug 01
2
[LLVMdev] [RFC] New command line parsing/generating framework for clang and lld.
LLVM Command Line Library
I'm proposing a heavy weight command line parsing and generating library for
LLVM to replace Clang's parser and provide one for lld and any future tools
that may need it.
The scope of this library is slightly larger than what Clang has now, but not
much.
It is centered around the concept of a Tool. A Tool has a set of Options which
can be parsed to Arguments or
2002 Oct 11
2
[LLVMdev] Accessing a function's arguments
I am trying to generate a simple wrapper function:
Function* pWrapper = m_module.getOrInsertFunction(name,
FunctionType::get(Type::VoidTy,
vector<const Type*>(1, PointerType::get(Type::IntTy)), false));
How do I actually get the Value* for the one argument to this function?
The pWrapper->getArgumentList().size() is 0. Shouldn't the argument list
contain the Value*
2009 Jan 02
1
[LLVMdev] Function Type and Argument List
Hi all,
I am having some problem using the Function class. For my application,
FunctionType is not known at the time I initialize the function. So, I just
initialize the Function as return type
void with no arguments. As I work on my function, I get to know the
arguments and I insert the arguments in ArgumentList data structure of the
function. The FunctionType is defined as const and I can't
2004 Oct 16
7
sapply and loop
Dear all,
I am doing 200 times simulation. For each time, I generate a matrix and
define some function on this matrix to get a 6 dimension vector as my
results.
As the loop should be slow, I generate 200 matrice first, and save them into
a list named ma,
then I define zz<-sapply(ma, myfunction)
To my surprise, It almost costs me the same time to get my results if I
directly use a loop
2004 Oct 16
7
sapply and loop
Dear all,
I am doing 200 times simulation. For each time, I generate a matrix and
define some function on this matrix to get a 6 dimension vector as my
results.
As the loop should be slow, I generate 200 matrice first, and save them into
a list named ma,
then I define zz<-sapply(ma, myfunction)
To my surprise, It almost costs me the same time to get my results if I
directly use a loop
2004 Sep 30
1
Vectorising and loop (was Re: optim "a log-likelihood function")
>From: Sundar Dorai-Raj <sundar.dorai-raj at PDF.COM>
>Reply-To: sundar.dorai-raj at PDF.COM
>To: Zhen Pang <nusbj at hotmail.com>
>CC: r-help at stat.math.ethz.ch
>Subject: Vectorising and loop (was Re: [R] optim "a log-likelihood
>function")
>Date: Wed, 29 Sep 2004 18:21:17 -0700
>
>
>
>Zhen Pang wrote:
>
>>
>>I also use
2009 Oct 16
2
what's the R code for wavelet decomposition (Haar transformation)?
Dear all,
Using R function "dwt", it seems that I cannot specify the wavelet
transformation like Haar. What's the R code for wavelet decomposition
which allows me to specify Haar wavelet transformation? Of course, if it
can include "db2", that is even better. In general, I want an R function
like matlab code "dwt". Thanks in advance!
Zhen Li
2003 Oct 10
3
command line limit under unix?
Dear all,
I have made my testing program to run successfully under unix in the
background. However, my simulation work does not work. I read the
foo.results file, I found it only have part of my code and not any output I
want. Is there any line limit? My code is nearly 400 line. I can cut some of
them, but I want to know whether there is any limit or exactly the number of
limit is. Thanks.
2003 Oct 21
5
run R under linux
Dear all,
Our department uses the linux system and we are not allowed to submit job
directly. We must make a batch to submit through "qmon".
so, I make a foo.sh file, which only contains one line: nohup R --vanilla <
foo.txt > foo.results
foo is all my codes. It is a simulation of 200 times. I set the seed at the
beginning. It is to estimate the success probability, which is
2006 May 22
2
sort the values of members and obtain their ranks within groups
Dear all,
I would like to sort the values of "member" for each group, and obtain a
variable to indicate its rank within the group.
For example, we have original dataset as follows:
df <- data.frame(group = c(rep(1, 3), rep(5, 3)),
member = c(30, 10, 22, 21, 44, 15))
group member
1 1 30
2 1 10
3 1 22
4 5 21
5 5 44
6 5 15
After
2023 May 31
11
[Bug 1685] New: Calling the nftnl_set_free function may trigger the "double free" problem.
https://bugzilla.netfilter.org/show_bug.cgi?id=1685
Bug ID: 1685
Summary: Calling the nftnl_set_free function may trigger the
"double free" problem.
Product: libnftnl
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: critical
Priority: P5
2019 Apr 25
2
How to use the pass 'Unroll and Jam'
Dear LLVM developers,
Recently I want to try the pass '-loop-unroll-and-jam' to observe how the
IR is transformed, but I don't see the IR changed after doing the following
steps.
Here are the details for preparing my experiment and I have tried the LLVM
6, 7 and 8:
1) Simple 2D array source code (loop.c) is given
```
#define M 32768
#define N 32768
double a[M][N], b[M][N],
2008 Jun 18
6
Please advise: sending out bogus gratuitous ARP packet from vna
I''ve implemented code to send out bogus gratuitous ARP packet from vna
in order to fix CR 6701114. The webrev is at:
http://jurassic.eng/net/consulte.prc/export/build/xvm-6701114/webrev
Some backgroud information (see CR 6701114 for more detail):
During live migration of an xVM domain from one dom0 to another, the
VNIC will be moved from one switch port to another. But, the
2011 Dec 29
3
imap be killed (core dump disabled)
Hello everybody,
When I modify the dovecot imap source ,in "src/imap/" dir, I meet the
Error below:
Error: child (imap) kill (core dump disabled).
In fact, I want to record the imap operation through dovecot. So, I
modify every source file in "src/imap/cmd-IMAP_OPERATION" ,when the imap
command function is executed, it will write to a file cur time and
operation.
Could you
2002 Sep 23
3
Rgui.exe crashes on startup (PR#2057)
Full_Name: Zhen Liu
Version: 1.5.1
OS: Window XP Home/Window NT 4.0
Submission from: (NULL) (205.142.0.75)
I have installed R-1.5.1 using SetupR.exe on both my home laptop (Sony Vaio
running Window XP Home) and in office (Compaq AP550 running Window NT 4.0), but
they shared the same problem. Both worked for a while, but then Rgui.exe crashed
on the startup, complains:
The exception
2009 Jan 15
5
why vlan tag is retained in promisc mode
In current Crossbow''s implementation, vlan tag seems to be
unconditionally retained for promisc mode listener even when
MAC_OPEN_FLAGS_TAG_DISABLE is not specified.
I saw comments in mac_rx_deliver() saying that this is deliberately
designed like this.
I''m wondering why we design it like this (choose not to respect
MAC_OPEN_FLAGS_TAG_DISABLE flag for promisc mode listener)?
Or