Displaying 20 results from an estimated 40000 matches similar to: "[LLVMdev] qsort"
2005 Apr 25
0
[LLVMdev] help with qsort etc.
Hi,
When you write a program which uses the "qsort()" library function, You
also have to provide an implementation of a compare
funtion. Now when we convert our program into bc and then execute it, I
get the number of times all basic blocks are executed.
But since the comparison function is called from within the std function
"qsort()", I don't get the number of times
2016 Jan 11
2
RFC: Extend UBSan with qsort checks
Hi all,
UndefinedBehaviorSanitizer currently does not check for undefined
behaviors which result from improper usage of standard library functions.
One notorious instance of such errors is invalid usage of qsort or
bsearch routines (or std::sort and friends in case of C++):
* using comparison function that violates ordering axioms (reflexivity,
symmetry, transitivity)
* returning unstable
2015 Dec 28
3
Interpreting DSCallGraph results
Any suggestions for how to interpret DSCallGraph's output for the following?
I'm trying to use DSCallGraph to get a conservative estimate of a
whole-program SCC call graph. I wanted to see how it handles real
call-graph cycles involving functions both internal and external to the
module. So I made a test program with the following actual call graph,
using the standard library's
2016 Jan 13
2
RFC: Extend UBSan with qsort checks
On 01/13/2016 03:10 AM, Kostya Serebryany wrote:
> FTR, here is one way to implement this in the library:
> https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_9/libstdc++-v3/include/bits/stl_algo.h
> Search for "check sort predicate for strict weak ordering"
Nice, although this wouldn't catch violations of transitivity (which is
probably the most important type of bug).
2016 Jan 12
4
RFC: Extend UBSan with qsort checks
(+correct cfe-dev list)
On Tue, Jan 12, 2016 at 2:57 PM, Alexey Samsonov <vonosmas at gmail.com> wrote:
> Hi Yuri,
>
> On Mon, Jan 11, 2016 at 9:53 AM, Yury Gribov via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Hi all,
>>
>> UndefinedBehaviorSanitizer currently does not check for undefined
>> behaviors which result from improper usage
2016 Jan 13
2
RFC: Extend UBSan with qsort checks
On 01/13/2016 09:57 AM, Kostya Serebryany wrote:
> On Tue, Jan 12, 2016 at 10:28 PM, Yury Gribov <y.gribov at samsung.com> wrote:
>
>> On 01/13/2016 03:10 AM, Kostya Serebryany wrote:
>>
>>> FTR, here is one way to implement this in the library:
>>>
>>> https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_9/libstdc++-v3/include/bits/stl_algo.h
2010 Dec 14
1
[LLVMdev] qsort callbacks portability issues
Hi,
there are a couple of possible issues around array_pod_sort
from STLExtras.h .
Firstly, qsort() needs a comparator that returns zero on equal
inputs. ConstantIntSortPredicate in SimplifyCFG.cpp (where
the sort is being used to bring duplicate values together)
fails this requirement. All the others look ok.
Secondly, on Windows qsort() needs its callback to use __cdecl
calling convention,
2016 Jan 14
2
RFC: Extend UBSan with qsort checks
Inviting Paul to the party (he wrote the libstdc++ sort checker
<https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_9/libstdc++-v3/include/bits/stl_algo.h>
).
On Tue, Jan 12, 2016 at 11:09 PM, Yury Gribov <y.gribov at samsung.com> wrote:
> On 01/13/2016 10:08 AM, Yury Gribov wrote:
>
>> On 01/13/2016 09:57 AM, Kostya Serebryany wrote:
>>
>>> On Tue, Jan 12,
2005 Jan 27
2
[LLVMdev] Building the llvm runtime: 'Can't destroy file: Theprocess cannot access the fi
>From: Jeff Cohen Date: Wed, 26 Jan 2005 19:47:44 -0800
>
>Fixed.
Yes, now it isn't the path.
I've recorded this trace:
-------------------------
llvm[3]: Building Debug Bytecode Archive libc.bca
/bin/rm -f /C/projects/build/MinGW/llvm-4-1/Debug/lib/libc.bca
/C/projects/build/MinGW/llvm-4-1/Debug/bin/llvm-ar rcsf
/C/projects/build/MinGW/llvm-4-1/Debug/lib/libc.bca
2007 Mar 26
1
[LLVMdev] llvm installation failure
I am trying to make and install a version of llvm that I check out of
cvs last night. When I configured LLVM, I set the prefix to a directory
inside my home directory. However, when I did a make install I got the
following errors:
llvm[3]: Installing Debug Bytecode Archive /lib/libc.a
/usr/bin/install: cannot create regular file `/lib/libc.a': Permission
denied
make[3]: ***
2011 Jul 10
0
[LLVMdev] How to get line number of a function in a bitcode file?
I tried to install the SAFECode in LLVM 2.6 following the instruction in
Install.html. But when I do the step:
# cd projects/poolalloc
# make
I get the errore below:
llvm[2]: Compiling qsort.c for Release build (bytecode)
llvm[2]: Compiling strdup.c for Release build (bytecode)
llvm[2]: Compiling qsort.c for Release build
llvm[2]: Compiling strdup.c for Release build
llvm[2]: Compiling qsort.ll
2004 Aug 16
3
[LLVMdev] Re: [llvm-announce] LLVM 1.3 Release!]
Chris Lattner wrote:
>On Sun, 15 Aug 2004, Robert Feldt wrote:
>
>
>
>>However, I wonder if someone supplies pre-built cfrontend binaries for
>>cygwin?
>>
>>
>
>Nope, we don't have one yet, sorry.
>
>
>
>>I followed the instructions and tried to build them myself but get
>>when building the cfrontend. Any ideas?
>>
2002 Jul 26
1
libvorbis-1.0 patch for Solaris 5.8 buggy libc qsort.
Solaris 5.8 has a quirky qsort that requires the ability to recognize
elements as equal. here is a patch I have created to deal w/ this
problem. I apologize if the patch is in the wrong format and would love
to be corrected if wrong. I used the following to create the patch
libvorbis-1.0> diff -u lib/psy.c lib/psy_new.c > libv.patch
<p><p><p><p>
--------------
2004 Dec 05
1
[LLVMdev] Building llvm and cfrontend under cygwin
Hi there,
I'm trying to build llvm under cygwin running under windows xp, and have
struck the following problem:
-- llvm: tools-only built ok
-- cfrontend: built ok
-- llvm: full build failed at the following point:
make[3]: Entering directory
`/cygdrive/d/3rd-party/llvm/runtime/GCCLibraries/crtend'
Compiling crtend.c to bytecode
Compiling listend.ll to bytecode
Linking comp_main.bc
2004 Dec 24
2
[LLVMdev] README: Build Environment Changes
>I successfully build CFE frontend at FreeBSD 5.3.
>
> Next nighttest run show more detail information :)
After last 2 nighttest runs i see stable failure result:
llvm[2]: Compiling dummylib.c for Debug build (bytecode)
llvm-g++: installation problem, cannot exec `gccas': No such file or
directory
gmake[3]: ***
2004 Aug 19
4
[LLVMdev] Can't get llvmg++ to work
I'm another new person to LLVM. I can't successfully compile and
execute a simple C++ program. The compiler seems to work, as it
produces a.out and a.out.bc files, but I get a whole bunch of warnings:
WARNING: Found global types that are not compatible:
"struct.std::messages<wchar_t>"* %_ZN9__gnu_cxx10messages_cE
[16 x sbyte]*
2007 Feb 28
7
[LLVMdev] Cygwin release build error
I am getting an "--emit-llvm is not supported in this configuration" error on a release build on Cygwin, the debug build is fine.
make[3]: Entering directory `/usr/build/llvm/runtime/GCCLibraries/libc'
llvm[3]: Compiling atox.c for Release build (bytecode)
llvm-gcc: --emit-llvm is not supported in this configuration.
make[3]: ***
2007 Feb 28
0
[LLVMdev] Cygwin release build error
Aaron,
On Wed, 2007-02-28 at 15:40 +0000, Aaron Gray wrote:
> I am getting an "--emit-llvm is not supported in this configuration"
> error on a release build on Cygwin, the debug build is fine.
>
> make[3]: Entering directory
> `/usr/build/llvm/runtime/GCCLibraries/libc'
> llvm[3]: Compiling atox.c for Release build (bytecode)
> llvm-gcc:
2004 Aug 19
0
[LLVMdev] Can't get llvmg++ to work
On Wed, 2004-08-18 at 22:14, Jeff Cohen wrote:
> I'm another new person to LLVM.
Hi Jeff. Welcome.
> I can't successfully compile and
> execute a simple C++ program. The compiler seems to work, as it
> produces a.out and a.out.bc files, but I get a whole bunch of warnings:
>
> WARNING: Found global types that are not compatible:
>
2013 Feb 20
0
[LLVMdev] LLVM Interpreter & Qsort
Hi,
I am trying to run an LLVM analysis on a C++ program that calls qsort(),
using the LLVM interpreter (lli --force-interpreter). The code is the
qsort_large.c file in the MiBench benchmark suite. If I comment the qsort()
call, the execution works fine. If I uncomment the qsort() call, I run into
a segmentation fault error as follows:
0 lli 0x0000000000d35c6f
1 lli