Ignore:
Timestamp:
May 19, 2017, 12:58:48 PM (2 years ago)
Author:
lindanl
Message:

Add NVPTX driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/idisa_nvptx_builder.h

    r5436 r5458  
    1616public:
    1717   
    18     IDISA_NVPTX20_Builder(llvm::LLVMContext & C, unsigned registerWidth, unsigned vectorWidth, unsigned groupSize)
    19     : IDISA_Builder(C, registerWidth, registerWidth, (vectorWidth * groupSize))
    20     , IDISA_I64_Builder(C, registerWidth, registerWidth, (vectorWidth * groupSize))
    21     , groupThreads(groupSize) {
     18    IDISA_NVPTX20_Builder(llvm::LLVMContext & C, unsigned registerWidth, unsigned vectorWidth, unsigned stride)
     19    : IDISA_Builder(C, registerWidth, registerWidth, stride)
     20    , IDISA_I64_Builder(C, registerWidth, registerWidth, stride)
     21    , groupThreads(stride/vectorWidth) {
     22
     23    }
     24
     25    ~IDISA_NVPTX20_Builder() {}
     26    virtual std::string getBuilderUniqueName() override;
     27    int getGroupThreads();
     28
     29    void CreateBaseFunctions() override {
    2230        CreateGlobals();
    2331        CreateBuiltinFunctions();
     
    2533        CreateLongAddFunc();
    2634        CreateBallotFunc();
    27     }
    28    
    29     ~IDISA_NVPTX20_Builder() {}
    30     virtual std::string getBuilderUniqueName() override;
    31     int getGroupThreads();
     35    };
    3236   
    3337    Value * bitblock_any(Value * a) override;
Note: See TracChangeset for help on using the changeset viewer.