Ignore:
Timestamp:
Jan 29, 2017, 4:40:32 PM (2 years ago)
Author:
nmedfort
Message:

More changes towards simplifying the KernelBuilder?

File:
1 edited

Legend:

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

    r5285 r5287  
    1212namespace llvm { class Function; }
    1313namespace llvm { class Module; }
     14namespace llvm { class PointerType; }
    1415namespace llvm { class StructType; }
    1516namespace llvm { class Type; }
     
    2223    Binding(llvm::Type * type, std::string && name) : type(type), name(name) {}
    2324};
    24 
    25 static const std::string init_suffix = "_Init";
    26 static const std::string doBlock_suffix = "_DoBlock";
    27 static const std::string doSegment_suffix = "_DoSegment";
    28 static const std::string finalBlock_suffix = "_FinalBlock";
    29 static const std::string accumulator_infix = "_get_";
    3025
    3126class KernelInterface {
     
    6156    llvm::Value * getInstance() const { return mKernelInstance; }
    6257
    63     llvm::Value * createDoSegmentCall(std::vector<llvm::Value *> args) const;
    64 
    65     llvm::Value * createGetAccumulatorCall(llvm::Value * self, std::string accumName) const;
    66    
    6758    unsigned getLookAhead() const {
    6859        return mLookAheadPositions;
     
    8374    }
    8475
     76    llvm::Function * getInitFunction() const;
     77
    8578    llvm::Function * getDoSegmentFunction() const;
     79
     80    llvm::Function * getAccumulatorFunction(const std::string & accumName) const;
    8681
    8782protected:
     
    107102    }
    108103   
     104    virtual void addAdditionalKernelDeclarations(llvm::Module * module, llvm::PointerType * selfType) const;
     105
    109106protected:
    110107   
Note: See TracChangeset for help on using the changeset viewer.