source: icGREP/icgrep-devel/icgrep/IR_Gen/types/streamtype.cpp @ 5260

Last change on this file since 5260 was 5260, checked in by nmedfort, 2 years ago

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

File size: 486 bytes
Line 
1#include "streamtype.h"
2#include <IR_Gen/idisa_builder.h>  // for IDISA_Builder
3#include <llvm/IR/DerivedTypes.h>  // for ArrayType, VectorType
4
5namespace IDISA {
6
7llvm::Type * StreamType::resolveType(IDISA_Builder * const builder) {
8    if (mFieldWidth == 1) return builder->getBitBlockType();
9    return llvm::ArrayType::get(builder->getBitBlockType(), mFieldWidth);
10//    return llvm::VectorType::get(builder->getIntNTy(mFieldWidth), builder->getBitBlockWidth() / mFieldWidth);
11}
12
13}
Note: See TracBrowser for help on using the repository browser.