Ignore:
Timestamp:
Feb 13, 2017, 3:10:39 PM (2 years ago)
Author:
nmedfort
Message:

First version of expandable buffers + minor change to array-test to use them.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/pablo/pablo_compiler.cpp

    r5311 r5316  
    529529        if (DebugOptionIsSet(DumpTrace)) {
    530530            const String & name = isa<Var>(expr) ? cast<Var>(expr)->getName() : cast<Statement>(expr)->getName();
    531             if (value->getType()->isVectorTy()) {
     531            Type * type = value->getType();
     532            if (type->isPointerTy()) {
     533                type = type->getPointerElementType();
     534                if (!type->isIntegerTy() && !type->isVectorTy()) {
     535                    return;
     536                }
     537                value = iBuilder->CreateLoad(value);
     538            }
     539            if (type->isVectorTy()) {
    532540                iBuilder->CallPrintRegister(name.str(), value);
    533             } else if (value->getType()->isIntegerTy()) {
     541            } else if (type->isIntegerTy()) {
    534542                iBuilder->CallPrintInt(name.str(), value);
    535543            }
Note: See TracChangeset for help on using the changeset viewer.