Ignore:
Timestamp:
Jan 19, 2017, 2:41:02 PM (3 years ago)
Author:
nmedfort
Message:

Code clean-up. Removed Pablo Call, SetIthBit? and Prototype.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/builder.hpp

    r5245 r5267  
    44#include <pablo/codegenstate.h>
    55#include <pablo/expression_map.hpp>
     6#include <pablo/pe_var.h>
    67
    78namespace pablo {
     
    5758    }
    5859
    59     inline Zeroes * createZeroes(Type * const type = nullptr) {
     60    inline Zeroes * createZeroes(llvm::Type * const type = nullptr) {
    6061        return mPb->createZeroes(type);
    6162    }
    6263
    63     inline Ones * createOnes(Type * const type = nullptr) {
     64    inline Ones * createOnes(llvm::Type * const type = nullptr) {
    6465        return mPb->createOnes(type);
    6566    }
    6667
    67     inline Var * createVar(const std::string name, Type * const type = nullptr) {
     68    inline Var * createVar(const std::string name, llvm::Type * const type = nullptr) {
    6869        return createVar(makeName(name), type);
    6970    }
     
    7576    }
    7677
    77     inline Var * createVar(String * const name, Type * const type = nullptr) {
     78    inline Var * createVar(String * const name, llvm::Type * const type = nullptr) {
    7879        return mPb->createVar(name, type);
    7980    }
     
    9091        return createExtract(value, getInteger(index), prefix);
    9192    }
    92 
    93     inline Call * createCall(Prototype * prototype, const std::vector<Var *> & args) {
    94         return createCall(prototype, reinterpret_cast<const std::vector<PabloAST *> &>(args));
    95     }
    96 
    97     Call * createCall(Prototype * prototype, const std::vector<PabloAST *> &vars);
    9893
    9994    inline PabloAST * createAdvance(PabloAST * expr, const int64_t shiftAmount) {
     
    199194    }
    200195
    201     Type * getStreamTy(const unsigned FieldWidth = 1) {
     196    llvm::Type * getStreamTy(const unsigned FieldWidth = 1) {
    202197        return mPb->getStreamTy(FieldWidth);
    203198    }
    204199   
    205     Type * getStreamSetTy(const unsigned NumElements = 1, const unsigned FieldWidth = 1) {
     200    llvm::Type * getStreamSetTy(const unsigned NumElements = 1, const unsigned FieldWidth = 1) {
    206201        return mPb->getStreamSetTy(NumElements, FieldWidth);
    207202    }
     
    265260    }
    266261
    267     inline void print(raw_ostream & O, const bool expandNested = true) const {
     262    inline void print(llvm::raw_ostream & O, const bool expandNested = true) const {
    268263        mPb->print(O, expandNested);
    269264    }
Note: See TracChangeset for help on using the changeset viewer.