Ignore:
Timestamp:
Nov 6, 2016, 8:37:11 PM (3 years ago)
Author:
nmedfort
Message:

Initial work on adding types to PabloAST and mutable Var objects.

File:
1 edited

Legend:

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

    r5185 r5202  
    1515void KernelInterface::addKernelDeclarations(Module * client) {
    1616    Module * saveModule = iBuilder->getModule();
    17     IDISA::IDISA_Builder::InsertPoint savePoint = iBuilder->saveIP();
     17    auto savePoint = iBuilder->saveIP();
    1818    iBuilder->setModule(client);
    1919    if (mKernelStateType == nullptr) {
     
    2323    // Create the accumulator get function prototypes
    2424    for (auto binding : mScalarOutputs) {
    25         FunctionType * accumFnType = FunctionType::get(binding.scalarType, {selfType}, false);
    26         std::string fnName = mKernelName + accumulator_infix + binding.scalarName;
     25        FunctionType * accumFnType = FunctionType::get(binding.type, {selfType}, false);
     26        std::string fnName = mKernelName + accumulator_infix + binding.name;
    2727        Function * accumFn = Function::Create(accumFnType, GlobalValue::ExternalLinkage, fnName, client);
    2828        accumFn->setCallingConv(CallingConv::C);
     
    3535    std::vector<Type *> initParameters = {selfType};
    3636    for (auto binding : mScalarInputs) {
    37         initParameters.push_back(binding.scalarType);
     37        initParameters.push_back(binding.type);
    3838    }
    3939    FunctionType * initFunctionType = FunctionType::get(iBuilder->getVoidTy(), initParameters, false);
     
    4747    for (auto binding : mScalarInputs) {
    4848        initArg = &*(initArgs++);
    49         initArg->setName(binding.scalarName);
     49        initArg->setName(binding.name);
    5050    }
    5151
Note: See TracChangeset for help on using the changeset viewer.