Ignore:
Timestamp:
May 31, 2017, 4:25:33 PM (23 months ago)
Author:
nmedfort
Message:

Initial attempt to improve debugging capabilities with compilation stack traces on error.

File:
1 edited

Legend:

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

    r5464 r5486  
    1717    : IDISA_Builder(C, registerWidth, registerWidth, stride)
    1818    , IDISA_I64_Builder(C, registerWidth, registerWidth, stride)
    19     , groupThreads(stride/vectorWidth) {
     19    , groupThreads(stride/vectorWidth)
     20    , barrierFunc(nullptr)
     21    , tidFunc(nullptr)
     22    , mLongAdvanceFunc(nullptr)
     23    , mLongAddFunc(nullptr)
     24    , carry(nullptr)
     25    , bubble(nullptr) {
    2026
    2127    }
     
    2531    virtual std::string getBuilderUniqueName() override;
    2632
    27     int getGroupThreads();
     33    unsigned getGroupThreads() const;
    2834
    2935    void CreateBaseFunctions() override;
     
    4753    }
    4854
     55    #ifdef HAS_ADDRESS_SANITIZER
     56    llvm::LoadInst * CreateLoad(llvm::Value *Ptr, const char *Name) override;
     57
     58    llvm::LoadInst * CreateLoad(llvm::Value *Ptr, const llvm::Twine &Name = "") override;
     59
     60    llvm::LoadInst * CreateLoad(llvm::Type *Ty, llvm::Value *Ptr, const llvm::Twine &Name = "") override;
     61
     62    llvm::LoadInst * CreateLoad(llvm::Value *Ptr, bool isVolatile, const llvm::Twine &Name = "") override;
     63
     64    llvm::StoreInst * CreateStore(llvm::Value *Val, llvm::Value *Ptr, bool isVolatile = false) override;
     65    #endif
     66
    4967private:
    5068
     
    5674
    5775private:
    58     int                         groupThreads;
     76    const unsigned              groupThreads;
    5977    llvm::Function *            barrierFunc;
    6078    llvm::Function *            tidFunc;
Note: See TracChangeset for help on using the changeset viewer.