Ignore:
Timestamp:
Dec 19, 2016, 12:58:29 PM (3 years ago)
Author:
cameron
Message:

Distinguishing between StreamType? and StreamSetType?; fixing StreamSetBlock? pointer calculations

File:
1 edited

Legend:

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

    r5227 r5229  
    2222    Var * param = new Var(mSymbolTable->make(name), type, true);
    2323    mInputs.push_back(param);
    24     if (isa<StreamType>(type)) {
     24    if (isa<ArrayType>(type) || isa<StreamType>(type)) {
    2525        mStreamSetInputs.emplace_back(type, name);
    2626    } else {
     
    3434    Var * result = new Var(mSymbolTable->make(name), type, false);
    3535    mOutputs.push_back(result);
    36     if (isa<StreamType>(type)) {
     36    if (isa<ArrayType>(type) || isa<StreamType>(type)) {
    3737        mStreamSetOutputs.emplace_back(type, name);
    3838    } else {
     
    5151Zeroes * PabloKernel::getNullValue(Type * type) {
    5252    if (type == nullptr) {
    53         type = getStreamSetTy();
     53        type = getStreamTy();
    5454    }
    5555    for (PabloAST * constant : mConstants) {
     
    6565Ones * PabloKernel::getAllOnesValue(Type * type) {
    6666    if (type == nullptr) {
    67         type = getStreamSetTy();
     67        type = getStreamTy();
    6868    }
    6969    for (PabloAST * constant : mConstants) {
Note: See TracChangeset for help on using the changeset viewer.