Changeset 4137 for icGREP


Ignore:
Timestamp:
Sep 8, 2014, 3:15:15 PM (5 years ago)
Author:
linmengl
Message:

move USE_UADD_OVERFLOW to llvm_gen.h: it doesn't work in icgrep.cpp; add abc_test in 'make check';

Location:
icGREP/icgrep-devel
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/QA/run_abc

    r4094 r4137  
    1 #!/bin/bash 
     1#!/bin/bash
    22#
    33# Robert D. Cameron
     
    2121do
    2222   fbase=`echo $f | sed "s#$input_directory/##"`
    23    $test_program 'ab*c' $input_directory/$fbase >$output_directory/$fbase 
     23   $test_program 'ab*c' $input_directory/$fbase >$output_directory/$fbase
    2424done
    2525
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r4132 r4137  
    7171  COMMAND python greptest.py ${CMAKE_BINARY_DIR}/icgrep)
    7272
     73add_test(
     74  NAME abc_test
     75  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA
     76  COMMAND ./run_abc ../icgrep-build/icgrep)
     77
     78add_custom_target (abc_test
     79  COMMAND python abc_testgen.py
     80  WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}/../QA)
     81
    7382add_custom_target (check
    7483  COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure
    75   DEPENDS icgrep)
     84  DEPENDS icgrep abc_test)
    7685
    7786add_custom_target (perf_icgrep
  • icGREP/icgrep-devel/icgrep/icgrep.cpp

    r4134 r4137  
    7272#endif
    7373
    74 //define this indicates that we use llvm.uadd.with.overflow for genAddWithCarry
    75 //#define USE_UADD_OVERFLOW
    7674
    7775BitBlock get_category(Basis_bits &basis_bits, const char* category);
     
    274272
    275273//
    276 // Write matched lines from a buffer to an output file, given segment 
     274// Write matched lines from a buffer to an output file, given segment
    277275// scanners for line ends and matches (where matches are a subset of line ends).
    278 // The buffer pointer must point to the first byte of the segment 
     276// The buffer pointer must point to the first byte of the segment
    279277// corresponding to the scanner indexes.   The first_line_start is the
    280278// start position of the first line relative to the buffer start position.
    281 // It must be zero or negative;  if negative, the buffer must permit negative 
    282 // indexing so that the lineup to the buffer start position can also be printed.   
    283 // The start position of the final line in the processed segment is returned. 
     279// It must be zero or negative;  if negative, the buffer must permit negative
     280// indexing so that the lineup to the buffer start position can also be printed.
     281// The start position of the final line in the processed segment is returned.
    284282//
    285283
     
    307305  return line_start;
    308306}
    309    
     307
    310308
    311309
  • icGREP/icgrep-devel/icgrep/llvm_gen.cpp

    r4129 r4137  
    11911191#ifdef USE_UADD_OVERFLOW
    11921192    //use llvm.uadd.with.overflow.i128
     1193
    11931194    CastInst* int128_e1 = new BitCastInst(e1, IntegerType::get(mMod->getContext(), 128), "e1_128", mBasicBlock);
    11941195    CastInst* int128_e2 = new BitCastInst(e2, IntegerType::get(mMod->getContext(), 128), "e2_128", mBasicBlock);
  • icGREP/icgrep-devel/icgrep/llvm_gen.h

    r4132 r4137  
    99
    1010//#define DUMP_GENERATED_IR
     11
     12//define this indicates that we use llvm.uadd.with.overflow for genAddWithCarry
     13#define USE_UADD_OVERFLOW
    1114
    1215//Regular Expressions
Note: See TracChangeset for help on using the changeset viewer.