Ignore:
Timestamp:
Jan 16, 2018, 4:22:13 PM (15 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.cpp

    r5828 r5836  
    4949}
    5050
    51 Var * PabloKernel::makeVariable(String * name, Type * const type) {
     51Var * PabloKernel::makeVariable(const String * name, Type * const type) {
    5252    Var * const var = new (mAllocator) Var(name, type, mAllocator);
    5353    mVariables.push_back(var);
     
    8787    mStreamTy = b->getStreamTy();
    8888    mSymbolTable = new SymbolGenerator(b->getContext(), mAllocator);
    89     mEntryBlock = PabloBlock::Create(this);
     89    mEntryScope = new (mAllocator) PabloBlock(this, mAllocator);
    9090    mContext = &b->getContext();
    9191    for (const Binding & ss : mStreamSetInputs) {
     
    211211, mPabloCompiler(nullptr)
    212212, mSymbolTable(nullptr)
    213 , mEntryBlock(nullptr)
     213, mEntryScope(nullptr)
    214214, mSizeTy(nullptr)
    215215, mStreamTy(nullptr)
Note: See TracChangeset for help on using the changeset viewer.