Changeset 5846
- Timestamp:
- Jan 29, 2018, 12:33:30 PM (13 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
icGREP/icgrep-devel/icgrep/kernels/kernel_builder.cpp
r5830 r5846 237 237 Type * const fieldWidthTy = getIntNTy(fieldWidth); 238 238 239 Value * constn = buf->getStreamSetCount(this, getStreamHandle(name));239 Value * n = buf->getStreamSetCount(this, getStreamHandle(name)); 240 240 241 241 if (isConstantOne(n) || fieldWidth == blockWidth || (isConstantZero(targetOffset) && isConstantZero(sourceOffset))) { … … 260 260 261 261 } else { // either the target offset or source offset is non-zero but not both 262 auto t = getIntNTy(fieldWidth * buf->getNumOfStreams()); 263 PointerType * const ptrTy = t->getPointerTo(); 264 target = CreateGEP(CreatePointerCast(target, ptrTy), targetOffset); 265 source = CreateGEP(CreatePointerCast(source, ptrTy), sourceOffset); 266 n = this->CreateUDiv(n, this->getSize(buf->getNumOfStreams())); 262 267 263 268 VectorType * const blockTy = getBitBlockType();
Note: See TracChangeset
for help on using the changeset viewer.