search for: pcregrep

Displaying 8 results from an estimated 8 matches for "pcregrep".

2016 Aug 12
4
Invoke loop vectorizer
...lang loop vectorize(enable) vectorize_width(2) unroll_count(8) > > for (int i = 0; i < SIZE; ++i) > > A[i] += B[i] + K; > > } > > [dannyb at dannyb-macbookpro3 11:37:20] ~ :) $ clang -O3 test.c -c > -save-temps > [dannyb at dannyb-macbookpro3 11:38:28] ~ :) $ pcregrep -i "^\s*p" > test.s|less > pushq %rbp > pshufd $68, %xmm0, %xmm0 ## xmm0 = xmm0[0,1,0,1] > pslldq $8, %xmm1 ## xmm1 = > zero,zero,zero,zero,zero,zero,zero,zero,xmm1[0,1,2,3,4,5,6,7] > pshufd $68, %xmm3, %xmm3...
2016 Aug 12
2
Invoke loop vectorizer
Hi Daniel, I increased the size of your test to be 128 but -stats still shows no loop optimized... Xiaochu On Aug 12, 2016 11:11 AM, "Daniel Berlin" <dberlin at dberlin.org> wrote: > It's not possible to know that A and B don't alias in this example. It's > almost certainly not profitable to add a runtime check given the size of > the loop. > > >
2009 Jan 05
3
Log File Reviewing
I need to review a logfile with Sed and cut out all the lines that start with a certain word, problem is this word begins after some amount of whitespace and unless I search for whitespace at the beginning followed by "word" I may encounter "word" somewhere legitimately hence why I don't just search for "word" only... Anyone know how to make sed accomplish this?
2016 Apr 04
1
Re: [PATCH 2/2] Use 'error' function for fprintf followed by exit.
...; > It's slightly more complex than the previous commit because we must be > careful to: > > - Remove the program name (since error(3) prints it). > > - Remove any trailing \n character from the message. > > Candidates for replacement were found using: > > pcregrep --buffer-size 10M -M '\bfprintf\b.*\n.*\bexit\b' `git ls-files` > --- Really nice improvement -- just a couple of notes. > @@ -130,10 +131,8 @@ main (int argc, char *argv[]) > int r; > > g = guestfs_create (); > - if (g == NULL) { > - fprintf (stderr, _(&q...
2010 Apr 22
0
[LLVMdev] problem when building coreutil
...re/dg.exp ... FAIL: /home/zhangwen/llvm/klee/test/Feature/WriteCov.c Failed with exit(1) at line 3 while running: grep WriteCov.c:10 klee-last/test000002.cov child process exited abnormally Running /home/zhangwen/llvm/klee/test/Programs/dg.exp ... XPASS: /home/zhangwen/llvm/klee/test/Programs/pcregrep.c Running /home/zhangwen/llvm/klee/test/Runtime/POSIX/dg.exp ... XPASS: /home/zhangwen/llvm/klee/test/Runtime/POSIX/SELinux.c Running /home/zhangwen/llvm/klee/test/Runtime/Uclibc/dg.exp ... Running /home/zhangwen/llvm/klee/test/Solver/dg.exp ... Running /home/zhangwen/llvm/klee/test/regression...
2016 Apr 04
2
[PATCH 1/2] Use 'error' function consistently throughout.
...here. Note there is one nasty catch with error(3): error (EXIT_SUCCESS, ...) does *not* exit! This is also the reason why error(3) cannot be marked as __attribute__((noreturn)). Because the examples can't use gnulib, I did not change them. To search for multiline patterns of the above form, pcregrep -M turns out to be very useful: pcregrep --buffer-size 10M -M '\bperror\b.*\n.*\bexit\b' `git ls-files` --- builder/index-validate.c | 7 +- cat/cat.c | 19 +-- cat/filesystems.c | 67 ++++----...
2016 Apr 04
0
[PATCH 2/2] Use 'error' function for fprintf followed by exit.
...ly being ignored, in which case I have fixed that). It's slightly more complex than the previous commit because we must be careful to: - Remove the program name (since error(3) prints it). - Remove any trailing \n character from the message. Candidates for replacement were found using: pcregrep --buffer-size 10M -M '\bfprintf\b.*\n.*\bexit\b' `git ls-files` --- align/scan.c | 7 +- cat/cat.c | 16 ++-- cat/filesystems.c | 24 +++--- cat/log.c | 17 ++-- ca...
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...810ac44af Mon Sep 17 00:00:00 2001 From: Jim Meyering <meyering at redhat.com> Date: Mon, 3 Aug 2009 11:10:13 -0400 Subject: [PATCH 1/2] Convert all TABs-as-indentation to spaces. Do it by running this command: [exempted files are matched via .x-sc_TAB_in_indentation] git ls-files \ | pcregrep -vf .x-sc_TAB_in_indentation \ | xargs pcregrep -l '^ *\t' \ | xargs perl -MText::Tabs -ni -le \ '$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_' --- HACKING | 50 +- appliance/libguestfs-supermin-helper.in...