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

DisableIndirectBranch? command flag

Location:
icGREP/icgrep-devel/icgrep/IR_Gen
Files:
2 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);
Note: See TracChangeset for help on using the changeset viewer.