Ignore:
Timestamp:
Jan 14, 2017, 3:49:56 PM (3 years ago)
Author:
nmedfort
Message:

Changes working towards simplifying accessing stream elements + some modifications to simplify include / forward declarations within the CodeGen? library.

Location:
icGREP/icgrep-devel/icgrep/IR_Gen/types
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/types/streamtype.cpp

    r5238 r5260  
    11#include "streamtype.h"
    2 #include "IR_Gen/idisa_builder.h"
     2#include <IR_Gen/idisa_builder.h>  // for IDISA_Builder
     3#include <llvm/IR/DerivedTypes.h>  // for ArrayType, VectorType
    34
    45namespace IDISA {
     
    67llvm::Type * StreamType::resolveType(IDISA_Builder * const builder) {
    78    if (mFieldWidth == 1) return builder->getBitBlockType();
    8     return ArrayType::get(builder->getBitBlockType(), mFieldWidth);
     9    return llvm::ArrayType::get(builder->getBitBlockType(), mFieldWidth);
    910//    return llvm::VectorType::get(builder->getIntNTy(mFieldWidth), builder->getBitBlockWidth() / mFieldWidth);
    1011}
  • icGREP/icgrep-devel/icgrep/IR_Gen/types/streamtype.h

    r5230 r5260  
    22#define STREAMTYPE_H
    33
    4 #include <llvm/IR/DerivedTypes.h>
    5 #include <llvm/IR/LLVMContext.h>
     4#include <llvm/IR/Type.h>
     5namespace IDISA { class IDISA_Builder; }
     6namespace llvm { class LLVMContext; }
    67
    78namespace IDISA {
Note: See TracChangeset for help on using the changeset viewer.