Ignore:
Timestamp:
Apr 17, 2018, 6:33:56 PM (13 months ago)
Author:
cameron
Message:

New generic bitblock_mask_from, bitblock_set_bit small field simd_popcount

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/IR_Gen/idisa_builder.h

    r5865 r5972  
    126126    virtual llvm::Value * simd_pdep(unsigned fw, llvm::Value * v, llvm::Value * deposit_mask);
    127127   
    128     llvm::Value * simd_popcount(unsigned fw, llvm::Value * a) {
    129         if (LLVM_UNLIKELY(fw < 8)) {
    130             assert ("field width is less than 8" && false);
    131             llvm::report_fatal_error("Unsupported field width: popcount " + std::to_string(fw));
    132         }
    133         return CreatePopcount(fwCast(fw, a));
    134     }
     128    virtual llvm::Value * simd_popcount(unsigned fw, llvm::Value * a);
    135129
    136130    virtual llvm::Value * simd_bitreverse(unsigned fw, llvm::Value * a);
Note: See TracChangeset for help on using the changeset viewer.