Ignore:
Timestamp:
Dec 19, 2016, 2:39:35 PM (2 years ago)
Author:
nmedfort
Message:

Multi-threading support for PabloAST / PabloCompiler?. Requires unique LLVM Context / Module for each thread.

Location:
icGREP/icgrep-devel/icgrep/IDISA/types
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IDISA/types/streamtype.h

    r5229 r5230  
    1010
    1111class StreamType : public llvm::Type {
    12 
    13     StreamType(llvm::LLVMContext & ctx, unsigned FieldWidth);
    14 
     12    friend class IDISA_Builder;
    1513public:
    16 
    1714    enum {
    1815        StreamTyId = VectorTyID + 1
    1916    };
    2017
    21     static StreamType * get(llvm::LLVMContext & ctx, unsigned FieldWidth);
    22 
    2318    unsigned getFieldWidth() const {
    2419        return mFieldWidth;
    25     }
    26 
    27     StreamType * getStreamElementType() const {
    28         return get(getContext(), mFieldWidth);
    2920    }
    3021
     
    3829        return false;
    3930    }
     31protected:
     32    StreamType(llvm::LLVMContext & ctx, unsigned FieldWidth)
     33    : llvm::Type(ctx, (Type::TypeID)(StreamTyId))
     34    , mFieldWidth(FieldWidth) {
     35    }
    4036private:
    4137    unsigned mFieldWidth;
Note: See TracChangeset for help on using the changeset viewer.