Ignore:
Timestamp:
May 30, 2018, 12:41:51 AM (12 months ago)
Author:
xwa163
Message:
  1. Enable swizzled match copy in multiplexing lz4_grep for some special case
  2. Implement some lz4 AIO (all-in-one) pipeline and related kernel
File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/idisa_builder.cpp

    r6053 r6059  
    2727    assert (a->getType()->getPrimitiveSizeInBits() == ty->getPrimitiveSizeInBits());
    2828    return CreateBitCast(a, ty);
     29}
     30
     31void IDISA_Builder::CallPrintRegisterCond(const std::string & regName, llvm::Value * const value, llvm::Value * const cond) {
     32    BasicBlock* callBlock = this->CreateBasicBlock("callBlock");
     33    BasicBlock* exitBlock = this->CreateBasicBlock("exitBlock");
     34    this->CreateCondBr(cond, callBlock, exitBlock);
     35
     36    this->SetInsertPoint(callBlock);
     37    this->CallPrintRegister(regName, value);
     38
     39    this->CreateBr(exitBlock);
     40    this->SetInsertPoint(exitBlock);
    2941}
    3042
Note: See TracChangeset for help on using the changeset viewer.