Ignore:
Timestamp:
Jul 16, 2015, 1:51:51 PM (4 years ago)
Author:
nmedfort
Message:

Added pablo Prototype to compiler. All Calls must be given one instead of a Name.

File:
1 edited

Legend:

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

    r4672 r4680  
    2929#include <pablo/ps_if.h>
    3030#include <pablo/ps_while.h>
     31#include <pablo/function.h>
    3132#include <stdexcept>
    3233
     
    7576    }
    7677
    77     inline Call * createCall(const std::string name) {
    78         return createCall(getName(name, false));
    79     }
    80 
    81     inline Call * createCall(String * name) {
    82         return createCall(cast<PabloAST>(name));
     78    inline Call * createCall(Prototype * prototype) {
     79        return createCall(prototype);
    8380    }
    8481
     
    168165   
    169166protected:
     167
     168
    170169    PabloBlock(SymbolGenerator & symbolGenerator);
    171170
     
    187186private:
    188187
    189     Call * createCall(PabloAST * name);
     188    Call * createCall(PabloAST * prototype);
    190189
    191190    Var * createVar(PabloAST * name);
Note: See TracChangeset for help on using the changeset viewer.