Ignore:
Timestamp:
Jul 16, 2016, 6:51:39 PM (3 years ago)
Author:
cameron
Message:

Set names and attributes for doSegment functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/kernels/interface.cpp

    r5086 r5095  
    113113    doSegmentFn->setCallingConv(CallingConv::C);
    114114    doSegmentFn->setDoesNotThrow();
    115     for (int i = 1; i <= doBlockParameters.size(); i++) {
    116         doSegmentFn->setDoesNotCapture(i);
    117     }
     115    Function::arg_iterator args = doSegmentFn->arg_begin();
     116    Value * arg = &*(args++);
     117    arg->setName("self");
     118    arg = &*(args++);
     119    arg->setName("blockCnt");
     120    doSegmentFn->setDoesNotCapture(1); // for self parameter only.
    118121    iBuilder->setModule(saveModule);
    119122    iBuilder->restoreIP(savePoint);
Note: See TracChangeset for help on using the changeset viewer.