Ignore:
Timestamp:
Mar 3, 2016, 9:02:22 AM (3 years ago)
Author:
cameron
Message:

Removing compile-time BLOCK_SIZE from pablo compiler/carry manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.h

    r4939 r4951  
    11/*
    2  *  Copyright (c) 2014 International Characters.
     2 *  Copyright (c) 2016 International Characters.
    33 *  This software is licensed to the public under the Open Software License 3.0.
    44 *  icgrep is a trademark of International Characters.
     
    88#define PABLO_COMPILER_H
    99
    10 //indicates that we use llvm.uadd.with.overflow.carryin for genAddWithCarry
    11 //#define USE_UADD_OVERFLOW
    12 //#define USE_LONG_INTEGER_SHIFT
    13 //#define USE_TWO_UADD_OVERFLOW
    1410
    15 #if defined(USE_TWO_UADD_OVERFLOW) && !defined(USE_UADD_OVERFLOW)
    16 static_assert(false, "Need to turn on them together.");
    17 #endif
    18 
    19 //Pablo Expressions
    2011#include <string>
    2112#include <list>
     
    5849class While;
    5950
    60 #if (BLOCK_SIZE==256)
    61 #define USE_UADD_OVERFLOW
    62 #define USE_TWO_UADD_OVERFLOW
    63 #endif
    64 
    6551class PabloCompiler {
    66     #ifdef USE_UADD_OVERFLOW
    67     struct SumWithOverflowPack {
    68         Value * sum;
    69         Value * obit;
    70     };
    71     #endif
    7252
    7353    typedef std::unordered_map<const pablo::PabloAST *, Value *>   ASTToValueMap;
     
    121101}
    122102
    123 #endif // LLVM_GENERATOR_H
     103#endif // PABLO_COMPILER_H
Note: See TracChangeset for help on using the changeset viewer.