Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Emitting .zero"
2010 Sep 17
0
[LLVMdev] Emitting .zero
On Sep 16, 2010, at 5:12 PM, David Greene wrote:
> With LLVM 2.7, I see very inefficient emitting of zeros in .s files:
>
> test_: # @test_
> .quad 0 # 0x0
> .quad 0 # 0x0
> .quad 0 # 0x0
> .quad 0 # 0x0
> .quad 0 # 0x0
>
2020 Sep 30
2
Creating a global variable for a struct array
Let me clarify my question.
I have a struct array h1 as follows:
dhash h1[10];
I want to get a Constant* to variable h1. It looks like I can use ConstantStruct::get(StructType*, ArrayRef<Constant *>) to do this.
My question is how to get the second argument of type ArrayRef<Constant *> from the above variable h1.
Thanks,
Chaitra
________________________________
From: Tim Northover
2014 Feb 21
6
[LLVMdev] make check issue with llvm-cov
rkotler at mipsswbrd006-le:~/caviumllvm/build/test$ make
Making LLVM 'lit.site.cfg' file...
Making LLVM unittest 'lit.site.cfg' file...
( ulimit -t 600 ; ulimit -d 512000 ; ulimit -m 512000 ; ulimit -s 8192 ; \
/usr/bin/python /home/rkotler/workspace/llvm/utils/lit/lit.py -s
-v . )
XPASS: LLVM :: tools/llvm-cov/llvm-cov.test (8916 of 9784)
******************** TEST
2006 Dec 14
3
Stubbing constructiors
This works:
class X
def X.initialize( stuff )
end
end
X.initialize("bla")
However stubbing it doesn,t:
require ''test/unit''
require ''stubba''
class X
def X.initialize( stuff )
end
end
class XTest < Test::Unit::TestCase
def test_
X.stubs(:initialize).with("bla")
2010 Apr 29
2
dopar parallel assignments
Hi guys,
I was wondering why this piece of code doesn't work:
foreach (i = c(1.25,1.50)) %dopar% {
assign(paste("test_",i,sep=""),i)
}
but, this does:
foreach (i = c(1.25,1.50)) %do% {
assign(paste("test_",i,sep=""),i)
}
Obviously, the difference is %dopar% vs. %do%. If I use %do%, I get
objects test_1.25 and test_1.50, but I don't get these
2009 Jul 14
2
averaging two matrices whilst ignoring missing values
Hi folks,
I'm trying to do something that seems like it should easy, but it apparently isn't. I have two large matrices, both containing a number of missing values at different cells. I would like to average these matrices, but the NAs are preventing me. I get a "non-numeric argument to binary operator" error. That's the first problem.
2008 Nov 11
3
Reading tables using a truncated name
Dear all,
I am trying to read a bunch of csv files using read.table() that are named
"test_xxxxxx.csv" where "xxxxxx" has no particular pattern. Is there a way
of reading all the files by specifying a truncated file name e.g. "test_"
with some wild card characters, or would I have to laboriously create some
vector with the "xxxxxx" names and iterate or
2020 Oct 01
2
Creating a global variable for a struct array
Thank you very much. The code to initialize h1 to non-zero values was what I was looking for.
It's almost working except for a type mismatch wrt dlist* llist field of h1.
dlist static_lst[10] = { {1, 5, NULL}, ... };
dhash h1[10] = {{"myfile.txt", static_lst}, ... };
Along the lines of the code you had sent, I created a GlobalVariable* llist of type [10 x %struct.dlist]* for the
2009 Sep 11
4
[LLVMdev] LLVM-GCC & GV zeroinitializers, 2.5 vs 2.6.
Hello folks,
I have a small piece of C code written like this:
typedef struct {
char a;
int b;
int c;
} foo;
foo myFoo[5] = {{0}};
With llvm-gcc 2.5, I get the following IR:
%struct.foo = type { i8, i32, i32 }
@myFoo = global [5 x %struct.foo] zeroinitializer, align 32
With the current 2.6, I get this:
%0 = type { i8, [11 x i8] }
2005 Oct 08
1
add leading 0s to %d from png() {was Automatic creation of file names}
Dear useRs,
Is there a way to 'properly' format %d when plotting more than one
page on png()? 'Properly' means to me with leading 0s, so that the
PNGs become easy to navigate in a file/image browser. Lacking a better
solution I ended up using the code below, but would much prefer
something like
png("test_%d.png",bg="white",width=1000,height=700)
where %d
2016 Jun 18
2
Facing problems with tests
Hello devs,
I am currently facing a minor issue when writing tests, which I'm not able
to overcome.
I've written my test cases using the DEFINE_TESTCASE macro and there are no
errors while running a make check.
But when I run a make check, it shows me these warnings:
In file included from apitest.h:26:0,
from api_cluster.cc:7:
api_cluster.cc: In function ?bool
2009 Sep 11
0
[LLVMdev] LLVM-GCC & GV zeroinitializers, 2.5 vs 2.6.
Hello Julien,
I think the reason for the change was because there is processor context information stored in the type in 2.6. The reason it's there is to support multicore JIT architecture.
--Sam
----- Original Message ----
> From: Julien Lerouge <jlerouge at apple.com>
> To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
> Sent: Thursday, September 10, 2009
2011 May 07
3
record call from iax to sip
Hello List,
i need to be able to record the call transferred from iax extension to sip
extension
when i call the sip extension from the IAX extension i can record the call
without any issue
but when i receive a call from customer in IAX and i transfer this call to
SIP client
the conversation between customer and IAX client is recorded but the
conversation between customer and sip extension is
2016 Jan 21
4
Is there a reason why MCAsmStreamer class doesn't have its own .h file?
Does anybody know if there is a particular reason why MCAsmStreamer doesn't
have its own .h file?
https://github.com/llvm-mirror/llvm/blob/0e66a5f53c74056f95d178c86531d7d9cfb23da9/lib/MC/MCAsmStreamer.cpp#L41
It seems like it is a good idea to have this class declared as its own
module ( its own .cpp and .h files). That would make it easier to inherit
from it if there is a need (like in my
2006 May 29
3
mtext in trellis-loop & colorkey
Hello,
I would like to create a sequence of plots (using a for loop). I read
in the FAQ that print() has to be used in order to obtain any output.
This works perfectly fine as long as I only consider one function
call in the loop, but I would like to add mtext() to the each plot in
the loop. Unfortunately, this did not work. Any suggestions?
As you can see from the provided example,
2009 Jan 10
2
[LLVMdev] How to represent zero-sized string?
Hi all,
int main() {
t("");
return 0;
}
On Mac OS X, llvm-gcc compiles the zero-sized string to:
.lcomm LC,1,0
gcc:
.cstring
LC0:
.ascii "\0"
The difference seems innocent enough. However, in objc if the zero-
sized string is part of a cfstring, it causes a problem. The linker
expects it in the readonly __cstring section, but llvm puts it in the
2017 Dec 27
1
Convert MachineInstr to MCInst in AsmPrinter.cpp
Hello everyone,
In the file *lib/CodeGen/AsmPrinter/AsmPrinter.cpp*, I would like to obtain
an MCInst corresponding to its MachineInstr. Can anyone tell me a way to do
that?
If that is not possible, then, I would like to know if a given MachineInstr
is an *lea *instruction and I would like to know if the symbol involved
with this lea instruction is a jump-table.
For instance, given a
2006 Jun 23
1
Best practices in test logging
Hi!
My test suites are growing rapidly. Sometimes it is really hard to find
meningful test output in long and bloated test.log.
Do you have any advices or best practices when it comes to logging in
tests?
So far I have been using following policy:
1. Log test name in every test_* method
I have a method that puts coloured test name in the log. The problem
is that
I have to invoke this
2003 Apr 15
1
Building R package.
Hi!
I am trying to build a package which calls an c function. It compiles
it and installs it. But if i run R CMD check test_
the last output are:
* checking examples ... ERROR
Running examples failed. x<-1:10
and in the test-Ex.out file i find:
> test(x)
Error in .C("mytest", as.double(x), as.integer(lengthx)) :
C/Fortran function name not in load table Execution halte
2013 Aug 13
1
(no subject)
hello list,
i have asterisk 1.4 installed i use MixMonitor to record all the inboud
calls with the code below my question how can i do to save alse the sip
extenssion 223
exten => 529,1,Answer()
exten => 529,n,MixMonitor(test_${UNIQUEID}.wav|av(0)V(0))
exten => 529,n,Dial(SIP/223)
exten => 529,n,Hangup()
thanks and regards
-------------- next part --------------
An HTML attachment