Ignore:
Timestamp:
Jan 16, 2018, 4:22:13 PM (16 months ago)
Author:
nmedfort
Message:

Added PabloBlock/Builder? createScope() methods + minor code changes.

File:
1 edited

Legend:

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

    r5828 r5836  
    5252    virtual ~PabloKernel();
    5353
    54     PabloBlock * getEntryBlock() const {
    55         return mEntryBlock;
    56     }
    57 
    58     PabloBlock * setEntryBlock(PabloBlock * entryBlock) {
     54    PabloBlock * getEntryScope() const {
     55        return mEntryScope;
     56    }
     57
     58    PabloBlock * setEntryScope(PabloBlock * entryBlock) {
    5959        assert (entryBlock);
    60         std::swap(mEntryBlock, entryBlock);
     60        std::swap(mEntryScope, entryBlock);
    6161        return entryBlock;
    6262    }
     
    159159    }
    160160
    161     Var * makeVariable(String * name, llvm::Type * const type);
     161    Var * makeVariable(const String * name, llvm::Type * const type);
    162162
    163163    // A custom method for preparing kernel declarations is needed,
     
    186186    PabloCompiler *                 mPabloCompiler;
    187187    SymbolGenerator *               mSymbolTable;
    188     PabloBlock *                    mEntryBlock;
     188    PabloBlock *                    mEntryScope;
    189189    llvm::IntegerType *             mSizeTy;
    190190    llvm::VectorType *              mStreamTy;
Note: See TracChangeset for help on using the changeset viewer.