Ignore:
Timestamp:
Jun 9, 2018, 1:51:10 PM (11 months ago)
Author:
cameron
Message:

IDISA_SSSE3 builder; other IDISA operations

File:
1 edited

Legend:

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

    r6055 r6076  
    3535    }
    3636    return hostCPUFeatures;
     37}
     38
     39bool SSSE3_available() {
     40    StringMap<bool> features;
     41    if (sys::getHostCPUFeatures(features)) {
     42        return features.lookup("ssse3");
     43    }
     44    return false;
    3745}
    3846
     
    8795        return new KernelBuilderImpl<IDISA_I64_Builder>(C, codegen::BlockSize, codegen::BlockSize);
    8896    }
     97    if (SSSE3_available()) return new KernelBuilderImpl<IDISA_SSSE3_Builder>(C, codegen::BlockSize, codegen::BlockSize);
    8998    return new KernelBuilderImpl<IDISA_SSE2_Builder>(C, codegen::BlockSize, codegen::BlockSize);
    9099}
Note: See TracChangeset for help on using the changeset viewer.