Ignore:
Timestamp:
Dec 19, 2016, 2:39:35 PM (3 years ago)
Author:
nmedfort
Message:

Multi-threading support for PabloAST / PabloCompiler?. Requires unique LLVM Context / Module for each thread.

File:
1 edited

Legend:

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

    r5227 r5230  
    3535    }
    3636protected:
    37     Var(const PabloAST * name, Type * const type, const bool readOnly = false)
    38     : PabloAST(ClassTypeId::Var, type, cast<String>(name))
     37    Var(const PabloAST * name, Type * const type, Allocator & allocator, const bool readOnly = false)
     38    : PabloAST(ClassTypeId::Var, type, cast<String>(name), allocator)
    3939    , mReadOnly(readOnly) {
    4040
     
    6262    }
    6363protected:
    64     Extract(PabloAST * array, PabloAST * const index, const String * const name, Type * type)
    65     : Statement(ClassTypeId::Extract, type, {array, index}, name) {
     64    Extract(PabloAST * array, PabloAST * const index, const String * const name, Type * type, Allocator & allocator)
     65    : Statement(ClassTypeId::Extract, type, {array, index}, name, allocator) {
    6666
    6767    }
Note: See TracChangeset for help on using the changeset viewer.