source: icGREP/icgrep-devel/README-icgrep.txt @ 4783

Last change on this file since 4783 was 4783, checked in by hongpum, 4 years ago

Fix the build command in README in accordance with the new LLVM version.

File size: 2.2 KB
[4573]3This is the open-source version of icgrep 1.x.     
[4397]5icgrep is a very fast regular expression search program, particularly
6for complex regular expressions.  It is also a very capable engine,
7supporting most common regular expression syntax and many useful
8command line options.   
10icgrep 1.0 is designed to offer substantial Unicode support, meeting
11all the Unicode Level 1 requirements of UTS #18, the Unicode
12Technical Standard for regular expressions.
[4039]14Normal usage to find lines in a file f matching a regexp r is:
15icgrep r f
17To produce a count of matching lines only, use the command:
18icgrep -c r f
[4528]20To read the regexp to be matched from file regexpf use the command:
[4528]22icgrep -f regexpf f
[4528]24See for more information.
[3915]28To build icgrep, you need an installed LLVM system providing the
29core libraries.  The distribution includes a suitable source
[4528]30code version of LLVM.   
[4151]32To build LLVM,
[3915]33(L1) open a terminal window and cd to the llvm-build directory
34(L2) enter the following command to build the makefiles
[3915]36(L3) Still in the llvm-build directory, enter the commands "make" and then "make install"
38Using the installed LLVM, building icgrep uses the CMake build
[4151]39system generator.
[3915]40(IC1)  open a terminal window and cd to the icgrep-build directory
[4480]41(IC2.1)  enter the following command to build the makefiles
[4573]42cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang ../icgrep
[4480]43(IC2.2)  to specify the type of supported SIMD operations rather than relying on auto detection
[4573]44cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER:FILEPATH=/usr/bin/clang++ -DCMAKE_C_COMPILER:FILEPATH=/usr/bin/clang -DSIMD_SUPPORT=XXX ../icgrep
[4480]45     Where XXX can be SSE2, SSE3, SSE4_1, SSE4_2, AVX1 or AVX2.
[4151]46(IC3) Enter the command "make"
48LLVM files are governed by the LLVM Release License in LLVM-LICENSE.txt.
49icgrep is governed by Open Software License 3.0 in OSL-3.0.txt.
Note: See TracBrowser for help on using the repository browser.