Ignore:
Timestamp:
Feb 25, 2017, 12:50:29 PM (3 years ago)
Author:
nmedfort
Message:

Added enable asserts (-ea) command line flag + restructured BlockOrientedKernels? to allow for inlined code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/toolchain.cpp

    r5314 r5347  
    3030
    3131static cl::OptionCategory CodeGenOptions("Code Generation Options", "These options control code generation.");
     32
    3233static cl::bits<DebugFlags>
    3334DebugOptions(cl::values(clEnumVal(ShowIR, "Print generated LLVM IR."),
     
    6061int BufferSegments;
    6162int ThreadNum;
     63bool EnableAsserts;
    6264
    6365static cl::opt<int, true> BlockSizeOption("BlockSize", cl::location(BlockSize), cl::init(0), cl::desc("specify a block size (defaults to widest SIMD register width in bits)."), cl::cat(CodeGenOptions));
     
    6567static cl::opt<int, true> BufferSegmentsOption("buffer-segments", cl::location(BufferSegments), cl::desc("Buffer Segments"), cl::value_desc("positive integer"), cl::init(1));
    6668static cl::opt<int, true> ThreadNumOption("thread-num", cl::location(ThreadNum), cl::desc("Number of threads used for segment pipeline parallel"), cl::value_desc("positive integer"), cl::init(2));
     69
     70static cl::opt<bool, true> EnableAssertsOption("ea", cl::location(EnableAsserts), cl::desc("Enable Asserts"), cl::init(
     71#ifndef NDEBUG
     72true
     73#else
     74false
     75#endif
     76));
    6777
    6878const cl::OptionCategory * codegen_flags() {return &CodeGenOptions;}
Note: See TracChangeset for help on using the changeset viewer.