Changeset 5746


Ignore:
Timestamp:
Nov 27, 2017, 9:22:18 AM (17 months ago)
Author:
cameron
Message:

DisableIndirectBranch? command flag

Location:
icGREP/icgrep-devel/icgrep
Files:
4 edited

Legend:

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

    r5733 r5746  
    10111011}
    10121012
     1013bool CBuilder::supportsIndirectBr() const {
     1014    return !codegen::DebugOptionIsSet(codegen::DisableIndirectBranch);
     1015}
     1016
    10131017BranchInst * CBuilder::CreateLikelyCondBr(Value * Cond, BasicBlock * True, BasicBlock * False, const int probability) {
    10141018    MDBuilder mdb(getContext());
  • icGREP/icgrep-devel/icgrep/IR_Gen/CBuilder.h

    r5706 r5746  
    11/*
    2  *  Copyright (c) 2016 International Characters.
     2 *  Copyright (c) 2017 International Characters.
    33 *  This software is licensed to the public under the Open Software License 3.0.
    44 */
     
    239239    llvm::BasicBlock * CreateBasicBlock(std::string && name);
    240240
    241     virtual bool supportsIndirectBr() const {
    242         return true;
    243     }
     241    virtual bool supportsIndirectBr() const;
    244242
    245243    llvm::Value * CreatePopcount(llvm::Value * bits);
  • icGREP/icgrep-devel/icgrep/toolchain/toolchain.cpp

    r5745 r5746  
    2828                        clEnumVal(TraceDynamicBuffers, "Show dynamic buffer allocations and deallocations."),
    2929                        clEnumVal(EnableAsserts, "Enable built-in Parabix framework asserts in generated IR."),
    30                         clEnumVal(EnableCycleCounter, "Count and report CPU cycles per kernel.")
     30                        clEnumVal(EnableCycleCounter, "Count and report CPU cycles per kernel."),
     31                        clEnumVal(DisableIndirectBranch, "Disable use of indirect branches in kernel code.")
    3132                        CL_ENUM_VAL_SENTINEL), cl::cat(CodeGenOptions));
    3233
  • icGREP/icgrep-devel/icgrep/toolchain/toolchain.h

    r5745 r5746  
    4848    EnableAsserts,
    4949    EnableCycleCounter,
     50    DisableIndirectBranch,
    5051    DebugFlagSentinel
    5152};
Note: See TracChangeset for help on using the changeset viewer.