Changeset 4941


Ignore:
Timestamp:
Feb 23, 2016, 10:56:31 AM (3 years ago)
Author:
lindanl
Message:

Some clean up.

Location:
icGREP/icgrep-devel/icgrep
Files:
3 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/carry_manager.cpp

    r4939 r4941  
    55 */
    66
     7#include <include/simd-lib/bitblock.hpp>
    78#include <stdexcept>
    89#include <pablo/carry_data.h>
     
    3536    }
    3637    return count;
    37 }
    38 
    39 /** ------------------------------------------------------------------------------------------------------------- *
    40  * @brief generateCarryDataInitializer
    41  ** ------------------------------------------------------------------------------------------------------------- */
    42 void CarryManager::generateCarryDataInitializer(Module * m) {
    43     FunctionType * functionType = FunctionType::get(Type::getVoidTy(m->getContext()), std::vector<Type *>({}), false);
    44     SmallVector<AttributeSet, 1> Attrs;
    45     Attrs.push_back(AttributeSet::get(m->getContext(), ~0U, std::vector<Attribute::AttrKind>({ Attribute::NoUnwind, Attribute::UWTable })));
    46     AttributeSet AttrSet = AttributeSet::get(m->getContext(), Attrs);
    47    
    48     // Create the function that will be generated.
    49     Function * f = Function::Create(functionType, GlobalValue::ExternalLinkage, "process_block_initialize_carries", m);
    50     f->setCallingConv(CallingConv::C);
    51     f->setAttributes(AttrSet);
    52     const auto ip = iBuilder->saveIP();
    53     iBuilder->SetInsertPoint(BasicBlock::Create(m->getContext(), "entry1", f, 0));
    54     iBuilder->CreateMemSet(mCarryBitBlockPtr, iBuilder->getInt8(0), mTotalCarryDataBitBlocks * mBitBlockWidth/8, 4);
    55     ReturnInst::Create(m->getContext(), iBuilder->GetInsertBlock());
    56     iBuilder->restoreIP(ip);
    5738}
    5839
     
    551532}
    552533
    553 /** ------------------------------------------------------------------------------------------------------------- *
    554  * @brief generateBlockNoIncrement
    555  ** ------------------------------------------------------------------------------------------------------------- */
    556 // void CarryManager::generateBlockNoIncrement() {
    557 //     iBuilder->CreateStore(iBuilder->CreateAdd(mBlockNo, iBuilder->getInt64(1)), mBlockNoPtr);
    558 // }
    559 
    560534/* Helper routines */
    561535
  • icGREP/icgrep-devel/icgrep/pablo/carry_manager.h

    r4939 r4941  
    6666    void set_BlockNo(KernelBuilder * kBuilder);
    6767   
    68     void generateCarryDataInitializer(Module * m);
    69    
    7068    unsigned enumerate(PabloBlock * blk, unsigned ifDepth, unsigned whileDepth);
    71    
    72     void generateBlockNoIncrement();   
     69       
    7370    Value * getBlockNoPtr() const;
    7471   
Note: See TracChangeset for help on using the changeset viewer.