Ignore:
Timestamp:
Mar 13, 2017, 3:02:13 PM (2 years ago)
Author:
nmedfort
Message:

Work on non-carry collapsing mode.

File:
1 edited

Legend:

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

    r5329 r5361  
    1515namespace IDISA {
    1616   
    17 IDISA_Builder * GetIDISA_Builder(llvm::Module * mod) {
     17IDISA_Builder * GetIDISA_Builder(llvm::Module * const mod) {
    1818    if (LLVM_UNLIKELY(mod == nullptr)) {
    1919        report_fatal_error("GetIDISA_Builder: module cannot be null");
     
    2222        mod->setTargetTriple(llvm::sys::getProcessTriple());
    2323    }
     24    unsigned registerWidth = 0;
    2425    Triple T(mod->getTargetTriple());
    25     unsigned registerWidth = 32;
    2626    if (T.isArch64Bit()) {
    2727        registerWidth = 64;
     
    4545}
    4646
    47 IDISA_Builder * GetIDISA_GPU_Builder(llvm::Module * mod) {
     47IDISA_Builder * GetIDISA_GPU_Builder(llvm::Module * const mod) {
    4848    return new IDISA_NVPTX20_Builder(mod, 64);
    4949}
Note: See TracChangeset for help on using the changeset viewer.