Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] Loop exit condition analysis"
2011 Dec 20
0
[LLVMdev] Loop exit condition analysis
On Mon, Dec 19, 2011 at 10:13 PM, Hanfeng Qin <hanfengtsin at gmail.com> wrote:
> Hi all,
> I am doing loop exit condition analysis. As the following sample code
> segments demonstrated,
>
> ....
> int *c = &a;
> while (*c == 0);
> ....
>
> I want to decide which variables are related to ending this spin-loop. E.g.,
> in above sample, c is the direct
2011 Dec 27
1
[LLVMdev] compounding loop exit conditions
Hi all,
I got a question on loop exit condition identification based on LLVM. I
made an assumption first that loop exit conditions are located in
exiting basic blocks. Then I use loop->getExitingBlocks() to get all
BBs. However, this policy seemed not work for combinational exit
conditions, e.g. compounding conditions consists of conditions with
logical predicates. *The problem is that
2011 Sep 25
3
[LLVMdev] POSIX thread library support
Hello all,
I caught a problem related to pthread library. I built llvm and llvm-gcc
then compiling a multithreaded benchmark written in POSIX thread library.
The command "llvm-gcc -o bench bench.c -lpthread" ran well while "llvm-gcc
-c bench; llvm-ld -o bench bench.o -lpthread" crashed. It told that
"llvm-ld: error: Cannot find library 'pthread'".
I could
2011 Sep 25
0
[LLVMdev] POSIX thread library support
Hi chenwj,
According to the link, I found that during the compiling process, the option "-emit-llvm" must be added to generate immediate object *.o.
[hanfeng at os-wstation02 fft]llvm-gcc -c fft.c -emit-llvm
Then using llvm-ld will generate two files - a shell excutable and a llvm bytecode data both of which would run perfect.
[hanfeng at os-wstation02 fft]llvm-ld -o FFT fft.o
[hanfeng
2011 Sep 25
1
[LLVMdev] POSIX thread library support
> Hi chenwj,
> If it use system pthread library, then it should find it in the stand search path. I also added the option "-L/usr/lib -L/usr/lib64" but it still failed.
Don't know if the link below helps or not,
http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-November/027274.html
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Computer Systems Lab, Institute of Information
2011 Sep 25
2
[LLVMdev] POSIX thread library support
> According to the link, I found that during the compiling process, the option "-emit-llvm" must be added to generate immediate object *.o.
> [hanfeng at os-wstation02 fft]llvm-gcc -c fft.c -emit-llvm
"-emit-llvm" emits object file which contains LLVM bitcode (IR).
Default file name suffix is .o, but you might want to use "-o fft.bc"
to make the suffix
2011 Sep 26
0
[LLVMdev] POSIX thread library support
Hi chenwj,
For the first question, even if I did not specify "-o fft.bc", it still generated fft.o which is also a llvm bitcode file.
For the second question, I intended to generate a native executable "FFT". However, it only generate a llvm bitcode file fft.bc and a native POSIX shell excuatable named fft. Howerver, the contents of the shell executable fft is a wrapper to call
2017 Feb 27
2
How to catch EXCEPTION_ACCESS_VIOLATION exceptions on win64
LLVM3.8 version.
https://bugs.llvm.org//show_bug.cgi?id=24233. The example can catch exception. But I use my own code for testing, CustomEHMemoryManager allocated memory address is very large, allocateCodeSection, allocateDataSection assigned address (more than 32 bit address space) is getting smaller and smaller. Cause registerEHFrames to fail.
3.9.1 or 4.0.0 version has been supported on win
2017 Feb 16
2
How to catch EXCEPTION_ACCESS_VIOLATION exceptions on win64
For help:
Llvm generated instruction calls a function (extern), the function will have a SEH exception (EXCEPTION_ACCESS_VIOLATION), But JIT can not capture the exception of the EXCEPTION_ACCESS_VIOLATION. I saw Bug 24233. EXCEPTION_ACCESS_VIOLATION exception cannot be captured after modification.
How to catch EXCEPTION_ACCESS_VIOLATION exceptions on win64 ?
haifeng.qin at wellintech.com
2024 Jun 27
1
Proposal to add a DisableAuthentication option to sshd ServerOptions
I would like to understand your opinion a little more deeply.
Are you suggesting that it's easier to (prepare the container and add a
line at runtime) compared to (add a line to an sshd config at runtime)? The
latter scenario would be the case if the patch is merged.
Or did you mean that it's easier to prepare the container than to implement
a correct patch into sshd to enable the option
2024 Jun 27
1
Proposal to add a DisableAuthentication option to sshd ServerOptions
it's not just adding a line at runtime. it's the openssh maintainers
maintaining an odd codepath and testing it at each release and
answering questions about the configuration, etc.
On Thu, Jun 27, 2024 at 3:00?PM Henry Qin <hq6 at cs.stanford.edu> wrote:
>
> I would like to understand your opinion a little more deeply.
>
> Are you suggesting that it's easier to
2015 Apr 01
3
[LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?
Hi David and Mats,
Thanks for your explanation. If my understanding is correct, it means we
don't need to consider the side-effect of malloc/free unless compiling with
-ffreestanding. Because without -ffreestanding, user defined malloc/free
should be compatible with std library. It makes sense to me.
My point is, in std library, malloc is allowed to return null if this
malloc failed. Why
2008 Mar 03
7
help for the first poster- a simple question
Hi, there,
I cannot get accurate value for calculation.
for example:
ld<-sqrt(1*0.05*0.95*0.05*0.95)
0.05*0.95-ld=-6.938894e-18
0.05*0.95-ld==0 is False.
I met this problem in my program, how can I handle it. Thanks.
xj.
2024 Jun 27
1
Proposal to add a DisableAuthentication option to sshd ServerOptions
Thanks for the pointer!
I played around with PamServiceName set to 'sshd_disable_auth' and got it
working with the minimum contents below in the file
/etc/pam.d/sshd_disable_auth.
auth required pam_permit.so
account required pam_permit.so
session required pam_permit.so
Thus, this does indeed enable disabling authentication.
Unfortunately, as far as I can tell, only root can create files
2004 Dec 08
3
How to change x axes' range
Hi, there:
When plot ann predicted results I need to indicate numbers of inputs for
each column.
V1 V2 V3 V4
1 86.2700 49.9380 30.7630 0.1327
2 89.5127 55.9707 33.7683 0.1186
3 91.1833 58.4670 34.5610 0.1134
matplot(t, pch = 1:4, type = "o", col = rainbow(ncol(t)),xlab = "No. of
inputs ", ylab = "Mean of 6 Datasets",
2014 Jul 31
3
[LLVMdev] Should we enable Partial unrolling and Runtime unrolling on AArch64?
Hi all,
Partial unrolling and runtime unrolling are enabled by default in aarch64
gcc which is help to get performance better. But these two methods are
enabled for only several backends in LLVM which are X86, PowerPC and R600.
I don't know the history of these two kinds of unrolling, and why they are
not widely used. I also want to know is, for aarch64 backend, is
it intentionally to get
2018 Feb 15
2
Duplicate column names created by base::merge() when by.x has the same name as a column in y
Hi,
I was unable to find a bug report for this with a cursory search, but would
like clarification if this is intended or unavoidable behaviour:
```{r}
# Create example data.frames
parents <- data.frame(name=c("Sarah", "Max", "Qin", "Lex"),
sex=c("F", "M", "F", "M"),
2024 Jun 27
1
Proposal to add a DisableAuthentication option to sshd ServerOptions
i'm not a maintainer, but my personal opinion is that it's probably
easier to prepare a container with this pam configuration
On Thu, Jun 27, 2024 at 2:26?PM Henry Qin <hq6 at cs.stanford.edu> wrote:
>
> Thanks for the pointer!
> I played around with PamServiceName set to 'sshd_disable_auth' and got it working with the minimum contents below in the file
2007 Mar 01
1
compiling echo cancellation
dear all
I got this error when I try to use libspeex in visual studio. when I
include speex/speex_echo.h, it complains about unresolved external symbol
_speex_echo_state_init. And when I include mdf.c into the source, it
generates whole bunch of errors. Any idea? thanks so much
--------------------Configuration: audio - Win32 Debug--------------------
Compiling...
mdf.c
C:\Documents and
2015 Apr 01
2
[LLVMdev] why we assume malloc() always returns a non-null pointer in instruction combing?
Hi Mats,
I think Kevin's point is malloc can return 0, if malloc/free pair is
optimized way, the semantic of the original would be changed.
On the other hand, malloc/free are special functions, but programmers can
still define their own versions by not linking std library, so we must
assume malloc/free always have side-effect like other common functions,
unless we know we will link std