Ignore:
Timestamp:
Aug 29, 2014, 4:47:16 PM (4 years ago)
Author:
linmengl
Message:

generate llvm.uadd.with.overflow. add 'make check' target to run greptest.py.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/llvm_gen.h

    r4091 r4096  
    88#define LLVM_GENERATOR_H
    99
    10 #define USE_LLVM_3_4
    11 //#define DUMP_GENERATED_IR
     10#define USE_LLVM_3_5
     11#define DUMP_GENERATED_IR
    1212
    1313//Regular Expressions
     
    112112};
    113113
     114struct SumWithOverflowPack {
     115  Value *sum;
     116  Value *obit;
     117};
     118
    114119class LLVM_Generator
    115120{
     
    144149    Value* genNot(Value* e, const Twine &namehint = "");
    145150
     151    SumWithOverflowPack genUaddOverflow(Value *e1, Value *e2);
     152
    146153    int         mBits;
    147154    std::map<std::string, std::string> m_name_map;
     
    174181    FunctionType* mFuncTy_0;
    175182    Function*     mFunc_process_block;
     183    Function*     mFunc_llvm_uadd_with_overflow_i128;
    176184
    177185    Constant*     mFunc_print_register;
Note: See TracChangeset for help on using the changeset viewer.