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

Last change on this file since 5238 was 5238, checked in by cameron, 2 years ago

IR_Gen subdirectory for all IR generation utility functions

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