_ZN7llvm_ks7APFloat6getInfERKNS_12fltSemanticsEb:
  225|    963|  static APFloat getInf(const fltSemantics &Sem, bool Negative = false) {
  226|    963|    APFloat Val(Sem, uninitialized);
  227|    963|    Val.makeInf(Negative);
  228|    963|    return Val;
  229|    963|  }
_ZN7llvm_ks7APFloat6getNaNERKNS_12fltSemanticsEbj:
  237|    236|                        unsigned type = 0) {
  238|    236|    if (type) {
  ------------------
  |  Branch (238:9): [True: 236, False: 0]
  ------------------
  239|    236|      APInt fill(64, type);
  240|    236|      return getQNaN(Sem, Negative, &fill);
  241|    236|    } else {
  242|      0|      return getQNaN(Sem, Negative, nullptr);
  243|      0|    }
  244|    236|  }
_ZN7llvm_ks7APFloat7getQNaNERKNS_12fltSemanticsEbPKNS_5APIntE:
  248|    236|                         const APInt *payload = nullptr) {
  249|    236|    return makeNaN(Sem, false, Negative, payload);
  250|    236|  }
_ZNK7llvm_ks7APFloat12needsCleanupEv:
  208|  86.4k|  bool needsCleanup() const { return partCount() > 1; }
_ZN7llvm_ks7APFloat7getZeroERKNS_12fltSemanticsEb:
  216|  25.2k|  static APFloat getZero(const fltSemantics &Sem, bool Negative = false) {
  217|  25.2k|    APFloat Val(Sem, uninitialized);
  218|  25.2k|    Val.makeZero(Negative);
  219|  25.2k|    return Val;
  220|  25.2k|  }
_ZNK7llvm_ks7APFloat8isFiniteEv:
  414|   138k|  bool isFinite() const { return !isNaN() && !isInfinity(); }
  ------------------
  |  Branch (414:34): [True: 137k, False: 498]
  |  Branch (414:46): [True: 134k, False: 2.91k]
  ------------------
_ZNK7llvm_ks7APFloat6isZeroEv:
  417|   134k|  bool isZero() const { return category == fcZero; }
_ZNK7llvm_ks7APFloat10isInfinityEv:
  424|   137k|  bool isInfinity() const { return category == fcInfinity; }
_ZNK7llvm_ks7APFloat5isNaNEv:
  427|   138k|  bool isNaN() const { return category == fcNaN; }
_ZNK7llvm_ks7APFloat15isFiniteNonZeroEv:
  440|   138k|  bool isFiniteNonZero() const { return isFinite() && !isZero(); }
  ------------------
  |  Branch (440:41): [True: 134k, False: 3.41k]
  |  Branch (440:55): [True: 130k, False: 4.27k]
  ------------------

_ZN7llvm_ks5APIntC2EPmj:
   98|  1.30M|  APInt(uint64_t *val, unsigned bits) : BitWidth(bits), pVal(val) {}
_ZNK7llvm_ks5APInt12isSingleWordEv:
  103|  72.7M|  bool isSingleWord() const { return BitWidth <= APINT_BITS_PER_WORD; }
_ZN7llvm_ks5APInt15clearUnusedBitsEv:
  136|  21.3M|  APInt &clearUnusedBits() {
  137|       |    // Compute how many bits are used in the final word
  138|  21.3M|    unsigned wordBits = BitWidth % APINT_BITS_PER_WORD;
  139|  21.3M|    if (wordBits == 0)
  ------------------
  |  Branch (139:9): [True: 21.1M, False: 199k]
  ------------------
  140|       |      // If all bits are used, we want to leave the value alone. This also
  141|       |      // avoids the undefined behavior of >> when the shift is the same size as
  142|       |      // the word size (64).
  143|  21.1M|      return *this;
  144|       |
  145|       |    // Mask out the high bits.
  146|   199k|    uint64_t mask = ~uint64_t(0ULL) >> (APINT_BITS_PER_WORD - wordBits);
  147|   199k|    if (isSingleWord())
  ------------------
  |  Branch (147:9): [True: 5.06k, False: 194k]
  ------------------
  148|  5.06k|      VAL &= mask;
  149|   194k|    else
  150|   194k|      pVal[getNumWords() - 1] &= mask;
  151|   199k|    return *this;
  152|  21.3M|  }
_ZN7llvm_ks5APIntC2Ejmb:
  237|  19.5M|      : BitWidth(numBits), VAL(0) {
  238|  19.5M|    assert(BitWidth && "bitwidth too small");
  ------------------
  |  Branch (238:5): [True: 19.5M, False: 0]
  |  Branch (238:5): [True: 19.5M, Folded]
  |  Branch (238:5): [True: 19.5M, False: 0]
  ------------------
  239|  19.5M|    if (isSingleWord())
  ------------------
  |  Branch (239:9): [True: 19.0M, False: 578k]
  ------------------
  240|  19.0M|      VAL = val;
  241|   578k|    else
  242|   578k|      initSlowCase(numBits, val, isSigned);
  243|  19.5M|    clearUnusedBits();
  244|  19.5M|  }
_ZN7llvm_ks5APIntC2ERKS0_:
  279|  3.17M|  APInt(const APInt &that) : BitWidth(that.BitWidth), VAL(0) {
  280|  3.17M|    if (isSingleWord())
  ------------------
  |  Branch (280:9): [True: 2.30M, False: 872k]
  ------------------
  281|  2.30M|      VAL = that.VAL;
  282|   872k|    else
  283|   872k|      initSlowCase(that);
  284|  3.17M|  }
_ZN7llvm_ks5APIntC2EOS0_:
  287|  19.3M|  APInt(APInt &&that) : BitWidth(that.BitWidth), VAL(that.VAL) {
  288|  19.3M|    that.BitWidth = 0;
  289|  19.3M|  }
_ZN7llvm_ks5APIntD2Ev:
  292|  44.2M|  ~APInt() {
  293|  44.2M|    if (needsCleanup())
  ------------------
  |  Branch (293:9): [True: 1.28M, False: 43.0M]
  ------------------
  294|  1.28M|      delete[] pVal;
  295|  44.2M|  }
_ZN7llvm_ks5APIntC2Ev:
  302|   865k|  explicit APInt() : BitWidth(1), VAL(0) {}
_ZNK7llvm_ks5APInt12needsCleanupEv:
  305|  44.2M|  bool needsCleanup() const { return !isSingleWord(); }
_ZNK7llvm_ks5APInt6isIntNEj:
  373|   578k|  bool isIntN(unsigned N) const {
  374|   578k|    assert(N && "N == 0 ???");
  ------------------
  |  Branch (374:5): [True: 578k, False: 0]
  |  Branch (374:5): [True: 578k, Folded]
  |  Branch (374:5): [True: 578k, False: 0]
  ------------------
  375|   578k|    return getActiveBits() <= N;
  376|   578k|  }
_ZNK7llvm_ks5APInt15getLimitedValueEm:
  405|  5.06k|  uint64_t getLimitedValue(uint64_t Limit = ~0ULL) const {
  406|  5.06k|    return (getActiveBits() > 64 || getZExtValue() > Limit) ? Limit
  ------------------
  |  Branch (406:13): [True: 0, False: 5.06k]
  |  Branch (406:37): [True: 0, False: 5.06k]
  ------------------
  407|  5.06k|                                                            : getZExtValue();
  408|  5.06k|  }
_ZNK7llvm_ks5APInt10getRawDataEv:
  574|  5.68k|  const uint64_t *getRawData() const {
  575|  5.68k|    if (isSingleWord())
  ------------------
  |  Branch (575:9): [True: 236, False: 5.45k]
  ------------------
  576|    236|      return &VAL;
  577|  5.45k|    return &pVal[0];
  578|  5.68k|  }
_ZN7llvm_ks5APIntaSERKS0_:
  652|  35.0k|  APInt &operator=(const APInt &RHS) {
  653|       |    // If the bitwidths are the same, we can avoid mucking with memory
  654|  35.0k|    if (isSingleWord() && RHS.isSingleWord()) {
  ------------------
  |  Branch (654:9): [True: 33.6k, False: 1.37k]
  |  Branch (654:27): [True: 31.7k, False: 1.92k]
  ------------------
  655|  31.7k|      VAL = RHS.VAL;
  656|  31.7k|      BitWidth = RHS.BitWidth;
  657|  31.7k|      return clearUnusedBits();
  658|  31.7k|    }
  659|       |
  660|  3.30k|    return AssignSlowCase(RHS);
  661|  35.0k|  }
_ZN7llvm_ks5APIntaSEOS0_:
  664|  1.47M|  APInt &operator=(APInt &&that) {
  665|  1.47M|    if (!isSingleWord()) {
  ------------------
  |  Branch (665:9): [True: 1.47M, False: 107]
  ------------------
  666|       |      // The MSVC STL shipped in 2013 requires that self move assignment be a
  667|       |      // no-op.  Otherwise algorithms like stable_sort will produce answers
  668|       |      // where half of the output is left in a moved-from state.
  669|  1.47M|      if (this == &that)
  ------------------
  |  Branch (669:11): [True: 0, False: 1.47M]
  ------------------
  670|      0|        return *this;
  671|  1.47M|      delete[] pVal;
  672|  1.47M|    }
  673|       |
  674|       |    // Use memcpy so that type based alias analysis sees both VAL and pVal
  675|       |    // as modified.
  676|  1.47M|    memcpy(&VAL, &that.VAL, sizeof(uint64_t));
  677|       |
  678|       |    // If 'this == &that', avoid zeroing our own bitwidth by storing to 'that'
  679|       |    // first.
  680|  1.47M|    unsigned ThatBitWidth = that.BitWidth;
  681|  1.47M|    that.BitWidth = 0;
  682|  1.47M|    BitWidth = ThatBitWidth;
  683|       |
  684|  1.47M|    return *this;
  685|  1.47M|  }
_ZN7llvm_ks5APIntoREm:
  717|  1.30M|  APInt &operator|=(uint64_t RHS) {
  718|  1.30M|    if (isSingleWord()) {
  ------------------
  |  Branch (718:9): [True: 0, False: 1.30M]
  ------------------
  719|      0|      VAL |= RHS;
  720|      0|      clearUnusedBits();
  721|  1.30M|    } else {
  722|  1.30M|      pVal[0] |= RHS;
  723|  1.30M|    }
  724|  1.30M|    return *this;
  725|  1.30M|  }
_ZN7llvm_ks5APIntlSEj:
  761|  1.30M|  APInt &operator<<=(unsigned shiftAmt) {
  762|  1.30M|    *this = shl(shiftAmt);
  763|  1.30M|    return *this;
  764|  1.30M|  }
_ZNK7llvm_ks5APInt3shlEj:
  869|  1.30M|  APInt LLVM_ATTRIBUTE_UNUSED_RESULT shl(unsigned shiftAmt) const {
  870|  1.30M|    assert(shiftAmt <= BitWidth && "Invalid shift amount");
  ------------------
  |  Branch (870:5): [True: 1.30M, False: 0]
  |  Branch (870:5): [True: 1.30M, Folded]
  |  Branch (870:5): [True: 1.30M, False: 0]
  ------------------
  871|  1.30M|    if (isSingleWord()) {
  ------------------
  |  Branch (871:9): [True: 0, False: 1.30M]
  ------------------
  872|      0|      if (shiftAmt >= BitWidth)
  ------------------
  |  Branch (872:11): [True: 0, False: 0]
  ------------------
  873|      0|        return APInt(BitWidth, 0); // avoid undefined shift results
  874|      0|      return APInt(BitWidth, VAL << shiftAmt);
  875|      0|    }
  876|  1.30M|    return shlSlowCase(shiftAmt);
  877|  1.30M|  }
_ZNK7llvm_ks5APInt11getBitWidthEv:
 1274|   822k|  unsigned getBitWidth() const { return BitWidth; }
_ZNK7llvm_ks5APInt11getNumWordsEv:
 1281|  17.4M|  unsigned getNumWords() const { return getNumWords(BitWidth); }
_ZN7llvm_ks5APInt11getNumWordsEj:
 1289|  17.4M|  static unsigned getNumWords(unsigned BitWidth) {
 1290|  17.4M|    return ((uint64_t)BitWidth + APINT_BITS_PER_WORD - 1) / APINT_BITS_PER_WORD;
 1291|  17.4M|  }
_ZNK7llvm_ks5APInt13getActiveBitsEv:
 1298|   695k|  unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); }
_ZNK7llvm_ks5APInt12getZExtValueEv:
 1328|   237k|  uint64_t getZExtValue() const {
 1329|   237k|    if (isSingleWord())
  ------------------
  |  Branch (1329:9): [True: 126k, False: 111k]
  ------------------
 1330|   126k|      return VAL;
 1331|   237k|    assert(getActiveBits() <= 64 && "Too many bits for uint64_t");
  ------------------
  |  Branch (1331:5): [True: 111k, False: 0]
  |  Branch (1331:5): [True: 111k, Folded]
  |  Branch (1331:5): [True: 111k, False: 0]
  ------------------
 1332|   111k|    return pVal[0];
 1333|   111k|  }
_ZNK7llvm_ks5APInt17countLeadingZerosEv:
 1362|   695k|  unsigned countLeadingZeros() const {
 1363|   695k|    if (isSingleWord()) {
  ------------------
  |  Branch (1363:9): [True: 177k, False: 517k]
  ------------------
 1364|   177k|      unsigned unusedBits = APINT_BITS_PER_WORD - BitWidth;
 1365|   177k|      return llvm_ks::countLeadingZeros(VAL) - unusedBits;
 1366|   177k|    }
 1367|   517k|    return countLeadingZerosSlowCase();
 1368|   695k|  }
_ZN7llvm_ks8APIntOps4lshrERKNS_5APIntEj:
 1841|    680|inline APInt lshr(const APInt &LHS, unsigned shiftAmt) {
 1842|    680|  return LHS.lshr(shiftAmt);
 1843|    680|}
_ZN7llvm_ks8APIntOps3shlERKNS_5APIntEj:
 1848|    340|inline APInt shl(const APInt &LHS, unsigned shiftAmt) {
 1849|    340|  return LHS.shl(shiftAmt);
 1850|    340|}

_ZNK7llvm_ks8ArrayRefINS_18SubtargetFeatureKVEE5beginEv:
  123|   149k|    iterator begin() const { return Data; }
_ZNK7llvm_ks8ArrayRefINS_18SubtargetFeatureKVEE3endEv:
  124|   163k|    iterator end() const { return Data + Length; }
_ZN7llvm_ks8ArrayRefINS_7SMRangeEEC2ENS_8NoneTypeE:
   54|  21.7k|    /*implicit*/ ArrayRef(NoneType) : Data(nullptr), Length(0) {}
_ZN7llvm_ks8ArrayRefINS_7SMFixItEEC2ENS_8NoneTypeE:
   54|  22.6k|    /*implicit*/ ArrayRef(NoneType) : Data(nullptr), Length(0) {}
_ZN7llvm_ks8ArrayRefINSt3__14pairIjjEEEC2INS1_9allocatorIS3_EEEERKNS1_6vectorIS3_T_EE:
   79|    841|      : Data(Vec.data()), Length(Vec.size()) {}
_ZN7llvm_ks15MutableArrayRefINS_8AsmTokenEEC2ERS1_:
  233|  20.0k|    /*implicit*/ MutableArrayRef(T &OneElt) : ArrayRef<T>(OneElt) {}
_ZN7llvm_ks8ArrayRefINS_8AsmTokenEEC2ERKS1_:
   58|  20.0k|      : Data(&OneElt), Length(1) {}
AsmParser.cpp:_ZNK7llvm_ks8ArrayRefIN12_GLOBAL__N_119MCAsmMacroParameterEE4sizeEv:
  135|  19.0M|    size_t size() const { return Length; }
AsmParser.cpp:_ZNK7llvm_ks8ArrayRefIN12_GLOBAL__N_119MCAsmMacroParameterEE4backEv:
  144|  27.2k|    const T &back() const {
  145|  27.2k|      assert(!empty());
  ------------------
  |  Branch (145:7): [True: 27.2k, False: 0]
  ------------------
  146|  27.2k|      return Data[Length-1];
  147|  27.2k|    }
AsmParser.cpp:_ZNK7llvm_ks8ArrayRefIN12_GLOBAL__N_119MCAsmMacroParameterEE5emptyEv:
  130|  27.2k|    bool empty() const { return Length == 0; }
_ZNK7llvm_ks8ArrayRefINSt3__16vectorINS_8AsmTokenENS1_9allocatorIS3_EEEEE4sizeEv:
  135|   319k|    size_t size() const { return Length; }
_ZNK7llvm_ks8ArrayRefINSt3__16vectorINS_8AsmTokenENS1_9allocatorIS3_EEEEEixEm:
  185|  3.03k|    const T &operator[](size_t Index) const {
  186|  3.03k|      assert(Index < Length && "Invalid index!");
  ------------------
  |  Branch (186:7): [True: 3.03k, False: 0]
  |  Branch (186:7): [True: 3.03k, Folded]
  |  Branch (186:7): [True: 3.03k, False: 0]
  ------------------
  187|  3.03k|      return Data[Index];
  188|  3.03k|    }
AsmParser.cpp:_ZNK7llvm_ks8ArrayRefIN12_GLOBAL__N_119MCAsmMacroParameterEEixEm:
  185|  54.9k|    const T &operator[](size_t Index) const {
  186|  54.9k|      assert(Index < Length && "Invalid index!");
  ------------------
  |  Branch (186:7): [True: 54.9k, False: 0]
  |  Branch (186:7): [True: 54.9k, Folded]
  |  Branch (186:7): [True: 54.9k, False: 0]
  ------------------
  187|  54.9k|      return Data[Index];
  188|  54.9k|    }
AsmParser.cpp:_ZN7llvm_ks8ArrayRefIN12_GLOBAL__N_119MCAsmMacroParameterEEC2INSt3__19allocatorIS2_EEEERKNS5_6vectorIS2_T_EE:
   79|  30.4k|      : Data(Vec.data()), Length(Vec.size()) {}
_ZN7llvm_ks8ArrayRefINSt3__16vectorINS_8AsmTokenENS1_9allocatorIS3_EEEEEC2INS4_IS6_EEEERKNS2_IS6_T_EE:
   79|  29.7k|      : Data(Vec.data()), Length(Vec.size()) {}
AsmParser.cpp:_ZN7llvm_ks8ArrayRefIN12_GLOBAL__N_119MCAsmMacroParameterEEC2ENS_8NoneTypeE:
   54|  19.0M|    /*implicit*/ ArrayRef(NoneType) : Data(nullptr), Length(0) {}
_ZN7llvm_ks8ArrayRefINSt3__16vectorINS_8AsmTokenENS1_9allocatorIS3_EEEEEC2ENS_8NoneTypeE:
   54|  19.0M|    /*implicit*/ ArrayRef(NoneType) : Data(nullptr), Length(0) {}
AsmParser.cpp:_ZN7llvm_ks8ArrayRefIN12_GLOBAL__N_119MCAsmMacroParameterEEC2ERKS2_:
   58|  25.6k|      : Data(&OneElt), Length(1) {}
_ZN7llvm_ks8ArrayRefINSt3__16vectorINS_8AsmTokenENS1_9allocatorIS3_EEEEEC2ERKS6_:
   58|  25.6k|      : Data(&OneElt), Length(1) {}
_ZN7llvm_ks8ArrayRefINS_7SMRangeEEC2ERKS1_:
   58|     50|      : Data(&OneElt), Length(1) {}
_ZNK7llvm_ks8ArrayRefINS_7SMFixItEE5emptyEv:
  130|  18.3k|    bool empty() const { return Length == 0; }
_ZN7llvm_ks8ArrayRefINS_7SMFixItEEC2IvEERKNS_25SmallVectorTemplateCommonIS1_T_EE:
   73|  18.3k|      : Data(Vec.data()), Length(Vec.size()) {
   74|  18.3k|    }
_ZNK7llvm_ks8ArrayRefINS_7SMRangeEE4sizeEv:
  135|  21.7k|    size_t size() const { return Length; }
_ZNK7llvm_ks8ArrayRefINS_7SMRangeEEixEm:
  185|     50|    const T &operator[](size_t Index) const {
  186|     50|      assert(Index < Length && "Invalid index!");
  ------------------
  |  Branch (186:7): [True: 50, False: 0]
  |  Branch (186:7): [True: 50, Folded]
  |  Branch (186:7): [True: 50, False: 0]
  ------------------
  187|     50|      return Data[Index];
  188|     50|    }
_ZN7llvm_ks8ArrayRefINSt3__14pairIjjEEEC2IvEERKNS_25SmallVectorTemplateCommonIS3_T_EE:
   73|  21.7k|      : Data(Vec.data()), Length(Vec.size()) {
   74|  21.7k|    }
_ZNK7llvm_ks8ArrayRefINSt3__14pairIjjEEE3vecEv:
  193|  22.6k|    std::vector<T> vec() const {
  194|  22.6k|      return std::vector<T>(Data, Data+Length);
  195|  22.6k|    }
_ZNK7llvm_ks8ArrayRefINS_7SMFixItEE5beginEv:
  123|  22.6k|    iterator begin() const { return Data; }
_ZNK7llvm_ks8ArrayRefINS_7SMFixItEE3endEv:
  124|  22.6k|    iterator end() const { return Data + Length; }
_ZN7llvm_ks12makeArrayRefIcEENS_8ArrayRefIT_EEPKS2_m:
  313|  18.3k|  ArrayRef<T> makeArrayRef(const T *data, size_t length) {
  314|  18.3k|    return ArrayRef<T>(data, length);
  315|  18.3k|  }
_ZN7llvm_ks8ArrayRefIcEC2EPKcm:
   62|  18.3k|      : Data(data), Length(length) {}
_ZNK7llvm_ks8ArrayRefIcE4sizeEv:
  135|  7.04k|    size_t size() const { return Length; }
_ZN7llvm_ks15MutableArrayRefINS_8AsmTokenEEC2ILm2EEERAT__S1_:
  253|  1.19k|      : ArrayRef<T>(Arr) {}
_ZN7llvm_ks8ArrayRefINS_8AsmTokenEEC2ILm2EEERAT__KS1_:
   84|  1.19k|      : Data(Arr), Length(N) {}
_ZN7llvm_ks8ArrayRefINS_18SubtargetFeatureKVEEC2ILm8EEERAT__KS1_:
   84|  13.6k|      : Data(Arr), Length(N) {}
_ZN7llvm_ks8ArrayRefINS_18SubtargetFeatureKVEEC2ILm2EEERAT__KS1_:
   84|  13.6k|      : Data(Arr), Length(N) {}
_ZN7llvm_ks12makeArrayRefINS_11RISCVSysReg6SysRegELm221EEENS_8ArrayRefIT_EERAT0__KS4_:
  353|     12|  ArrayRef<T> makeArrayRef(const T (&Arr)[N]) {
  354|     12|    return ArrayRef<T>(Arr);
  355|     12|  }
_ZN7llvm_ks8ArrayRefINS_11RISCVSysReg6SysRegEEC2ILm221EEERAT__KS2_:
   84|     12|      : Data(Arr), Length(N) {}
_ZNK7llvm_ks8ArrayRefINS_11RISCVSysReg6SysRegEE5beginEv:
  123|     12|    iterator begin() const { return Data; }
_ZNK7llvm_ks8ArrayRefINS_11RISCVSysReg6SysRegEE3endEv:
  124|     24|    iterator end() const { return Data + Length; }
RISCVBaseInfo.cpp:_ZN7llvm_ks12makeArrayRefIZNS_11RISCVSysReg18lookupSysRegByNameENS_9StringRefEE9IndexTypeLm221EEENS_8ArrayRefIT_EERAT0__KS5_:
  353|     59|  ArrayRef<T> makeArrayRef(const T (&Arr)[N]) {
  354|     59|    return ArrayRef<T>(Arr);
  355|     59|  }
RISCVBaseInfo.cpp:_ZN7llvm_ks8ArrayRefIZNS_11RISCVSysReg18lookupSysRegByNameENS_9StringRefEE9IndexTypeEC2ILm221EEERAT__KS3_:
   84|     59|      : Data(Arr), Length(N) {}
RISCVBaseInfo.cpp:_ZNK7llvm_ks8ArrayRefIZNS_11RISCVSysReg18lookupSysRegByNameENS_9StringRefEE9IndexTypeE5beginEv:
  123|     59|    iterator begin() const { return Data; }
RISCVBaseInfo.cpp:_ZNK7llvm_ks8ArrayRefIZNS_11RISCVSysReg18lookupSysRegByNameENS_9StringRefEE9IndexTypeE3endEv:
  124|    118|    iterator end() const { return Data + Length; }
_ZN7llvm_ks8ArrayRefINS_7MCFixupEEC2Ev:
   51|  7.24k|    /*implicit*/ ArrayRef() : Data(nullptr), Length(0) {}
_ZN7llvm_ks15MutableArrayRefIcEC2Ev:
  227|  7.24k|    /*implicit*/ MutableArrayRef() : ArrayRef<T>() {}
_ZN7llvm_ks8ArrayRefIcEC2Ev:
   51|  7.24k|    /*implicit*/ ArrayRef() : Data(nullptr), Length(0) {}
_ZN7llvm_ks8ArrayRefINS_7MCFixupEEC2IvEERKNS_25SmallVectorTemplateCommonIS1_T_EE:
   73|  7.24k|      : Data(Vec.data()), Length(Vec.size()) {
   74|  7.24k|    }
_ZN7llvm_ks15MutableArrayRefIcEC2ERNS_15SmallVectorImplIcEE:
  244|  7.24k|    : ArrayRef<T>(Vec) {}
_ZN7llvm_ks8ArrayRefIcEC2IvEERKNS_25SmallVectorTemplateCommonIcT_EE:
   73|  7.24k|      : Data(Vec.data()), Length(Vec.size()) {
   74|  7.24k|    }
_ZNK7llvm_ks8ArrayRefINS_7MCFixupEE5beginEv:
  123|  7.24k|    iterator begin() const { return Data; }
_ZNK7llvm_ks8ArrayRefINS_7MCFixupEE3endEv:
  124|  7.24k|    iterator end() const { return Data + Length; }
_ZNK7llvm_ks15MutableArrayRefIcE4dataEv:
  255|  7.04k|    T *data() const { return const_cast<T*>(ArrayRef<T>::data()); }
_ZNK7llvm_ks8ArrayRefIcE4dataEv:
  132|  7.04k|    const T *data() const { return Data; }
_ZNK7llvm_ks8ArrayRefINS_8AsmTokenEE4sizeEv:
  135|  66.0k|    size_t size() const { return Length; }
_ZNK7llvm_ks15MutableArrayRefINS_8AsmTokenEEixEm:
  296|  22.4k|    T &operator[](size_t Index) const {
  297|  22.4k|      assert(Index < this->size() && "Invalid index!");
  ------------------
  |  Branch (297:7): [True: 22.4k, False: 0]
  |  Branch (297:7): [True: 22.4k, Folded]
  |  Branch (297:7): [True: 22.4k, False: 0]
  ------------------
  298|  22.4k|      return data()[Index];
  299|  22.4k|    }
_ZNK7llvm_ks15MutableArrayRefINS_8AsmTokenEE4dataEv:
  255|  22.4k|    T *data() const { return const_cast<T*>(ArrayRef<T>::data()); }
_ZNK7llvm_ks8ArrayRefINS_8AsmTokenEE4dataEv:
  132|  22.4k|    const T *data() const { return Data; }
_ZNK7llvm_ks8ArrayRefINS_18SubtargetFeatureKVEE4sizeEv:
  135|  13.6k|    size_t size() const { return Length; }
_ZN7llvm_ks8ArrayRefINS_15SubtargetInfoKVEEC2EPKS1_m:
   62|  13.6k|      : Data(data), Length(length) {}
_ZNK7llvm_ks8ArrayRefINS_15SubtargetInfoKVEE5beginEv:
  123|  27.2k|    iterator begin() const { return Data; }
_ZNK7llvm_ks8ArrayRefINS_15SubtargetInfoKVEE3endEv:
  124|  27.2k|    iterator end() const { return Data + Length; }
_ZNK7llvm_ks8ArrayRefINS_18SubtargetFeatureKVEE5emptyEv:
  130|  27.2k|    bool empty() const { return Length == 0; }

_ZN7llvm_ks8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEEEjiS3_S6_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 13.6k, False: 0]
  ------------------
  266|  13.6k|      return;
  267|       |
  268|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 0, False: 0]
  ------------------
  270|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 0, False: 0]
  ------------------
  271|      0|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 0, False: 0]
  ------------------
  272|      0|        P->getSecond().~ValueT();
  273|      0|      P->getFirst().~KeyT();
  274|      0|    }
  275|      0|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEEEjiS3_S6_E13getNumBucketsEv:
  381|  13.6k|  unsigned getNumBuckets() const {
  382|  13.6k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  13.6k|  }
_ZNK7llvm_ks8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEE13getNumBucketsEv:
  674|  13.6k|  unsigned getNumBuckets() const {
  675|  13.6k|    return NumBuckets;
  676|  13.6k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEEES3_jS5_S8_E13getNumBucketsEv:
  381|     69|  unsigned getNumBuckets() const {
  382|     69|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|     69|  }
_ZNK7llvm_ks8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_jEEE13getNumBucketsEv:
  674|     69|  unsigned getNumBuckets() const {
  675|     69|    return NumBuckets;
  676|     69|  }
_ZN7llvm_ks8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_jEEE15allocateBucketsEj:
  678|     69|  bool allocateBuckets(unsigned Num) {
  679|     69|    NumBuckets = Num;
  680|     69|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 69, False: 0]
  ------------------
  681|     69|      Buckets = nullptr;
  682|     69|      return false;
  683|     69|    }
  684|       |
  685|      0|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|      0|    return true;
  687|     69|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E13getNumBucketsEv:
  381|  19.3k|  unsigned getNumBuckets() const {
  382|  19.3k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  19.3k|  }
_ZNK7llvm_ks8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE13getNumBucketsEv:
  674|  19.3k|  unsigned getNumBuckets() const {
  675|  19.3k|    return NumBuckets;
  676|  19.3k|  }
_ZN7llvm_ks8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_jEEE4initEj:
  612|     69|  void init(unsigned InitBuckets) {
  613|     69|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 69]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|     69|    } else {
  616|     69|      NumEntries = 0;
  617|     69|      NumTombstones = 0;
  618|     69|    }
  619|     69|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEEES3_jS5_S8_E10destroyAllEv:
  264|     69|  void destroyAll() {
  265|     69|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 69, False: 0]
  ------------------
  266|     69|      return;
  267|       |
  268|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 0, False: 0]
  ------------------
  270|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 0, False: 0]
  ------------------
  271|      0|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 0, False: 0]
  ------------------
  272|      0|        P->getSecond().~ValueT();
  273|      0|      P->getFirst().~KeyT();
  274|      0|    }
  275|      0|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS3_EENS4_12DenseSetPairIS3_EEEES3_S5_S7_S9_E13getNumBucketsEv:
  381|  13.6k|  unsigned getNumBuckets() const {
  382|  13.6k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  13.6k|  }
_ZNK7llvm_ks8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS2_EENS3_12DenseSetPairIS2_EEE13getNumBucketsEv:
  674|  13.6k|  unsigned getNumBuckets() const {
  675|  13.6k|    return NumBuckets;
  676|  13.6k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS3_EENS4_12DenseSetPairIS3_EEEES3_S5_S7_S9_E13getNumEntriesEv:
  351|  13.6k|  unsigned getNumEntries() const {
  352|  13.6k|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|  13.6k|  }
_ZNK7llvm_ks8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS2_EENS3_12DenseSetPairIS2_EEE13getNumEntriesEv:
  656|  13.6k|  unsigned getNumEntries() const {
  657|  13.6k|    return NumEntries;
  658|  13.6k|  }
_ZN7llvm_ks8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS2_EENS3_12DenseSetPairIS2_EEE15allocateBucketsEj:
  678|  13.6k|  bool allocateBuckets(unsigned Num) {
  679|  13.6k|    NumBuckets = Num;
  680|  13.6k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 0]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|      0|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|      0|    return true;
  687|  13.6k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS3_EENS4_12DenseSetPairIS3_EEEES3_S5_S7_S9_E16getNumTombstonesEv:
  363|  13.6k|  unsigned getNumTombstones() const {
  364|  13.6k|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|  13.6k|  }
_ZNK7llvm_ks8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS2_EENS3_12DenseSetPairIS2_EEE16getNumTombstonesEv:
  663|  13.6k|  unsigned getNumTombstones() const {
  664|  13.6k|    return NumTombstones;
  665|  13.6k|  }
_ZN7llvm_ks8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEE15allocateBucketsEj:
  678|  13.6k|  bool allocateBuckets(unsigned Num) {
  679|  13.6k|    NumBuckets = Num;
  680|  13.6k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 0]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|      0|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|      0|    return true;
  687|  13.6k|  }
_ZN7llvm_ks8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS2_EENS3_12DenseSetPairIS2_EEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS3_EENS4_12DenseSetPairIS3_EEEES3_S5_S7_S9_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 13.6k, False: 0]
  ------------------
  266|  13.6k|      return;
  267|       |
  268|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 0, False: 0]
  ------------------
  270|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 0, False: 0]
  ------------------
  271|      0|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 0, False: 0]
  ------------------
  272|      0|        P->getSecond().~ValueT();
  273|      0|      P->getFirst().~KeyT();
  274|      0|    }
  275|      0|  }
_ZN7llvm_ks8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_jEEEC2Ej:
  553|     69|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|     69|    init(NumInitBuckets);
  555|     69|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEEES3_jS5_S8_EC2Ev:
  262|     69|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPNS_9MCSectionEjNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_jEEED2Ev:
  573|     69|  ~DenseMap() {
  574|     69|    this->destroyAll();
  575|     69|    operator delete(Buckets);
  576|     69|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE15allocateBucketsEj:
  678|  27.2k|  bool allocateBuckets(unsigned Num) {
  679|  27.2k|    NumBuckets = Num;
  680|  27.2k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 13.6k]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|  13.6k|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|  13.6k|    return true;
  687|  27.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E9initEmptyEv:
  277|  13.6k|  void initEmpty() {
  278|  13.6k|    setNumEntries(0);
  279|  13.6k|    setNumTombstones(0);
  280|       |
  281|  13.6k|    assert((getNumBuckets() & (getNumBuckets()-1)) == 0 &&
  ------------------
  |  Branch (281:5): [True: 13.6k, False: 0]
  |  Branch (281:5): [True: 13.6k, Folded]
  |  Branch (281:5): [True: 13.6k, False: 0]
  ------------------
  282|  13.6k|           "# initial buckets must be a power of two!");
  283|  13.6k|    const KeyT EmptyKey = getEmptyKey();
  284|   886k|    for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B)
  ------------------
  |  Branch (284:59): [True: 872k, False: 13.6k]
  ------------------
  285|   872k|      ::new (&B->getFirst()) KeyT(EmptyKey);
  286|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13setNumEntriesEj:
  354|  41.2k|  void setNumEntries(unsigned Num) {
  355|  41.2k|    static_cast<DerivedT *>(this)->setNumEntries(Num);
  356|  41.2k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE13setNumEntriesEj:
  659|  41.2k|  void setNumEntries(unsigned Num) {
  660|  41.2k|    NumEntries = Num;
  661|  41.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16setNumTombstonesEj:
  366|  27.2k|  void setNumTombstones(unsigned Num) {
  367|  27.2k|    static_cast<DerivedT *>(this)->setNumTombstones(Num);
  368|  27.2k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE16setNumTombstonesEj:
  666|  27.2k|  void setNumTombstones(unsigned Num) {
  667|  27.2k|    NumTombstones = Num;
  668|  27.2k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13getNumBucketsEv:
  381|   164k|  unsigned getNumBuckets() const {
  382|   164k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|   164k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE13getNumBucketsEv:
  674|   164k|  unsigned getNumBuckets() const {
  675|   164k|    return NumBuckets;
  676|   164k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E11getEmptyKeyEv:
  343|  68.8k|  static const KeyT getEmptyKey() {
  344|  68.8k|    return KeyInfoT::getEmptyKey();
  345|  68.8k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E10getBucketsEv:
  378|  81.7k|  BucketT *getBuckets() {
  379|  81.7k|    return static_cast<DerivedT *>(this)->getBuckets();
  380|  81.7k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE10getBucketsEv:
  670|   109k|  BucketT *getBuckets() const {
  671|   109k|    return Buckets;
  672|   109k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13getBucketsEndEv:
  384|  40.8k|  BucketT *getBucketsEnd() {
  385|  40.8k|    return getBuckets() + getNumBuckets();
  386|  40.8k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFEPNS_11MCSymbolELFEE8getFirstEv:
   40|  3.54M|  KeyT &getFirst() { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE15allocateBucketsEj:
  678|  13.6k|  bool allocateBuckets(unsigned Num) {
  679|  13.6k|    NumBuckets = Num;
  680|  13.6k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 0]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|      0|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|      0|    return true;
  687|  13.6k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13getNumBucketsEv:
  381|  13.6k|  unsigned getNumBuckets() const {
  382|  13.6k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  13.6k|  }
_ZNK7llvm_ks8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE13getNumBucketsEv:
  674|  13.6k|  unsigned getNumBuckets() const {
  675|  13.6k|    return NumBuckets;
  676|  13.6k|  }
_ZN7llvm_ks8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS2_EEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS3_EEEEjS3_S5_S8_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS2_EEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS2_EEE15allocateBucketsEj:
  678|  13.6k|  bool allocateBuckets(unsigned Num) {
  679|  13.6k|    NumBuckets = Num;
  680|  13.6k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 0]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|      0|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|      0|    return true;
  687|  13.6k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS3_EEEEjS3_S5_S8_E13getNumBucketsEv:
  381|  13.6k|  unsigned getNumBuckets() const {
  382|  13.6k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  13.6k|  }
_ZNK7llvm_ks8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS2_EEE13getNumBucketsEv:
  674|  13.6k|  unsigned getNumBuckets() const {
  675|  13.6k|    return NumBuckets;
  676|  13.6k|  }
_ZN7llvm_ks8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS2_EENS3_12DenseSetPairIS2_EEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS3_EENS4_12DenseSetPairIS3_EEEES3_S5_S7_S9_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS2_EENS3_12DenseSetPairIS2_EEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 0, False: 13.6k]
  ------------------
  266|      0|      return;
  267|       |
  268|  13.6k|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|   886k|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 872k, False: 13.6k]
  ------------------
  270|   872k|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 0, False: 872k]
  ------------------
  271|      0|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 0, False: 0]
  ------------------
  272|      0|        P->getSecond().~ValueT();
  273|   872k|      P->getFirst().~KeyT();
  274|   872k|    }
  275|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E15getTombstoneKeyEv:
  346|  41.2k|  static const KeyT getTombstoneKey() {
  347|  41.2k|    return KeyInfoT::getTombstoneKey();
  348|  41.2k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFEPNS_11MCSymbolELFEE9getSecondEv:
   42|  27.9k|  ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
_ZN7llvm_ks8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINSt3__14pairIjjEEPNS_8MCSymbolENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 13.6k, False: 0]
  ------------------
  266|  13.6k|      return;
  267|       |
  268|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 0, False: 0]
  ------------------
  270|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 0, False: 0]
  ------------------
  271|      0|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 0, False: 0]
  ------------------
  272|      0|        P->getSecond().~ValueT();
  273|      0|      P->getFirst().~KeyT();
  274|      0|    }
  275|      0|  }
_ZN7llvm_ks8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS2_EEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS3_EEEEjS3_S5_S8_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 13.6k, False: 0]
  ------------------
  266|  13.6k|      return;
  267|       |
  268|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 0, False: 0]
  ------------------
  270|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 0, False: 0]
  ------------------
  271|      0|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 0, False: 0]
  ------------------
  272|      0|        P->getSecond().~ValueT();
  273|      0|      P->getFirst().~KeyT();
  274|      0|    }
  275|      0|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E5clearEv:
   91|  13.6k|  void clear() {
   92|  13.6k|    incrementEpoch();
   93|  13.6k|    if (getNumEntries() == 0 && getNumTombstones() == 0) return;
  ------------------
  |  Branch (93:9): [True: 0, False: 13.6k]
  |  Branch (93:33): [True: 0, False: 0]
  ------------------
   94|       |
   95|       |    // If the capacity of the array is huge, and the # elements used is small,
   96|       |    // shrink the array.
   97|  13.6k|    if (getNumEntries() * 4 < getNumBuckets() && getNumBuckets() > 64) {
  ------------------
  |  Branch (97:9): [True: 13.6k, False: 0]
  |  Branch (97:50): [True: 0, False: 13.6k]
  ------------------
   98|      0|      shrink_and_clear();
   99|      0|      return;
  100|      0|    }
  101|       |
  102|  13.6k|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  103|  13.6k|    unsigned NumEntries = getNumEntries();
  104|   886k|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (104:59): [True: 872k, False: 13.6k]
  ------------------
  105|   872k|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey)) {
  ------------------
  |  Branch (105:11): [True: 13.9k, False: 858k]
  ------------------
  106|  13.9k|        if (!KeyInfoT::isEqual(P->getFirst(), TombstoneKey)) {
  ------------------
  |  Branch (106:13): [True: 13.9k, False: 0]
  ------------------
  107|  13.9k|          P->getSecond().~ValueT();
  108|  13.9k|          --NumEntries;
  109|  13.9k|        }
  110|  13.9k|        P->getFirst() = EmptyKey;
  111|  13.9k|      }
  112|   872k|    }
  113|  13.6k|    assert(NumEntries == 0 && "Node count imbalance!");
  ------------------
  |  Branch (113:5): [True: 13.6k, False: 0]
  |  Branch (113:5): [True: 13.6k, Folded]
  |  Branch (113:5): [True: 13.6k, False: 0]
  ------------------
  114|  13.6k|    setNumEntries(0);
  115|  13.6k|    setNumTombstones(0);
  116|  13.6k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13getNumEntriesEv:
  351|  68.8k|  unsigned getNumEntries() const {
  352|  68.8k|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|  68.8k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE13getNumEntriesEv:
  656|  68.8k|  unsigned getNumEntries() const {
  657|  68.8k|    return NumEntries;
  658|  68.8k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16getNumTombstonesEv:
  363|    329|  unsigned getNumTombstones() const {
  364|    329|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|    329|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE16getNumTombstonesEv:
  663|    329|  unsigned getNumTombstones() const {
  664|    329|    return NumTombstones;
  665|    329|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS3_EEEEjS3_S5_S8_E5clearEv:
   91|  13.6k|  void clear() {
   92|  13.6k|    incrementEpoch();
   93|  13.6k|    if (getNumEntries() == 0 && getNumTombstones() == 0) return;
  ------------------
  |  Branch (93:9): [True: 13.6k, False: 0]
  |  Branch (93:33): [True: 13.6k, False: 0]
  ------------------
   94|       |
   95|       |    // If the capacity of the array is huge, and the # elements used is small,
   96|       |    // shrink the array.
   97|      0|    if (getNumEntries() * 4 < getNumBuckets() && getNumBuckets() > 64) {
  ------------------
  |  Branch (97:9): [True: 0, False: 0]
  |  Branch (97:50): [True: 0, False: 0]
  ------------------
   98|      0|      shrink_and_clear();
   99|      0|      return;
  100|      0|    }
  101|       |
  102|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  103|      0|    unsigned NumEntries = getNumEntries();
  104|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (104:59): [True: 0, False: 0]
  ------------------
  105|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey)) {
  ------------------
  |  Branch (105:11): [True: 0, False: 0]
  ------------------
  106|      0|        if (!KeyInfoT::isEqual(P->getFirst(), TombstoneKey)) {
  ------------------
  |  Branch (106:13): [True: 0, False: 0]
  ------------------
  107|      0|          P->getSecond().~ValueT();
  108|      0|          --NumEntries;
  109|      0|        }
  110|      0|        P->getFirst() = EmptyKey;
  111|      0|      }
  112|      0|    }
  113|      0|    assert(NumEntries == 0 && "Node count imbalance!");
  ------------------
  |  Branch (113:5): [True: 0, False: 0]
  |  Branch (113:5): [True: 0, Folded]
  |  Branch (113:5): [True: 0, False: 0]
  ------------------
  114|      0|    setNumEntries(0);
  115|      0|    setNumTombstones(0);
  116|      0|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS3_EEEEjS3_S5_S8_E13getNumEntriesEv:
  351|  14.5k|  unsigned getNumEntries() const {
  352|  14.5k|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|  14.5k|  }
_ZNK7llvm_ks8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS2_EEE13getNumEntriesEv:
  656|  14.5k|  unsigned getNumEntries() const {
  657|  14.5k|    return NumEntries;
  658|  14.5k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS3_EEEEjS3_S5_S8_E16getNumTombstonesEv:
  363|  13.6k|  unsigned getNumTombstones() const {
  364|  13.6k|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|  13.6k|  }
_ZNK7llvm_ks8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS2_EEE16getNumTombstonesEv:
  663|  13.6k|  unsigned getNumTombstones() const {
  664|  13.6k|    return NumTombstones;
  665|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPNS_9MCSectionENS_6detail13DenseSetEmptyENS_12DenseMapInfoIS3_EENS4_12DenseSetPairIS3_EEEES3_S5_S7_S9_E5clearEv:
   91|  13.6k|  void clear() {
   92|  13.6k|    incrementEpoch();
   93|  13.6k|    if (getNumEntries() == 0 && getNumTombstones() == 0) return;
  ------------------
  |  Branch (93:9): [True: 13.6k, False: 0]
  |  Branch (93:33): [True: 13.6k, False: 0]
  ------------------
   94|       |
   95|       |    // If the capacity of the array is huge, and the # elements used is small,
   96|       |    // shrink the array.
   97|      0|    if (getNumEntries() * 4 < getNumBuckets() && getNumBuckets() > 64) {
  ------------------
  |  Branch (97:9): [True: 0, False: 0]
  |  Branch (97:50): [True: 0, False: 0]
  ------------------
   98|      0|      shrink_and_clear();
   99|      0|      return;
  100|      0|    }
  101|       |
  102|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  103|      0|    unsigned NumEntries = getNumEntries();
  104|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (104:59): [True: 0, False: 0]
  ------------------
  105|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey)) {
  ------------------
  |  Branch (105:11): [True: 0, False: 0]
  ------------------
  106|      0|        if (!KeyInfoT::isEqual(P->getFirst(), TombstoneKey)) {
  ------------------
  |  Branch (106:13): [True: 0, False: 0]
  ------------------
  107|      0|          P->getSecond().~ValueT();
  108|      0|          --NumEntries;
  109|      0|        }
  110|      0|        P->getFirst() = EmptyKey;
  111|      0|      }
  112|      0|    }
  113|      0|    assert(NumEntries == 0 && "Node count imbalance!");
  ------------------
  |  Branch (113:5): [True: 0, False: 0]
  |  Branch (113:5): [True: 0, Folded]
  |  Branch (113:5): [True: 0, False: 0]
  ------------------
  114|      0|    setNumEntries(0);
  115|      0|    setNumTombstones(0);
  116|      0|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_EixEOS4_:
  245|  13.9k|  ValueT &operator[](KeyT &&Key) {
  246|  13.9k|    return FindAndConstruct(std::move(Key)).second;
  247|  13.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16FindAndConstructEOS4_:
  237|  13.9k|  value_type& FindAndConstruct(KeyT &&Key) {
  238|  13.9k|    BucketT *TheBucket;
  239|  13.9k|    if (LookupBucketFor(Key, TheBucket))
  ------------------
  |  Branch (239:9): [True: 0, False: 13.9k]
  ------------------
  240|      0|      return *TheBucket;
  241|       |
  242|  13.9k|    return *InsertIntoBucket(std::move(Key), ValueT(), TheBucket);
  243|  13.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E15LookupBucketForIS4_EEbRKT_RPSB_:
  519|  27.5k|  bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) {
  520|  27.5k|    const BucketT *ConstFoundBucket;
  521|  27.5k|    bool Result = const_cast<const DenseMapBase *>(this)
  522|  27.5k|      ->LookupBucketFor(Val, ConstFoundBucket);
  523|  27.5k|    FoundBucket = const_cast<BucketT *>(ConstFoundBucket);
  524|  27.5k|    return Result;
  525|  27.5k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E15LookupBucketForIS4_EEbRKT_RPKSB_:
  469|  27.5k|                       const BucketT *&FoundBucket) const {
  470|  27.5k|    const BucketT *BucketsPtr = getBuckets();
  471|  27.5k|    const unsigned NumBuckets = getNumBuckets();
  472|       |
  473|  27.5k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (473:9): [True: 13.6k, False: 13.9k]
  ------------------
  474|  13.6k|      FoundBucket = nullptr;
  475|  13.6k|      return false;
  476|  13.6k|    }
  477|       |
  478|       |    // FoundTombstone - Keep track of whether we find a tombstone while probing.
  479|  13.9k|    const BucketT *FoundTombstone = nullptr;
  480|  13.9k|    const KeyT EmptyKey = getEmptyKey();
  481|  13.9k|    const KeyT TombstoneKey = getTombstoneKey();
  482|  13.9k|    assert(!KeyInfoT::isEqual(Val, EmptyKey) &&
  ------------------
  |  Branch (482:5): [True: 13.9k, False: 0]
  |  Branch (482:5): [True: 13.9k, False: 0]
  |  Branch (482:5): [True: 13.9k, Folded]
  |  Branch (482:5): [True: 13.9k, False: 0]
  ------------------
  483|  13.9k|           !KeyInfoT::isEqual(Val, TombstoneKey) &&
  484|  13.9k|           "Empty/Tombstone value shouldn't be inserted into map!");
  485|       |
  486|  13.9k|    unsigned BucketNo = getHashValue(Val) & (NumBuckets-1);
  487|  13.9k|    unsigned ProbeAmt = 1;
  488|  13.9k|    while (1) {
  ------------------
  |  Branch (488:12): [True: 13.9k, Folded]
  ------------------
  489|  13.9k|      const BucketT *ThisBucket = BucketsPtr + BucketNo;
  490|       |      // Found Val's bucket?  If so, return it.
  491|  13.9k|      if (LLVM_LIKELY(KeyInfoT::isEqual(Val, ThisBucket->getFirst()))) {
  ------------------
  |  |  170|  13.9k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 0, False: 13.9k]
  |  |  ------------------
  ------------------
  492|      0|        FoundBucket = ThisBucket;
  493|      0|        return true;
  494|      0|      }
  495|       |
  496|       |      // If we found an empty bucket, the key doesn't exist in the set.
  497|       |      // Insert it and return the default value.
  498|  13.9k|      if (LLVM_LIKELY(KeyInfoT::isEqual(ThisBucket->getFirst(), EmptyKey))) {
  ------------------
  |  |  170|  13.9k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 13.9k, False: 14]
  |  |  ------------------
  ------------------
  499|       |        // If we've already seen a tombstone while probing, fill it in instead
  500|       |        // of the empty bucket we eventually probed to.
  501|  13.9k|        FoundBucket = FoundTombstone ? FoundTombstone : ThisBucket;
  ------------------
  |  Branch (501:23): [True: 0, False: 13.9k]
  ------------------
  502|  13.9k|        return false;
  503|  13.9k|      }
  504|       |
  505|       |      // If this is a tombstone, remember it.  If Val ends up not in the map, we
  506|       |      // prefer to return it than something that would require more probing.
  507|     14|      if (KeyInfoT::isEqual(ThisBucket->getFirst(), TombstoneKey) &&
  ------------------
  |  Branch (507:11): [True: 0, False: 14]
  ------------------
  508|      0|          !FoundTombstone)
  ------------------
  |  Branch (508:11): [True: 0, False: 0]
  ------------------
  509|      0|        FoundTombstone = ThisBucket;  // Remember the first tombstone found.
  510|       |
  511|       |      // Otherwise, it's a hash collision or a tombstone, continue quadratic
  512|       |      // probing.
  513|     14|      BucketNo += ProbeAmt++;
  514|     14|      BucketNo &= (NumBuckets-1);
  515|     14|    }
  516|  13.9k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E10getBucketsEv:
  375|  27.5k|  const BucketT *getBuckets() const {
  376|  27.5k|    return static_cast<const DerivedT *>(this)->getBuckets();
  377|  27.5k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E12getHashValueERKS4_:
  336|  13.9k|  static unsigned getHashValue(const KeyT &Val) {
  337|  13.9k|    return KeyInfoT::getHashValue(Val);
  338|  13.9k|  }
_ZNK7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFEPNS_11MCSymbolELFEE8getFirstEv:
   41|  27.9k|  const KeyT &getFirst() const { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16InsertIntoBucketEOS4_OS6_PSB_:
  418|  13.9k|  BucketT *InsertIntoBucket(KeyT &&Key, ValueT &&Value, BucketT *TheBucket) {
  419|  13.9k|    TheBucket = InsertIntoBucketImpl(Key, TheBucket);
  420|       |
  421|  13.9k|    TheBucket->getFirst() = std::move(Key);
  422|  13.9k|    ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
  423|  13.9k|    return TheBucket;
  424|  13.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E20InsertIntoBucketImplERKS4_PSB_:
  426|  13.9k|  BucketT *InsertIntoBucketImpl(const KeyT &Key, BucketT *TheBucket) {
  427|  13.9k|    incrementEpoch();
  428|       |
  429|       |    // If the load of the hash table is more than 3/4, or if fewer than 1/8 of
  430|       |    // the buckets are empty (meaning that many are filled with tombstones),
  431|       |    // grow the table.
  432|       |    //
  433|       |    // The later case is tricky.  For example, if we had one empty bucket with
  434|       |    // tons of tombstones, failing lookups (e.g. for insertion) would have to
  435|       |    // probe almost the entire table until it found the empty bucket.  If the
  436|       |    // table completely filled with tombstones, no lookup would ever succeed,
  437|       |    // causing infinite loops in lookup.
  438|  13.9k|    unsigned NewNumEntries = getNumEntries() + 1;
  439|  13.9k|    unsigned NumBuckets = getNumBuckets();
  440|  13.9k|    if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) {
  ------------------
  |  |  171|  13.9k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 13.6k, False: 329]
  |  |  ------------------
  ------------------
  441|  13.6k|      this->grow(NumBuckets * 2);
  442|  13.6k|      LookupBucketFor(Key, TheBucket);
  443|  13.6k|      NumBuckets = getNumBuckets();
  444|  13.6k|    } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <=
  ------------------
  |  |  171|    329|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 329]
  |  |  ------------------
  ------------------
  445|    329|                             NumBuckets/8)) {
  446|      0|      this->grow(NumBuckets);
  447|      0|      LookupBucketFor(Key, TheBucket);
  448|      0|    }
  449|  13.9k|    assert(TheBucket);
  ------------------
  |  Branch (449:5): [True: 13.9k, False: 0]
  ------------------
  450|       |
  451|       |    // Only update the state after we've grown our bucket space appropriately
  452|       |    // so that when growing buckets we have self-consistent entry count.
  453|  13.9k|    incrementNumEntries();
  454|       |
  455|       |    // If we are writing over a tombstone, remember this.
  456|  13.9k|    const KeyT EmptyKey = getEmptyKey();
  457|  13.9k|    if (!KeyInfoT::isEqual(TheBucket->getFirst(), EmptyKey))
  ------------------
  |  Branch (457:9): [True: 0, False: 13.9k]
  ------------------
  458|      0|      decrementNumTombstones();
  459|       |
  460|  13.9k|    return TheBucket;
  461|  13.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E4growEj:
  391|  13.6k|  void grow(unsigned AtLeast) {
  392|  13.6k|    static_cast<DerivedT *>(this)->grow(AtLeast);
  393|  13.6k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE4growEj:
  621|  13.6k|  void grow(unsigned AtLeast) {
  622|  13.6k|    unsigned OldNumBuckets = NumBuckets;
  623|  13.6k|    BucketT *OldBuckets = Buckets;
  624|       |
  625|  13.6k|    allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1))));
  626|  13.6k|    assert(Buckets);
  ------------------
  |  Branch (626:5): [True: 13.6k, False: 0]
  ------------------
  627|  13.6k|    if (!OldBuckets) {
  ------------------
  |  Branch (627:9): [True: 13.6k, False: 0]
  ------------------
  628|  13.6k|      this->BaseT::initEmpty();
  629|  13.6k|      return;
  630|  13.6k|    }
  631|       |
  632|      0|    this->moveFromOldBuckets(OldBuckets, OldBuckets+OldNumBuckets);
  633|       |
  634|       |    // Free the old table.
  635|      0|    operator delete(OldBuckets);
  636|      0|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEPNS_11MCSymbolELFENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E19incrementNumEntriesEv:
  357|  13.9k|  void incrementNumEntries() {
  358|  13.9k|    setNumEntries(getNumEntries() + 1);
  359|  13.9k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIjPNS_7MCLabelENS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjS3_EEEEjS3_S5_S8_E4sizeEv:
   82|    926|  unsigned size() const { return getNumEntries(); }
_ZN7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEEC2Ej:
  553|  6.07k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  6.07k|    init(NumInitBuckets);
  555|  6.07k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_EC2Ev:
  262|  6.07k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE4initEj:
  612|  6.07k|  void init(unsigned InitBuckets) {
  613|  6.07k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 6.07k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  6.07k|    } else {
  616|  6.07k|      NumEntries = 0;
  617|  6.07k|      NumTombstones = 0;
  618|  6.07k|    }
  619|  6.07k|  }
_ZN7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE15allocateBucketsEj:
  678|  12.1k|  bool allocateBuckets(unsigned Num) {
  679|  12.1k|    NumBuckets = Num;
  680|  12.1k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 6.07k, False: 6.07k]
  ------------------
  681|  6.07k|      Buckets = nullptr;
  682|  6.07k|      return false;
  683|  6.07k|    }
  684|       |
  685|  6.07k|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|  6.07k|    return true;
  687|  12.1k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E9initEmptyEv:
  277|  6.07k|  void initEmpty() {
  278|  6.07k|    setNumEntries(0);
  279|  6.07k|    setNumTombstones(0);
  280|       |
  281|  6.07k|    assert((getNumBuckets() & (getNumBuckets()-1)) == 0 &&
  ------------------
  |  Branch (281:5): [True: 6.07k, False: 0]
  |  Branch (281:5): [True: 6.07k, Folded]
  |  Branch (281:5): [True: 6.07k, False: 0]
  ------------------
  282|  6.07k|           "# initial buckets must be a power of two!");
  283|  6.07k|    const KeyT EmptyKey = getEmptyKey();
  284|   394k|    for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B)
  ------------------
  |  Branch (284:59): [True: 388k, False: 6.07k]
  ------------------
  285|   388k|      ::new (&B->getFirst()) KeyT(EmptyKey);
  286|  6.07k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13setNumEntriesEj:
  354|  12.3k|  void setNumEntries(unsigned Num) {
  355|  12.3k|    static_cast<DerivedT *>(this)->setNumEntries(Num);
  356|  12.3k|  }
_ZN7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE13setNumEntriesEj:
  659|  12.3k|  void setNumEntries(unsigned Num) {
  660|  12.3k|    NumEntries = Num;
  661|  12.3k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16setNumTombstonesEj:
  366|  6.07k|  void setNumTombstones(unsigned Num) {
  367|  6.07k|    static_cast<DerivedT *>(this)->setNumTombstones(Num);
  368|  6.07k|  }
_ZN7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE16setNumTombstonesEj:
  666|  6.07k|  void setNumTombstones(unsigned Num) {
  667|  6.07k|    NumTombstones = Num;
  668|  6.07k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13getNumBucketsEv:
  381|   373k|  unsigned getNumBuckets() const {
  382|   373k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|   373k|  }
_ZNK7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE13getNumBucketsEv:
  674|   373k|  unsigned getNumBuckets() const {
  675|   373k|    return NumBuckets;
  676|   373k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E11getEmptyKeyEv:
  343|   343k|  static const KeyT getEmptyKey() {
  344|   343k|    return KeyInfoT::getEmptyKey();
  345|   343k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E10getBucketsEv:
  378|  24.3k|  BucketT *getBuckets() {
  379|  24.3k|    return static_cast<DerivedT *>(this)->getBuckets();
  380|  24.3k|  }
_ZNK7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE10getBucketsEv:
  670|   355k|  BucketT *getBuckets() const {
  671|   355k|    return Buckets;
  672|   355k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13getBucketsEndEv:
  384|  12.1k|  BucketT *getBucketsEnd() {
  385|  12.1k|    return getBuckets() + getNumBuckets();
  386|  12.1k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_9MCSectionEPNS_10MCFragmentEE8getFirstEv:
   40|  1.18M|  KeyT &getFirst() { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEED2Ev:
  573|  6.07k|  ~DenseMap() {
  574|  6.07k|    this->destroyAll();
  575|  6.07k|    operator delete(Buckets);
  576|  6.07k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E10destroyAllEv:
  264|  6.07k|  void destroyAll() {
  265|  6.07k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 0, False: 6.07k]
  ------------------
  266|      0|      return;
  267|       |
  268|  6.07k|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|   394k|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 388k, False: 6.07k]
  ------------------
  270|   388k|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 6.29k, False: 382k]
  ------------------
  271|  6.29k|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 6.29k, False: 0]
  ------------------
  272|  6.29k|        P->getSecond().~ValueT();
  273|   388k|      P->getFirst().~KeyT();
  274|   388k|    }
  275|  6.07k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E15getTombstoneKeyEv:
  346|   330k|  static const KeyT getTombstoneKey() {
  347|   330k|    return KeyInfoT::getTombstoneKey();
  348|   330k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_9MCSectionEPNS_10MCFragmentEE9getSecondEv:
   42|  12.5k|  ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E6lookupERKS4_:
  159|   212k|  ValueT lookup(const KeyT &Val) const {
  160|   212k|    const BucketT *TheBucket;
  161|   212k|    if (LookupBucketFor(Val, TheBucket))
  ------------------
  |  Branch (161:9): [True: 212k, False: 0]
  ------------------
  162|   212k|      return TheBucket->getSecond();
  163|      0|    return ValueT();
  164|   212k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E15LookupBucketForIS4_EEbRKT_RPKSB_:
  469|   330k|                       const BucketT *&FoundBucket) const {
  470|   330k|    const BucketT *BucketsPtr = getBuckets();
  471|   330k|    const unsigned NumBuckets = getNumBuckets();
  472|       |
  473|   330k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (473:9): [True: 6.07k, False: 324k]
  ------------------
  474|  6.07k|      FoundBucket = nullptr;
  475|  6.07k|      return false;
  476|  6.07k|    }
  477|       |
  478|       |    // FoundTombstone - Keep track of whether we find a tombstone while probing.
  479|   324k|    const BucketT *FoundTombstone = nullptr;
  480|   324k|    const KeyT EmptyKey = getEmptyKey();
  481|   324k|    const KeyT TombstoneKey = getTombstoneKey();
  482|   324k|    assert(!KeyInfoT::isEqual(Val, EmptyKey) &&
  ------------------
  |  Branch (482:5): [True: 324k, False: 0]
  |  Branch (482:5): [True: 324k, False: 0]
  |  Branch (482:5): [True: 324k, Folded]
  |  Branch (482:5): [True: 324k, False: 0]
  ------------------
  483|   324k|           !KeyInfoT::isEqual(Val, TombstoneKey) &&
  484|   324k|           "Empty/Tombstone value shouldn't be inserted into map!");
  485|       |
  486|   324k|    unsigned BucketNo = getHashValue(Val) & (NumBuckets-1);
  487|   324k|    unsigned ProbeAmt = 1;
  488|   324k|    while (1) {
  ------------------
  |  Branch (488:12): [True: 324k, Folded]
  ------------------
  489|   324k|      const BucketT *ThisBucket = BucketsPtr + BucketNo;
  490|       |      // Found Val's bucket?  If so, return it.
  491|   324k|      if (LLVM_LIKELY(KeyInfoT::isEqual(Val, ThisBucket->getFirst()))) {
  ------------------
  |  |  170|   324k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 318k, False: 6.34k]
  |  |  ------------------
  ------------------
  492|   318k|        FoundBucket = ThisBucket;
  493|   318k|        return true;
  494|   318k|      }
  495|       |
  496|       |      // If we found an empty bucket, the key doesn't exist in the set.
  497|       |      // Insert it and return the default value.
  498|  6.34k|      if (LLVM_LIKELY(KeyInfoT::isEqual(ThisBucket->getFirst(), EmptyKey))) {
  ------------------
  |  |  170|  6.34k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 6.29k, False: 55]
  |  |  ------------------
  ------------------
  499|       |        // If we've already seen a tombstone while probing, fill it in instead
  500|       |        // of the empty bucket we eventually probed to.
  501|  6.29k|        FoundBucket = FoundTombstone ? FoundTombstone : ThisBucket;
  ------------------
  |  Branch (501:23): [True: 0, False: 6.29k]
  ------------------
  502|  6.29k|        return false;
  503|  6.29k|      }
  504|       |
  505|       |      // If this is a tombstone, remember it.  If Val ends up not in the map, we
  506|       |      // prefer to return it than something that would require more probing.
  507|     55|      if (KeyInfoT::isEqual(ThisBucket->getFirst(), TombstoneKey) &&
  ------------------
  |  Branch (507:11): [True: 0, False: 55]
  ------------------
  508|      0|          !FoundTombstone)
  ------------------
  |  Branch (508:11): [True: 0, False: 0]
  ------------------
  509|      0|        FoundTombstone = ThisBucket;  // Remember the first tombstone found.
  510|       |
  511|       |      // Otherwise, it's a hash collision or a tombstone, continue quadratic
  512|       |      // probing.
  513|     55|      BucketNo += ProbeAmt++;
  514|     55|      BucketNo &= (NumBuckets-1);
  515|     55|    }
  516|   324k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E10getBucketsEv:
  375|   330k|  const BucketT *getBuckets() const {
  376|   330k|    return static_cast<const DerivedT *>(this)->getBuckets();
  377|   330k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E12getHashValueERKS4_:
  336|   324k|  static unsigned getHashValue(const KeyT &Val) {
  337|   324k|    return KeyInfoT::getHashValue(Val);
  338|   324k|  }
_ZNK7llvm_ks6detail12DenseMapPairIPKNS_9MCSectionEPNS_10MCFragmentEE8getFirstEv:
   41|   331k|  const KeyT &getFirst() const { return std::pair<KeyT, ValueT>::first; }
_ZNK7llvm_ks6detail12DenseMapPairIPKNS_9MCSectionEPNS_10MCFragmentEE9getSecondEv:
   43|   212k|  const ValueT &getSecond() const { return std::pair<KeyT, ValueT>::second; }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_EixEOS4_:
  245|  41.2k|  ValueT &operator[](KeyT &&Key) {
  246|  41.2k|    return FindAndConstruct(std::move(Key)).second;
  247|  41.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16FindAndConstructEOS4_:
  237|  41.2k|  value_type& FindAndConstruct(KeyT &&Key) {
  238|  41.2k|    BucketT *TheBucket;
  239|  41.2k|    if (LookupBucketFor(Key, TheBucket))
  ------------------
  |  Branch (239:9): [True: 41.2k, False: 0]
  ------------------
  240|  41.2k|      return *TheBucket;
  241|       |
  242|      0|    return *InsertIntoBucket(std::move(Key), ValueT(), TheBucket);
  243|  41.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E15LookupBucketForIS4_EEbRKT_RPSB_:
  519|   118k|  bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) {
  520|   118k|    const BucketT *ConstFoundBucket;
  521|   118k|    bool Result = const_cast<const DenseMapBase *>(this)
  522|   118k|      ->LookupBucketFor(Val, ConstFoundBucket);
  523|   118k|    FoundBucket = const_cast<BucketT *>(ConstFoundBucket);
  524|   118k|    return Result;
  525|   118k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E20InsertIntoBucketImplERKS4_PSB_:
  426|  6.29k|  BucketT *InsertIntoBucketImpl(const KeyT &Key, BucketT *TheBucket) {
  427|  6.29k|    incrementEpoch();
  428|       |
  429|       |    // If the load of the hash table is more than 3/4, or if fewer than 1/8 of
  430|       |    // the buckets are empty (meaning that many are filled with tombstones),
  431|       |    // grow the table.
  432|       |    //
  433|       |    // The later case is tricky.  For example, if we had one empty bucket with
  434|       |    // tons of tombstones, failing lookups (e.g. for insertion) would have to
  435|       |    // probe almost the entire table until it found the empty bucket.  If the
  436|       |    // table completely filled with tombstones, no lookup would ever succeed,
  437|       |    // causing infinite loops in lookup.
  438|  6.29k|    unsigned NewNumEntries = getNumEntries() + 1;
  439|  6.29k|    unsigned NumBuckets = getNumBuckets();
  440|  6.29k|    if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) {
  ------------------
  |  |  171|  6.29k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 6.07k, False: 215]
  |  |  ------------------
  ------------------
  441|  6.07k|      this->grow(NumBuckets * 2);
  442|  6.07k|      LookupBucketFor(Key, TheBucket);
  443|  6.07k|      NumBuckets = getNumBuckets();
  444|  6.07k|    } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <=
  ------------------
  |  |  171|    215|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 215]
  |  |  ------------------
  ------------------
  445|    215|                             NumBuckets/8)) {
  446|      0|      this->grow(NumBuckets);
  447|      0|      LookupBucketFor(Key, TheBucket);
  448|      0|    }
  449|  6.29k|    assert(TheBucket);
  ------------------
  |  Branch (449:5): [True: 6.29k, False: 0]
  ------------------
  450|       |
  451|       |    // Only update the state after we've grown our bucket space appropriately
  452|       |    // so that when growing buckets we have self-consistent entry count.
  453|  6.29k|    incrementNumEntries();
  454|       |
  455|       |    // If we are writing over a tombstone, remember this.
  456|  6.29k|    const KeyT EmptyKey = getEmptyKey();
  457|  6.29k|    if (!KeyInfoT::isEqual(TheBucket->getFirst(), EmptyKey))
  ------------------
  |  Branch (457:9): [True: 0, False: 6.29k]
  ------------------
  458|      0|      decrementNumTombstones();
  459|       |
  460|  6.29k|    return TheBucket;
  461|  6.29k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E13getNumEntriesEv:
  351|  12.5k|  unsigned getNumEntries() const {
  352|  12.5k|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|  12.5k|  }
_ZNK7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE13getNumEntriesEv:
  656|  12.5k|  unsigned getNumEntries() const {
  657|  12.5k|    return NumEntries;
  658|  12.5k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E4growEj:
  391|  6.07k|  void grow(unsigned AtLeast) {
  392|  6.07k|    static_cast<DerivedT *>(this)->grow(AtLeast);
  393|  6.07k|  }
_ZN7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE4growEj:
  621|  6.07k|  void grow(unsigned AtLeast) {
  622|  6.07k|    unsigned OldNumBuckets = NumBuckets;
  623|  6.07k|    BucketT *OldBuckets = Buckets;
  624|       |
  625|  6.07k|    allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1))));
  626|  6.07k|    assert(Buckets);
  ------------------
  |  Branch (626:5): [True: 6.07k, False: 0]
  ------------------
  627|  6.07k|    if (!OldBuckets) {
  ------------------
  |  Branch (627:9): [True: 6.07k, False: 0]
  ------------------
  628|  6.07k|      this->BaseT::initEmpty();
  629|  6.07k|      return;
  630|  6.07k|    }
  631|       |
  632|      0|    this->moveFromOldBuckets(OldBuckets, OldBuckets+OldNumBuckets);
  633|       |
  634|       |    // Free the old table.
  635|      0|    operator delete(OldBuckets);
  636|      0|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16getNumTombstonesEv:
  363|    215|  unsigned getNumTombstones() const {
  364|    215|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|    215|  }
_ZNK7llvm_ks8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S5_EEE16getNumTombstonesEv:
  663|    215|  unsigned getNumTombstones() const {
  664|    215|    return NumTombstones;
  665|    215|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E19incrementNumEntriesEv:
  357|  6.29k|  void incrementNumEntries() {
  358|  6.29k|    setNumEntries(getNumEntries() + 1);
  359|  6.29k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_EixERKS4_:
  233|  71.5k|  ValueT &operator[](const KeyT &Key) {
  234|  71.5k|    return FindAndConstruct(Key).second;
  235|  71.5k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16FindAndConstructERKS4_:
  225|  71.5k|  value_type& FindAndConstruct(const KeyT &Key) {
  226|  71.5k|    BucketT *TheBucket;
  227|  71.5k|    if (LookupBucketFor(Key, TheBucket))
  ------------------
  |  Branch (227:9): [True: 65.3k, False: 6.29k]
  ------------------
  228|  65.3k|      return *TheBucket;
  229|       |
  230|  6.29k|    return *InsertIntoBucket(Key, ValueT(), TheBucket);
  231|  71.5k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_9MCSectionEPNS_10MCFragmentENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S6_EEEES4_S6_S8_SB_E16InsertIntoBucketERKS4_OS6_PSB_:
  410|  6.29k|                            BucketT *TheBucket) {
  411|  6.29k|    TheBucket = InsertIntoBucketImpl(Key, TheBucket);
  412|       |
  413|  6.29k|    TheBucket->getFirst() = Key;
  414|  6.29k|    ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
  415|  6.29k|    return TheBucket;
  416|  6.29k|  }
_ZN7llvm_ks8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEEC2Ej:
  553|  19.3k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  19.3k|    init(NumInitBuckets);
  555|  19.3k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_EC2Ev:
  262|  19.3k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE4initEj:
  612|  19.3k|  void init(unsigned InitBuckets) {
  613|  19.3k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 19.3k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  19.3k|    } else {
  616|  19.3k|      NumEntries = 0;
  617|  19.3k|      NumTombstones = 0;
  618|  19.3k|    }
  619|  19.3k|  }
_ZN7llvm_ks8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE15allocateBucketsEj:
  678|  19.3k|  bool allocateBuckets(unsigned Num) {
  679|  19.3k|    NumBuckets = Num;
  680|  19.3k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 19.3k, False: 0]
  ------------------
  681|  19.3k|      Buckets = nullptr;
  682|  19.3k|      return false;
  683|  19.3k|    }
  684|       |
  685|      0|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|      0|    return true;
  687|  19.3k|  }
_ZN7llvm_ks8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEED2Ev:
  573|  19.3k|  ~DenseMap() {
  574|  19.3k|    this->destroyAll();
  575|  19.3k|    operator delete(Buckets);
  576|  19.3k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_8MCSymbolEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E10destroyAllEv:
  264|  19.3k|  void destroyAll() {
  265|  19.3k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 19.3k, False: 0]
  ------------------
  266|  19.3k|      return;
  267|       |
  268|      0|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|      0|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 0, False: 0]
  ------------------
  270|      0|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 0, False: 0]
  ------------------
  271|      0|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 0, False: 0]
  ------------------
  272|      0|        P->getSecond().~ValueT();
  273|      0|      P->getFirst().~KeyT();
  274|      0|    }
  275|      0|  }
_ZN7llvm_ks8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEEEjiS3_S6_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIjiNS_12DenseMapInfoIjEENS_6detail12DenseMapPairIjiEEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE15allocateBucketsEj:
  678|  13.6k|  bool allocateBuckets(unsigned Num) {
  679|  13.6k|    NumBuckets = Num;
  680|  13.6k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 66]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|     66|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|     66|    return true;
  687|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E9initEmptyEv:
  277|     66|  void initEmpty() {
  278|     66|    setNumEntries(0);
  279|     66|    setNumTombstones(0);
  280|       |
  281|     66|    assert((getNumBuckets() & (getNumBuckets()-1)) == 0 &&
  ------------------
  |  Branch (281:5): [True: 66, False: 0]
  |  Branch (281:5): [True: 66, Folded]
  |  Branch (281:5): [True: 66, False: 0]
  ------------------
  282|     66|           "# initial buckets must be a power of two!");
  283|     66|    const KeyT EmptyKey = getEmptyKey();
  284|  4.29k|    for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B)
  ------------------
  |  Branch (284:59): [True: 4.22k, False: 66]
  ------------------
  285|  4.22k|      ::new (&B->getFirst()) KeyT(EmptyKey);
  286|     66|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E13setNumEntriesEj:
  354|    373|  void setNumEntries(unsigned Num) {
  355|    373|    static_cast<DerivedT *>(this)->setNumEntries(Num);
  356|    373|  }
_ZN7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE13setNumEntriesEj:
  659|    373|  void setNumEntries(unsigned Num) {
  660|    373|    NumEntries = Num;
  661|    373|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E16setNumTombstonesEj:
  366|     66|  void setNumTombstones(unsigned Num) {
  367|     66|    static_cast<DerivedT *>(this)->setNumTombstones(Num);
  368|     66|  }
_ZN7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE16setNumTombstonesEj:
  666|     66|  void setNumTombstones(unsigned Num) {
  667|     66|    NumTombstones = Num;
  668|     66|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E13getNumBucketsEv:
  381|  20.0k|  unsigned getNumBuckets() const {
  382|  20.0k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  20.0k|  }
_ZNK7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE13getNumBucketsEv:
  674|  20.0k|  unsigned getNumBuckets() const {
  675|  20.0k|    return NumBuckets;
  676|  20.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E11getEmptyKeyEv:
  343|    943|  static const KeyT getEmptyKey() {
  344|    943|    return KeyInfoT::getEmptyKey();
  345|    943|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E10getBucketsEv:
  378|    746|  BucketT *getBuckets() {
  379|    746|    return static_cast<DerivedT *>(this)->getBuckets();
  380|    746|  }
_ZNK7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE10getBucketsEv:
  670|  6.05k|  BucketT *getBuckets() const {
  671|  6.05k|    return Buckets;
  672|  6.05k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E13getBucketsEndEv:
  384|    614|  BucketT *getBucketsEnd() {
  385|    614|    return getBuckets() + getNumBuckets();
  386|    614|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_11MCSymbolELFES4_E8getFirstEv:
   40|  13.5k|  KeyT &getFirst() { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE15allocateBucketsEj:
  678|  19.0k|  bool allocateBuckets(unsigned Num) {
  679|  19.0k|    NumBuckets = Num;
  680|  19.0k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 5.42k]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|  5.42k|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|  5.42k|    return true;
  687|  19.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E9initEmptyEv:
  277|  5.42k|  void initEmpty() {
  278|  5.42k|    setNumEntries(0);
  279|  5.42k|    setNumTombstones(0);
  280|       |
  281|  5.42k|    assert((getNumBuckets() & (getNumBuckets()-1)) == 0 &&
  ------------------
  |  Branch (281:5): [True: 5.42k, False: 0]
  |  Branch (281:5): [True: 5.42k, Folded]
  |  Branch (281:5): [True: 5.42k, False: 0]
  ------------------
  282|  5.42k|           "# initial buckets must be a power of two!");
  283|  5.42k|    const KeyT EmptyKey = getEmptyKey();
  284|   352k|    for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B)
  ------------------
  |  Branch (284:59): [True: 347k, False: 5.42k]
  ------------------
  285|   347k|      ::new (&B->getFirst()) KeyT(EmptyKey);
  286|  5.42k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E13setNumEntriesEj:
  354|  11.0k|  void setNumEntries(unsigned Num) {
  355|  11.0k|    static_cast<DerivedT *>(this)->setNumEntries(Num);
  356|  11.0k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE13setNumEntriesEj:
  659|  11.0k|  void setNumEntries(unsigned Num) {
  660|  11.0k|    NumEntries = Num;
  661|  11.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E16setNumTombstonesEj:
  366|  5.42k|  void setNumTombstones(unsigned Num) {
  367|  5.42k|    static_cast<DerivedT *>(this)->setNumTombstones(Num);
  368|  5.42k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE16setNumTombstonesEj:
  666|  5.42k|  void setNumTombstones(unsigned Num) {
  667|  5.42k|    NumTombstones = Num;
  668|  5.42k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E13getNumBucketsEv:
  381|  62.9k|  unsigned getNumBuckets() const {
  382|  62.9k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  62.9k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE13getNumBucketsEv:
  674|  62.9k|  unsigned getNumBuckets() const {
  675|  62.9k|    return NumBuckets;
  676|  62.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E11getEmptyKeyEv:
  343|  27.5k|  static const KeyT getEmptyKey() {
  344|  27.5k|    return KeyInfoT::getEmptyKey();
  345|  27.5k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E10getBucketsEv:
  378|  21.7k|  BucketT *getBuckets() {
  379|  21.7k|    return static_cast<DerivedT *>(this)->getBuckets();
  380|  21.7k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE10getBucketsEv:
  670|  38.2k|  BucketT *getBuckets() const {
  671|  38.2k|    return Buckets;
  672|  38.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E13getBucketsEndEv:
  384|  10.8k|  BucketT *getBucketsEnd() {
  385|  10.8k|    return getBuckets() + getNumBuckets();
  386|  10.8k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEEE8getFirstEv:
   40|  1.05M|  KeyT &getFirst() { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 8.20k, False: 5.42k]
  ------------------
  266|  8.20k|      return;
  267|       |
  268|  5.42k|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|   352k|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 347k, False: 5.42k]
  ------------------
  270|   347k|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 5.63k, False: 341k]
  ------------------
  271|  5.63k|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 5.63k, False: 0]
  ------------------
  272|  5.63k|        P->getSecond().~ValueT();
  273|   347k|      P->getFirst().~KeyT();
  274|   347k|    }
  275|  5.42k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E15getTombstoneKeyEv:
  346|  16.5k|  static const KeyT getTombstoneKey() {
  347|  16.5k|    return KeyInfoT::getTombstoneKey();
  348|  16.5k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEEE9getSecondEv:
   42|  11.2k|  ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
_ZN7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 13.5k, False: 66]
  ------------------
  266|  13.5k|      return;
  267|       |
  268|     66|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|  4.29k|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 4.22k, False: 66]
  ------------------
  270|  4.22k|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 307, False: 3.91k]
  ------------------
  271|    307|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 307, False: 0]
  ------------------
  272|    307|        P->getSecond().~ValueT();
  273|  4.22k|      P->getFirst().~KeyT();
  274|  4.22k|    }
  275|     66|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E15getTombstoneKeyEv:
  346|    570|  static const KeyT getTombstoneKey() {
  347|    570|    return KeyInfoT::getTombstoneKey();
  348|    570|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_11MCSymbolELFES4_E9getSecondEv:
   42|    614|  ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
_ZN7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEED2Ev:
  573|  13.6k|  ~DenseMap() {
  574|  13.6k|    this->destroyAll();
  575|  13.6k|    operator delete(Buckets);
  576|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E10destroyAllEv:
  264|  13.6k|  void destroyAll() {
  265|  13.6k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 7.94k, False: 5.68k]
  ------------------
  266|  7.94k|      return;
  267|       |
  268|  5.68k|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|   369k|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 363k, False: 5.68k]
  ------------------
  270|   363k|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 11.2k, False: 352k]
  ------------------
  271|  11.2k|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 11.2k, False: 0]
  ------------------
  272|  11.2k|        P->getSecond().~ValueT();
  273|   363k|      P->getFirst().~KeyT();
  274|   363k|    }
  275|  5.68k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E13getNumBucketsEv:
  381|  81.6k|  unsigned getNumBuckets() const {
  382|  81.6k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  81.6k|  }
_ZNK7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE13getNumBucketsEv:
  674|  81.6k|  unsigned getNumBuckets() const {
  675|  81.6k|    return NumBuckets;
  676|  81.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E11getEmptyKeyEv:
  343|  33.9k|  static const KeyT getEmptyKey() {
  344|  33.9k|    return KeyInfoT::getEmptyKey();
  345|  33.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E15getTombstoneKeyEv:
  346|  17.0k|  static const KeyT getTombstoneKey() {
  347|  17.0k|    return KeyInfoT::getTombstoneKey();
  348|  17.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E10getBucketsEv:
  378|  34.0k|  BucketT *getBuckets() {
  379|  34.0k|    return static_cast<DerivedT *>(this)->getBuckets();
  380|  34.0k|  }
_ZNK7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE10getBucketsEv:
  670|  51.0k|  BucketT *getBuckets() const {
  671|  51.0k|    return Buckets;
  672|  51.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E13getBucketsEndEv:
  384|  22.7k|  BucketT *getBucketsEnd() {
  385|  22.7k|    return getBuckets() + getNumBuckets();
  386|  22.7k|  }
_ZN7llvm_ks6detail12DenseMapPairINS_9StringRefEmE8getFirstEv:
   40|  1.12M|  KeyT &getFirst() { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks6detail12DenseMapPairINS_9StringRefEmE9getSecondEv:
   42|  22.4k|  ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E13getNumEntriesEv:
  351|    614|  unsigned getNumEntries() const {
  352|    614|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|    614|  }
_ZNK7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE13getNumEntriesEv:
  656|    614|  unsigned getNumEntries() const {
  657|    614|    return NumEntries;
  658|    614|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E16getNumTombstonesEv:
  363|    241|  unsigned getNumTombstones() const {
  364|    241|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|    241|  }
_ZNK7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE16getNumTombstonesEv:
  663|    241|  unsigned getNumTombstones() const {
  664|    241|    return NumTombstones;
  665|    241|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E13getNumEntriesEv:
  351|  11.2k|  unsigned getNumEntries() const {
  352|  11.2k|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|  11.2k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE13getNumEntriesEv:
  656|  11.2k|  unsigned getNumEntries() const {
  657|  11.2k|    return NumEntries;
  658|  11.2k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E16getNumTombstonesEv:
  363|    209|  unsigned getNumTombstones() const {
  364|    209|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|    209|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE16getNumTombstonesEv:
  663|    209|  unsigned getNumTombstones() const {
  664|    209|    return NumTombstones;
  665|    209|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E6insertEONSt3__14pairIS4_S4_EE:
  184|    482|  std::pair<iterator, bool> insert(std::pair<KeyT, ValueT> &&KV) {
  185|    482|    BucketT *TheBucket;
  186|    482|    if (LookupBucketFor(KV.first, TheBucket))
  ------------------
  |  Branch (186:9): [True: 175, False: 307]
  ------------------
  187|    175|      return std::make_pair(iterator(TheBucket, getBucketsEnd(), *this, true),
  188|    175|                            false); // Already in map.
  189|       |
  190|       |    // Otherwise, insert the new element.
  191|    307|    TheBucket = InsertIntoBucket(std::move(KV.first),
  192|    307|                                 std::move(KV.second),
  193|    307|                                 TheBucket);
  194|    307|    return std::make_pair(iterator(TheBucket, getBucketsEnd(), *this, true),
  195|    307|                          true);
  196|    482|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E15LookupBucketForIS4_EEbRKT_RPS9_:
  519|    548|  bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) {
  520|    548|    const BucketT *ConstFoundBucket;
  521|    548|    bool Result = const_cast<const DenseMapBase *>(this)
  522|    548|      ->LookupBucketFor(Val, ConstFoundBucket);
  523|    548|    FoundBucket = const_cast<BucketT *>(ConstFoundBucket);
  524|    548|    return Result;
  525|    548|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E15LookupBucketForIS4_EEbRKT_RPKS9_:
  469|  5.31k|                       const BucketT *&FoundBucket) const {
  470|  5.31k|    const BucketT *BucketsPtr = getBuckets();
  471|  5.31k|    const unsigned NumBuckets = getNumBuckets();
  472|       |
  473|  5.31k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (473:9): [True: 4.80k, False: 504]
  ------------------
  474|  4.80k|      FoundBucket = nullptr;
  475|  4.80k|      return false;
  476|  4.80k|    }
  477|       |
  478|       |    // FoundTombstone - Keep track of whether we find a tombstone while probing.
  479|    504|    const BucketT *FoundTombstone = nullptr;
  480|    504|    const KeyT EmptyKey = getEmptyKey();
  481|    504|    const KeyT TombstoneKey = getTombstoneKey();
  482|    504|    assert(!KeyInfoT::isEqual(Val, EmptyKey) &&
  ------------------
  |  Branch (482:5): [True: 504, False: 0]
  |  Branch (482:5): [True: 504, False: 0]
  |  Branch (482:5): [True: 504, Folded]
  |  Branch (482:5): [True: 504, False: 0]
  ------------------
  483|    504|           !KeyInfoT::isEqual(Val, TombstoneKey) &&
  484|    504|           "Empty/Tombstone value shouldn't be inserted into map!");
  485|       |
  486|    504|    unsigned BucketNo = getHashValue(Val) & (NumBuckets-1);
  487|    504|    unsigned ProbeAmt = 1;
  488|    537|    while (1) {
  ------------------
  |  Branch (488:12): [True: 537, Folded]
  ------------------
  489|    537|      const BucketT *ThisBucket = BucketsPtr + BucketNo;
  490|       |      // Found Val's bucket?  If so, return it.
  491|    537|      if (LLVM_LIKELY(KeyInfoT::isEqual(Val, ThisBucket->getFirst()))) {
  ------------------
  |  |  170|    537|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 186, False: 351]
  |  |  ------------------
  ------------------
  492|    186|        FoundBucket = ThisBucket;
  493|    186|        return true;
  494|    186|      }
  495|       |
  496|       |      // If we found an empty bucket, the key doesn't exist in the set.
  497|       |      // Insert it and return the default value.
  498|    351|      if (LLVM_LIKELY(KeyInfoT::isEqual(ThisBucket->getFirst(), EmptyKey))) {
  ------------------
  |  |  170|    351|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 318, False: 33]
  |  |  ------------------
  ------------------
  499|       |        // If we've already seen a tombstone while probing, fill it in instead
  500|       |        // of the empty bucket we eventually probed to.
  501|    318|        FoundBucket = FoundTombstone ? FoundTombstone : ThisBucket;
  ------------------
  |  Branch (501:23): [True: 0, False: 318]
  ------------------
  502|    318|        return false;
  503|    318|      }
  504|       |
  505|       |      // If this is a tombstone, remember it.  If Val ends up not in the map, we
  506|       |      // prefer to return it than something that would require more probing.
  507|     33|      if (KeyInfoT::isEqual(ThisBucket->getFirst(), TombstoneKey) &&
  ------------------
  |  Branch (507:11): [True: 0, False: 33]
  ------------------
  508|      0|          !FoundTombstone)
  ------------------
  |  Branch (508:11): [True: 0, False: 0]
  ------------------
  509|      0|        FoundTombstone = ThisBucket;  // Remember the first tombstone found.
  510|       |
  511|       |      // Otherwise, it's a hash collision or a tombstone, continue quadratic
  512|       |      // probing.
  513|     33|      BucketNo += ProbeAmt++;
  514|     33|      BucketNo &= (NumBuckets-1);
  515|     33|    }
  516|    504|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E10getBucketsEv:
  375|  5.31k|  const BucketT *getBuckets() const {
  376|  5.31k|    return static_cast<const DerivedT *>(this)->getBuckets();
  377|  5.31k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E12getHashValueERKS4_:
  336|    504|  static unsigned getHashValue(const KeyT &Val) {
  337|    504|    return KeyInfoT::getHashValue(Val);
  338|    504|  }
_ZNK7llvm_ks6detail12DenseMapPairIPKNS_11MCSymbolELFES4_E8getFirstEv:
   41|    921|  const KeyT &getFirst() const { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks16DenseMapIteratorIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EELb0EEC2EPS8_SA_RKNS_14DebugEpochBaseEb:
 1006|    482|      : DebugEpochBase::HandleBase(&Epoch), Ptr(Pos), End(E) {
 1007|    482|    assert(isHandleInSync() && "invalid construction!");
  ------------------
  |  Branch (1007:5): [True: 482, False: 0]
  |  Branch (1007:5): [True: 482, Folded]
  |  Branch (1007:5): [True: 482, False: 0]
  ------------------
 1008|    482|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (1008:9): [True: 0, False: 482]
  ------------------
 1009|    482|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E16InsertIntoBucketEOS4_SC_PS9_:
  418|    307|  BucketT *InsertIntoBucket(KeyT &&Key, ValueT &&Value, BucketT *TheBucket) {
  419|    307|    TheBucket = InsertIntoBucketImpl(Key, TheBucket);
  420|       |
  421|    307|    TheBucket->getFirst() = std::move(Key);
  422|    307|    ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
  423|    307|    return TheBucket;
  424|    307|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E20InsertIntoBucketImplERKS4_PS9_:
  426|    307|  BucketT *InsertIntoBucketImpl(const KeyT &Key, BucketT *TheBucket) {
  427|    307|    incrementEpoch();
  428|       |
  429|       |    // If the load of the hash table is more than 3/4, or if fewer than 1/8 of
  430|       |    // the buckets are empty (meaning that many are filled with tombstones),
  431|       |    // grow the table.
  432|       |    //
  433|       |    // The later case is tricky.  For example, if we had one empty bucket with
  434|       |    // tons of tombstones, failing lookups (e.g. for insertion) would have to
  435|       |    // probe almost the entire table until it found the empty bucket.  If the
  436|       |    // table completely filled with tombstones, no lookup would ever succeed,
  437|       |    // causing infinite loops in lookup.
  438|    307|    unsigned NewNumEntries = getNumEntries() + 1;
  439|    307|    unsigned NumBuckets = getNumBuckets();
  440|    307|    if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) {
  ------------------
  |  |  171|    307|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 66, False: 241]
  |  |  ------------------
  ------------------
  441|     66|      this->grow(NumBuckets * 2);
  442|     66|      LookupBucketFor(Key, TheBucket);
  443|     66|      NumBuckets = getNumBuckets();
  444|    241|    } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <=
  ------------------
  |  |  171|    241|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 241]
  |  |  ------------------
  ------------------
  445|    241|                             NumBuckets/8)) {
  446|      0|      this->grow(NumBuckets);
  447|      0|      LookupBucketFor(Key, TheBucket);
  448|      0|    }
  449|    307|    assert(TheBucket);
  ------------------
  |  Branch (449:5): [True: 307, False: 0]
  ------------------
  450|       |
  451|       |    // Only update the state after we've grown our bucket space appropriately
  452|       |    // so that when growing buckets we have self-consistent entry count.
  453|    307|    incrementNumEntries();
  454|       |
  455|       |    // If we are writing over a tombstone, remember this.
  456|    307|    const KeyT EmptyKey = getEmptyKey();
  457|    307|    if (!KeyInfoT::isEqual(TheBucket->getFirst(), EmptyKey))
  ------------------
  |  Branch (457:9): [True: 0, False: 307]
  ------------------
  458|      0|      decrementNumTombstones();
  459|       |
  460|    307|    return TheBucket;
  461|    307|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E4growEj:
  391|     66|  void grow(unsigned AtLeast) {
  392|     66|    static_cast<DerivedT *>(this)->grow(AtLeast);
  393|     66|  }
_ZN7llvm_ks8DenseMapIPKNS_11MCSymbolELFES3_NS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S3_EEE4growEj:
  621|     66|  void grow(unsigned AtLeast) {
  622|     66|    unsigned OldNumBuckets = NumBuckets;
  623|     66|    BucketT *OldBuckets = Buckets;
  624|       |
  625|     66|    allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1))));
  626|     66|    assert(Buckets);
  ------------------
  |  Branch (626:5): [True: 66, False: 0]
  ------------------
  627|     66|    if (!OldBuckets) {
  ------------------
  |  Branch (627:9): [True: 66, False: 0]
  ------------------
  628|     66|      this->BaseT::initEmpty();
  629|     66|      return;
  630|     66|    }
  631|       |
  632|      0|    this->moveFromOldBuckets(OldBuckets, OldBuckets+OldNumBuckets);
  633|       |
  634|       |    // Free the old table.
  635|      0|    operator delete(OldBuckets);
  636|      0|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E19incrementNumEntriesEv:
  357|    307|  void incrementNumEntries() {
  358|    307|    setNumEntries(getNumEntries() + 1);
  359|    307|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_EixEOS4_:
  245|  11.1k|  ValueT &operator[](KeyT &&Key) {
  246|  11.1k|    return FindAndConstruct(std::move(Key)).second;
  247|  11.1k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E16FindAndConstructEOS4_:
  237|  11.1k|  value_type& FindAndConstruct(KeyT &&Key) {
  238|  11.1k|    BucketT *TheBucket;
  239|  11.1k|    if (LookupBucketFor(Key, TheBucket))
  ------------------
  |  Branch (239:9): [True: 5.46k, False: 5.63k]
  ------------------
  240|  5.46k|      return *TheBucket;
  241|       |
  242|  5.63k|    return *InsertIntoBucket(std::move(Key), ValueT(), TheBucket);
  243|  11.1k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E15LookupBucketForIS4_EEbRKT_RPSF_:
  519|  16.5k|  bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) {
  520|  16.5k|    const BucketT *ConstFoundBucket;
  521|  16.5k|    bool Result = const_cast<const DenseMapBase *>(this)
  522|  16.5k|      ->LookupBucketFor(Val, ConstFoundBucket);
  523|  16.5k|    FoundBucket = const_cast<BucketT *>(ConstFoundBucket);
  524|  16.5k|    return Result;
  525|  16.5k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E15LookupBucketForIS4_EEbRKT_RPKSF_:
  469|  16.5k|                       const BucketT *&FoundBucket) const {
  470|  16.5k|    const BucketT *BucketsPtr = getBuckets();
  471|  16.5k|    const unsigned NumBuckets = getNumBuckets();
  472|       |
  473|  16.5k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (473:9): [True: 5.42k, False: 11.1k]
  ------------------
  474|  5.42k|      FoundBucket = nullptr;
  475|  5.42k|      return false;
  476|  5.42k|    }
  477|       |
  478|       |    // FoundTombstone - Keep track of whether we find a tombstone while probing.
  479|  11.1k|    const BucketT *FoundTombstone = nullptr;
  480|  11.1k|    const KeyT EmptyKey = getEmptyKey();
  481|  11.1k|    const KeyT TombstoneKey = getTombstoneKey();
  482|  11.1k|    assert(!KeyInfoT::isEqual(Val, EmptyKey) &&
  ------------------
  |  Branch (482:5): [True: 11.1k, False: 0]
  |  Branch (482:5): [True: 11.1k, False: 0]
  |  Branch (482:5): [True: 11.1k, Folded]
  |  Branch (482:5): [True: 11.1k, False: 0]
  ------------------
  483|  11.1k|           !KeyInfoT::isEqual(Val, TombstoneKey) &&
  484|  11.1k|           "Empty/Tombstone value shouldn't be inserted into map!");
  485|       |
  486|  11.1k|    unsigned BucketNo = getHashValue(Val) & (NumBuckets-1);
  487|  11.1k|    unsigned ProbeAmt = 1;
  488|  11.1k|    while (1) {
  ------------------
  |  Branch (488:12): [True: 11.1k, Folded]
  ------------------
  489|  11.1k|      const BucketT *ThisBucket = BucketsPtr + BucketNo;
  490|       |      // Found Val's bucket?  If so, return it.
  491|  11.1k|      if (LLVM_LIKELY(KeyInfoT::isEqual(Val, ThisBucket->getFirst()))) {
  ------------------
  |  |  170|  11.1k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 5.46k, False: 5.64k]
  |  |  ------------------
  ------------------
  492|  5.46k|        FoundBucket = ThisBucket;
  493|  5.46k|        return true;
  494|  5.46k|      }
  495|       |
  496|       |      // If we found an empty bucket, the key doesn't exist in the set.
  497|       |      // Insert it and return the default value.
  498|  5.64k|      if (LLVM_LIKELY(KeyInfoT::isEqual(ThisBucket->getFirst(), EmptyKey))) {
  ------------------
  |  |  170|  5.64k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 5.63k, False: 11]
  |  |  ------------------
  ------------------
  499|       |        // If we've already seen a tombstone while probing, fill it in instead
  500|       |        // of the empty bucket we eventually probed to.
  501|  5.63k|        FoundBucket = FoundTombstone ? FoundTombstone : ThisBucket;
  ------------------
  |  Branch (501:23): [True: 0, False: 5.63k]
  ------------------
  502|  5.63k|        return false;
  503|  5.63k|      }
  504|       |
  505|       |      // If this is a tombstone, remember it.  If Val ends up not in the map, we
  506|       |      // prefer to return it than something that would require more probing.
  507|     11|      if (KeyInfoT::isEqual(ThisBucket->getFirst(), TombstoneKey) &&
  ------------------
  |  Branch (507:11): [True: 0, False: 11]
  ------------------
  508|      0|          !FoundTombstone)
  ------------------
  |  Branch (508:11): [True: 0, False: 0]
  ------------------
  509|      0|        FoundTombstone = ThisBucket;  // Remember the first tombstone found.
  510|       |
  511|       |      // Otherwise, it's a hash collision or a tombstone, continue quadratic
  512|       |      // probing.
  513|     11|      BucketNo += ProbeAmt++;
  514|     11|      BucketNo &= (NumBuckets-1);
  515|     11|    }
  516|  11.1k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E10getBucketsEv:
  375|  16.5k|  const BucketT *getBuckets() const {
  376|  16.5k|    return static_cast<const DerivedT *>(this)->getBuckets();
  377|  16.5k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E12getHashValueERKS4_:
  336|  11.1k|  static unsigned getHashValue(const KeyT &Val) {
  337|  11.1k|    return KeyInfoT::getHashValue(Val);
  338|  11.1k|  }
_ZNK7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEEE8getFirstEv:
   41|  16.7k|  const KeyT &getFirst() const { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E16InsertIntoBucketEOS4_OSA_PSF_:
  418|  5.63k|  BucketT *InsertIntoBucket(KeyT &&Key, ValueT &&Value, BucketT *TheBucket) {
  419|  5.63k|    TheBucket = InsertIntoBucketImpl(Key, TheBucket);
  420|       |
  421|  5.63k|    TheBucket->getFirst() = std::move(Key);
  422|  5.63k|    ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
  423|  5.63k|    return TheBucket;
  424|  5.63k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E20InsertIntoBucketImplERKS4_PSF_:
  426|  5.63k|  BucketT *InsertIntoBucketImpl(const KeyT &Key, BucketT *TheBucket) {
  427|  5.63k|    incrementEpoch();
  428|       |
  429|       |    // If the load of the hash table is more than 3/4, or if fewer than 1/8 of
  430|       |    // the buckets are empty (meaning that many are filled with tombstones),
  431|       |    // grow the table.
  432|       |    //
  433|       |    // The later case is tricky.  For example, if we had one empty bucket with
  434|       |    // tons of tombstones, failing lookups (e.g. for insertion) would have to
  435|       |    // probe almost the entire table until it found the empty bucket.  If the
  436|       |    // table completely filled with tombstones, no lookup would ever succeed,
  437|       |    // causing infinite loops in lookup.
  438|  5.63k|    unsigned NewNumEntries = getNumEntries() + 1;
  439|  5.63k|    unsigned NumBuckets = getNumBuckets();
  440|  5.63k|    if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) {
  ------------------
  |  |  171|  5.63k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 5.42k, False: 209]
  |  |  ------------------
  ------------------
  441|  5.42k|      this->grow(NumBuckets * 2);
  442|  5.42k|      LookupBucketFor(Key, TheBucket);
  443|  5.42k|      NumBuckets = getNumBuckets();
  444|  5.42k|    } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <=
  ------------------
  |  |  171|    209|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 209]
  |  |  ------------------
  ------------------
  445|    209|                             NumBuckets/8)) {
  446|      0|      this->grow(NumBuckets);
  447|      0|      LookupBucketFor(Key, TheBucket);
  448|      0|    }
  449|  5.63k|    assert(TheBucket);
  ------------------
  |  Branch (449:5): [True: 5.63k, False: 0]
  ------------------
  450|       |
  451|       |    // Only update the state after we've grown our bucket space appropriately
  452|       |    // so that when growing buckets we have self-consistent entry count.
  453|  5.63k|    incrementNumEntries();
  454|       |
  455|       |    // If we are writing over a tombstone, remember this.
  456|  5.63k|    const KeyT EmptyKey = getEmptyKey();
  457|  5.63k|    if (!KeyInfoT::isEqual(TheBucket->getFirst(), EmptyKey))
  ------------------
  |  Branch (457:9): [True: 0, False: 5.63k]
  ------------------
  458|      0|      decrementNumTombstones();
  459|       |
  460|  5.63k|    return TheBucket;
  461|  5.63k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E4growEj:
  391|  5.42k|  void grow(unsigned AtLeast) {
  392|  5.42k|    static_cast<DerivedT *>(this)->grow(AtLeast);
  393|  5.42k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS4_9allocatorIS6_EEEENS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_S9_EEE4growEj:
  621|  5.42k|  void grow(unsigned AtLeast) {
  622|  5.42k|    unsigned OldNumBuckets = NumBuckets;
  623|  5.42k|    BucketT *OldBuckets = Buckets;
  624|       |
  625|  5.42k|    allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1))));
  626|  5.42k|    assert(Buckets);
  ------------------
  |  Branch (626:5): [True: 5.42k, False: 0]
  ------------------
  627|  5.42k|    if (!OldBuckets) {
  ------------------
  |  Branch (627:9): [True: 5.42k, False: 0]
  ------------------
  628|  5.42k|      this->BaseT::initEmpty();
  629|  5.42k|      return;
  630|  5.42k|    }
  631|       |
  632|      0|    this->moveFromOldBuckets(OldBuckets, OldBuckets+OldNumBuckets);
  633|       |
  634|       |    // Free the old table.
  635|      0|    operator delete(OldBuckets);
  636|      0|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFENSt3__16vectorINS_18ELFRelocationEntryENS5_9allocatorIS7_EEEENS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_SA_EEEES4_SA_SC_SF_E19incrementNumEntriesEv:
  357|  5.63k|  void incrementNumEntries() {
  358|  5.63k|    setNumEntries(getNumEntries() + 1);
  359|  5.63k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_11MCSymbolELFES4_NS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_S4_EEEES4_S4_S6_S9_E6lookupERKS4_:
  159|  4.76k|  ValueT lookup(const KeyT &Val) const {
  160|  4.76k|    const BucketT *TheBucket;
  161|  4.76k|    if (LookupBucketFor(Val, TheBucket))
  ------------------
  |  Branch (161:9): [True: 11, False: 4.75k]
  ------------------
  162|     11|      return TheBucket->getSecond();
  163|  4.75k|    return ValueT();
  164|  4.76k|  }
_ZNK7llvm_ks6detail12DenseMapPairIPKNS_11MCSymbolELFES4_E9getSecondEv:
   43|     11|  const ValueT &getSecond() const { return std::pair<KeyT, ValueT>::second; }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEEC2Ej:
  553|  5.68k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  5.68k|    init(NumInitBuckets);
  555|  5.68k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_EC2Ev:
  262|  5.68k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE4initEj:
  612|  5.68k|  void init(unsigned InitBuckets) {
  613|  5.68k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 5.68k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  5.68k|    } else {
  616|  5.68k|      NumEntries = 0;
  617|  5.68k|      NumTombstones = 0;
  618|  5.68k|    }
  619|  5.68k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE15allocateBucketsEj:
  678|  11.0k|  bool allocateBuckets(unsigned Num) {
  679|  11.0k|    NumBuckets = Num;
  680|  11.0k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 5.68k, False: 5.32k]
  ------------------
  681|  5.68k|      Buckets = nullptr;
  682|  5.68k|      return false;
  683|  5.68k|    }
  684|       |
  685|  5.32k|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|  5.32k|    return true;
  687|  11.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E9initEmptyEv:
  277|  5.32k|  void initEmpty() {
  278|  5.32k|    setNumEntries(0);
  279|  5.32k|    setNumTombstones(0);
  280|       |
  281|  5.32k|    assert((getNumBuckets() & (getNumBuckets()-1)) == 0 &&
  ------------------
  |  Branch (281:5): [True: 5.32k, False: 0]
  |  Branch (281:5): [True: 5.32k, Folded]
  |  Branch (281:5): [True: 5.32k, False: 0]
  ------------------
  282|  5.32k|           "# initial buckets must be a power of two!");
  283|  5.32k|    const KeyT EmptyKey = getEmptyKey();
  284|   345k|    for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B)
  ------------------
  |  Branch (284:59): [True: 340k, False: 5.32k]
  ------------------
  285|   340k|      ::new (&B->getFirst()) KeyT(EmptyKey);
  286|  5.32k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E13setNumEntriesEj:
  354|  10.9k|  void setNumEntries(unsigned Num) {
  355|  10.9k|    static_cast<DerivedT *>(this)->setNumEntries(Num);
  356|  10.9k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE13setNumEntriesEj:
  659|  10.9k|  void setNumEntries(unsigned Num) {
  660|  10.9k|    NumEntries = Num;
  661|  10.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E16setNumTombstonesEj:
  366|  5.32k|  void setNumTombstones(unsigned Num) {
  367|  5.32k|    static_cast<DerivedT *>(this)->setNumTombstones(Num);
  368|  5.32k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE16setNumTombstonesEj:
  666|  5.32k|  void setNumTombstones(unsigned Num) {
  667|  5.32k|    NumTombstones = Num;
  668|  5.32k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E13getNumBucketsEv:
  381|  48.8k|  unsigned getNumBuckets() const {
  382|  48.8k|    return static_cast<const DerivedT *>(this)->getNumBuckets();
  383|  48.8k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE13getNumBucketsEv:
  674|  48.8k|  unsigned getNumBuckets() const {
  675|  48.8k|    return NumBuckets;
  676|  48.8k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E11getEmptyKeyEv:
  343|  21.9k|  static const KeyT getEmptyKey() {
  344|  21.9k|    return KeyInfoT::getEmptyKey();
  345|  21.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E10getBucketsEv:
  378|  21.2k|  BucketT *getBuckets() {
  379|  21.2k|    return static_cast<DerivedT *>(this)->getBuckets();
  380|  21.2k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE10getBucketsEv:
  670|  32.2k|  BucketT *getBuckets() const {
  671|  32.2k|    return Buckets;
  672|  32.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E13getBucketsEndEv:
  384|  10.6k|  BucketT *getBucketsEnd() {
  385|  10.6k|    return getBuckets() + getNumBuckets();
  386|  10.6k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFEjE8getFirstEv:
   40|  1.03M|  KeyT &getFirst() { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_EixEOS4_:
  245|  5.52k|  ValueT &operator[](KeyT &&Key) {
  246|  5.52k|    return FindAndConstruct(std::move(Key)).second;
  247|  5.52k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E16FindAndConstructEOS4_:
  237|  5.52k|  value_type& FindAndConstruct(KeyT &&Key) {
  238|  5.52k|    BucketT *TheBucket;
  239|  5.52k|    if (LookupBucketFor(Key, TheBucket))
  ------------------
  |  Branch (239:9): [True: 0, False: 5.52k]
  ------------------
  240|      0|      return *TheBucket;
  241|       |
  242|  5.52k|    return *InsertIntoBucket(std::move(Key), ValueT(), TheBucket);
  243|  5.52k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E15LookupBucketForIS4_EEbRKT_RPS9_:
  519|  10.9k|  bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) {
  520|  10.9k|    const BucketT *ConstFoundBucket;
  521|  10.9k|    bool Result = const_cast<const DenseMapBase *>(this)
  522|  10.9k|      ->LookupBucketFor(Val, ConstFoundBucket);
  523|  10.9k|    FoundBucket = const_cast<BucketT *>(ConstFoundBucket);
  524|  10.9k|    return Result;
  525|  10.9k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E15LookupBucketForIS4_EEbRKT_RPKS9_:
  469|  10.9k|                       const BucketT *&FoundBucket) const {
  470|  10.9k|    const BucketT *BucketsPtr = getBuckets();
  471|  10.9k|    const unsigned NumBuckets = getNumBuckets();
  472|       |
  473|  10.9k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (473:9): [True: 5.32k, False: 5.64k]
  ------------------
  474|  5.32k|      FoundBucket = nullptr;
  475|  5.32k|      return false;
  476|  5.32k|    }
  477|       |
  478|       |    // FoundTombstone - Keep track of whether we find a tombstone while probing.
  479|  5.64k|    const BucketT *FoundTombstone = nullptr;
  480|  5.64k|    const KeyT EmptyKey = getEmptyKey();
  481|  5.64k|    const KeyT TombstoneKey = getTombstoneKey();
  482|  5.64k|    assert(!KeyInfoT::isEqual(Val, EmptyKey) &&
  ------------------
  |  Branch (482:5): [True: 5.64k, False: 0]
  |  Branch (482:5): [True: 5.64k, False: 0]
  |  Branch (482:5): [True: 5.64k, Folded]
  |  Branch (482:5): [True: 5.64k, False: 0]
  ------------------
  483|  5.64k|           !KeyInfoT::isEqual(Val, TombstoneKey) &&
  484|  5.64k|           "Empty/Tombstone value shouldn't be inserted into map!");
  485|       |
  486|  5.64k|    unsigned BucketNo = getHashValue(Val) & (NumBuckets-1);
  487|  5.64k|    unsigned ProbeAmt = 1;
  488|  5.66k|    while (1) {
  ------------------
  |  Branch (488:12): [True: 5.66k, Folded]
  ------------------
  489|  5.66k|      const BucketT *ThisBucket = BucketsPtr + BucketNo;
  490|       |      // Found Val's bucket?  If so, return it.
  491|  5.66k|      if (LLVM_LIKELY(KeyInfoT::isEqual(Val, ThisBucket->getFirst()))) {
  ------------------
  |  |  170|  5.66k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 0, False: 5.66k]
  |  |  ------------------
  ------------------
  492|      0|        FoundBucket = ThisBucket;
  493|      0|        return true;
  494|      0|      }
  495|       |
  496|       |      // If we found an empty bucket, the key doesn't exist in the set.
  497|       |      // Insert it and return the default value.
  498|  5.66k|      if (LLVM_LIKELY(KeyInfoT::isEqual(ThisBucket->getFirst(), EmptyKey))) {
  ------------------
  |  |  170|  5.66k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 5.64k, False: 14]
  |  |  ------------------
  ------------------
  499|       |        // If we've already seen a tombstone while probing, fill it in instead
  500|       |        // of the empty bucket we eventually probed to.
  501|  5.64k|        FoundBucket = FoundTombstone ? FoundTombstone : ThisBucket;
  ------------------
  |  Branch (501:23): [True: 0, False: 5.64k]
  ------------------
  502|  5.64k|        return false;
  503|  5.64k|      }
  504|       |
  505|       |      // If this is a tombstone, remember it.  If Val ends up not in the map, we
  506|       |      // prefer to return it than something that would require more probing.
  507|     14|      if (KeyInfoT::isEqual(ThisBucket->getFirst(), TombstoneKey) &&
  ------------------
  |  Branch (507:11): [True: 0, False: 14]
  ------------------
  508|      0|          !FoundTombstone)
  ------------------
  |  Branch (508:11): [True: 0, False: 0]
  ------------------
  509|      0|        FoundTombstone = ThisBucket;  // Remember the first tombstone found.
  510|       |
  511|       |      // Otherwise, it's a hash collision or a tombstone, continue quadratic
  512|       |      // probing.
  513|     14|      BucketNo += ProbeAmt++;
  514|     14|      BucketNo &= (NumBuckets-1);
  515|     14|    }
  516|  5.64k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E10getBucketsEv:
  375|  10.9k|  const BucketT *getBuckets() const {
  376|  10.9k|    return static_cast<const DerivedT *>(this)->getBuckets();
  377|  10.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E15getTombstoneKeyEv:
  346|  10.9k|  static const KeyT getTombstoneKey() {
  347|  10.9k|    return KeyInfoT::getTombstoneKey();
  348|  10.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E12getHashValueERKS4_:
  336|  5.64k|  static unsigned getHashValue(const KeyT &Val) {
  337|  5.64k|    return KeyInfoT::getHashValue(Val);
  338|  5.64k|  }
_ZNK7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFEjE8getFirstEv:
   41|  11.3k|  const KeyT &getFirst() const { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E16InsertIntoBucketEOS4_OjPS9_:
  418|  5.52k|  BucketT *InsertIntoBucket(KeyT &&Key, ValueT &&Value, BucketT *TheBucket) {
  419|  5.52k|    TheBucket = InsertIntoBucketImpl(Key, TheBucket);
  420|       |
  421|  5.52k|    TheBucket->getFirst() = std::move(Key);
  422|  5.52k|    ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
  423|  5.52k|    return TheBucket;
  424|  5.52k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E20InsertIntoBucketImplERKS4_PS9_:
  426|  5.64k|  BucketT *InsertIntoBucketImpl(const KeyT &Key, BucketT *TheBucket) {
  427|  5.64k|    incrementEpoch();
  428|       |
  429|       |    // If the load of the hash table is more than 3/4, or if fewer than 1/8 of
  430|       |    // the buckets are empty (meaning that many are filled with tombstones),
  431|       |    // grow the table.
  432|       |    //
  433|       |    // The later case is tricky.  For example, if we had one empty bucket with
  434|       |    // tons of tombstones, failing lookups (e.g. for insertion) would have to
  435|       |    // probe almost the entire table until it found the empty bucket.  If the
  436|       |    // table completely filled with tombstones, no lookup would ever succeed,
  437|       |    // causing infinite loops in lookup.
  438|  5.64k|    unsigned NewNumEntries = getNumEntries() + 1;
  439|  5.64k|    unsigned NumBuckets = getNumBuckets();
  440|  5.64k|    if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) {
  ------------------
  |  |  171|  5.64k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 5.32k, False: 327]
  |  |  ------------------
  ------------------
  441|  5.32k|      this->grow(NumBuckets * 2);
  442|  5.32k|      LookupBucketFor(Key, TheBucket);
  443|  5.32k|      NumBuckets = getNumBuckets();
  444|  5.32k|    } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <=
  ------------------
  |  |  171|    327|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 327]
  |  |  ------------------
  ------------------
  445|    327|                             NumBuckets/8)) {
  446|      0|      this->grow(NumBuckets);
  447|      0|      LookupBucketFor(Key, TheBucket);
  448|      0|    }
  449|  5.64k|    assert(TheBucket);
  ------------------
  |  Branch (449:5): [True: 5.64k, False: 0]
  ------------------
  450|       |
  451|       |    // Only update the state after we've grown our bucket space appropriately
  452|       |    // so that when growing buckets we have self-consistent entry count.
  453|  5.64k|    incrementNumEntries();
  454|       |
  455|       |    // If we are writing over a tombstone, remember this.
  456|  5.64k|    const KeyT EmptyKey = getEmptyKey();
  457|  5.64k|    if (!KeyInfoT::isEqual(TheBucket->getFirst(), EmptyKey))
  ------------------
  |  Branch (457:9): [True: 0, False: 5.64k]
  ------------------
  458|      0|      decrementNumTombstones();
  459|       |
  460|  5.64k|    return TheBucket;
  461|  5.64k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E13getNumEntriesEv:
  351|  11.2k|  unsigned getNumEntries() const {
  352|  11.2k|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|  11.2k|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE13getNumEntriesEv:
  656|  11.2k|  unsigned getNumEntries() const {
  657|  11.2k|    return NumEntries;
  658|  11.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E4growEj:
  391|  5.32k|  void grow(unsigned AtLeast) {
  392|  5.32k|    static_cast<DerivedT *>(this)->grow(AtLeast);
  393|  5.32k|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE4growEj:
  621|  5.32k|  void grow(unsigned AtLeast) {
  622|  5.32k|    unsigned OldNumBuckets = NumBuckets;
  623|  5.32k|    BucketT *OldBuckets = Buckets;
  624|       |
  625|  5.32k|    allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1))));
  626|  5.32k|    assert(Buckets);
  ------------------
  |  Branch (626:5): [True: 5.32k, False: 0]
  ------------------
  627|  5.32k|    if (!OldBuckets) {
  ------------------
  |  Branch (627:9): [True: 5.32k, False: 0]
  ------------------
  628|  5.32k|      this->BaseT::initEmpty();
  629|  5.32k|      return;
  630|  5.32k|    }
  631|       |
  632|      0|    this->moveFromOldBuckets(OldBuckets, OldBuckets+OldNumBuckets);
  633|       |
  634|       |    // Free the old table.
  635|      0|    operator delete(OldBuckets);
  636|      0|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E16getNumTombstonesEv:
  363|    327|  unsigned getNumTombstones() const {
  364|    327|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|    327|  }
_ZNK7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEE16getNumTombstonesEv:
  663|    327|  unsigned getNumTombstones() const {
  664|    327|    return NumTombstones;
  665|    327|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E19incrementNumEntriesEv:
  357|  5.64k|  void incrementNumEntries() {
  358|  5.64k|    setNumEntries(getNumEntries() + 1);
  359|  5.64k|  }
_ZN7llvm_ks6detail12DenseMapPairIPKNS_12MCSectionELFEjE9getSecondEv:
   42|  11.2k|  ValueT &getSecond() { return std::pair<KeyT, ValueT>::second; }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_EixERKS4_:
  233|    118|  ValueT &operator[](const KeyT &Key) {
  234|    118|    return FindAndConstruct(Key).second;
  235|    118|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E16FindAndConstructERKS4_:
  225|    118|  value_type& FindAndConstruct(const KeyT &Key) {
  226|    118|    BucketT *TheBucket;
  227|    118|    if (LookupBucketFor(Key, TheBucket))
  ------------------
  |  Branch (227:9): [True: 0, False: 118]
  ------------------
  228|      0|      return *TheBucket;
  229|       |
  230|    118|    return *InsertIntoBucket(Key, ValueT(), TheBucket);
  231|    118|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E16InsertIntoBucketERKS4_OjPS9_:
  410|    118|                            BucketT *TheBucket) {
  411|    118|    TheBucket = InsertIntoBucketImpl(Key, TheBucket);
  412|       |
  413|    118|    TheBucket->getFirst() = Key;
  414|    118|    ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
  415|    118|    return TheBucket;
  416|    118|  }
_ZN7llvm_ks8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS3_EENS_6detail12DenseMapPairIS3_jEEED2Ev:
  573|  5.68k|  ~DenseMap() {
  574|  5.68k|    this->destroyAll();
  575|  5.68k|    operator delete(Buckets);
  576|  5.68k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapIPKNS_12MCSectionELFEjNS_12DenseMapInfoIS4_EENS_6detail12DenseMapPairIS4_jEEEES4_jS6_S9_E10destroyAllEv:
  264|  5.68k|  void destroyAll() {
  265|  5.68k|    if (getNumBuckets() == 0) // Nothing to do.
  ------------------
  |  Branch (265:9): [True: 365, False: 5.32k]
  ------------------
  266|    365|      return;
  267|       |
  268|  5.32k|    const KeyT EmptyKey = getEmptyKey(), TombstoneKey = getTombstoneKey();
  269|   345k|    for (BucketT *P = getBuckets(), *E = getBucketsEnd(); P != E; ++P) {
  ------------------
  |  Branch (269:59): [True: 340k, False: 5.32k]
  ------------------
  270|   340k|      if (!KeyInfoT::isEqual(P->getFirst(), EmptyKey) &&
  ------------------
  |  Branch (270:11): [True: 5.64k, False: 334k]
  ------------------
  271|  5.64k|          !KeyInfoT::isEqual(P->getFirst(), TombstoneKey))
  ------------------
  |  Branch (271:11): [True: 5.64k, False: 0]
  ------------------
  272|  5.64k|        P->getSecond().~ValueT();
  273|   340k|      P->getFirst().~KeyT();
  274|   340k|    }
  275|  5.32k|  }
_ZN7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEEC2Ej:
  553|  13.6k|  explicit DenseMap(unsigned NumInitBuckets = 0) {
  554|  13.6k|    init(NumInitBuckets);
  555|  13.6k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_EC2Ev:
  262|  13.6k|  DenseMapBase() = default;
_ZN7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE4initEj:
  612|  13.6k|  void init(unsigned InitBuckets) {
  613|  13.6k|    if (allocateBuckets(InitBuckets)) {
  ------------------
  |  Branch (613:9): [True: 0, False: 13.6k]
  ------------------
  614|      0|      this->BaseT::initEmpty();
  615|  13.6k|    } else {
  616|  13.6k|      NumEntries = 0;
  617|  13.6k|      NumTombstones = 0;
  618|  13.6k|    }
  619|  13.6k|  }
_ZN7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE15allocateBucketsEj:
  678|  19.3k|  bool allocateBuckets(unsigned Num) {
  679|  19.3k|    NumBuckets = Num;
  680|  19.3k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (680:9): [True: 13.6k, False: 5.68k]
  ------------------
  681|  13.6k|      Buckets = nullptr;
  682|  13.6k|      return false;
  683|  13.6k|    }
  684|       |
  685|  5.68k|    Buckets = static_cast<BucketT*>(operator new(sizeof(BucketT) * NumBuckets));
  686|  5.68k|    return true;
  687|  19.3k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E9initEmptyEv:
  277|  5.68k|  void initEmpty() {
  278|  5.68k|    setNumEntries(0);
  279|  5.68k|    setNumTombstones(0);
  280|       |
  281|  5.68k|    assert((getNumBuckets() & (getNumBuckets()-1)) == 0 &&
  ------------------
  |  Branch (281:5): [True: 5.68k, False: 0]
  |  Branch (281:5): [True: 5.68k, Folded]
  |  Branch (281:5): [True: 5.68k, False: 0]
  ------------------
  282|  5.68k|           "# initial buckets must be a power of two!");
  283|  5.68k|    const KeyT EmptyKey = getEmptyKey();
  284|   369k|    for (BucketT *B = getBuckets(), *E = getBucketsEnd(); B != E; ++B)
  ------------------
  |  Branch (284:59): [True: 363k, False: 5.68k]
  ------------------
  285|   363k|      ::new (&B->getFirst()) KeyT(EmptyKey);
  286|  5.68k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E13setNumEntriesEj:
  354|  16.9k|  void setNumEntries(unsigned Num) {
  355|  16.9k|    static_cast<DerivedT *>(this)->setNumEntries(Num);
  356|  16.9k|  }
_ZN7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE13setNumEntriesEj:
  659|  16.9k|  void setNumEntries(unsigned Num) {
  660|  16.9k|    NumEntries = Num;
  661|  16.9k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E16setNumTombstonesEj:
  366|  5.68k|  void setNumTombstones(unsigned Num) {
  367|  5.68k|    static_cast<DerivedT *>(this)->setNumTombstones(Num);
  368|  5.68k|  }
_ZN7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE16setNumTombstonesEj:
  666|  5.68k|  void setNumTombstones(unsigned Num) {
  667|  5.68k|    NumTombstones = Num;
  668|  5.68k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E13getNumEntriesEv:
  351|  22.4k|  unsigned getNumEntries() const {
  352|  22.4k|    return static_cast<const DerivedT *>(this)->getNumEntries();
  353|  22.4k|  }
_ZNK7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE13getNumEntriesEv:
  656|  22.4k|  unsigned getNumEntries() const {
  657|  22.4k|    return NumEntries;
  658|  22.4k|  }
_ZN7llvm_ks16DenseMapIteratorINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEELb0EEC2EPS6_S8_RKNS_14DebugEpochBaseEb:
 1006|  11.3k|      : DebugEpochBase::HandleBase(&Epoch), Ptr(Pos), End(E) {
 1007|  11.3k|    assert(isHandleInSync() && "invalid construction!");
  ------------------
  |  Branch (1007:5): [True: 11.3k, False: 0]
  |  Branch (1007:5): [True: 11.3k, Folded]
  |  Branch (1007:5): [True: 11.3k, False: 0]
  ------------------
 1008|  11.3k|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (1008:9): [True: 0, False: 11.3k]
  ------------------
 1009|  11.3k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E16getNumTombstonesEv:
  363|  5.56k|  unsigned getNumTombstones() const {
  364|  5.56k|    return static_cast<const DerivedT *>(this)->getNumTombstones();
  365|  5.56k|  }
_ZNK7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE16getNumTombstonesEv:
  663|  5.56k|  unsigned getNumTombstones() const {
  664|  5.56k|    return NumTombstones;
  665|  5.56k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E15LookupBucketForIS2_EEbRKT_RPKS7_:
  469|  17.0k|                       const BucketT *&FoundBucket) const {
  470|  17.0k|    const BucketT *BucketsPtr = getBuckets();
  471|  17.0k|    const unsigned NumBuckets = getNumBuckets();
  472|       |
  473|  17.0k|    if (NumBuckets == 0) {
  ------------------
  |  Branch (473:9): [True: 5.68k, False: 11.3k]
  ------------------
  474|  5.68k|      FoundBucket = nullptr;
  475|  5.68k|      return false;
  476|  5.68k|    }
  477|       |
  478|       |    // FoundTombstone - Keep track of whether we find a tombstone while probing.
  479|  11.3k|    const BucketT *FoundTombstone = nullptr;
  480|  11.3k|    const KeyT EmptyKey = getEmptyKey();
  481|  11.3k|    const KeyT TombstoneKey = getTombstoneKey();
  482|  11.3k|    assert(!KeyInfoT::isEqual(Val, EmptyKey) &&
  ------------------
  |  Branch (482:5): [True: 11.3k, False: 0]
  |  Branch (482:5): [True: 11.3k, False: 0]
  |  Branch (482:5): [True: 11.3k, Folded]
  |  Branch (482:5): [True: 11.3k, False: 0]
  ------------------
  483|  11.3k|           !KeyInfoT::isEqual(Val, TombstoneKey) &&
  484|  11.3k|           "Empty/Tombstone value shouldn't be inserted into map!");
  485|       |
  486|  11.3k|    unsigned BucketNo = getHashValue(Val) & (NumBuckets-1);
  487|  11.3k|    unsigned ProbeAmt = 1;
  488|  11.4k|    while (1) {
  ------------------
  |  Branch (488:12): [True: 11.4k, Folded]
  ------------------
  489|  11.4k|      const BucketT *ThisBucket = BucketsPtr + BucketNo;
  490|       |      // Found Val's bucket?  If so, return it.
  491|  11.4k|      if (LLVM_LIKELY(KeyInfoT::isEqual(Val, ThisBucket->getFirst()))) {
  ------------------
  |  |  170|  11.4k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 83, False: 11.3k]
  |  |  ------------------
  ------------------
  492|     83|        FoundBucket = ThisBucket;
  493|     83|        return true;
  494|     83|      }
  495|       |
  496|       |      // If we found an empty bucket, the key doesn't exist in the set.
  497|       |      // Insert it and return the default value.
  498|  11.3k|      if (LLVM_LIKELY(KeyInfoT::isEqual(ThisBucket->getFirst(), EmptyKey))) {
  ------------------
  |  |  170|  11.3k|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 11.2k, False: 118]
  |  |  ------------------
  ------------------
  499|       |        // If we've already seen a tombstone while probing, fill it in instead
  500|       |        // of the empty bucket we eventually probed to.
  501|  11.2k|        FoundBucket = FoundTombstone ? FoundTombstone : ThisBucket;
  ------------------
  |  Branch (501:23): [True: 0, False: 11.2k]
  ------------------
  502|  11.2k|        return false;
  503|  11.2k|      }
  504|       |
  505|       |      // If this is a tombstone, remember it.  If Val ends up not in the map, we
  506|       |      // prefer to return it than something that would require more probing.
  507|    118|      if (KeyInfoT::isEqual(ThisBucket->getFirst(), TombstoneKey) &&
  ------------------
  |  Branch (507:11): [True: 0, False: 118]
  ------------------
  508|      0|          !FoundTombstone)
  ------------------
  |  Branch (508:11): [True: 0, False: 0]
  ------------------
  509|      0|        FoundTombstone = ThisBucket;  // Remember the first tombstone found.
  510|       |
  511|       |      // Otherwise, it's a hash collision or a tombstone, continue quadratic
  512|       |      // probing.
  513|    118|      BucketNo += ProbeAmt++;
  514|    118|      BucketNo &= (NumBuckets-1);
  515|    118|    }
  516|  11.3k|  }
_ZNK7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E10getBucketsEv:
  375|  17.0k|  const BucketT *getBuckets() const {
  376|  17.0k|    return static_cast<const DerivedT *>(this)->getBuckets();
  377|  17.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E12getHashValueERKS2_:
  336|  11.3k|  static unsigned getHashValue(const KeyT &Val) {
  337|  11.3k|    return KeyInfoT::getHashValue(Val);
  338|  11.3k|  }
_ZNK7llvm_ks6detail12DenseMapPairINS_9StringRefEmE8getFirstEv:
   41|  22.9k|  const KeyT &getFirst() const { return std::pair<KeyT, ValueT>::first; }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E6insertEONSt3__14pairIS2_mEE:
  184|  11.3k|  std::pair<iterator, bool> insert(std::pair<KeyT, ValueT> &&KV) {
  185|  11.3k|    BucketT *TheBucket;
  186|  11.3k|    if (LookupBucketFor(KV.first, TheBucket))
  ------------------
  |  Branch (186:9): [True: 83, False: 11.2k]
  ------------------
  187|     83|      return std::make_pair(iterator(TheBucket, getBucketsEnd(), *this, true),
  188|     83|                            false); // Already in map.
  189|       |
  190|       |    // Otherwise, insert the new element.
  191|  11.2k|    TheBucket = InsertIntoBucket(std::move(KV.first),
  192|  11.2k|                                 std::move(KV.second),
  193|  11.2k|                                 TheBucket);
  194|  11.2k|    return std::make_pair(iterator(TheBucket, getBucketsEnd(), *this, true),
  195|  11.2k|                          true);
  196|  11.3k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E15LookupBucketForIS2_EEbRKT_RPS7_:
  519|  17.0k|  bool LookupBucketFor(const LookupKeyT &Val, BucketT *&FoundBucket) {
  520|  17.0k|    const BucketT *ConstFoundBucket;
  521|  17.0k|    bool Result = const_cast<const DenseMapBase *>(this)
  522|  17.0k|      ->LookupBucketFor(Val, ConstFoundBucket);
  523|  17.0k|    FoundBucket = const_cast<BucketT *>(ConstFoundBucket);
  524|  17.0k|    return Result;
  525|  17.0k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E16InsertIntoBucketEOS2_OmPS7_:
  418|  11.2k|  BucketT *InsertIntoBucket(KeyT &&Key, ValueT &&Value, BucketT *TheBucket) {
  419|  11.2k|    TheBucket = InsertIntoBucketImpl(Key, TheBucket);
  420|       |
  421|  11.2k|    TheBucket->getFirst() = std::move(Key);
  422|  11.2k|    ::new (&TheBucket->getSecond()) ValueT(std::move(Value));
  423|  11.2k|    return TheBucket;
  424|  11.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E20InsertIntoBucketImplERKS2_PS7_:
  426|  11.2k|  BucketT *InsertIntoBucketImpl(const KeyT &Key, BucketT *TheBucket) {
  427|  11.2k|    incrementEpoch();
  428|       |
  429|       |    // If the load of the hash table is more than 3/4, or if fewer than 1/8 of
  430|       |    // the buckets are empty (meaning that many are filled with tombstones),
  431|       |    // grow the table.
  432|       |    //
  433|       |    // The later case is tricky.  For example, if we had one empty bucket with
  434|       |    // tons of tombstones, failing lookups (e.g. for insertion) would have to
  435|       |    // probe almost the entire table until it found the empty bucket.  If the
  436|       |    // table completely filled with tombstones, no lookup would ever succeed,
  437|       |    // causing infinite loops in lookup.
  438|  11.2k|    unsigned NewNumEntries = getNumEntries() + 1;
  439|  11.2k|    unsigned NumBuckets = getNumBuckets();
  440|  11.2k|    if (LLVM_UNLIKELY(NewNumEntries * 4 >= NumBuckets * 3)) {
  ------------------
  |  |  171|  11.2k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 5.68k, False: 5.56k]
  |  |  ------------------
  ------------------
  441|  5.68k|      this->grow(NumBuckets * 2);
  442|  5.68k|      LookupBucketFor(Key, TheBucket);
  443|  5.68k|      NumBuckets = getNumBuckets();
  444|  5.68k|    } else if (LLVM_UNLIKELY(NumBuckets-(NewNumEntries+getNumTombstones()) <=
  ------------------
  |  |  171|  5.56k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 5.56k]
  |  |  ------------------
  ------------------
  445|  5.56k|                             NumBuckets/8)) {
  446|      0|      this->grow(NumBuckets);
  447|      0|      LookupBucketFor(Key, TheBucket);
  448|      0|    }
  449|  11.2k|    assert(TheBucket);
  ------------------
  |  Branch (449:5): [True: 11.2k, False: 0]
  ------------------
  450|       |
  451|       |    // Only update the state after we've grown our bucket space appropriately
  452|       |    // so that when growing buckets we have self-consistent entry count.
  453|  11.2k|    incrementNumEntries();
  454|       |
  455|       |    // If we are writing over a tombstone, remember this.
  456|  11.2k|    const KeyT EmptyKey = getEmptyKey();
  457|  11.2k|    if (!KeyInfoT::isEqual(TheBucket->getFirst(), EmptyKey))
  ------------------
  |  Branch (457:9): [True: 0, False: 11.2k]
  ------------------
  458|      0|      decrementNumTombstones();
  459|       |
  460|  11.2k|    return TheBucket;
  461|  11.2k|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E4growEj:
  391|  5.68k|  void grow(unsigned AtLeast) {
  392|  5.68k|    static_cast<DerivedT *>(this)->grow(AtLeast);
  393|  5.68k|  }
_ZN7llvm_ks8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEEE4growEj:
  621|  5.68k|  void grow(unsigned AtLeast) {
  622|  5.68k|    unsigned OldNumBuckets = NumBuckets;
  623|  5.68k|    BucketT *OldBuckets = Buckets;
  624|       |
  625|  5.68k|    allocateBuckets(std::max<unsigned>(64, static_cast<unsigned>(NextPowerOf2(AtLeast-1))));
  626|  5.68k|    assert(Buckets);
  ------------------
  |  Branch (626:5): [True: 5.68k, False: 0]
  ------------------
  627|  5.68k|    if (!OldBuckets) {
  ------------------
  |  Branch (627:9): [True: 5.68k, False: 0]
  ------------------
  628|  5.68k|      this->BaseT::initEmpty();
  629|  5.68k|      return;
  630|  5.68k|    }
  631|       |
  632|      0|    this->moveFromOldBuckets(OldBuckets, OldBuckets+OldNumBuckets);
  633|       |
  634|       |    // Free the old table.
  635|      0|    operator delete(OldBuckets);
  636|      0|  }
_ZN7llvm_ks12DenseMapBaseINS_8DenseMapINS_9StringRefEmNS_12DenseMapInfoIS2_EENS_6detail12DenseMapPairIS2_mEEEES2_mS4_S7_E19incrementNumEntriesEv:
  357|  11.2k|  void incrementNumEntries() {
  358|  11.2k|    setNumEntries(getNumEntries() + 1);
  359|  11.2k|  }
_ZNK7llvm_ks16DenseMapIteratorINS_9StringRefEmNS_12DenseMapInfoIS1_EENS_6detail12DenseMapPairIS1_mEELb0EEptEv:
 1024|  11.3k|  pointer operator->() const {
 1025|  11.3k|    assert(isHandleInSync() && "invalid iterator access!");
  ------------------
  |  Branch (1025:5): [True: 11.3k, False: 0]
  |  Branch (1025:5): [True: 11.3k, Folded]
  |  Branch (1025:5): [True: 11.3k, False: 0]
  ------------------
 1026|  11.3k|    return Ptr;
 1027|  11.3k|  }

_ZN7llvm_ks12DenseMapInfoINS_9StringRefEE11getEmptyKeyEv:
  171|   886k|  static inline StringRef getEmptyKey() {
  172|   886k|    return StringRef(reinterpret_cast<const char *>(~static_cast<uintptr_t>(0)),
  173|   886k|                     0);
  174|   886k|  }
_ZN7llvm_ks12DenseMapInfoINS_9StringRefEE15getTombstoneKeyEv:
  175|  73.9k|  static inline StringRef getTombstoneKey() {
  176|  73.9k|    return StringRef(reinterpret_cast<const char *>(~static_cast<uintptr_t>(1)),
  177|  73.9k|                     0);
  178|  73.9k|  }
_ZN7llvm_ks12DenseMapInfoINS_9StringRefEE12getHashValueES1_:
  179|  11.3k|  static unsigned getHashValue(StringRef Val) {
  180|  11.3k|    assert(Val.data() != getEmptyKey().data() && "Cannot hash the empty key!");
  ------------------
  |  Branch (180:5): [True: 11.3k, False: 0]
  |  Branch (180:5): [True: 11.3k, Folded]
  |  Branch (180:5): [True: 11.3k, False: 0]
  ------------------
  181|  11.3k|    assert(Val.data() != getTombstoneKey().data() &&
  ------------------
  |  Branch (181:5): [True: 11.3k, False: 0]
  |  Branch (181:5): [True: 11.3k, Folded]
  |  Branch (181:5): [True: 11.3k, False: 0]
  ------------------
  182|  11.3k|           "Cannot hash the tombstone key!");
  183|  11.3k|    return (unsigned)(hash_value(Val));
  184|  11.3k|  }
_ZN7llvm_ks12DenseMapInfoINS_9StringRefEE7isEqualES1_S1_:
  185|   431k|  static bool isEqual(StringRef LHS, StringRef RHS) {
  186|   431k|    if (RHS.data() == getEmptyKey().data())
  ------------------
  |  Branch (186:9): [True: 409k, False: 22.9k]
  ------------------
  187|   409k|      return LHS.data() == getEmptyKey().data();
  188|  22.9k|    if (RHS.data() == getTombstoneKey().data())
  ------------------
  |  Branch (188:9): [True: 22.6k, False: 201]
  ------------------
  189|  22.6k|      return LHS.data() == getTombstoneKey().data();
  190|    201|    return LHS == RHS;
  191|  22.9k|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_12MCSectionELFEE11getEmptyKeyEv:
   36|   118k|  static inline T* getEmptyKey() {
   37|   118k|    uintptr_t Val = static_cast<uintptr_t>(-1);
   38|   118k|    Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   39|   118k|    return reinterpret_cast<T*>(Val);
   40|   118k|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_12MCSectionELFEE15getTombstoneKeyEv:
   41|  68.7k|  static inline T* getTombstoneKey() {
   42|  68.7k|    uintptr_t Val = static_cast<uintptr_t>(-2);
   43|  68.7k|    Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   44|  68.7k|    return reinterpret_cast<T*>(Val);
   45|  68.7k|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_12MCSectionELFEE7isEqualES3_S3_:
   50|  2.60M|  static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
_ZN7llvm_ks12DenseMapInfoIPKNS_12MCSectionELFEE12getHashValueES3_:
   46|  30.7k|  static unsigned getHashValue(const T *PtrVal) {
   47|  30.7k|    return (unsigned((uintptr_t)PtrVal) >> 4) ^
   48|  30.7k|           (unsigned((uintptr_t)PtrVal) >> 9);
   49|  30.7k|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_9MCSectionEE11getEmptyKeyEv:
   36|   343k|  static inline T* getEmptyKey() {
   37|   343k|    uintptr_t Val = static_cast<uintptr_t>(-1);
   38|   343k|    Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   39|   343k|    return reinterpret_cast<T*>(Val);
   40|   343k|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_9MCSectionEE15getTombstoneKeyEv:
   41|   330k|  static inline T* getTombstoneKey() {
   42|   330k|    uintptr_t Val = static_cast<uintptr_t>(-2);
   43|   330k|    Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   44|   330k|    return reinterpret_cast<T*>(Val);
   45|   330k|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_9MCSectionEE7isEqualES3_S3_:
   50|  1.38M|  static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
_ZN7llvm_ks12DenseMapInfoIPKNS_9MCSectionEE12getHashValueES3_:
   46|   324k|  static unsigned getHashValue(const T *PtrVal) {
   47|   324k|    return (unsigned((uintptr_t)PtrVal) >> 4) ^
   48|   324k|           (unsigned((uintptr_t)PtrVal) >> 9);
   49|   324k|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_11MCSymbolELFEE11getEmptyKeyEv:
   36|    943|  static inline T* getEmptyKey() {
   37|    943|    uintptr_t Val = static_cast<uintptr_t>(-1);
   38|    943|    Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   39|    943|    return reinterpret_cast<T*>(Val);
   40|    943|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_11MCSymbolELFEE15getTombstoneKeyEv:
   41|    570|  static inline T* getTombstoneKey() {
   42|    570|    uintptr_t Val = static_cast<uintptr_t>(-2);
   43|    570|    Val <<= PointerLikeTypeTraits<T*>::NumLowBitsAvailable;
   44|    570|    return reinterpret_cast<T*>(Val);
   45|    570|  }
_ZN7llvm_ks12DenseMapInfoIPKNS_11MCSymbolELFEE7isEqualES3_S3_:
   50|  6.76k|  static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; }
_ZN7llvm_ks12DenseMapInfoIPKNS_11MCSymbolELFEE12getHashValueES3_:
   46|    504|  static unsigned getHashValue(const T *PtrVal) {
   47|    504|    return (unsigned((uintptr_t)PtrVal) >> 4) ^
   48|    504|           (unsigned((uintptr_t)PtrVal) >> 9);
   49|    504|  }

_ZN7llvm_ks8DenseSetIPNS_9MCSectionENS_12DenseMapInfoIS2_EEEC2Ej:
   51|  13.6k|  explicit DenseSet(unsigned NumInitBuckets = 0) : TheMap(NumInitBuckets) {}
_ZN7llvm_ks8DenseSetIPNS_9MCSectionENS_12DenseMapInfoIS2_EEE5clearEv:
   61|  13.6k|  void clear() {
   62|  13.6k|    TheMap.clear();
   63|  13.6k|  }

_ZN7llvm_ks14DebugEpochBaseD2Ev:
   63|   140k|  ~DebugEpochBase() { incrementEpoch(); }
_ZN7llvm_ks14DebugEpochBase14incrementEpochEv:
   59|   224k|  void incrementEpoch() { ++Epoch; }
_ZN7llvm_ks14DebugEpochBaseC2Ev:
   55|   140k|  DebugEpochBase() : Epoch(0) {}
_ZN7llvm_ks14DebugEpochBase10HandleBaseC2EPKS0_:
   81|  11.8k|        : EpochAddress(&Parent->Epoch), EpochAtCreation(Parent->Epoch) {}
_ZNK7llvm_ks14DebugEpochBase10HandleBase14isHandleInSyncEv:
   86|  23.1k|    bool isHandleInSync() const { return *EpochAddress == EpochAtCreation; }

_ZN7llvm_ks9hash_codeC2Em:
   82|  11.3k|  hash_code(size_t value) : value(value) {}
_ZNK7llvm_ks9hash_codecvmEv:
   85|  11.3k|  /*explicit*/ operator size_t() const { return value; }
_ZN7llvm_ks7hashing6detail7fetch64EPKc:
  146|    236|inline uint64_t fetch64(const char *p) {
  147|    236|  uint64_t result;
  148|    236|  memcpy(&result, p, sizeof(result));
  149|    236|  if (sys::IsBigEndianHost)
  ------------------
  |  Branch (149:7): [Folded, False: 236]
  ------------------
  150|      0|    sys::swapByteOrder(result);
  151|    236|  return result;
  152|    236|}
_ZN7llvm_ks7hashing6detail7fetch32EPKc:
  154|  22.0k|inline uint32_t fetch32(const char *p) {
  155|  22.0k|  uint32_t result;
  156|  22.0k|  memcpy(&result, p, sizeof(result));
  157|  22.0k|  if (sys::IsBigEndianHost)
  ------------------
  |  Branch (157:7): [Folded, False: 22.0k]
  ------------------
  158|      0|    sys::swapByteOrder(result);
  159|  22.0k|  return result;
  160|  22.0k|}
_ZN7llvm_ks7hashing6detail6rotateEmm:
  171|    118|inline uint64_t rotate(uint64_t val, size_t shift) {
  172|       |  // Avoid shifting by 64: doing so yields an undefined result.
  173|    118|  return shift == 0 ? val : ((val >> shift) | (val << (64 - shift)));
  ------------------
  |  Branch (173:10): [True: 0, False: 118]
  ------------------
  174|    118|}
_ZN7llvm_ks7hashing6detail13hash_16_bytesEmm:
  180|  11.1k|inline uint64_t hash_16_bytes(uint64_t low, uint64_t high) {
  181|       |  // Murmur-inspired hashing.
  182|  11.1k|  const uint64_t kMul = 0x9ddfea08eb382d69ULL;
  183|  11.1k|  uint64_t a = (low ^ high) * kMul;
  184|  11.1k|  a ^= (a >> 47);
  185|  11.1k|  uint64_t b = (high ^ a) * kMul;
  186|  11.1k|  b ^= (b >> 47);
  187|  11.1k|  b *= kMul;
  188|  11.1k|  return b;
  189|  11.1k|}
_ZN7llvm_ks7hashing6detail15hash_4to8_bytesEPKcmm:
  200|  11.0k|inline uint64_t hash_4to8_bytes(const char *s, size_t len, uint64_t seed) {
  201|  11.0k|  uint64_t a = fetch32(s);
  202|  11.0k|  return hash_16_bytes(len + (a << 3), seed ^ fetch32(s + len - 4));
  203|  11.0k|}
_ZN7llvm_ks7hashing6detail16hash_9to16_bytesEPKcmm:
  205|    118|inline uint64_t hash_9to16_bytes(const char *s, size_t len, uint64_t seed) {
  206|    118|  uint64_t a = fetch64(s);
  207|    118|  uint64_t b = fetch64(s + len - 8);
  208|    118|  return hash_16_bytes(seed ^ a, rotate(b + len, len)) ^ b;
  209|    118|}
_ZN7llvm_ks7hashing6detail10hash_shortEPKcmm:
  243|  11.3k|inline uint64_t hash_short(const char *s, size_t length, uint64_t seed) {
  244|  11.3k|  if (length >= 4 && length <= 8)
  ------------------
  |  Branch (244:7): [True: 11.1k, False: 188]
  |  Branch (244:22): [True: 11.0k, False: 118]
  ------------------
  245|  11.0k|    return hash_4to8_bytes(s, length, seed);
  246|    306|  if (length > 8 && length <= 16)
  ------------------
  |  Branch (246:7): [True: 118, False: 188]
  |  Branch (246:21): [True: 118, False: 0]
  ------------------
  247|    118|    return hash_9to16_bytes(s, length, seed);
  248|    188|  if (length > 16 && length <= 32)
  ------------------
  |  Branch (248:7): [True: 0, False: 188]
  |  Branch (248:22): [True: 0, False: 0]
  ------------------
  249|      0|    return hash_17to32_bytes(s, length, seed);
  250|    188|  if (length > 32)
  ------------------
  |  Branch (250:7): [True: 0, False: 188]
  ------------------
  251|      0|    return hash_33to64_bytes(s, length, seed);
  252|    188|  if (length != 0)
  ------------------
  |  Branch (252:7): [True: 0, False: 188]
  ------------------
  253|      0|    return hash_1to3_bytes(s, length, seed);
  254|       |
  255|    188|  return k2 ^ seed;
  256|    188|}
_ZN7llvm_ks7hashing6detail18get_execution_seedEv:
  322|  11.3k|inline size_t get_execution_seed() {
  323|       |  // FIXME: This needs to be a per-execution seed. This is just a placeholder
  324|       |  // implementation. Switching to a per-execution seed is likely to flush out
  325|       |  // instability bugs and so will happen as its own commit.
  326|       |  //
  327|       |  // However, if there is a fixed seed override set the first time this is
  328|       |  // called, return that instead of the per-execution seed.
  329|  11.3k|  const uint64_t seed_prime = 0xff51afd7ed558ccdULL;
  330|  11.3k|  static size_t seed = fixed_seed_override ? fixed_seed_override
  ------------------
  |  Branch (330:24): [True: 0, False: 11.3k]
  ------------------
  331|  11.3k|                                           : (size_t)seed_prime;
  332|  11.3k|  return seed;
  333|  11.3k|}
_ZN7llvm_ks18hash_combine_rangeIPKcEENS_9hash_codeET_S4_:
  481|  11.3k|hash_code hash_combine_range(InputIteratorT first, InputIteratorT last) {
  482|  11.3k|  return ::llvm_ks::hashing::detail::hash_combine_range_impl(first, last);
  483|  11.3k|}
_ZN7llvm_ks7hashing6detail23hash_combine_range_implIKcEENSt3__19enable_ifIXsr16is_hashable_dataIT_EE5valueENS_9hash_codeEE4typeEPS6_SA_:
  449|  11.3k|hash_combine_range_impl(ValueT *first, ValueT *last) {
  450|  11.3k|  const size_t seed = get_execution_seed();
  451|  11.3k|  const char *s_begin = reinterpret_cast<const char *>(first);
  452|  11.3k|  const char *s_end = reinterpret_cast<const char *>(last);
  453|  11.3k|  const size_t length = std::distance(s_begin, s_end);
  454|  11.3k|  if (length <= 64)
  ------------------
  |  Branch (454:7): [True: 11.3k, False: 0]
  ------------------
  455|  11.3k|    return hash_short(s_begin, length, seed);
  456|       |
  457|      0|  const char *s_aligned_end = s_begin + (length & ~63);
  458|      0|  hash_state state = state.create(s_begin, seed);
  459|      0|  s_begin += 64;
  460|      0|  while (s_begin != s_aligned_end) {
  ------------------
  |  Branch (460:10): [True: 0, False: 0]
  ------------------
  461|      0|    state.mix(s_begin);
  462|      0|    s_begin += 64;
  463|      0|  }
  464|      0|  if (length & 63)
  ------------------
  |  Branch (464:7): [True: 0, False: 0]
  ------------------
  465|      0|    state.mix(s_end - 64);
  466|       |
  467|      0|  return state.finalize(length);
  468|  11.3k|}

_ZN7llvm_ks8OptionalINS_11MCFixupKindEED2Ev:
  115|    730|  ~Optional() {
  116|    730|    reset();
  117|    730|  }
_ZN7llvm_ks8OptionalINS_11MCFixupKindEE5resetEv:
  108|    730|  void reset() {
  109|    730|    if (hasVal) {
  ------------------
  |  Branch (109:9): [True: 0, False: 730]
  ------------------
  110|      0|      (**this).~T();
  111|      0|      hasVal = false;
  112|      0|    }
  113|    730|  }
_ZNK7llvm_ks8OptionalINS_11MCFixupKindEE8hasValueEv:
  125|    730|  bool hasValue() const { return hasVal; }
_ZN7llvm_ks8OptionalINS_11MCFixupKindEEC2ENS_8NoneTypeE:
   35|    730|  Optional(NoneType) : hasVal(false) {}

_ZN7llvm_ks14PointerIntPairIPNS_10MCFragmentELj1EjNS_21PointerLikeTypeTraitsIS2_EENS_18PointerIntPairInfoIS2_Lj1ES4_EEE6setIntEj:
   66|   218k|  void setInt(IntType IntVal) {
   67|   218k|    Value = Info::updateInt(Value, static_cast<intptr_t>(IntVal));
   68|   218k|  }
_ZN7llvm_ks18PointerIntPairInfoIPNS_10MCFragmentELj1ENS_21PointerLikeTypeTraitsIS2_EEE9updateIntEll:
  165|   218k|  static intptr_t updateInt(intptr_t OrigValue, intptr_t Int) {
  166|   218k|    intptr_t IntWord = static_cast<intptr_t>(Int);
  167|   218k|    assert((IntWord & ~IntMask) == 0 && "Integer too large for field");
  ------------------
  |  Branch (167:5): [True: 218k, False: 0]
  |  Branch (167:5): [True: 218k, Folded]
  |  Branch (167:5): [True: 218k, False: 0]
  ------------------
  168|       |
  169|       |    // Preserve all bits other than the ones we are updating.
  170|   218k|    return (OrigValue & ~ShiftedIntMask) | IntWord << IntShift;
  171|   218k|  }
_ZNK7llvm_ks14PointerIntPairIPNS_10MCFragmentELj1EjNS_21PointerLikeTypeTraitsIS2_EENS_18PointerIntPairInfoIS2_Lj1ES4_EEE6getIntEv:
   58|   222k|  IntType getInt() const {
   59|   222k|    return (IntType)Info::getInt(Value);
   60|   222k|  }
_ZN7llvm_ks18PointerIntPairInfoIPNS_10MCFragmentELj1ENS_21PointerLikeTypeTraitsIS2_EEE6getIntEl:
  152|   222k|  static intptr_t getInt(intptr_t Value) {
  153|   222k|    return (Value >> IntShift) & IntMask;
  154|   222k|  }
_ZN7llvm_ks14PointerIntPairIPNS_10MCFragmentELj1EjNS_21PointerLikeTypeTraitsIS2_EENS_18PointerIntPairInfoIS2_Lj1ES4_EEE10setPointerES2_:
   62|   169k|  void setPointer(PointerTy PtrVal) {
   63|   169k|    Value = Info::updatePointer(Value, PtrVal);
   64|   169k|  }
_ZN7llvm_ks18PointerIntPairInfoIPNS_10MCFragmentELj1ENS_21PointerLikeTypeTraitsIS2_EEE13updatePointerElS2_:
  156|   169k|  static intptr_t updatePointer(intptr_t OrigValue, PointerT Ptr) {
  157|   169k|    intptr_t PtrWord =
  158|   169k|        reinterpret_cast<intptr_t>(PtrTraits::getAsVoidPointer(Ptr));
  159|   169k|    assert((PtrWord & ~PointerBitMask) == 0 &&
  ------------------
  |  Branch (159:5): [True: 169k, False: 0]
  |  Branch (159:5): [True: 169k, Folded]
  |  Branch (159:5): [True: 169k, False: 0]
  ------------------
  160|   169k|           "Pointer is not sufficiently aligned");
  161|       |    // Preserve all low bits, just update the pointer.
  162|   169k|    return PtrWord | (OrigValue & ~PointerBitMask);
  163|   169k|  }
_ZNK7llvm_ks14PointerIntPairIPNS_10MCFragmentELj1EjNS_21PointerLikeTypeTraitsIS2_EENS_18PointerIntPairInfoIS2_Lj1ES4_EEE10getPointerEv:
   56|   479k|  PointerTy getPointer() const { return Info::getPointer(Value); }
_ZN7llvm_ks18PointerIntPairInfoIPNS_10MCFragmentELj1ENS_21PointerLikeTypeTraitsIS2_EEE10getPointerEl:
  147|   479k|  static PointerT getPointer(intptr_t Value) {
  148|   479k|    return PtrTraits::getFromVoidPointer(
  149|   479k|        reinterpret_cast<void *>(Value & PointerBitMask));
  150|   479k|  }
_ZN7llvm_ks14PointerIntPairIPNS_10MCFragmentELj1EjNS_21PointerLikeTypeTraitsIS2_EENS_18PointerIntPairInfoIS2_Lj1ES4_EEEC2Ev:
   50|   218k|  PointerIntPair() : Value(0) {}

_ZN7llvm_ks14array_lengthofIbLm4EEEmRAT0__T_:
  282|   109k|LLVM_CONSTEXPR inline size_t array_lengthof(T (&)[N]) {
  283|   109k|  return N;
  284|   109k|}
_ZN7llvm_ks11make_uniqueINS_12RISCVOperandEJNS1_6KindTyEEEENSt3__19enable_ifIXntsr3std8is_arrayIT_EE5valueENS3_10unique_ptrIS5_NS3_14default_deleteIS5_EEEEE4typeEDpOT0_:
  404|  29.4k|make_unique(Args &&... args) {
  405|  29.4k|  return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
  406|  29.4k|}
_ZN7llvm_ks14array_lengthofIKNS_15MCFixupKindInfoELm16EEEmRAT0__T_:
  282|  28.3k|LLVM_CONSTEXPR inline size_t array_lengthof(T (&)[N]) {
  283|  28.3k|  return N;
  284|  28.3k|}

_ZN7llvm_ks9SetVectorIPNS_9MCSectionENSt3__16vectorIS2_NS3_9allocatorIS2_EEEENS_8DenseSetIS2_NS_12DenseMapInfoIS2_EEEEEC2Ev:
   53|  13.6k|  SetVector() {}
_ZN7llvm_ks9SetVectorIPNS_9MCSectionENSt3__16vectorIS2_NS3_9allocatorIS2_EEEENS_8DenseSetIS2_NS_12DenseMapInfoIS2_EEEEE5clearEv:
  185|  13.6k|  void clear() {
  186|  13.6k|    set_.clear();
  187|  13.6k|    vector_.clear();
  188|  13.6k|  }

_ZN7llvm_ks19SmallPtrSetImplBaseC2EPPKvj:
   72|  13.6k|    SmallArray(SmallStorage), CurArray(SmallStorage), CurArraySize(SmallSize) {
   73|  13.6k|    assert(SmallSize && (SmallSize & (SmallSize-1)) == 0 &&
  ------------------
  |  Branch (73:5): [True: 13.6k, False: 0]
  |  Branch (73:5): [True: 13.6k, False: 0]
  |  Branch (73:5): [True: 13.6k, Folded]
  |  Branch (73:5): [True: 13.6k, False: 0]
  ------------------
   74|  13.6k|           "Initial size must be a power of two!");
   75|  13.6k|    clear();
   76|  13.6k|  }
_ZN7llvm_ks19SmallPtrSetImplBaseD2Ev:
   77|  13.6k|  ~SmallPtrSetImplBase() {
   78|  13.6k|    if (!isSmall())
  ------------------
  |  Branch (78:9): [True: 0, False: 13.6k]
  ------------------
   79|      0|      free(CurArray);
   80|  13.6k|  }
_ZN7llvm_ks19SmallPtrSetImplBase5clearEv:
   87|  13.6k|  void clear() {
   88|       |    // If the capacity of the array is huge, and the # elements used is small,
   89|       |    // shrink the array.
   90|  13.6k|    if (!isSmall() && NumElements*4 < CurArraySize && CurArraySize > 32)
  ------------------
  |  Branch (90:9): [True: 0, False: 13.6k]
  |  Branch (90:23): [True: 0, False: 0]
  |  Branch (90:55): [True: 0, False: 0]
  ------------------
   91|      0|      return shrink_and_clear();
   92|       |
   93|       |    // Fill the array with empty markers.
   94|  13.6k|    memset(CurArray, -1, CurArraySize*sizeof(void*));
   95|  13.6k|    NumElements = 0;
   96|  13.6k|    NumTombstones = 0;
   97|  13.6k|  }
_ZNK7llvm_ks19SmallPtrSetImplBase9count_impEPKv:
  134|  13.2k|  bool count_imp(const void * Ptr) const {
  135|  13.2k|    if (isSmall()) {
  ------------------
  |  Branch (135:9): [True: 13.2k, False: 0]
  ------------------
  136|       |      // Linear search for the item.
  137|  13.2k|      for (const void *const *APtr = SmallArray,
  138|  13.2k|                      *const *E = SmallArray+NumElements; APtr != E; ++APtr)
  ------------------
  |  Branch (138:59): [True: 0, False: 13.2k]
  ------------------
  139|      0|        if (*APtr == Ptr)
  ------------------
  |  Branch (139:13): [True: 0, False: 0]
  ------------------
  140|      0|          return true;
  141|  13.2k|      return false;
  142|  13.2k|    }
  143|       |
  144|       |    // Big set case.
  145|      0|    return *FindBucketFor(Ptr) == Ptr;
  146|  13.2k|  }
_ZNK7llvm_ks19SmallPtrSetImplBase7isSmallEv:
  149|  40.5k|  bool isSmall() const { return CurArray == SmallArray; }
_ZN7llvm_ks11SmallPtrSetIPKNS_8MCSymbolELj32EEC2Ev:
  345|  13.6k|  SmallPtrSet() : BaseT(SmallStorage, SmallSizePowTwo) {}
_ZN7llvm_ks15SmallPtrSetImplIPKNS_8MCSymbolEEC2EPPKvj:
  286|  13.6k|      : SmallPtrSetImplBase(SmallStorage, SmallSize) {}
_ZNK7llvm_ks15SmallPtrSetImplIPKNS_8MCSymbolEE5countES3_:
  308|  13.2k|  size_type count(PtrType Ptr) const {
  309|  13.2k|    return count_imp(PtrTraits::getAsVoidPointer(Ptr)) ? 1 : 0;
  ------------------
  |  Branch (309:12): [True: 0, False: 13.2k]
  ------------------
  310|  13.2k|  }

_ZN7llvm_ks11SmallStringILj1024EEC2Ev:
   28|  13.6k|  SmallString() {}
_ZNK7llvm_ks11SmallStringILj128EEcvNS_9StringRefEEv:
  277|   395k|  operator StringRef() const { return str(); }
_ZNK7llvm_ks11SmallStringILj128EE3strEv:
  267|   395k|  StringRef str() const { return StringRef(this->begin(), this->size()); }
_ZN7llvm_ks11SmallStringILj128EEC2Ev:
   28|   430k|  SmallString() {}
_ZN7llvm_ks11SmallStringILj128EEC2ENS_9StringRefE:
   31|   204k|  SmallString(StringRef S) : SmallVector<char, InternalLen>(S.begin(), S.end()) {}
_ZN7llvm_ks11SmallStringILj64EEC2Ev:
   28|  1.72k|  SmallString() {}
_ZN7llvm_ks11SmallStringILj64EEpLENS_9StringRefE:
  285|  3.45k|  SmallString &operator+=(StringRef RHS) {
  286|  3.45k|    this->append(RHS.begin(), RHS.end());
  287|  3.45k|    return *this;
  288|  3.45k|  }
_ZN7llvm_ks11SmallStringILj64EE6appendIPKcEEvT_S5_:
   74|  3.45k|  void append(in_iter S, in_iter E) {
   75|  3.45k|    SmallVectorImpl<char>::append(S, E);
   76|  3.45k|  }
_ZNK7llvm_ks11SmallStringILj64EEcvNS_9StringRefEEv:
  277|  1.72k|  operator StringRef() const { return str(); }
_ZNK7llvm_ks11SmallStringILj64EE3strEv:
  267|  1.72k|  StringRef str() const { return StringRef(this->begin(), this->size()); }
_ZN7llvm_ks11SmallStringILj256EEC2Ev:
   28|   168k|  SmallString() {}
_ZN7llvm_ks11SmallStringILj16384EEC2Ev:
   28|      1|  SmallString() {}

_ZN7llvm_ks15SmallVectorImplIcED2Ev:
  368|  1.03M|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  1.03M|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  1.03M|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 2.23k, False: 1.02M]
  ------------------
  374|  2.23k|      free(this->begin());
  375|  1.03M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIcLb1EE13destroy_rangeEPcS2_:
  284|  1.05M|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIcvE5beginEv:
  113|  1.60M|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonIcvE3endEv:
  117|   420M|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIcvE7isSmallEv:
   86|  1.03M|  bool isSmall() const {
   87|  1.03M|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  1.03M|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonIcvE4sizeEv:
  132|  34.1M|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonIcvE3endEv:
  119|  34.3M|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIcvE5beginEv:
  115|  35.0M|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonIcvE4dataEv:
  139|  41.7k|  pointer data() { return pointer(begin()); }
_ZN7llvm_ks11SmallVectorIcLj1024EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplIcEC2Ej:
  364|  1.03M|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  1.03M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIcLb1EEC2Em:
  281|  1.03M|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIcvEC2Em:
   78|  1.03M|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorBaseC2EPvm:
   40|  12.1M|    : BeginX(FirstEl), EndX(FirstEl), CapacityX((char*)FirstEl+Size) {}
_ZNK7llvm_ks15SmallVectorBase13size_in_bytesEv:
   48|  14.6k|  size_t size_in_bytes() const {
   49|  14.6k|    return size_t((char*)EndX - (char*)BeginX);
   50|  14.6k|  }
_ZNK7llvm_ks15SmallVectorBase17capacity_in_bytesEv:
   53|  14.6k|  size_t capacity_in_bytes() const {
   54|  14.6k|    return size_t((char*)CapacityX - (char*)BeginX);
   55|  14.6k|  }
_ZNK7llvm_ks15SmallVectorBase5emptyEv:
   57|   225M|  bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const { return BeginX == EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIcvE4dataEv:
  141|  12.8k|  const_pointer data() const { return const_pointer(begin()); }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9MCOperandELb1EE13destroy_rangeEPS1_S3_:
  284|  6.49k|  static void destroy_range(T *, T *) {}
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE7isSmallEv:
   86|  5.27k|  bool isSmall() const {
   87|  5.27k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  5.27k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvEixEm:
  149|  6.85k|  const_reference operator[](size_type idx) const {
  150|  6.85k|    assert(idx < size());
  ------------------
  |  Branch (150:5): [True: 6.85k, False: 0]
  ------------------
  151|  6.85k|    return begin()[idx];
  152|  6.85k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvEixEm:
  144|  1.80k|  reference operator[](size_type idx) {
  145|  1.80k|    assert(idx < size());
  ------------------
  |  Branch (145:5): [True: 1.80k, False: 0]
  ------------------
  146|  1.80k|    return begin()[idx];
  147|  1.80k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE4sizeEv:
  132|  11.2k|  size_type size() const { return end()-begin(); }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9MCOperandELb1EE9push_backERKS1_:
  337|  3.70k|  void push_back(const T &Elt) {
  338|  3.70k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  3.70k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 3.70k]
  |  |  ------------------
  ------------------
  339|      0|      this->grow();
  340|  3.70k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|  3.70k|    this->setEnd(this->end()+1);
  342|  3.70k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE6setEndEPS1_:
   95|  4.40k|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks15SmallVectorImplINS_9MCOperandEE5clearEv:
  378|  1.21k|  void clear() {
  379|  1.21k|    this->destroy_range(this->begin(), this->end());
  380|  1.21k|    this->EndX = this->BeginX;
  381|  1.21k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE5beginEv:
  113|  9.68k|  iterator begin() { return (iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE5beginEv:
  115|  19.5k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE3endEv:
  117|  13.9k|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE3endEv:
  119|  11.9k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_7MCFixupELb1EE13destroy_rangeEPS1_S3_:
  284|  9.27k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE5beginEv:
  113|  10.2k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE3endEv:
  117|  98.5k|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE7isSmallEv:
   86|  9.27k|  bool isSmall() const {
   87|  9.27k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  9.27k|  }
_ZN7llvm_ks15SmallVectorImplINS_9MCOperandEEaSERKS2_:
  739|    693|  operator=(const SmallVectorImpl<T> &RHS) {
  740|       |  // Avoid self-assignment.
  741|    693|  if (this == &RHS) return *this;
  ------------------
  |  Branch (741:7): [True: 0, False: 693]
  ------------------
  742|       |
  743|       |  // If we already have sufficient space, assign the common elements, then
  744|       |  // destroy any excess.
  745|    693|  size_t RHSSize = RHS.size();
  746|    693|  size_t CurSize = this->size();
  747|    693|  if (CurSize >= RHSSize) {
  ------------------
  |  Branch (747:7): [True: 0, False: 693]
  ------------------
  748|       |    // Assign common elements.
  749|      0|    iterator NewEnd;
  750|      0|    if (RHSSize)
  ------------------
  |  Branch (750:9): [True: 0, False: 0]
  ------------------
  751|      0|      NewEnd = std::copy(RHS.begin(), RHS.begin()+RHSSize, this->begin());
  752|      0|    else
  753|      0|      NewEnd = this->begin();
  754|       |
  755|       |    // Destroy excess elements.
  756|      0|    this->destroy_range(NewEnd, this->end());
  757|       |
  758|       |    // Trim.
  759|      0|    this->setEnd(NewEnd);
  760|      0|    return *this;
  761|      0|  }
  762|       |
  763|       |  // If we have to grow to have enough elements, destroy the current elements.
  764|       |  // This allows us to avoid copying them during the grow.
  765|       |  // FIXME: don't do this if they're efficiently moveable.
  766|    693|  if (this->capacity() < RHSSize) {
  ------------------
  |  Branch (766:7): [True: 0, False: 693]
  ------------------
  767|       |    // Destroy current elements.
  768|      0|    this->destroy_range(this->begin(), this->end());
  769|      0|    this->setEnd(this->begin());
  770|      0|    CurSize = 0;
  771|      0|    this->grow(RHSSize);
  772|    693|  } else if (CurSize) {
  ------------------
  |  Branch (772:14): [True: 8, False: 685]
  ------------------
  773|       |    // Otherwise, use assignment for the already-constructed elements.
  774|      8|    std::copy(RHS.begin(), RHS.begin()+CurSize, this->begin());
  775|      8|  }
  776|       |
  777|       |  // Copy construct the new elements in place.
  778|    693|  this->uninitialized_copy(RHS.begin()+CurSize, RHS.end(),
  779|    693|                           this->begin()+CurSize);
  780|       |
  781|       |  // Set end.
  782|    693|  this->setEnd(this->begin()+RHSSize);
  783|    693|  return *this;
  784|    693|}
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE8capacityEv:
  136|    693|  size_t capacity() const { return capacity_ptr() - begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvE12capacity_ptrEv:
  122|    693|  const_iterator capacity_ptr() const { return (const_iterator)this->CapacityX;}
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9MCOperandELb1EE18uninitialized_copyIKS1_S1_EEvPT_S6_PT0_PNSt3__19enable_ifIXsr3std7is_sameINS9_12remove_constIS5_E4typeES7_EE5valueEvE4typeE:
  322|    693|                                           T2>::value>::type * = nullptr) {
  323|       |    // Use memcpy for PODs iterated by pointers (which includes SmallVector
  324|       |    // iterators): std::uninitialized_copy optimizes to memmove, but we can
  325|       |    // use memcpy here. Note that I and E are iterators and thus might be
  326|       |    // invalid for memcpy if they are equal.
  327|    693|    if (I != E)
  ------------------
  |  Branch (327:9): [True: 693, False: 0]
  ------------------
  328|    693|      memcpy(Dest, I, (E - I) * sizeof(T));
  329|    693|  }
_ZN7llvm_ks11SmallVectorINS_9MCOperandELj8EEaSERKS2_:
  900|     16|  const SmallVector &operator=(const SmallVector &RHS) {
  901|     16|    SmallVectorImpl<T>::operator=(RHS);
  902|     16|    return *this;
  903|     16|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIcLb1EE9push_backERKc:
  337|  1.72k|  void push_back(const T &Elt) {
  338|  1.72k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  1.72k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 1.72k]
  |  |  ------------------
  ------------------
  339|      0|      this->grow();
  340|  1.72k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|  1.72k|    this->setEnd(this->end()+1);
  342|  1.72k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIcLb1EE4growEm:
  333|  5.90k|  void grow(size_t MinSize = 0) {
  334|  5.90k|    this->grow_pod(MinSize*sizeof(T), sizeof(T));
  335|  5.90k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIcvE8grow_podEmm:
   80|  5.90k|  void grow_pod(size_t MinSizeInBytes, size_t TSize) {
   81|  5.90k|    SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
   82|  5.90k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIcvE6setEndEPc:
   95|   139M|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELb0EE13destroy_rangeEPS7_S9_:
  180|     69|  static void destroy_range(T *S, T *E) {
  181|     69|    while (S != E) {
  ------------------
  |  Branch (181:12): [True: 0, False: 69]
  ------------------
  182|      0|      --E;
  183|      0|      E->~T();
  184|      0|    }
  185|     69|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEvE5beginEv:
  113|     69|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEvE3endEv:
  117|     69|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEvE7isSmallEv:
   86|     69|  bool isSmall() const {
   87|     69|    return BeginX == static_cast<const void*>(&FirstEl);
   88|     69|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_11MCDwarfFileELb0EE13destroy_rangeEPS1_S3_:
  180|     69|  static void destroy_range(T *S, T *E) {
  181|     69|    while (S != E) {
  ------------------
  |  Branch (181:12): [True: 0, False: 69]
  ------------------
  182|      0|      --E;
  183|      0|      E->~T();
  184|      0|    }
  185|     69|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_11MCDwarfFileEvE5beginEv:
  113|     69|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_11MCDwarfFileEvE3endEv:
  117|     69|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_11MCDwarfFileEvE7isSmallEv:
   86|     69|  bool isSmall() const {
   87|     69|    return BeginX == static_cast<const void*>(&FirstEl);
   88|     69|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_8MCSymbolEvE3endEv:
  117|   105k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_8MCSymbolELb1EE4growEm:
  333|    842|  void grow(size_t MinSize = 0) {
  334|    842|    this->grow_pod(MinSize*sizeof(T), sizeof(T));
  335|    842|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_8MCSymbolEvE8grow_podEmm:
   80|    842|  void grow_pod(size_t MinSizeInBytes, size_t TSize) {
   81|    842|    SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
   82|    842|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_8MCSymbolEvE6setEndEPS2_:
   95|  34.5k|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_8MCSymbolELb1EE13destroy_rangeEPS2_S4_:
  284|  25.0k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_8MCSymbolEvE5beginEv:
  113|  36.8k|  iterator begin() { return (iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPNS_8MCSymbolEvE7isSmallEv:
   86|  13.6k|  bool isSmall() const {
   87|  13.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_14MCLOHDirectiveELb0EE13destroy_rangeEPS1_S3_:
  180|  13.6k|  static void destroy_range(T *S, T *E) {
  181|  13.6k|    while (S != E) {
  ------------------
  |  Branch (181:12): [True: 0, False: 13.6k]
  ------------------
  182|      0|      --E;
  183|      0|      E->~T();
  184|      0|    }
  185|  13.6k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_14MCLOHDirectiveEvE5beginEv:
  113|  13.6k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_14MCLOHDirectiveEvE3endEv:
  117|  13.6k|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_14MCLOHDirectiveEvE7isSmallEv:
   86|  13.6k|  bool isSmall() const {
   87|  13.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplIPNS_8MCSymbolEE5clearEv:
  378|  11.4k|  void clear() {
  379|  11.4k|    this->destroy_range(this->begin(), this->end());
  380|  11.4k|    this->EndX = this->BeginX;
  381|  11.4k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvE4backEv:
  167|  67.2M|  const_reference back() const {
  168|  67.2M|    assert(!empty());
  ------------------
  |  Branch (168:5): [True: 67.2M, False: 0]
  ------------------
  169|  67.2M|    return end()[-1];
  170|  67.2M|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvE3endEv:
  119|  67.2M|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EELb1EE9push_backERKS9_:
  337|  13.6k|  void push_back(const T &Elt) {
  338|  13.6k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  13.6k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 13.6k]
  |  |  ------------------
  ------------------
  339|      0|      this->grow();
  340|  13.6k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|  13.6k|    this->setEnd(this->end()+1);
  342|  13.6k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvE6setEndEPS9_:
   95|  13.6k|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvE3endEv:
  117|  86.3k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvE4backEv:
  163|  45.4k|  reference back() {
  164|  45.4k|    assert(!empty());
  ------------------
  |  Branch (164:5): [True: 45.4k, False: 0]
  ------------------
  165|  45.4k|    return end()[-1];
  166|  45.4k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE5beginEv:
  115|   687k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE4sizeEv:
  132|   687k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE3endEv:
  119|   687k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZN7llvm_ks15SmallVectorImplIcE5clearEv:
  378|  27.2k|  void clear() {
  379|  27.2k|    this->destroy_range(this->begin(), this->end());
  380|  27.2k|    this->EndX = this->BeginX;
  381|  27.2k|  }
_ZN7llvm_ks15SmallVectorImplIcE6appendIPKcEEvT_S5_:
  423|   139M|  void append(in_iter in_start, in_iter in_end) {
  424|   139M|    size_type NumInputs = std::distance(in_start, in_end);
  425|       |    // Grow allocated space if needed.
  426|   139M|    if (NumInputs > size_type(this->capacity_ptr()-this->end()))
  ------------------
  |  Branch (426:9): [True: 5.39k, False: 139M]
  ------------------
  427|  5.39k|      this->grow(this->size()+NumInputs);
  428|       |
  429|       |    // Copy the new elements over.
  430|   139M|    this->uninitialized_copy(in_start, in_end, this->end());
  431|   139M|    this->setEnd(this->end() + NumInputs);
  432|   139M|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIcvE12capacity_ptrEv:
  121|   139M|  iterator capacity_ptr() { return (iterator)this->CapacityX; }
_ZN7llvm_ks23SmallVectorTemplateBaseIcLb1EE18uninitialized_copyIKccEEvPT_S5_PT0_PNSt3__19enable_ifIXsr3std7is_sameINS8_12remove_constIS4_E4typeES6_EE5valueEvE4typeE:
  322|   139M|                                           T2>::value>::type * = nullptr) {
  323|       |    // Use memcpy for PODs iterated by pointers (which includes SmallVector
  324|       |    // iterators): std::uninitialized_copy optimizes to memmove, but we can
  325|       |    // use memcpy here. Note that I and E are iterators and thus might be
  326|       |    // invalid for memcpy if they are equal.
  327|   139M|    if (I != E)
  ------------------
  |  Branch (327:9): [True: 139M, False: 99]
  ------------------
  328|   139M|      memcpy(Dest, I, (E - I) * sizeof(T));
  329|   139M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIPvmEELb1EE9push_backERKS4_:
  337|      8|  void push_back(const T &Elt) {
  338|      8|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|      8|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 8, False: 0]
  |  |  ------------------
  ------------------
  339|      8|      this->grow();
  340|      8|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|      8|    this->setEnd(this->end()+1);
  342|      8|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIPvmEELb1EE4growEm:
  333|      8|  void grow(size_t MinSize = 0) {
  334|      8|    this->grow_pod(MinSize*sizeof(T), sizeof(T));
  335|      8|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIPvmEEvE8grow_podEmm:
   80|      8|  void grow_pod(size_t MinSizeInBytes, size_t TSize) {
   81|      8|    SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
   82|      8|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIPvmEEvE3endEv:
  117|   518k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIPvmEEvE6setEndEPS4_:
   95|      8|  void setEnd(T *P) { this->EndX = P; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPvvE4sizeEv:
  132|  58.1k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPvvE3endEv:
  119|  58.1k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPvvE5beginEv:
  115|  58.1k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks23SmallVectorTemplateBaseIPvLb1EE9push_backERKS1_:
  337|  58.1k|  void push_back(const T &Elt) {
  338|  58.1k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  58.1k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 297, False: 57.8k]
  |  |  ------------------
  ------------------
  339|    297|      this->grow();
  340|  58.1k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|  58.1k|    this->setEnd(this->end()+1);
  342|  58.1k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPvLb1EE4growEm:
  333|    297|  void grow(size_t MinSize = 0) {
  334|    297|    this->grow_pod(MinSize*sizeof(T), sizeof(T));
  335|    297|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPvvE8grow_podEmm:
   80|    297|  void grow_pod(size_t MinSizeInBytes, size_t TSize) {
   81|    297|    SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
   82|    297|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPvvE3endEv:
  117|   650k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks25SmallVectorTemplateCommonIPvvE6setEndEPS1_:
   95|  99.3k|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE5beginEv:
  113|  58.0M|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks15SmallVectorImplINS_8AsmTokenEE5eraseEPS1_:
  462|  19.3M|  iterator erase(iterator I) {
  463|  19.3M|    assert(I >= this->begin() && "Iterator to erase is out of bounds.");
  ------------------
  |  Branch (463:5): [True: 19.3M, False: 0]
  |  Branch (463:5): [True: 19.3M, Folded]
  |  Branch (463:5): [True: 19.3M, False: 0]
  ------------------
  464|  19.3M|    assert(I < this->end() && "Erasing at past-the-end iterator.");
  ------------------
  |  Branch (464:5): [True: 19.3M, False: 0]
  |  Branch (464:5): [True: 19.3M, Folded]
  |  Branch (464:5): [True: 19.3M, False: 0]
  ------------------
  465|       |
  466|  19.3M|    iterator N = I;
  467|       |    // Shift all elts down one.
  468|  19.3M|    this->move(I+1, this->end(), I);
  469|       |    // Drop the last elt.
  470|  19.3M|    this->pop_back();
  471|  19.3M|    return(N);
  472|  19.3M|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE3endEv:
  117|   116M|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_8AsmTokenELb0EE4moveIPS1_S4_EET0_T_S6_S5_:
  191|  19.3M|  static It2 move(It1 I, It1 E, It2 Dest) {
  192|  19.3M|    for (; I != E; ++I, ++Dest)
  ------------------
  |  Branch (192:12): [True: 107, False: 19.3M]
  ------------------
  193|    107|      *Dest = ::std::move(*I);
  194|  19.3M|    return Dest;
  195|  19.3M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_8AsmTokenELb0EE8pop_backEv:
  243|  19.3M|  void pop_back() {
  244|  19.3M|    this->setEnd(this->end()-1);
  245|  19.3M|    this->end()->~T();
  246|  19.3M|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE6setEndEPS1_:
   95|  38.6M|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks15SmallVectorImplINS_8AsmTokenEE12emplace_backIJS1_EEEvDpOT_:
  659|  19.3M|  template <typename... ArgTypes> void emplace_back(ArgTypes &&... Args) {
  660|  19.3M|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  19.3M|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 19.3M]
  |  |  ------------------
  ------------------
  661|      0|      this->grow();
  662|  19.3M|    ::new ((void *)this->end()) T(std::forward<ArgTypes>(Args)...);
  663|  19.3M|    this->setEnd(this->end() + 1);
  664|  19.3M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_8AsmTokenELb0EE4growEm:
  251|     39|void SmallVectorTemplateBase<T, isPodLike>::grow(size_t MinSize) {
  252|     39|  size_t CurCapacity = this->capacity();
  253|     39|  size_t CurSize = this->size();
  254|       |  // Always grow, even from zero.
  255|     39|  size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2));
  256|     39|  if (NewCapacity < MinSize)
  ------------------
  |  Branch (256:7): [True: 0, False: 39]
  ------------------
  257|      0|    NewCapacity = MinSize;
  258|     39|  T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T)));
  259|       |
  260|       |  // Move the elements over.
  261|     39|  this->uninitialized_move(this->begin(), this->end(), NewElts);
  262|       |
  263|       |  // Destroy the original elements.
  264|     39|  destroy_range(this->begin(), this->end());
  265|       |
  266|       |  // If this wasn't grown from the inline copy, deallocate the old space.
  267|     39|  if (!this->isSmall())
  ------------------
  |  Branch (267:7): [True: 0, False: 39]
  ------------------
  268|      0|    free(this->begin());
  269|       |
  270|     39|  this->setEnd(NewElts+CurSize);
  271|     39|  this->BeginX = NewElts;
  272|     39|  this->CapacityX = this->begin()+NewCapacity;
  273|     39|}
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE8capacityEv:
  136|     39|  size_t capacity() const { return capacity_ptr() - begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE12capacity_ptrEv:
  122|     39|  const_iterator capacity_ptr() const { return (const_iterator)this->CapacityX;}
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE5beginEv:
  115|   144M|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE4sizeEv:
  132|  72.2M|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE3endEv:
  119|  72.2M|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_8AsmTokenELb0EE18uninitialized_moveIPS1_S4_EEvT_S5_T0_:
  211|     39|  static void uninitialized_move(It1 I, It1 E, It2 Dest) {
  212|     78|    for (; I != E; ++I, ++Dest)
  ------------------
  |  Branch (212:12): [True: 39, False: 39]
  ------------------
  213|     39|      ::new ((void*) &*Dest) T(::std::move(*I));
  214|     39|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_8AsmTokenELb0EE13destroy_rangeEPS1_S3_:
  180|  13.6k|  static void destroy_range(T *S, T *E) {
  181|  27.3k|    while (S != E) {
  ------------------
  |  Branch (181:12): [True: 13.6k, False: 13.6k]
  ------------------
  182|  13.6k|      --E;
  183|  13.6k|      E->~T();
  184|  13.6k|    }
  185|  13.6k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE7isSmallEv:
   86|  13.6k|  bool isSmall() const {
   87|  13.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  13.6k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE5frontEv:
  154|  19.3M|  reference front() {
  155|  19.3M|    assert(!empty());
  ------------------
  |  Branch (155:5): [True: 19.3M, False: 0]
  ------------------
  156|  19.3M|    return begin()[0];
  157|  19.3M|  }
_ZN7llvm_ks15SmallVectorImplINS_8AsmTokenEE6insertEPS1_RKS1_:
  518|    107|  iterator insert(iterator I, const T &Elt) {
  519|    107|    if (I == this->end()) {  // Important special case for empty vector.
  ------------------
  |  Branch (519:9): [True: 0, False: 107]
  ------------------
  520|      0|      this->push_back(Elt);
  521|      0|      return this->end()-1;
  522|      0|    }
  523|       |
  524|    107|    assert(I >= this->begin() && "Insertion iterator is out of bounds.");
  ------------------
  |  Branch (524:5): [True: 107, False: 0]
  |  Branch (524:5): [True: 107, Folded]
  |  Branch (524:5): [True: 107, False: 0]
  ------------------
  525|    107|    assert(I <= this->end() && "Inserting past the end of the vector.");
  ------------------
  |  Branch (525:5): [True: 107, False: 0]
  |  Branch (525:5): [True: 107, Folded]
  |  Branch (525:5): [True: 107, False: 0]
  ------------------
  526|       |
  527|    107|    if (this->EndX >= this->CapacityX) {
  ------------------
  |  Branch (527:9): [True: 39, False: 68]
  ------------------
  528|     39|      size_t EltNo = I-this->begin();
  529|     39|      this->grow();
  530|     39|      I = this->begin()+EltNo;
  531|     39|    }
  532|    107|    ::new ((void*) this->end()) T(std::move(this->back()));
  533|       |    // Push everything else over.
  534|    107|    this->move_backward(I, this->end()-1, this->end());
  535|    107|    this->setEnd(this->end()+1);
  536|       |
  537|       |    // If we just moved the element we're inserting, be sure to update
  538|       |    // the reference.
  539|    107|    const T *EltPtr = &Elt;
  540|    107|    if (I <= EltPtr && EltPtr < this->EndX)
  ------------------
  |  Branch (540:9): [True: 107, False: 0]
  |  Branch (540:24): [True: 0, False: 107]
  ------------------
  541|      0|      ++EltPtr;
  542|       |
  543|    107|    *I = *EltPtr;
  544|    107|    return I;
  545|    107|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvE4backEv:
  163|    107|  reference back() {
  164|    107|    assert(!empty());
  ------------------
  |  Branch (164:5): [True: 107, False: 0]
  ------------------
  165|    107|    return end()[-1];
  166|    107|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_8AsmTokenELb0EE13move_backwardIPS1_S4_EET0_T_S6_S5_:
  202|    107|  static It2 move_backward(It1 I, It1 E, It2 Dest) {
  203|    107|    while (I != E)
  ------------------
  |  Branch (203:12): [True: 0, False: 107]
  ------------------
  204|      0|      *--Dest = ::std::move(*--E);
  205|    107|    return Dest;
  206|    107|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvEixEm:
  149|  72.2M|  const_reference operator[](size_type idx) const {
  150|  72.2M|    assert(idx < size());
  ------------------
  |  Branch (150:5): [True: 72.2M, False: 0]
  ------------------
  151|  72.2M|    return begin()[idx];
  152|  72.2M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_7SMFixItELb0EE13destroy_rangeEPS1_S3_:
  180|  22.6k|  static void destroy_range(T *S, T *E) {
  181|  22.6k|    while (S != E) {
  ------------------
  |  Branch (181:12): [True: 0, False: 22.6k]
  ------------------
  182|      0|      --E;
  183|      0|      E->~T();
  184|      0|    }
  185|  22.6k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE5beginEv:
  113|  45.2k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE3endEv:
  117|   113k|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE7isSmallEv:
   86|  22.6k|  bool isSmall() const {
   87|  22.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  22.6k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE5beginEv:
  115|  36.7k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE4sizeEv:
  132|  18.3k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE3endEv:
  119|  18.3k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE6setEndEPS1_:
   95|  22.6k|  void setEnd(T *P) { this->EndX = P; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE4dataEv:
  141|  18.3k|  const_pointer data() const { return const_pointer(begin()); }
_ZN7llvm_ks11SmallVectorINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELj3EEC2Ev:
  872|     69|  SmallVector() : SmallVectorImpl<T>(N) {
  873|     69|  }
_ZN7llvm_ks15SmallVectorImplINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEC2Ej:
  364|     69|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|     69|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEELb0EEC2Em:
  178|     69|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEvEC2Em:
   78|     69|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorINS_11MCDwarfFileELj3EEC2Ev:
  872|     69|  SmallVector() : SmallVectorImpl<T>(N) {
  873|     69|  }
_ZN7llvm_ks15SmallVectorImplINS_11MCDwarfFileEEC2Ej:
  364|     69|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|     69|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_11MCDwarfFileELb0EEC2Em:
  178|     69|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_11MCDwarfFileEvEC2Em:
   78|     69|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplINS_11MCDwarfFileEED2Ev:
  368|     69|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|     69|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|     69|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 69]
  ------------------
  374|      0|      free(this->begin());
  375|     69|  }
_ZN7llvm_ks15SmallVectorImplINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEED2Ev:
  368|     69|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|     69|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|     69|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 69]
  ------------------
  374|      0|      free(this->begin());
  375|     69|  }
_ZN7llvm_ks11SmallVectorIcLj128EEC2Ev:
  872|   430k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|   430k|  }
_ZN7llvm_ks11SmallVectorIPvLj4EEC2Ev:
  872|  81.7k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  81.7k|  }
_ZN7llvm_ks15SmallVectorImplIPvEC2Ej:
  364|  81.7k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  81.7k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPvLb1EEC2Em:
  281|  81.7k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPvvEC2Em:
   78|  81.7k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorINSt3__14pairIPvmEELj0EEC2Ev:
  872|  81.7k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  81.7k|  }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairIPvmEEEC2Ej:
  364|  81.7k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  81.7k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIPvmEELb1EEC2Em:
  281|  81.7k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIPvmEEvEC2Em:
   78|  81.7k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplIPvED2Ev:
  368|  81.7k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  81.7k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  81.7k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 173, False: 81.6k]
  ------------------
  374|    173|      free(this->begin());
  375|  81.7k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPvLb1EE13destroy_rangeEPS1_S3_:
  284|   123k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPvvE5beginEv:
  113|   550k|  iterator begin() { return (iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPvvE7isSmallEv:
   86|  81.7k|  bool isSmall() const {
   87|  81.7k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  81.7k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIPvmEEvE5beginEv:
  113|   518k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairIPvmEEED2Ev:
  368|  81.7k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  81.7k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  81.7k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 5, False: 81.7k]
  ------------------
  374|      5|      free(this->begin());
  375|  81.7k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIPvmEELb1EE13destroy_rangeEPS4_S6_:
  284|   204k|  static void destroy_range(T *, T *) {}
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIPvmEEvE7isSmallEv:
   86|  81.7k|  bool isSmall() const {
   87|  81.7k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  81.7k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPvvE4backEv:
  163|  54.8k|  reference back() {
  164|  54.8k|    assert(!empty());
  ------------------
  |  Branch (164:5): [True: 54.8k, False: 0]
  ------------------
  165|  54.8k|    return end()[-1];
  166|  54.8k|  }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairIPvmEEE5clearEv:
  378|   122k|  void clear() {
  379|   122k|    this->destroy_range(this->begin(), this->end());
  380|   122k|    this->EndX = this->BeginX;
  381|   122k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPvvE5frontEv:
  154|  41.2k|  reference front() {
  155|  41.2k|    assert(!empty());
  ------------------
  |  Branch (155:5): [True: 41.2k, False: 0]
  ------------------
  156|  41.2k|    return begin()[0];
  157|  41.2k|  }
_ZN7llvm_ks15SmallVectorImplIPvE5eraseEPS1_S3_:
  474|  41.2k|  iterator erase(iterator S, iterator E) {
  475|  41.2k|    assert(S >= this->begin() && "Range to erase is out of bounds.");
  ------------------
  |  Branch (475:5): [True: 41.2k, False: 0]
  |  Branch (475:5): [True: 41.2k, Folded]
  |  Branch (475:5): [True: 41.2k, False: 0]
  ------------------
  476|  41.2k|    assert(S <= E && "Trying to erase invalid range.");
  ------------------
  |  Branch (476:5): [True: 41.2k, False: 0]
  |  Branch (476:5): [True: 41.2k, Folded]
  |  Branch (476:5): [True: 41.2k, False: 0]
  ------------------
  477|  41.2k|    assert(E <= this->end() && "Trying to erase past the end.");
  ------------------
  |  Branch (477:5): [True: 41.2k, False: 0]
  |  Branch (477:5): [True: 41.2k, Folded]
  |  Branch (477:5): [True: 41.2k, False: 0]
  ------------------
  478|       |
  479|  41.2k|    iterator N = S;
  480|       |    // Shift all elts down.
  481|  41.2k|    iterator I = this->move(E, this->end(), S);
  482|       |    // Drop the last elts.
  483|  41.2k|    this->destroy_range(I, this->end());
  484|  41.2k|    this->setEnd(I);
  485|  41.2k|    return(N);
  486|  41.2k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPvLb1EE4moveIPS1_S4_EET0_T_S6_S5_:
  289|  41.2k|  static It2 move(It1 I, It1 E, It2 Dest) {
  290|  41.2k|    return ::std::copy(I, E, Dest);
  291|  41.2k|  }
_ZN7llvm_ks11SmallVectorIcLj128EEC2IPKcEET_S5_:
  881|   204k|  SmallVector(ItTy S, ItTy E) : SmallVectorImpl<T>(N) {
  882|   204k|    this->append(S, E);
  883|   204k|  }
_ZN7llvm_ks15SmallVectorImplIcE6resizeEm:
  383|  55.0k|  void resize(size_type N) {
  384|  55.0k|    if (N < this->size()) {
  ------------------
  |  Branch (384:9): [True: 0, False: 55.0k]
  ------------------
  385|      0|      this->destroy_range(this->begin()+N, this->end());
  386|      0|      this->setEnd(this->begin()+N);
  387|  55.0k|    } else if (N > this->size()) {
  ------------------
  |  Branch (387:16): [True: 0, False: 55.0k]
  ------------------
  388|      0|      if (this->capacity() < N)
  ------------------
  |  Branch (388:11): [True: 0, False: 0]
  ------------------
  389|      0|        this->grow(N);
  390|      0|      for (auto I = this->end(), E = this->begin() + N; I != E; ++I)
  ------------------
  |  Branch (390:57): [True: 0, False: 0]
  ------------------
  391|      0|        new (&*I) T();
  392|      0|      this->setEnd(this->begin()+N);
  393|      0|    }
  394|  55.0k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonIcvE8capacityEv:
  136|   248k|  size_t capacity() const { return capacity_ptr() - begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonIcvE12capacity_ptrEv:
  122|   248k|  const_iterator capacity_ptr() const { return (const_iterator)this->CapacityX;}
_ZN7llvm_ks11SmallVectorIcLj128EEC2ERKS1_:
  895|   204k|  SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) {
  896|   204k|    if (!RHS.empty())
  ------------------
  |  Branch (896:9): [True: 204k, False: 0]
  ------------------
  897|   204k|      SmallVectorImpl<T>::operator=(RHS);
  898|   204k|  }
_ZN7llvm_ks15SmallVectorImplIcEaSERKS1_:
  739|   204k|  operator=(const SmallVectorImpl<T> &RHS) {
  740|       |  // Avoid self-assignment.
  741|   204k|  if (this == &RHS) return *this;
  ------------------
  |  Branch (741:7): [True: 0, False: 204k]
  ------------------
  742|       |
  743|       |  // If we already have sufficient space, assign the common elements, then
  744|       |  // destroy any excess.
  745|   204k|  size_t RHSSize = RHS.size();
  746|   204k|  size_t CurSize = this->size();
  747|   204k|  if (CurSize >= RHSSize) {
  ------------------
  |  Branch (747:7): [True: 0, False: 204k]
  ------------------
  748|       |    // Assign common elements.
  749|      0|    iterator NewEnd;
  750|      0|    if (RHSSize)
  ------------------
  |  Branch (750:9): [True: 0, False: 0]
  ------------------
  751|      0|      NewEnd = std::copy(RHS.begin(), RHS.begin()+RHSSize, this->begin());
  752|      0|    else
  753|      0|      NewEnd = this->begin();
  754|       |
  755|       |    // Destroy excess elements.
  756|      0|    this->destroy_range(NewEnd, this->end());
  757|       |
  758|       |    // Trim.
  759|      0|    this->setEnd(NewEnd);
  760|      0|    return *this;
  761|      0|  }
  762|       |
  763|       |  // If we have to grow to have enough elements, destroy the current elements.
  764|       |  // This allows us to avoid copying them during the grow.
  765|       |  // FIXME: don't do this if they're efficiently moveable.
  766|   204k|  if (this->capacity() < RHSSize) {
  ------------------
  |  Branch (766:7): [True: 104, False: 204k]
  ------------------
  767|       |    // Destroy current elements.
  768|    104|    this->destroy_range(this->begin(), this->end());
  769|    104|    this->setEnd(this->begin());
  770|    104|    CurSize = 0;
  771|    104|    this->grow(RHSSize);
  772|   204k|  } else if (CurSize) {
  ------------------
  |  Branch (772:14): [True: 0, False: 204k]
  ------------------
  773|       |    // Otherwise, use assignment for the already-constructed elements.
  774|      0|    std::copy(RHS.begin(), RHS.begin()+CurSize, this->begin());
  775|      0|  }
  776|       |
  777|       |  // Copy construct the new elements in place.
  778|   204k|  this->uninitialized_copy(RHS.begin()+CurSize, RHS.end(),
  779|   204k|                           this->begin()+CurSize);
  780|       |
  781|       |  // Set end.
  782|   204k|  this->setEnd(this->begin()+RHSSize);
  783|   204k|  return *this;
  784|   204k|}
_ZN7llvm_ks11SmallVectorIcLj64EEC2Ev:
  872|  1.72k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  1.72k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_11MCDwarfFileEvE4sizeEv:
  132|     68|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_11MCDwarfFileEvE3endEv:
  119|     68|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_11MCDwarfFileEvE5beginEv:
  115|     68|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks23SmallVectorTemplateBaseIcLb1EE18uninitialized_copyIccEEvPT_S4_PT0_PNSt3__19enable_ifIXsr3std7is_sameINS7_12remove_constIS3_E4typeES5_EE5valueEvE4typeE:
  322|  1.21k|                                           T2>::value>::type * = nullptr) {
  323|       |    // Use memcpy for PODs iterated by pointers (which includes SmallVector
  324|       |    // iterators): std::uninitialized_copy optimizes to memmove, but we can
  325|       |    // use memcpy here. Note that I and E are iterators and thus might be
  326|       |    // invalid for memcpy if they are equal.
  327|  1.21k|    if (I != E)
  ------------------
  |  Branch (327:9): [True: 1.21k, False: 0]
  ------------------
  328|  1.21k|      memcpy(Dest, I, (E - I) * sizeof(T));
  329|  1.21k|  }
_ZN7llvm_ks15SmallVectorImplIPNS_14MCDataFragmentEED2Ev:
  368|  13.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  13.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  13.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 13.6k]
  ------------------
  374|      0|      free(this->begin());
  375|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_14MCDataFragmentELb1EE13destroy_rangeEPS2_S4_:
  284|  13.6k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_14MCDataFragmentEvE5beginEv:
  113|  13.6k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_14MCDataFragmentEvE3endEv:
  117|  13.6k|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPNS_14MCDataFragmentEvE7isSmallEv:
   86|  13.6k|  bool isSmall() const {
   87|  13.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  13.6k|  }
_ZN7llvm_ks11SmallVectorIcLj32EEC2Ev:
  872|  8.05k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  8.05k|  }
_ZN7llvm_ks15SmallVectorImplINS_7MCFixupEED2Ev:
  368|  9.27k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  9.27k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  9.27k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 527, False: 8.74k]
  ------------------
  374|    527|      free(this->begin());
  375|  9.27k|  }
_ZN7llvm_ks11SmallVectorIPNS_14MCDataFragmentELj4EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplIPNS_14MCDataFragmentEEC2Ej:
  364|  13.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_14MCDataFragmentELb1EEC2Em:
  281|  13.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_14MCDataFragmentEvEC2Em:
   78|  13.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorIcLj256EEC2Ev:
  872|   168k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|   168k|  }
_ZN7llvm_ks15SmallVectorImplIcE6appendIPcEEvT_S4_:
  423|  1.21k|  void append(in_iter in_start, in_iter in_end) {
  424|  1.21k|    size_type NumInputs = std::distance(in_start, in_end);
  425|       |    // Grow allocated space if needed.
  426|  1.21k|    if (NumInputs > size_type(this->capacity_ptr()-this->end()))
  ------------------
  |  Branch (426:9): [True: 15, False: 1.20k]
  ------------------
  427|     15|      this->grow(this->size()+NumInputs);
  428|       |
  429|       |    // Copy the new elements over.
  430|  1.21k|    this->uninitialized_copy(in_start, in_end, this->end());
  431|  1.21k|    this->setEnd(this->end() + NumInputs);
  432|  1.21k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE4sizeEv:
  132|  9.40k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE3endEv:
  119|  9.88k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE5beginEv:
  115|  17.1k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvEixEm:
  144|    406|  reference operator[](size_type idx) {
  145|    406|    assert(idx < size());
  ------------------
  |  Branch (145:5): [True: 406, False: 0]
  ------------------
  146|    406|    return begin()[idx];
  147|    406|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_7MCFixupELb1EE9push_backERKS1_:
  337|  44.6k|  void push_back(const T &Elt) {
  338|  44.6k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  44.6k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 1.14k, False: 43.5k]
  |  |  ------------------
  ------------------
  339|  1.14k|      this->grow();
  340|  44.6k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|  44.6k|    this->setEnd(this->end()+1);
  342|  44.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_7MCFixupELb1EE4growEm:
  333|  1.14k|  void grow(size_t MinSize = 0) {
  334|  1.14k|    this->grow_pod(MinSize*sizeof(T), sizeof(T));
  335|  1.14k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE8grow_podEmm:
   80|  1.14k|  void grow_pod(size_t MinSizeInBytes, size_t TSize) {
   81|  1.14k|    SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
   82|  1.14k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE6setEndEPS1_:
   95|  44.6k|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks11SmallVectorINS_7MCFixupELj4EEC2Ev:
  872|  8.59k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  8.59k|  }
_ZN7llvm_ks15SmallVectorImplINS_7MCFixupEEC2Ej:
  364|  9.27k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  9.27k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_7MCFixupELb1EEC2Em:
  281|  9.27k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvEC2Em:
   78|  9.27k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplIPNS_9MCSectionEED2Ev:
  368|  6.07k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  6.07k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  6.07k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 6.07k]
  ------------------
  374|      0|      free(this->begin());
  375|  6.07k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_9MCSectionELb1EE13destroy_rangeEPS2_S4_:
  284|  6.07k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvE5beginEv:
  113|  18.6k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvE3endEv:
  117|  18.6k|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvE7isSmallEv:
   86|  6.07k|  bool isSmall() const {
   87|  6.07k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  6.07k|  }
_ZN7llvm_ks15SmallVectorImplINS_9MCOperandEED2Ev:
  368|  5.27k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  5.27k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  5.27k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 5.27k]
  ------------------
  374|      0|      free(this->begin());
  375|  5.27k|  }
_ZN7llvm_ks11SmallVectorIPNS_9MCSectionELj16EEC2Ev:
  872|  6.07k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  6.07k|  }
_ZN7llvm_ks15SmallVectorImplIPNS_9MCSectionEEC2Ej:
  364|  6.07k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  6.07k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_9MCSectionELb1EEC2Em:
  281|  6.07k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvEC2Em:
   78|  6.07k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_9MCSectionELb1EE9push_backERKS2_:
  337|  6.29k|  void push_back(const T &Elt) {
  338|  6.29k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  6.29k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 6.29k]
  |  |  ------------------
  ------------------
  339|      0|      this->grow();
  340|  6.29k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|  6.29k|    this->setEnd(this->end()+1);
  342|  6.29k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvE6setEndEPS2_:
   95|  6.29k|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks15SmallVectorImplIPNS_8MCSymbolEED2Ev:
  368|  13.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  13.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  13.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 444, False: 13.1k]
  ------------------
  374|    444|      free(this->begin());
  375|  13.6k|  }
_ZN7llvm_ks11SmallVectorIcLj8EEC2Ev:
  872|    677|  SmallVector() : SmallVectorImpl<T>(N) {
  873|    677|  }
_ZN7llvm_ks11SmallVectorINS_9MCOperandELj8EEC2Ev:
  872|  4.59k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  4.59k|  }
_ZN7llvm_ks15SmallVectorImplINS_9MCOperandEEC2Ej:
  364|  5.27k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  5.27k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9MCOperandELb1EEC2Em:
  281|  5.27k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9MCOperandEvEC2Em:
   78|  5.27k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorINS_7MCFixupELj1EEC2Ev:
  872|    677|  SmallVector() : SmallVectorImpl<T>(N) {
  873|    677|  }
_ZN7llvm_ks11SmallVectorINS_9MCOperandELj8EEC2ERKS2_:
  895|    677|  SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(N) {
  896|    677|    if (!RHS.empty())
  ------------------
  |  Branch (896:9): [True: 677, False: 0]
  ------------------
  897|    677|      SmallVectorImpl<T>::operator=(RHS);
  898|    677|  }
_ZN7llvm_ks11SmallVectorIPNS_8MCSymbolELj2EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplIPNS_8MCSymbolEEC2Ej:
  364|  13.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_8MCSymbolELb1EEC2Em:
  281|  13.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_8MCSymbolEvEC2Em:
   78|  13.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplIcE6resizeEmRKc:
  396|  44.2k|  void resize(size_type N, const T &NV) {
  397|  44.2k|    if (N < this->size()) {
  ------------------
  |  Branch (397:9): [True: 0, False: 44.2k]
  ------------------
  398|      0|      this->destroy_range(this->begin()+N, this->end());
  399|      0|      this->setEnd(this->begin()+N);
  400|  44.2k|    } else if (N > this->size()) {
  ------------------
  |  Branch (400:16): [True: 44.2k, False: 0]
  ------------------
  401|  44.2k|      if (this->capacity() < N)
  ------------------
  |  Branch (401:11): [True: 392, False: 43.8k]
  ------------------
  402|    392|        this->grow(N);
  403|  44.2k|      std::uninitialized_fill(this->end(), this->begin()+N, NV);
  404|  44.2k|      this->setEnd(this->begin()+N);
  405|  44.2k|    }
  406|  44.2k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseIPNS_8MCSymbolELb1EE9push_backERKS2_:
  337|  34.5k|  void push_back(const T &Elt) {
  338|  34.5k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  34.5k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 842, False: 33.7k]
  |  |  ------------------
  ------------------
  339|    842|      this->grow();
  340|  34.5k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|  34.5k|    this->setEnd(this->end()+1);
  342|  34.5k|  }
_ZN7llvm_ks15SmallVectorImplINS_7SMFixItEED2Ev:
  368|  22.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  22.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  22.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 22.6k]
  ------------------
  374|      0|      free(this->begin());
  375|  22.6k|  }
_ZN7llvm_ks11SmallVectorINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEELj8EEC2Ev:
  872|  10.0M|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  10.0M|  }
_ZN7llvm_ks15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEEC2Ej:
  364|  10.0M|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  10.0M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEELb0EEC2Em:
  178|  10.0M|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvEC2Em:
   78|  10.0M|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorINS_5SMLocELj4EEC2Ev:
  872|  39.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  39.6k|  }
_ZN7llvm_ks15SmallVectorImplINS_5SMLocEEC2Ej:
  364|  39.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  39.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_5SMLocELb1EEC2Em:
  281|  39.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvEC2Em:
   78|  39.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplINS_5SMLocEE6resizeEm:
  383|  70.3k|  void resize(size_type N) {
  384|  70.3k|    if (N < this->size()) {
  ------------------
  |  Branch (384:9): [True: 0, False: 70.3k]
  ------------------
  385|      0|      this->destroy_range(this->begin()+N, this->end());
  386|      0|      this->setEnd(this->begin()+N);
  387|  70.3k|    } else if (N > this->size()) {
  ------------------
  |  Branch (387:16): [True: 33.2k, False: 37.1k]
  ------------------
  388|  33.2k|      if (this->capacity() < N)
  ------------------
  |  Branch (388:11): [True: 5.47k, False: 27.7k]
  ------------------
  389|  5.47k|        this->grow(N);
  390|   139k|      for (auto I = this->end(), E = this->begin() + N; I != E; ++I)
  ------------------
  |  Branch (390:57): [True: 105k, False: 33.2k]
  ------------------
  391|   105k|        new (&*I) T();
  392|  33.2k|      this->setEnd(this->begin()+N);
  393|  33.2k|    }
  394|  70.3k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_5SMLocELb1EE13destroy_rangeEPS1_S3_:
  284|  39.6k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE5beginEv:
  113|   143k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE3endEv:
  117|  72.8k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE6setEndEPS1_:
   95|  33.2k|  void setEnd(T *P) { this->EndX = P; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE8capacityEv:
  136|  33.2k|  size_t capacity() const { return capacity_ptr() - begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE12capacity_ptrEv:
  122|  33.2k|  const_iterator capacity_ptr() const { return (const_iterator)this->CapacityX;}
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE5beginEv:
  115|   240k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_5SMLocELb1EE4growEm:
  333|  5.47k|  void grow(size_t MinSize = 0) {
  334|  5.47k|    this->grow_pod(MinSize*sizeof(T), sizeof(T));
  335|  5.47k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE8grow_podEmm:
   80|  5.47k|  void grow_pod(size_t MinSizeInBytes, size_t TSize) {
   81|  5.47k|    SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
   82|  5.47k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE4sizeEv:
  132|   207k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE3endEv:
  119|   207k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvEixEm:
  144|  33.4k|  reference operator[](size_type idx) {
  145|  33.4k|    assert(idx < size());
  ------------------
  |  Branch (145:5): [True: 33.4k, False: 0]
  ------------------
  146|  33.4k|    return begin()[idx];
  147|  33.4k|  }
_ZN7llvm_ks15SmallVectorImplINS_5SMLocEED2Ev:
  368|  39.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  39.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  39.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 4.30k, False: 35.3k]
  ------------------
  374|  4.30k|      free(this->begin());
  375|  39.6k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_5SMLocEvE7isSmallEv:
   86|  39.6k|  bool isSmall() const {
   87|  39.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  39.6k|  }
_ZN7llvm_ks15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEED2Ev:
  368|  10.0M|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  10.0M|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  10.0M|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 302, False: 10.0M]
  ------------------
  374|    302|      free(this->begin());
  375|  10.0M|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEELb0EE13destroy_rangeEPS6_S8_:
  180|  10.0M|  static void destroy_range(T *S, T *E) {
  181|  10.1M|    while (S != E) {
  ------------------
  |  Branch (181:12): [True: 47.6k, False: 10.0M]
  ------------------
  182|  47.6k|      --E;
  183|  47.6k|      E->~T();
  184|  47.6k|    }
  185|  10.0M|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE5beginEv:
  113|  10.0M|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE3endEv:
  117|  10.1M|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE7isSmallEv:
   86|  10.0M|  bool isSmall() const {
   87|  10.0M|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  10.0M|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE4sizeEv:
  132|  43.3k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE3endEv:
  119|  43.3k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE5beginEv:
  115|  50.9k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvEixEm:
  144|    353|  reference operator[](size_type idx) {
  145|    353|    assert(idx < size());
  ------------------
  |  Branch (145:5): [True: 353, False: 0]
  ------------------
  146|    353|    return begin()[idx];
  147|    353|  }
_ZN7llvm_ks15SmallVectorImplINS_8AsmTokenEED2Ev:
  368|  13.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  13.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  13.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 39, False: 13.5k]
  ------------------
  374|     39|      free(this->begin());
  375|  13.6k|  }
_ZN7llvm_ks11SmallVectorINS_8AsmTokenELj1EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplINS_8AsmTokenEEC2Ej:
  364|  13.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_8AsmTokenELb0EEC2Em:
  178|  13.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_8AsmTokenEvEC2Em:
   78|  13.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplINS_8AsmTokenEE12emplace_backIJNS1_9TokenKindENS_9StringRefEEEEvDpOT_:
  659|  13.6k|  template <typename... ArgTypes> void emplace_back(ArgTypes &&... Args) {
  660|  13.6k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  13.6k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 13.6k]
  |  |  ------------------
  ------------------
  661|      0|      this->grow();
  662|  13.6k|    ::new ((void *)this->end()) T(std::forward<ArgTypes>(Args)...);
  663|  13.6k|    this->setEnd(this->end() + 1);
  664|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairIjPNS_10MCFragmentEEEED2Ev:
  368|   592k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|   592k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|   592k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 592k]
  ------------------
  374|      0|      free(this->begin());
  375|   592k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIjPNS_10MCFragmentEEELb1EE13destroy_rangeEPS5_S7_:
  284|   592k|  static void destroy_range(T *, T *) {}
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjPNS_10MCFragmentEEEvE7isSmallEv:
   86|   592k|  bool isSmall() const {
   87|   592k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|   592k|  }
_ZN7llvm_ks11SmallVectorINSt3__14pairIjPNS_10MCFragmentEEELj1EEC2Ev:
  872|   592k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|   592k|  }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairIjPNS_10MCFragmentEEEEC2Ej:
  364|   592k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|   592k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIjPNS_10MCFragmentEEELb1EEC2Em:
  281|   592k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjPNS_10MCFragmentEEEvEC2Em:
   78|   592k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjPNS_10MCFragmentEEEvE5beginEv:
  113|   592k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjPNS_10MCFragmentEEEvE3endEv:
  117|   592k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvEixEm:
  144|   275k|  reference operator[](size_type idx) {
  145|   275k|    assert(idx < size());
  ------------------
  |  Branch (145:5): [True: 275k, False: 0]
  ------------------
  146|   275k|    return begin()[idx];
  147|   275k|  }
_ZN7llvm_ks15SmallVectorImplINS_9StringRefEED2Ev:
  368|   150k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|   150k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|   150k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 391, False: 150k]
  ------------------
  374|    391|      free(this->begin());
  375|   150k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9StringRefELb1EE13destroy_rangeEPS1_S3_:
  284|   150k|  static void destroy_range(T *, T *) {}
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE7isSmallEv:
   86|   150k|  bool isSmall() const {
   87|   150k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|   150k|  }
_ZN7llvm_ks11SmallVectorINS_9StringRefELj5EEC2Ev:
  872|    659|  SmallVector() : SmallVectorImpl<T>(N) {
  873|    659|  }
_ZN7llvm_ks15SmallVectorImplINS_9StringRefEEC2Ej:
  364|   150k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|   150k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9StringRefELb1EEC2Em:
  281|   150k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvEC2Em:
   78|   150k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorINS_9StringRefELj1EEC2Ev:
  872|     16|  SmallVector() : SmallVectorImpl<T>(N) {
  873|     16|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE5beginEv:
  113|   439k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE3endEv:
  117|   480k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEED2Ev:
  368|  13.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  13.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  13.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 13.6k]
  ------------------
  374|      0|      free(this->begin());
  375|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EELb1EE13destroy_rangeEPS9_SB_:
  284|  13.6k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvE5beginEv:
  113|  13.6k|  iterator begin() { return (iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvE7isSmallEv:
   86|  13.6k|  bool isSmall() const {
   87|  13.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  13.6k|  }
_ZN7llvm_ks11SmallVectorINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EELj4EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEEC2Ej:
  364|  13.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EELb1EEC2Em:
  281|  13.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairINS2_IPNS_9MCSectionEPKNS_6MCExprEEES8_EEvEC2Em:
   78|  13.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorIcLj16384EEC2Ev:
  872|      1|  SmallVector() : SmallVectorImpl<T>(N) {
  873|      1|  }
_ZN7llvm_ks15SmallVectorImplIcE7reserveEm:
  408|      1|  void reserve(size_type N) {
  409|      1|    if (this->capacity() < N)
  ------------------
  |  Branch (409:9): [True: 0, False: 1]
  ------------------
  410|      0|      this->grow(N);
  411|      1|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE6setEndEPS1_:
   95|   158k|  void setEnd(T *P) { this->EndX = P; }
_ZN7llvm_ks11SmallVectorINS_9StringRefELj4EEC2Ev:
  872|   136k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|   136k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9StringRefELb1EE9push_backERKS1_:
  337|   158k|  void push_back(const T &Elt) {
  338|   158k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|   158k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 939, False: 157k]
  |  |  ------------------
  ------------------
  339|    939|      this->grow();
  340|   158k|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|   158k|    this->setEnd(this->end()+1);
  342|   158k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_9StringRefELb1EE4growEm:
  333|    939|  void grow(size_t MinSize = 0) {
  334|    939|    this->grow_pod(MinSize*sizeof(T), sizeof(T));
  335|    939|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_9StringRefEvE8grow_podEmm:
   80|    939|  void grow_pod(size_t MinSizeInBytes, size_t TSize) {
   81|    939|    SmallVectorBase::grow_pod(&FirstEl, MinSizeInBytes, TSize);
   82|    939|  }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairIjjEEED2Ev:
  368|  21.7k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  21.7k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  21.7k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 21.7k]
  ------------------
  374|      0|      free(this->begin());
  375|  21.7k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIjjEELb1EE13destroy_rangeEPS3_S5_:
  284|  21.7k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE5beginEv:
  113|  21.7k|  iterator begin() { return (iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE3endEv:
  117|  21.8k|  iterator end() { return (iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE7isSmallEv:
   86|  21.7k|  bool isSmall() const {
   87|  21.7k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  21.7k|  }
_ZN7llvm_ks11SmallVectorINSt3__14pairIjjEELj4EEC2Ev:
  872|  21.7k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  21.7k|  }
_ZN7llvm_ks15SmallVectorImplINSt3__14pairIjjEEEC2Ej:
  364|  21.7k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  21.7k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIjjEELb1EEC2Em:
  281|  21.7k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvEC2Em:
   78|  21.7k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__14pairIjjEELb1EE9push_backERKS3_:
  337|     50|  void push_back(const T &Elt) {
  338|     50|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|     50|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 50]
  |  |  ------------------
  ------------------
  339|      0|      this->grow();
  340|     50|    memcpy(reinterpret_cast<void *>(this->end()), &Elt, sizeof(T));
  341|     50|    this->setEnd(this->end()+1);
  342|     50|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE6setEndEPS3_:
   95|     50|  void setEnd(T *P) { this->EndX = P; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE4dataEv:
  141|  21.7k|  const_pointer data() const { return const_pointer(begin()); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE5beginEv:
  115|  43.5k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE4sizeEv:
  132|  21.7k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__14pairIjjEEvE3endEv:
  119|  21.7k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZN7llvm_ks11SmallVectorINS_7SMFixItELj4EEC2IPKS1_EET_S6_:
  881|  22.6k|  SmallVector(ItTy S, ItTy E) : SmallVectorImpl<T>(N) {
  882|  22.6k|    this->append(S, E);
  883|  22.6k|  }
_ZN7llvm_ks15SmallVectorImplINS_7SMFixItEEC2Ej:
  364|  22.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  22.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_7SMFixItELb0EEC2Em:
  178|  22.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvEC2Em:
   78|  22.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplINS_7SMFixItEE6appendIPKS1_EEvT_S6_:
  423|  22.6k|  void append(in_iter in_start, in_iter in_end) {
  424|  22.6k|    size_type NumInputs = std::distance(in_start, in_end);
  425|       |    // Grow allocated space if needed.
  426|  22.6k|    if (NumInputs > size_type(this->capacity_ptr()-this->end()))
  ------------------
  |  Branch (426:9): [True: 0, False: 22.6k]
  ------------------
  427|      0|      this->grow(this->size()+NumInputs);
  428|       |
  429|       |    // Copy the new elements over.
  430|  22.6k|    this->uninitialized_copy(in_start, in_end, this->end());
  431|  22.6k|    this->setEnd(this->end() + NumInputs);
  432|  22.6k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_7SMFixItEvE12capacity_ptrEv:
  121|  22.6k|  iterator capacity_ptr() { return (iterator)this->CapacityX; }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_7SMFixItELb0EE18uninitialized_copyIPKS1_PS1_EEvT_S7_T0_:
  219|  22.6k|  static void uninitialized_copy(It1 I, It1 E, It2 Dest) {
  220|  22.6k|    std::uninitialized_copy(I, E, Dest);
  221|  22.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEELb0EE9push_backEOS6_:
  236|  29.4k|  void push_back(T &&Elt) {
  237|  29.4k|    if (LLVM_UNLIKELY(this->EndX >= this->CapacityX))
  ------------------
  |  |  171|  29.4k|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 677, False: 28.8k]
  |  |  ------------------
  ------------------
  238|    677|      this->grow();
  239|  29.4k|    ::new ((void*) this->end()) T(::std::move(Elt));
  240|  29.4k|    this->setEnd(this->end()+1);
  241|  29.4k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEELb0EE4growEm:
  251|    677|void SmallVectorTemplateBase<T, isPodLike>::grow(size_t MinSize) {
  252|    677|  size_t CurCapacity = this->capacity();
  253|    677|  size_t CurSize = this->size();
  254|       |  // Always grow, even from zero.
  255|    677|  size_t NewCapacity = size_t(NextPowerOf2(CurCapacity+2));
  256|    677|  if (NewCapacity < MinSize)
  ------------------
  |  Branch (256:7): [True: 0, False: 677]
  ------------------
  257|      0|    NewCapacity = MinSize;
  258|    677|  T *NewElts = static_cast<T*>(malloc(NewCapacity*sizeof(T)));
  259|       |
  260|       |  // Move the elements over.
  261|    677|  this->uninitialized_move(this->begin(), this->end(), NewElts);
  262|       |
  263|       |  // Destroy the original elements.
  264|    677|  destroy_range(this->begin(), this->end());
  265|       |
  266|       |  // If this wasn't grown from the inline copy, deallocate the old space.
  267|    677|  if (!this->isSmall())
  ------------------
  |  Branch (267:7): [True: 375, False: 302]
  ------------------
  268|    375|    free(this->begin());
  269|       |
  270|    677|  this->setEnd(NewElts+CurSize);
  271|    677|  this->BeginX = NewElts;
  272|    677|  this->CapacityX = this->begin()+NewCapacity;
  273|    677|}
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE8capacityEv:
  136|    677|  size_t capacity() const { return capacity_ptr() - begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE12capacity_ptrEv:
  122|    677|  const_iterator capacity_ptr() const { return (const_iterator)this->CapacityX;}
_ZN7llvm_ks23SmallVectorTemplateBaseINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEELb0EE18uninitialized_moveIPS6_S9_EEvT_SA_T0_:
  211|    677|  static void uninitialized_move(It1 I, It1 E, It2 Dest) {
  212|  18.8k|    for (; I != E; ++I, ++Dest)
  ------------------
  |  Branch (212:12): [True: 18.1k, False: 677]
  ------------------
  213|  18.1k|      ::new ((void*) &*Dest) T(::std::move(*I));
  214|    677|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvE6setEndEPS6_:
   95|  30.1k|  void setEnd(T *P) { this->EndX = P; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINSt3__110unique_ptrINS_18MCParsedAsmOperandENS1_14default_deleteIS3_EEEEvEixEm:
  149|  6.87k|  const_reference operator[](size_type idx) const {
  150|  6.87k|    assert(idx < size());
  ------------------
  |  Branch (150:5): [True: 6.87k, False: 0]
  ------------------
  151|  6.87k|    return begin()[idx];
  152|  6.87k|  }
_ZN7llvm_ks25SmallVectorTemplateCommonINS_13FeatureBitsetEvE3endEv:
  117|  13.6k|  iterator end() { return (iterator)this->EndX; }
_ZN7llvm_ks15SmallVectorImplINS_13FeatureBitsetEED2Ev:
  368|  13.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  13.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  13.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 13.6k]
  ------------------
  374|      0|      free(this->begin());
  375|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_13FeatureBitsetELb1EE13destroy_rangeEPS1_S3_:
  284|  13.6k|  static void destroy_range(T *, T *) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_13FeatureBitsetEvE5beginEv:
  113|  13.6k|  iterator begin() { return (iterator)this->BeginX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_13FeatureBitsetEvE7isSmallEv:
   86|  13.6k|  bool isSmall() const {
   87|  13.6k|    return BeginX == static_cast<const void*>(&FirstEl);
   88|  13.6k|  }
_ZN7llvm_ks11SmallVectorINS_13FeatureBitsetELj4EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplINS_13FeatureBitsetEEC2Ej:
  364|  13.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_13FeatureBitsetELb1EEC2Em:
  281|  13.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_13FeatureBitsetEvEC2Em:
   78|  13.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks11SmallVectorINS_14MCLOHDirectiveELj32EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }
_ZN7llvm_ks15SmallVectorImplINS_14MCLOHDirectiveEEC2Ej:
  364|  13.6k|    : SmallVectorTemplateBase<T, isPodLike<T>::value>(N*sizeof(T)) {
  365|  13.6k|  }
_ZN7llvm_ks23SmallVectorTemplateBaseINS_14MCLOHDirectiveELb0EEC2Em:
  178|  13.6k|  SmallVectorTemplateBase(size_t Size) : SmallVectorTemplateCommon<T>(Size) {}
_ZN7llvm_ks25SmallVectorTemplateCommonINS_14MCLOHDirectiveEvEC2Em:
   78|  13.6k|  SmallVectorTemplateCommon(size_t Size) : SmallVectorBase(&FirstEl, Size) {}
_ZN7llvm_ks15SmallVectorImplINS_14MCLOHDirectiveEED2Ev:
  368|  13.6k|  ~SmallVectorImpl() {
  369|       |    // Destroy the constructed elements in the vector.
  370|  13.6k|    this->destroy_range(this->begin(), this->end());
  371|       |
  372|       |    // If this wasn't grown from the inline copy, deallocate the old space.
  373|  13.6k|    if (!this->isSmall())
  ------------------
  |  Branch (373:9): [True: 0, False: 13.6k]
  ------------------
  374|      0|      free(this->begin());
  375|  13.6k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvE4sizeEv:
  132|  24.7k|  size_type size() const { return end()-begin(); }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvE3endEv:
  119|  24.7k|  const_iterator end() const { return (const_iterator)this->EndX; }
_ZNK7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvE5beginEv:
  115|  24.7k|  const_iterator begin() const { return (const_iterator)this->BeginX; }
_ZN7llvm_ks25SmallVectorTemplateCommonIPNS_9MCSectionEvEixEm:
  144|  12.5k|  reference operator[](size_type idx) {
  145|  12.5k|    assert(idx < size());
  ------------------
  |  Branch (145:5): [True: 12.5k, False: 0]
  ------------------
  146|  12.5k|    return begin()[idx];
  147|  12.5k|  }
_ZNK7llvm_ks25SmallVectorTemplateCommonINS_7MCFixupEvE4dataEv:
  141|  7.24k|  const_pointer data() const { return const_pointer(begin()); }
_ZN7llvm_ks11SmallVectorINS_9StringRefELj3EEC2Ev:
  872|  13.6k|  SmallVector() : SmallVectorImpl<T>(N) {
  873|  13.6k|  }

APFloat.cpp:_ZN7llvm_ksL13hexDigitValueEc:
   40|  35.3k|static inline unsigned hexDigitValue(char C) {
   41|  35.3k|  if (C >= '0' && C <= '9') return C-'0';
  ------------------
  |  Branch (41:7): [True: 35.3k, False: 0]
  |  Branch (41:19): [True: 22.5k, False: 12.7k]
  ------------------
   42|  12.7k|  if (C >= 'a' && C <= 'f') return C-'a'+10U;
  ------------------
  |  Branch (42:7): [True: 7.93k, False: 4.86k]
  |  Branch (42:19): [True: 4.82k, False: 3.10k]
  ------------------
   43|  7.97k|  if (C >= 'A' && C <= 'F') return C-'A'+10U;
  ------------------
  |  Branch (43:7): [True: 7.97k, False: 0]
  |  Branch (43:19): [True: 3.52k, False: 4.45k]
  ------------------
   44|  4.45k|  return -1U;
   45|  7.97k|}
StringMap.cpp:_ZN7llvm_ksL10HashStringENS_9StringRefEj:
  112|  4.80M|static inline unsigned HashString(StringRef Str, unsigned Result = 0) {
  113|  63.2M|  for (StringRef::size_type i = 0, e = Str.size(); i != e; ++i)
  ------------------
  |  Branch (113:52): [True: 58.4M, False: 4.80M]
  ------------------
  114|  58.4M|    Result = Result * 33 + (unsigned char)Str[i];
  115|  4.80M|  return Result;
  116|  4.80M|}

_ZN7llvm_ks18StringMapEntryBaseC2Ej:
   35|  3.01M|  explicit StringMapEntryBase(unsigned Len) : StrLen(Len) {}
_ZNK7llvm_ks18StringMapEntryBase12getKeyLengthEv:
   37|  3.61M|  unsigned getKeyLength() const { return StrLen; }
_ZN7llvm_ks13StringMapImplC2Ej:
   55|   109k|      : TheTable(nullptr),
   56|       |        // Initialize the map with zero buckets to allocation.
   57|   109k|        NumBuckets(0), NumItems(0), NumTombstones(0), ItemSize(itemSize) {}
_ZN7llvm_ks13StringMapImpl15getTombstoneValEv:
   95|  19.8M|  static StringMapEntryBase *getTombstoneVal() {
   96|  19.8M|    return (StringMapEntryBase*)-1;
   97|  19.8M|  }
_ZNK7llvm_ks13StringMapImpl5emptyEv:
  102|   177k|  bool empty() const { return NumItems == 0; }
_ZN7llvm_ks14StringMapEntryIjE7DestroyINS_15MallocAllocatorEEEvRT_:
  198|   150k|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|   150k|    unsigned AllocSize =
  201|   150k|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|   150k|    this->~StringMapEntry();
  203|   150k|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|   150k|  }
_ZNK7llvm_ks14StringMapEntryIbE5firstEv:
  143|  2.23k|  StringRef first() const { return StringRef(getKeyData(), getKeyLength()); }
_ZNK7llvm_ks14StringMapEntryIbE10getKeyDataEv:
  141|   220k|  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
_ZN7llvm_ks9StringMapIjNS_15MallocAllocatorEEC2Ev:
  224|  13.7k|  StringMap() : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {}
_ZN7llvm_ks9StringMapIjNS_15MallocAllocatorEED2Ev:
  385|  13.7k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.7k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 0, False: 13.7k]
  ------------------
  390|      0|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 0, False: 0]
  ------------------
  391|      0|        StringMapEntryBase *Bucket = TheTable[I];
  392|      0|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 0, False: 0]
  |  Branch (392:23): [True: 0, False: 0]
  ------------------
  393|      0|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|      0|        }
  395|      0|      }
  396|      0|    }
  397|  13.7k|    free(TheTable);
  398|  13.7k|  }
_ZN7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEEC2ES6_:
  229|  13.6k|    : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
_ZN7llvm_ks9StringMapIbRNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEEC2ES4_:
  229|  13.6k|    : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
_ZN7llvm_ks9StringMapIPNS_14MCSectionMachOENS_15MallocAllocatorEEC2Ev:
  224|  13.6k|  StringMap() : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {}
_ZN7llvm_ks9StringMapIbNS_15MallocAllocatorEEC2Ev:
  224|  13.6k|  StringMap() : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {}
_ZN7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEED2Ev:
  385|  13.6k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.6k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 0, False: 13.6k]
  ------------------
  390|      0|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 0, False: 0]
  ------------------
  391|      0|        StringMapEntryBase *Bucket = TheTable[I];
  392|      0|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 0, False: 0]
  |  Branch (392:23): [True: 0, False: 0]
  ------------------
  393|      0|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|      0|        }
  395|      0|      }
  396|      0|    }
  397|  13.6k|    free(TheTable);
  398|  13.6k|  }
_ZN7llvm_ks14StringMapEntryIPNS_8MCSymbolEE7DestroyINS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEEEvRT_:
  198|  26.8k|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|  26.8k|    unsigned AllocSize =
  201|  26.8k|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|  26.8k|    this->~StringMapEntry();
  203|  26.8k|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|  26.8k|  }
_ZN7llvm_ks9StringMapIbRNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEED2Ev:
  385|  13.6k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.6k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 0, False: 13.6k]
  ------------------
  390|      0|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 0, False: 0]
  ------------------
  391|      0|        StringMapEntryBase *Bucket = TheTable[I];
  392|      0|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 0, False: 0]
  |  Branch (392:23): [True: 0, False: 0]
  ------------------
  393|      0|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|      0|        }
  395|      0|      }
  396|      0|    }
  397|  13.6k|    free(TheTable);
  398|  13.6k|  }
_ZN7llvm_ks14StringMapEntryIbE7DestroyINS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEEEvRT_:
  198|   218k|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|   218k|    unsigned AllocSize =
  201|   218k|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|   218k|    this->~StringMapEntry();
  203|   218k|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|   218k|  }
_ZN7llvm_ks9StringMapIPNS_14MCSectionMachOENS_15MallocAllocatorEED2Ev:
  385|  13.6k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.6k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 0, False: 13.6k]
  ------------------
  390|      0|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 0, False: 0]
  ------------------
  391|      0|        StringMapEntryBase *Bucket = TheTable[I];
  392|      0|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 0, False: 0]
  |  Branch (392:23): [True: 0, False: 0]
  ------------------
  393|      0|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|      0|        }
  395|      0|      }
  396|      0|    }
  397|  13.6k|    free(TheTable);
  398|  13.6k|  }
_ZN7llvm_ks14StringMapEntryIPNS_14MCSectionMachOEE7DestroyINS_15MallocAllocatorEEEvRT_:
  198|    302|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|    302|    unsigned AllocSize =
  201|    302|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|    302|    this->~StringMapEntry();
  203|    302|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|    302|  }
_ZN7llvm_ks9StringMapIbNS_15MallocAllocatorEED2Ev:
  385|  13.6k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.6k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 118, False: 13.5k]
  ------------------
  390|  2.00k|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 1.88k, False: 118]
  ------------------
  391|  1.88k|        StringMapEntryBase *Bucket = TheTable[I];
  392|  1.88k|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 118, False: 1.77k]
  |  Branch (392:23): [True: 118, False: 0]
  ------------------
  393|    118|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|    118|        }
  395|  1.88k|      }
  396|    118|    }
  397|  13.6k|    free(TheTable);
  398|  13.6k|  }
_ZN7llvm_ks14StringMapEntryIbE7DestroyINS_15MallocAllocatorEEEvRT_:
  198|    118|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|    118|    unsigned AllocSize =
  201|    118|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|    118|    this->~StringMapEntry();
  203|    118|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|    118|  }
_ZN7llvm_ks9StringMapIbRNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE5clearEv:
  349|  13.6k|  void clear() {
  350|  13.6k|    if (empty()) return;
  ------------------
  |  Branch (350:9): [True: 0, False: 13.6k]
  ------------------
  351|       |
  352|       |    // Zap all values, resetting the keys back to non-present (not tombstone),
  353|       |    // which is safe because we're removing all elements.
  354|   392k|    for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (354:42): [True: 379k, False: 13.6k]
  ------------------
  355|   379k|      StringMapEntryBase *&Bucket = TheTable[I];
  356|   379k|      if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (356:11): [True: 218k, False: 160k]
  |  Branch (356:21): [True: 218k, False: 0]
  ------------------
  357|   218k|        static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  358|   218k|      }
  359|   379k|      Bucket = nullptr;
  360|   379k|    }
  361|       |
  362|  13.6k|    NumItems = 0;
  363|  13.6k|    NumTombstones = 0;
  364|  13.6k|  }
_ZN7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE5clearEv:
  349|  13.6k|  void clear() {
  350|  13.6k|    if (empty()) return;
  ------------------
  |  Branch (350:9): [True: 0, False: 13.6k]
  ------------------
  351|       |
  352|       |    // Zap all values, resetting the keys back to non-present (not tombstone),
  353|       |    // which is safe because we're removing all elements.
  354|   236k|    for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (354:42): [True: 223k, False: 13.6k]
  ------------------
  355|   223k|      StringMapEntryBase *&Bucket = TheTable[I];
  356|   223k|      if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (356:11): [True: 26.8k, False: 196k]
  |  Branch (356:21): [True: 26.8k, False: 0]
  ------------------
  357|  26.8k|        static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  358|  26.8k|      }
  359|   223k|      Bucket = nullptr;
  360|   223k|    }
  361|       |
  362|  13.6k|    NumItems = 0;
  363|  13.6k|    NumTombstones = 0;
  364|  13.6k|  }
_ZN7llvm_ks9StringMapIPNS_14MCSectionMachOENS_15MallocAllocatorEE5clearEv:
  349|  13.6k|  void clear() {
  350|  13.6k|    if (empty()) return;
  ------------------
  |  Branch (350:9): [True: 13.4k, False: 175]
  ------------------
  351|       |
  352|       |    // Zap all values, resetting the keys back to non-present (not tombstone),
  353|       |    // which is safe because we're removing all elements.
  354|  2.97k|    for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (354:42): [True: 2.80k, False: 175]
  ------------------
  355|  2.80k|      StringMapEntryBase *&Bucket = TheTable[I];
  356|  2.80k|      if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (356:11): [True: 302, False: 2.49k]
  |  Branch (356:21): [True: 302, False: 0]
  ------------------
  357|    302|        static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  358|    302|      }
  359|  2.80k|      Bucket = nullptr;
  360|  2.80k|    }
  361|       |
  362|    175|    NumItems = 0;
  363|    175|    NumTombstones = 0;
  364|    175|  }
_ZN7llvm_ks9StringMapIjNS_15MallocAllocatorEE5clearEv:
  349|  13.6k|  void clear() {
  350|  13.6k|    if (empty()) return;
  ------------------
  |  Branch (350:9): [True: 0, False: 13.6k]
  ------------------
  351|       |
  352|       |    // Zap all values, resetting the keys back to non-present (not tombstone),
  353|       |    // which is safe because we're removing all elements.
  354|   261k|    for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (354:42): [True: 247k, False: 13.6k]
  ------------------
  355|   247k|      StringMapEntryBase *&Bucket = TheTable[I];
  356|   247k|      if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (356:11): [True: 150k, False: 97.0k]
  |  Branch (356:21): [True: 150k, False: 0]
  ------------------
  357|   150k|        static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  358|   150k|      }
  359|   247k|      Bucket = nullptr;
  360|   247k|    }
  361|       |
  362|  13.6k|    NumItems = 0;
  363|  13.6k|    NumTombstones = 0;
  364|  13.6k|  }
_ZN7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEEixENS_9StringRefE:
  298|   134k|  ValueTy &operator[](StringRef Key) {
  299|   134k|    return insert(std::make_pair(Key, ValueTy())).first->second;
  300|   134k|  }
_ZN7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE6insertENSt3__14pairINS_9StringRefES2_EE:
  330|   134k|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|   134k|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|   134k|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|   134k|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 107k, False: 26.8k]
  |  Branch (333:19): [True: 107k, False: 0]
  ------------------
  334|   107k|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|   107k|                            false); // Already exists in map.
  336|       |
  337|  26.8k|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 26.8k]
  ------------------
  338|      0|      --NumTombstones;
  339|  26.8k|    Bucket =
  340|  26.8k|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|  26.8k|    ++NumItems;
  342|  26.8k|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 26.8k, False: 0]
  ------------------
  343|       |
  344|  26.8k|    BucketNo = RehashTable(BucketNo);
  345|  26.8k|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|  26.8k|  }
_ZN7llvm_ks17StringMapIteratorIPNS_8MCSymbolEEC2EPPNS_18StringMapEntryBaseEb:
  452|   134k|    : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) {
  453|   134k|  }
_ZN7llvm_ks22StringMapConstIteratorIPNS_8MCSymbolEEC2EPPNS_18StringMapEntryBaseEb:
  412|   233k|  : Ptr(Bucket) {
  413|   233k|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (413:9): [True: 134k, False: 99.0k]
  ------------------
  414|   233k|  }
_ZN7llvm_ks22StringMapConstIteratorIPNS_8MCSymbolEE23AdvancePastEmptyBucketsEv:
  440|   134k|  void AdvancePastEmptyBuckets() {
  441|   134k|    while (*Ptr == nullptr || *Ptr == StringMapImpl::getTombstoneVal())
  ------------------
  |  Branch (441:12): [True: 0, False: 134k]
  |  Branch (441:31): [True: 0, False: 134k]
  ------------------
  442|      0|      ++Ptr;
  443|   134k|  }
_ZN7llvm_ks14StringMapEntryIPNS_8MCSymbolEE6CreateINS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEES2_EEPS3_NS_9StringRefERT_OT0_:
  149|  26.8k|                                InitType &&InitVal) {
  150|  26.8k|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|  26.8k|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|  26.8k|      KeyLength+1;
  156|  26.8k|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|  26.8k|    StringMapEntry *NewItem =
  159|  26.8k|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|  26.8k|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|  26.8k|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|  26.8k|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 26.6k, False: 175]
  ------------------
  167|  26.6k|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|  26.8k|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|  26.8k|    return NewItem;
  170|  26.8k|  }
_ZN7llvm_ks14StringMapEntryIPNS_8MCSymbolEEC2IS2_EEjOT_:
  127|  26.8k|      : StringMapEntryBase(strLen), second(std::forward<InitTy>(V)) {}
_ZNK7llvm_ks14StringMapEntryIPNS_8MCSymbolEE10getKeyDataEv:
  141|  26.8k|  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
_ZNK7llvm_ks17StringMapIteratorIPNS_8MCSymbolEEptEv:
  457|   134k|  StringMapEntry<ValueTy> *operator->() const {
  458|   134k|    return static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  459|   134k|  }
_ZN7llvm_ks9StringMapIbRNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE6insertENSt3__14pairINS_9StringRefEbEE:
  330|   218k|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|   218k|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|   218k|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|   218k|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 127, False: 218k]
  |  Branch (333:19): [True: 127, False: 0]
  ------------------
  334|    127|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|    127|                            false); // Already exists in map.
  336|       |
  337|   218k|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 218k]
  ------------------
  338|      0|      --NumTombstones;
  339|   218k|    Bucket =
  340|   218k|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|   218k|    ++NumItems;
  342|   218k|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 218k, False: 0]
  ------------------
  343|       |
  344|   218k|    BucketNo = RehashTable(BucketNo);
  345|   218k|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|   218k|  }
_ZN7llvm_ks17StringMapIteratorIbEC2EPPNS_18StringMapEntryBaseEb:
  452|   218k|    : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) {
  453|   218k|  }
_ZN7llvm_ks22StringMapConstIteratorIbEC2EPPNS_18StringMapEntryBaseEb:
  412|   218k|  : Ptr(Bucket) {
  413|   218k|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (413:9): [True: 218k, False: 0]
  ------------------
  414|   218k|  }
_ZN7llvm_ks22StringMapConstIteratorIbE23AdvancePastEmptyBucketsEv:
  440|   218k|  void AdvancePastEmptyBuckets() {
  441|   218k|    while (*Ptr == nullptr || *Ptr == StringMapImpl::getTombstoneVal())
  ------------------
  |  Branch (441:12): [True: 0, False: 218k]
  |  Branch (441:31): [True: 0, False: 218k]
  ------------------
  442|      0|      ++Ptr;
  443|   218k|  }
_ZN7llvm_ks14StringMapEntryIbE6CreateINS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEbEEPS1_NS_9StringRefERT_OT0_:
  149|   218k|                                InitType &&InitVal) {
  150|   218k|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|   218k|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|   218k|      KeyLength+1;
  156|   218k|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|   218k|    StringMapEntry *NewItem =
  159|   218k|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|   218k|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|   218k|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|   218k|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 218k, False: 175]
  ------------------
  167|   218k|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|   218k|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|   218k|    return NewItem;
  170|   218k|  }
_ZN7llvm_ks14StringMapEntryIbEC2IbEEjOT_:
  127|   218k|      : StringMapEntryBase(strLen), second(std::forward<InitTy>(V)) {}
_ZNK7llvm_ks17StringMapIteratorIbEdeEv:
  454|   232k|  StringMapEntry<ValueTy> &operator*() const {
  455|   232k|    return *static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  456|   232k|  }
_ZN7llvm_ks9StringMapIjNS_15MallocAllocatorEEixENS_9StringRefE:
  298|   204k|  ValueTy &operator[](StringRef Key) {
  299|   204k|    return insert(std::make_pair(Key, ValueTy())).first->second;
  300|   204k|  }
_ZN7llvm_ks9StringMapIjNS_15MallocAllocatorEE6insertENSt3__14pairINS_9StringRefEjEE:
  330|   204k|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|   204k|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|   204k|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|   204k|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 53.7k, False: 150k]
  |  Branch (333:19): [True: 53.7k, False: 0]
  ------------------
  334|  53.7k|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|  53.7k|                            false); // Already exists in map.
  336|       |
  337|   150k|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 150k]
  ------------------
  338|      0|      --NumTombstones;
  339|   150k|    Bucket =
  340|   150k|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|   150k|    ++NumItems;
  342|   150k|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 150k, False: 0]
  ------------------
  343|       |
  344|   150k|    BucketNo = RehashTable(BucketNo);
  345|   150k|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|   150k|  }
_ZN7llvm_ks17StringMapIteratorIjEC2EPPNS_18StringMapEntryBaseEb:
  452|   204k|    : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) {
  453|   204k|  }
_ZN7llvm_ks22StringMapConstIteratorIjEC2EPPNS_18StringMapEntryBaseEb:
  412|   204k|  : Ptr(Bucket) {
  413|   204k|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (413:9): [True: 204k, False: 0]
  ------------------
  414|   204k|  }
_ZN7llvm_ks22StringMapConstIteratorIjE23AdvancePastEmptyBucketsEv:
  440|   204k|  void AdvancePastEmptyBuckets() {
  441|   204k|    while (*Ptr == nullptr || *Ptr == StringMapImpl::getTombstoneVal())
  ------------------
  |  Branch (441:12): [True: 0, False: 204k]
  |  Branch (441:31): [True: 0, False: 204k]
  ------------------
  442|      0|      ++Ptr;
  443|   204k|  }
_ZN7llvm_ks14StringMapEntryIjE6CreateINS_15MallocAllocatorEjEEPS1_NS_9StringRefERT_OT0_:
  149|   150k|                                InitType &&InitVal) {
  150|   150k|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|   150k|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|   150k|      KeyLength+1;
  156|   150k|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|   150k|    StringMapEntry *NewItem =
  159|   150k|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|   150k|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|   150k|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|   150k|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 150k, False: 0]
  ------------------
  167|   150k|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|   150k|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|   150k|    return NewItem;
  170|   150k|  }
_ZN7llvm_ks14StringMapEntryIjEC2IjEEjOT_:
  127|   150k|      : StringMapEntryBase(strLen), second(std::forward<InitTy>(V)) {}
_ZNK7llvm_ks14StringMapEntryIjE10getKeyDataEv:
  141|   150k|  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
_ZNK7llvm_ks17StringMapIteratorIjEptEv:
  457|   204k|  StringMapEntry<ValueTy> *operator->() const {
  458|   204k|    return static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  459|   204k|  }
_ZNK7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE6lookupENS_9StringRefE:
  291|  49.5k|  ValueTy lookup(StringRef Key) const {
  292|  49.5k|    const_iterator it = find(Key);
  293|  49.5k|    if (it != end())
  ------------------
  |  Branch (293:9): [True: 22.0k, False: 27.4k]
  ------------------
  294|  22.0k|      return it->second;
  295|  27.4k|    return ValueTy();
  296|  49.5k|  }
_ZNK7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE4findENS_9StringRefE:
  283|  49.5k|  const_iterator find(StringRef Key) const {
  284|  49.5k|    int Bucket = FindKey(Key);
  285|  49.5k|    if (Bucket == -1) return end();
  ------------------
  |  Branch (285:9): [True: 27.4k, False: 22.0k]
  ------------------
  286|  22.0k|    return const_iterator(TheTable+Bucket, true);
  287|  49.5k|  }
_ZNK7llvm_ks22StringMapConstIteratorIPNS_8MCSymbolEEneERKS3_:
  426|  49.5k|  bool operator!=(const StringMapConstIterator &RHS) const {
  427|  49.5k|    return Ptr != RHS.Ptr;
  428|  49.5k|  }
_ZNK7llvm_ks9StringMapIPNS_8MCSymbolERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE3endEv:
  273|  76.9k|  const_iterator end() const {
  274|  76.9k|    return const_iterator(TheTable+NumBuckets, true);
  275|  76.9k|  }
_ZNK7llvm_ks22StringMapConstIteratorIPNS_8MCSymbolEEptEv:
  419|  22.0k|  const value_type *operator->() const {
  420|  22.0k|    return static_cast<StringMapEntry<ValueTy>*>(*Ptr);
  421|  22.0k|  }
_ZN7llvm_ks9StringMapIPNS_14MCSectionMachOENS_15MallocAllocatorEEixENS_9StringRefE:
  298|  1.72k|  ValueTy &operator[](StringRef Key) {
  299|  1.72k|    return insert(std::make_pair(Key, ValueTy())).first->second;
  300|  1.72k|  }
_ZN7llvm_ks9StringMapIPNS_14MCSectionMachOENS_15MallocAllocatorEE6insertENSt3__14pairINS_9StringRefES2_EE:
  330|  1.72k|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|  1.72k|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|  1.72k|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|  1.72k|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 1.42k, False: 302]
  |  Branch (333:19): [True: 1.42k, False: 0]
  ------------------
  334|  1.42k|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|  1.42k|                            false); // Already exists in map.
  336|       |
  337|    302|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 302]
  ------------------
  338|      0|      --NumTombstones;
  339|    302|    Bucket =
  340|    302|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|    302|    ++NumItems;
  342|    302|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 302, False: 0]
  ------------------
  343|       |
  344|    302|    BucketNo = RehashTable(BucketNo);
  345|    302|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|    302|  }
_ZN7llvm_ks17StringMapIteratorIPNS_14MCSectionMachOEEC2EPPNS_18StringMapEntryBaseEb:
  452|  1.72k|    : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) {
  453|  1.72k|  }
_ZN7llvm_ks22StringMapConstIteratorIPNS_14MCSectionMachOEEC2EPPNS_18StringMapEntryBaseEb:
  412|  1.72k|  : Ptr(Bucket) {
  413|  1.72k|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (413:9): [True: 1.72k, False: 0]
  ------------------
  414|  1.72k|  }
_ZN7llvm_ks22StringMapConstIteratorIPNS_14MCSectionMachOEE23AdvancePastEmptyBucketsEv:
  440|  1.72k|  void AdvancePastEmptyBuckets() {
  441|  1.72k|    while (*Ptr == nullptr || *Ptr == StringMapImpl::getTombstoneVal())
  ------------------
  |  Branch (441:12): [True: 0, False: 1.72k]
  |  Branch (441:31): [True: 0, False: 1.72k]
  ------------------
  442|      0|      ++Ptr;
  443|  1.72k|  }
_ZN7llvm_ks14StringMapEntryIPNS_14MCSectionMachOEE6CreateINS_15MallocAllocatorES2_EEPS3_NS_9StringRefERT_OT0_:
  149|    302|                                InitType &&InitVal) {
  150|    302|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|    302|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|    302|      KeyLength+1;
  156|    302|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|    302|    StringMapEntry *NewItem =
  159|    302|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|    302|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|    302|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|    302|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 302, False: 0]
  ------------------
  167|    302|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|    302|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|    302|    return NewItem;
  170|    302|  }
_ZN7llvm_ks14StringMapEntryIPNS_14MCSectionMachOEEC2IS2_EEjOT_:
  127|    302|      : StringMapEntryBase(strLen), second(std::forward<InitTy>(V)) {}
_ZNK7llvm_ks14StringMapEntryIPNS_14MCSectionMachOEE10getKeyDataEv:
  141|    302|  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
_ZNK7llvm_ks17StringMapIteratorIPNS_14MCSectionMachOEEptEv:
  457|  1.72k|  StringMapEntry<ValueTy> *operator->() const {
  458|  1.72k|    return static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  459|  1.72k|  }
_ZN7llvm_ks17StringMapIteratorIbEC2Ev:
  449|    118|  StringMapIterator() {}
_ZN7llvm_ks22StringMapConstIteratorIbEC2Ev:
  408|    118|  StringMapConstIterator() : Ptr(nullptr) { }
_ZN7llvm_ks9StringMapIbNS_15MallocAllocatorEE6insertENSt3__14pairINS_9StringRefEbEE:
  330|    118|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|    118|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|    118|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|    118|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 0, False: 118]
  |  Branch (333:19): [True: 0, False: 0]
  ------------------
  334|      0|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|      0|                            false); // Already exists in map.
  336|       |
  337|    118|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 118]
  ------------------
  338|      0|      --NumTombstones;
  339|    118|    Bucket =
  340|    118|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|    118|    ++NumItems;
  342|    118|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 118, False: 0]
  ------------------
  343|       |
  344|    118|    BucketNo = RehashTable(BucketNo);
  345|    118|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|    118|  }
_ZN7llvm_ks14StringMapEntryIbE6CreateINS_15MallocAllocatorEbEEPS1_NS_9StringRefERT_OT0_:
  149|    118|                                InitType &&InitVal) {
  150|    118|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|    118|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|    118|      KeyLength+1;
  156|    118|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|    118|    StringMapEntry *NewItem =
  159|    118|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|    118|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|    118|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|    118|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 118, False: 0]
  ------------------
  167|    118|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|    118|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|    118|    return NewItem;
  170|    118|  }
_ZNK7llvm_ks17StringMapIteratorIbEptEv:
  457|    118|  StringMapEntry<ValueTy> *operator->() const {
  458|    118|    return static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  459|    118|  }
_ZNK7llvm_ks14StringMapEntryIbE6getKeyEv:
  129|    118|  StringRef getKey() const {
  130|    118|    return StringRef(getKeyData(), getKeyLength());
  131|    118|  }
_ZN7llvm_ks9StringMapINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEENS_15MallocAllocatorEEC2Ev:
  224|  13.6k|  StringMap() : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {}
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_110MCAsmMacroENS_15MallocAllocatorEEC2Ev:
  224|  13.6k|  StringMap() : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {}
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_19AsmParser13DirectiveKindENS_15MallocAllocatorEEC2Ev:
  224|  13.6k|  StringMap() : StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {}
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_19AsmParser13DirectiveKindENS_15MallocAllocatorEED2Ev:
  385|  13.6k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.6k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 13.6k, False: 0]
  ------------------
  390|  3.50M|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 3.49M, False: 13.6k]
  ------------------
  391|  3.49M|        StringMapEntryBase *Bucket = TheTable[I];
  392|  3.49M|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 1.71M, False: 1.77M]
  |  Branch (392:23): [True: 1.71M, False: 0]
  ------------------
  393|  1.71M|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|  1.71M|        }
  395|  3.49M|      }
  396|  13.6k|    }
  397|  13.6k|    free(TheTable);
  398|  13.6k|  }
AsmParser.cpp:_ZN7llvm_ks14StringMapEntryIN12_GLOBAL__N_19AsmParser13DirectiveKindEE7DestroyINS_15MallocAllocatorEEEvRT_:
  198|  1.71M|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|  1.71M|    unsigned AllocSize =
  201|  1.71M|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|  1.71M|    this->~StringMapEntry();
  203|  1.71M|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|  1.71M|  }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_110MCAsmMacroENS_15MallocAllocatorEED2Ev:
  385|  13.6k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.6k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 666, False: 12.9k]
  ------------------
  390|  11.3k|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 10.6k, False: 666]
  ------------------
  391|  10.6k|        StringMapEntryBase *Bucket = TheTable[I];
  392|  10.6k|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 735, False: 9.92k]
  |  Branch (392:23): [True: 735, False: 0]
  ------------------
  393|    735|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|    735|        }
  395|  10.6k|      }
  396|    666|    }
  397|  13.6k|    free(TheTable);
  398|  13.6k|  }
AsmParser.cpp:_ZN7llvm_ks14StringMapEntryIN12_GLOBAL__N_110MCAsmMacroEE7DestroyINS_15MallocAllocatorEEEvRT_:
  198|    735|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|    735|    unsigned AllocSize =
  201|    735|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|    735|    this->~StringMapEntry();
  203|    735|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|    735|  }
_ZN7llvm_ks9StringMapINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEENS_15MallocAllocatorEED2Ev:
  385|  13.6k|  ~StringMap() {
  386|       |    // Delete all the elements in the map, but don't reset the elements
  387|       |    // to default values.  This is a copy of clear(), but avoids unnecessary
  388|       |    // work not required in the destructor.
  389|  13.6k|    if (!empty()) {
  ------------------
  |  Branch (389:9): [True: 13.6k, False: 0]
  ------------------
  390|  1.75M|      for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (390:44): [True: 1.74M, False: 13.6k]
  ------------------
  391|  1.74M|        StringMapEntryBase *Bucket = TheTable[I];
  392|  1.74M|        if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (392:13): [True: 899k, False: 845k]
  |  Branch (392:23): [True: 899k, False: 0]
  ------------------
  393|   899k|          static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  394|   899k|        }
  395|  1.74M|      }
  396|  13.6k|    }
  397|  13.6k|    free(TheTable);
  398|  13.6k|  }
_ZN7llvm_ks14StringMapEntryINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEE7DestroyINS_15MallocAllocatorEEEvRT_:
  198|   899k|  void Destroy(AllocatorTy &Allocator) {
  199|       |    // Free memory referenced by the item.
  200|   899k|    unsigned AllocSize =
  201|   899k|        static_cast<unsigned>(sizeof(StringMapEntry)) + getKeyLength() + 1;
  202|   899k|    this->~StringMapEntry();
  203|   899k|    Allocator.Deallocate(static_cast<void *>(this), AllocSize);
  204|   899k|  }
_ZN7llvm_ks9StringMapINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEENS_15MallocAllocatorEEixES5_:
  298|   899k|  ValueTy &operator[](StringRef Key) {
  299|   899k|    return insert(std::make_pair(Key, ValueTy())).first->second;
  300|   899k|  }
_ZN7llvm_ks9StringMapINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEENS_15MallocAllocatorEE6insertENS2_IS5_S9_EE:
  330|   899k|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|   899k|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|   899k|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|   899k|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 0, False: 899k]
  |  Branch (333:19): [True: 0, False: 0]
  ------------------
  334|      0|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|      0|                            false); // Already exists in map.
  336|       |
  337|   899k|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 899k]
  ------------------
  338|      0|      --NumTombstones;
  339|   899k|    Bucket =
  340|   899k|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|   899k|    ++NumItems;
  342|   899k|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 899k, False: 0]
  ------------------
  343|       |
  344|   899k|    BucketNo = RehashTable(BucketNo);
  345|   899k|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|   899k|  }
_ZN7llvm_ks17StringMapIteratorINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEEC2EPPNS_18StringMapEntryBaseEb:
  452|   899k|    : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) {
  453|   899k|  }
_ZN7llvm_ks22StringMapConstIteratorINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEEC2EPPNS_18StringMapEntryBaseEb:
  412|  1.94M|  : Ptr(Bucket) {
  413|  1.94M|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (413:9): [True: 899k, False: 1.04M]
  ------------------
  414|  1.94M|  }
_ZN7llvm_ks22StringMapConstIteratorINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEE23AdvancePastEmptyBucketsEv:
  440|   899k|  void AdvancePastEmptyBuckets() {
  441|   899k|    while (*Ptr == nullptr || *Ptr == StringMapImpl::getTombstoneVal())
  ------------------
  |  Branch (441:12): [True: 0, False: 899k]
  |  Branch (441:31): [True: 0, False: 899k]
  ------------------
  442|      0|      ++Ptr;
  443|   899k|  }
_ZN7llvm_ks14StringMapEntryINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEE6CreateINS_15MallocAllocatorES9_EEPSA_S5_RT_OT0_:
  149|   899k|                                InitType &&InitVal) {
  150|   899k|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|   899k|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|   899k|      KeyLength+1;
  156|   899k|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|   899k|    StringMapEntry *NewItem =
  159|   899k|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|   899k|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|   899k|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|   899k|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 899k, False: 0]
  ------------------
  167|   899k|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|   899k|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|   899k|    return NewItem;
  170|   899k|  }
_ZN7llvm_ks14StringMapEntryINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEEC2IS9_EEjOT_:
  127|   899k|      : StringMapEntryBase(strLen), second(std::forward<InitTy>(V)) {}
_ZNK7llvm_ks14StringMapEntryINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEE10getKeyDataEv:
  141|   899k|  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
_ZNK7llvm_ks17StringMapIteratorINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEEptEv:
  457|   899k|  StringMapEntry<ValueTy> *operator->() const {
  458|   899k|    return static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  459|   899k|  }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_19AsmParser13DirectiveKindENS_15MallocAllocatorEEixENS_9StringRefE:
  298|  1.77M|  ValueTy &operator[](StringRef Key) {
  299|  1.77M|    return insert(std::make_pair(Key, ValueTy())).first->second;
  300|  1.77M|  }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_19AsmParser13DirectiveKindENS_15MallocAllocatorEE6insertENSt3__14pairINS_9StringRefES3_EE:
  330|  1.77M|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|  1.77M|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|  1.77M|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|  1.77M|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 54.5k, False: 1.71M]
  |  Branch (333:19): [True: 54.5k, False: 0]
  ------------------
  334|  54.5k|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|  54.5k|                            false); // Already exists in map.
  336|       |
  337|  1.71M|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 1.71M]
  ------------------
  338|      0|      --NumTombstones;
  339|  1.71M|    Bucket =
  340|  1.71M|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|  1.71M|    ++NumItems;
  342|  1.71M|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 1.71M, False: 0]
  ------------------
  343|       |
  344|  1.71M|    BucketNo = RehashTable(BucketNo);
  345|  1.71M|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|  1.71M|  }
AsmParser.cpp:_ZN7llvm_ks17StringMapIteratorIN12_GLOBAL__N_19AsmParser13DirectiveKindEEC2EPPNS_18StringMapEntryBaseEb:
  452|  3.52M|    : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) {
  453|  3.52M|  }
AsmParser.cpp:_ZN7llvm_ks22StringMapConstIteratorIN12_GLOBAL__N_19AsmParser13DirectiveKindEEC2EPPNS_18StringMapEntryBaseEb:
  412|  3.52M|  : Ptr(Bucket) {
  413|  3.52M|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (413:9): [True: 1.77M, False: 1.74M]
  ------------------
  414|  3.52M|  }
AsmParser.cpp:_ZN7llvm_ks22StringMapConstIteratorIN12_GLOBAL__N_19AsmParser13DirectiveKindEE23AdvancePastEmptyBucketsEv:
  440|  1.77M|  void AdvancePastEmptyBuckets() {
  441|  1.77M|    while (*Ptr == nullptr || *Ptr == StringMapImpl::getTombstoneVal())
  ------------------
  |  Branch (441:12): [True: 0, False: 1.77M]
  |  Branch (441:31): [True: 0, False: 1.77M]
  ------------------
  442|      0|      ++Ptr;
  443|  1.77M|  }
AsmParser.cpp:_ZN7llvm_ks14StringMapEntryIN12_GLOBAL__N_19AsmParser13DirectiveKindEE6CreateINS_15MallocAllocatorES3_EEPS4_NS_9StringRefERT_OT0_:
  149|  1.71M|                                InitType &&InitVal) {
  150|  1.71M|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|  1.71M|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|  1.71M|      KeyLength+1;
  156|  1.71M|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|  1.71M|    StringMapEntry *NewItem =
  159|  1.71M|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|  1.71M|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|  1.71M|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|  1.71M|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 1.71M, False: 0]
  ------------------
  167|  1.71M|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|  1.71M|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|  1.71M|    return NewItem;
  170|  1.71M|  }
AsmParser.cpp:_ZN7llvm_ks14StringMapEntryIN12_GLOBAL__N_19AsmParser13DirectiveKindEEC2IS3_EEjOT_:
  127|  1.71M|      : StringMapEntryBase(strLen), second(std::forward<InitTy>(V)) {}
AsmParser.cpp:_ZNK7llvm_ks14StringMapEntryIN12_GLOBAL__N_19AsmParser13DirectiveKindEE10getKeyDataEv:
  141|  1.71M|  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
AsmParser.cpp:_ZNK7llvm_ks17StringMapIteratorIN12_GLOBAL__N_19AsmParser13DirectiveKindEEptEv:
  457|  1.77M|  StringMapEntry<ValueTy> *operator->() const {
  458|  1.77M|    return static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  459|  1.77M|  }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_19AsmParser13DirectiveKindENS_15MallocAllocatorEE4findENS_9StringRefE:
  277|   874k|  iterator find(StringRef Key) {
  278|   874k|    int Bucket = FindKey(Key);
  279|   874k|    if (Bucket == -1) return end();
  ------------------
  |  Branch (279:9): [True: 555k, False: 318k]
  ------------------
  280|   318k|    return iterator(TheTable+Bucket, true);
  281|   874k|  }
AsmParser.cpp:_ZNK7llvm_ks22StringMapConstIteratorIN12_GLOBAL__N_19AsmParser13DirectiveKindEEeqERKS4_:
  423|   874k|  bool operator==(const StringMapConstIterator &RHS) const {
  424|   874k|    return Ptr == RHS.Ptr;
  425|   874k|  }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_19AsmParser13DirectiveKindENS_15MallocAllocatorEE3endEv:
  267|  1.42M|  iterator end() {
  268|  1.42M|    return iterator(TheTable+NumBuckets, true);
  269|  1.42M|  }
AsmParser.cpp:_ZNK7llvm_ks22StringMapConstIteratorIN12_GLOBAL__N_19AsmParser13DirectiveKindEEptEv:
  419|   318k|  const value_type *operator->() const {
  420|   318k|    return static_cast<StringMapEntry<ValueTy>*>(*Ptr);
  421|   318k|  }
AsmParser.cpp:_ZNK7llvm_ks14StringMapEntryIN12_GLOBAL__N_19AsmParser13DirectiveKindEE8getValueEv:
  133|   318k|  const ValueTy &getValue() const { return second; }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_110MCAsmMacroENS_15MallocAllocatorEE4findENS_9StringRefE:
  277|   566k|  iterator find(StringRef Key) {
  278|   566k|    int Bucket = FindKey(Key);
  279|   566k|    if (Bucket == -1) return end();
  ------------------
  |  Branch (279:9): [True: 532k, False: 34.1k]
  ------------------
  280|  34.1k|    return iterator(TheTable+Bucket, true);
  281|   566k|  }
AsmParser.cpp:_ZN7llvm_ks17StringMapIteratorIN12_GLOBAL__N_110MCAsmMacroEEC2EPPNS_18StringMapEntryBaseEb:
  452|  1.13M|    : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) {
  453|  1.13M|  }
AsmParser.cpp:_ZN7llvm_ks22StringMapConstIteratorIN12_GLOBAL__N_110MCAsmMacroEEC2EPPNS_18StringMapEntryBaseEb:
  412|  1.13M|  : Ptr(Bucket) {
  413|  1.13M|    if (!NoAdvance) AdvancePastEmptyBuckets();
  ------------------
  |  Branch (413:9): [True: 735, False: 1.13M]
  ------------------
  414|  1.13M|  }
AsmParser.cpp:_ZN7llvm_ks22StringMapConstIteratorIN12_GLOBAL__N_110MCAsmMacroEE23AdvancePastEmptyBucketsEv:
  440|    735|  void AdvancePastEmptyBuckets() {
  441|    735|    while (*Ptr == nullptr || *Ptr == StringMapImpl::getTombstoneVal())
  ------------------
  |  Branch (441:12): [True: 0, False: 735]
  |  Branch (441:31): [True: 0, False: 735]
  ------------------
  442|      0|      ++Ptr;
  443|    735|  }
AsmParser.cpp:_ZNK7llvm_ks22StringMapConstIteratorIN12_GLOBAL__N_110MCAsmMacroEEeqERKS3_:
  423|   566k|  bool operator==(const StringMapConstIterator &RHS) const {
  424|   566k|    return Ptr == RHS.Ptr;
  425|   566k|  }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_110MCAsmMacroENS_15MallocAllocatorEE3endEv:
  267|  1.09M|  iterator end() {
  268|  1.09M|    return iterator(TheTable+NumBuckets, true);
  269|  1.09M|  }
AsmParser.cpp:_ZNK7llvm_ks17StringMapIteratorIN12_GLOBAL__N_110MCAsmMacroEEptEv:
  457|  34.1k|  StringMapEntry<ValueTy> *operator->() const {
  458|  34.1k|    return static_cast<StringMapEntry<ValueTy>*>(*this->Ptr);
  459|  34.1k|  }
AsmParser.cpp:_ZN7llvm_ks14StringMapEntryIN12_GLOBAL__N_110MCAsmMacroEE8getValueEv:
  134|  34.1k|  ValueTy &getValue() { return second; }
_ZNK7llvm_ks9StringMapINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEENS_15MallocAllocatorEE6lookupES5_:
  291|   521k|  ValueTy lookup(StringRef Key) const {
  292|   521k|    const_iterator it = find(Key);
  293|   521k|    if (it != end())
  ------------------
  |  Branch (293:9): [True: 3.31k, False: 518k]
  ------------------
  294|  3.31k|      return it->second;
  295|   518k|    return ValueTy();
  296|   521k|  }
_ZNK7llvm_ks9StringMapINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEENS_15MallocAllocatorEE4findES5_:
  283|   521k|  const_iterator find(StringRef Key) const {
  284|   521k|    int Bucket = FindKey(Key);
  285|   521k|    if (Bucket == -1) return end();
  ------------------
  |  Branch (285:9): [True: 518k, False: 3.31k]
  ------------------
  286|  3.31k|    return const_iterator(TheTable+Bucket, true);
  287|   521k|  }
_ZNK7llvm_ks22StringMapConstIteratorINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEEneERKSA_:
  426|   521k|  bool operator!=(const StringMapConstIterator &RHS) const {
  427|   521k|    return Ptr != RHS.Ptr;
  428|   521k|  }
_ZNK7llvm_ks9StringMapINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEENS_15MallocAllocatorEE3endEv:
  273|  1.03M|  const_iterator end() const {
  274|  1.03M|    return const_iterator(TheTable+NumBuckets, true);
  275|  1.03M|  }
_ZNK7llvm_ks22StringMapConstIteratorINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS4_NS_9StringRefENS_5SMLocEEEEEptEv:
  419|  3.31k|  const value_type *operator->() const {
  420|  3.31k|    return static_cast<StringMapEntry<ValueTy>*>(*Ptr);
  421|  3.31k|  }
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_110MCAsmMacroENS_15MallocAllocatorEE6insertENSt3__14pairINS_9StringRefES2_EE:
  330|    735|  std::pair<iterator, bool> insert(std::pair<StringRef, ValueTy> KV) {
  331|    735|    unsigned BucketNo = LookupBucketFor(KV.first);
  332|    735|    StringMapEntryBase *&Bucket = TheTable[BucketNo];
  333|    735|    if (Bucket && Bucket != getTombstoneVal())
  ------------------
  |  Branch (333:9): [True: 0, False: 735]
  |  Branch (333:19): [True: 0, False: 0]
  ------------------
  334|      0|      return std::make_pair(iterator(TheTable + BucketNo, false),
  335|      0|                            false); // Already exists in map.
  336|       |
  337|    735|    if (Bucket == getTombstoneVal())
  ------------------
  |  Branch (337:9): [True: 0, False: 735]
  ------------------
  338|      0|      --NumTombstones;
  339|    735|    Bucket =
  340|    735|        MapEntryTy::Create(KV.first, Allocator, std::move(KV.second));
  341|    735|    ++NumItems;
  342|    735|    assert(NumItems + NumTombstones <= NumBuckets);
  ------------------
  |  Branch (342:5): [True: 735, False: 0]
  ------------------
  343|       |
  344|    735|    BucketNo = RehashTable(BucketNo);
  345|    735|    return std::make_pair(iterator(TheTable + BucketNo, false), true);
  346|    735|  }
AsmParser.cpp:_ZN7llvm_ks14StringMapEntryIN12_GLOBAL__N_110MCAsmMacroEE6CreateINS_15MallocAllocatorES2_EEPS3_NS_9StringRefERT_OT0_:
  149|    735|                                InitType &&InitVal) {
  150|    735|    unsigned KeyLength = Key.size();
  151|       |
  152|       |    // Allocate a new item with space for the string at the end and a null
  153|       |    // terminator.
  154|    735|    unsigned AllocSize = static_cast<unsigned>(sizeof(StringMapEntry))+
  155|    735|      KeyLength+1;
  156|    735|    unsigned Alignment = alignOf<StringMapEntry>();
  157|       |
  158|    735|    StringMapEntry *NewItem =
  159|    735|      static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
  160|       |
  161|       |    // Default construct the value.
  162|    735|    new (NewItem) StringMapEntry(KeyLength, std::forward<InitType>(InitVal));
  163|       |
  164|       |    // Copy the string information.
  165|    735|    char *StrBuffer = const_cast<char*>(NewItem->getKeyData());
  166|    735|    if (KeyLength > 0)
  ------------------
  |  Branch (166:9): [True: 699, False: 36]
  ------------------
  167|    699|      memcpy(StrBuffer, Key.data(), KeyLength);
  168|    735|    StrBuffer[KeyLength] = 0;  // Null terminate for convenience of clients.
  169|    735|    return NewItem;
  170|    735|  }
AsmParser.cpp:_ZN7llvm_ks14StringMapEntryIN12_GLOBAL__N_110MCAsmMacroEEC2IS2_EEjOT_:
  127|    735|      : StringMapEntryBase(strLen), second(std::forward<InitTy>(V)) {}
AsmParser.cpp:_ZNK7llvm_ks14StringMapEntryIN12_GLOBAL__N_110MCAsmMacroEE10getKeyDataEv:
  141|    735|  const char *getKeyData() const {return reinterpret_cast<const char*>(this+1);}
AsmParser.cpp:_ZN7llvm_ks9StringMapIN12_GLOBAL__N_19AsmParser13DirectiveKindENS_15MallocAllocatorEE5clearEv:
  349|  13.6k|  void clear() {
  350|  13.6k|    if (empty()) return;
  ------------------
  |  Branch (350:9): [True: 13.6k, False: 0]
  ------------------
  351|       |
  352|       |    // Zap all values, resetting the keys back to non-present (not tombstone),
  353|       |    // which is safe because we're removing all elements.
  354|      0|    for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (354:42): [True: 0, False: 0]
  ------------------
  355|      0|      StringMapEntryBase *&Bucket = TheTable[I];
  356|      0|      if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (356:11): [True: 0, False: 0]
  |  Branch (356:21): [True: 0, False: 0]
  ------------------
  357|      0|        static_cast<MapEntryTy*>(Bucket)->Destroy(Allocator);
  358|      0|      }
  359|      0|      Bucket = nullptr;
  360|      0|    }
  361|       |
  362|      0|    NumItems = 0;
  363|      0|    NumTombstones = 0;
  364|      0|  }

_ZN7llvm_ks9StringRefC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   91|  1.84M|      : Data(Str.data()), Length(Str.length()) {}
_ZN7llvm_ks9StringRefC2EPKc:
   72|  10.5M|      : Data(Str) {
   73|       |        //assert(Str && "StringRef cannot be built from a NULL argument");
   74|  10.5M|        if (!Str)
  ------------------
  |  Branch (74:13): [True: 5, False: 10.5M]
  ------------------
   75|      5|            Length = 0;
   76|  10.5M|        else 
   77|  10.5M|            Length = ::strlen(Str); // invoking strlen(NULL) is undefined behavior
   78|  10.5M|      }
_ZN7llvm_ks9StringRef13compareMemoryEPKcS2_m:
   58|  4.33M|    static int compareMemory(const char *Lhs, const char *Rhs, size_t Length) {
   59|  4.33M|      if (Length == 0) { return 0; }
  ------------------
  |  Branch (59:11): [True: 10.5k, False: 4.32M]
  ------------------
   60|  4.32M|      return ::memcmp(Lhs,Rhs,Length);
   61|  4.33M|    }
_ZN7llvm_ks9StringRefC2Ev:
   68|  1.78M|    /*implicit*/ StringRef() : Data(nullptr), Length(0) {}
_ZN7llvm_ks9StringRefC2EPKcm:
   83|  69.9M|      : Data(data), Length(length) {
   84|       |        assert((data || length == 0) &&
  ------------------
  |  Branch (84:9): [True: 69.9M, False: 0]
  |  Branch (84:9): [True: 0, False: 0]
  |  Branch (84:9): [True: 69.9M, Folded]
  |  Branch (84:9): [True: 69.9M, False: 0]
  ------------------
   85|  69.9M|        "StringRef cannot be built from a NULL argument with non-null length");
   86|  69.9M|      }
_ZNK7llvm_ks9StringRef5beginEv:
   97|  33.2M|    iterator begin() const { return Data; }
_ZNK7llvm_ks9StringRef3endEv:
   99|  35.5M|    iterator end() const { return Data + Length; }
_ZNK7llvm_ks9StringRef4dataEv:
  115|  38.3M|    const char *data() const { return Data; }
_ZNK7llvm_ks9StringRef5emptyEv:
  119|  25.8M|    bool empty() const { return Length == 0; }
_ZNK7llvm_ks9StringRef4sizeEv:
  123|  42.1M|    size_t size() const { return Length; }
_ZNK7llvm_ks9StringRef5frontEv:
  126|   660k|    char front() const {
  127|   660k|      assert(!empty());
  ------------------
  |  Branch (127:7): [True: 660k, False: 0]
  ------------------
  128|   660k|      return Data[0];
  129|   660k|    }
_ZNK7llvm_ks9StringRef6equalsES0_:
  147|  2.36M|    bool equals(StringRef RHS) const {
  148|  2.36M|      return (Length == RHS.Length &&
  ------------------
  |  Branch (148:15): [True: 701k, False: 1.66M]
  ------------------
  149|   701k|              compareMemory(Data, RHS.Data, RHS.Length) == 0);
  ------------------
  |  Branch (149:15): [True: 661k, False: 40.2k]
  ------------------
  150|  2.36M|    }
_ZNK7llvm_ks9StringRef7compareES0_:
  160|   408k|    int compare(StringRef RHS) const {
  161|       |      // Check the prefix for a mismatch.
  162|   408k|      if (int Res = compareMemory(Data, RHS.Data, std::min(Length, RHS.Length)))
  ------------------
  |  Branch (162:15): [True: 338k, False: 70.0k]
  ------------------
  163|   338k|        return Res < 0 ? -1 : 1;
  ------------------
  |  Branch (163:16): [True: 146k, False: 191k]
  ------------------
  164|       |
  165|       |      // Otherwise the prefixes match, so we only need to check the lengths.
  166|  70.0k|      if (Length == RHS.Length)
  ------------------
  |  Branch (166:11): [True: 43.6k, False: 26.3k]
  ------------------
  167|  43.6k|        return 0;
  168|  26.3k|      return Length < RHS.Length ? -1 : 1;
  ------------------
  |  Branch (168:14): [True: 14.8k, False: 11.5k]
  ------------------
  169|  70.0k|    }
_ZNK7llvm_ks9StringRef3strEv:
  200|   766k|    std::string str() const {
  201|   766k|      if (!Data) return std::string();
  ------------------
  |  Branch (201:11): [True: 0, False: 766k]
  ------------------
  202|   766k|      return std::string(Data, Length);
  203|   766k|    }
_ZNK7llvm_ks9StringRefixEm:
  209|   167M|    char operator[](size_t Index) const {
  210|   167M|      assert(Index < Length && "Invalid index!");
  ------------------
  |  Branch (210:7): [True: 167M, False: 0]
  |  Branch (210:7): [True: 167M, Folded]
  |  Branch (210:7): [True: 167M, False: 0]
  ------------------
  211|   167M|      return Data[Index];
  212|   167M|    }
_ZNK7llvm_ks9StringRefcvNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEv:
  218|   690k|    operator std::string() const {
  219|   690k|      return str();
  220|   690k|    }
_ZNK7llvm_ks9StringRef10startswithES0_:
  228|  1.04M|    bool startswith(StringRef Prefix) const {
  229|  1.04M|      return Length >= Prefix.Length &&
  ------------------
  |  Branch (229:14): [True: 1.01M, False: 27.3k]
  ------------------
  230|  1.01M|             compareMemory(Data, Prefix.Data, Prefix.Length) == 0;
  ------------------
  |  Branch (230:14): [True: 6.99k, False: 1.01M]
  ------------------
  231|  1.04M|    }
_ZNK7llvm_ks9StringRef8endswithES0_:
  238|  3.83M|    bool endswith(StringRef Suffix) const {
  239|  3.83M|      return Length >= Suffix.Length &&
  ------------------
  |  Branch (239:14): [True: 2.20M, False: 1.62M]
  ------------------
  240|  2.20M|        compareMemory(end() - Suffix.Length, Suffix.Data, Suffix.Length) == 0;
  ------------------
  |  Branch (240:9): [True: 1, False: 2.20M]
  ------------------
  241|  3.83M|    }
_ZNK7llvm_ks9StringRef4findEcm:
  255|   300k|    size_t find(char C, size_t From = 0) const {
  256|   300k|      size_t FindBegin = std::min(From, Length);
  257|   300k|      if (FindBegin < Length) { // Avoid calling memchr with nullptr.
  ------------------
  |  Branch (257:11): [True: 285k, False: 14.8k]
  ------------------
  258|       |        // Just forward to memchr, which is faster than a hand-rolled loop.
  259|   285k|        if (const void *P = ::memchr(Data + FindBegin, C, Length - FindBegin))
  ------------------
  |  Branch (259:25): [True: 36.0k, False: 249k]
  ------------------
  260|  36.0k|          return static_cast<const char *>(P) - Data;
  261|   285k|      }
  262|   264k|      return npos;
  263|   300k|    }
_ZNK7llvm_ks9StringRef6substrEmm:
  421|  2.05M|    StringRef substr(size_t Start, size_t N = npos) const {
  422|  2.05M|      Start = std::min(Start, Length);
  423|  2.05M|      return StringRef(Data + Start, std::min(N, Length - Start));
  424|  2.05M|    }
_ZNK7llvm_ks9StringRef10drop_frontEm:
  429|  56.1k|    StringRef drop_front(size_t N = 1) const {
  430|  56.1k|      assert(size() >= N && "Dropping more elements than exist");
  ------------------
  |  Branch (430:7): [True: 56.1k, False: 0]
  |  Branch (430:7): [True: 56.1k, Folded]
  |  Branch (430:7): [True: 56.1k, False: 0]
  ------------------
  431|  56.1k|      return substr(N);
  432|  56.1k|    }
_ZNK7llvm_ks9StringRef9drop_backEm:
  437|  56.1k|    StringRef drop_back(size_t N = 1) const {
  438|  56.1k|      assert(size() >= N && "Dropping more elements than exist");
  ------------------
  |  Branch (438:7): [True: 56.1k, False: 0]
  |  Branch (438:7): [True: 56.1k, Folded]
  |  Branch (438:7): [True: 56.1k, False: 0]
  ------------------
  439|  56.1k|      return substr(0, size()-N);
  440|  56.1k|    }
_ZNK7llvm_ks9StringRef5sliceEmm:
  453|  9.53M|    StringRef slice(size_t Start, size_t End) const {
  454|  9.53M|      Start = std::min(Start, Length);
  455|  9.53M|      End = std::min(std::max(Start, End), Length);
  456|  9.53M|      return StringRef(Data + Start, End - Start);
  457|  9.53M|    }
_ZNK7llvm_ks9StringRef5splitEc:
  469|   128k|    std::pair<StringRef, StringRef> split(char Separator) const {
  470|   128k|      size_t Idx = find(Separator);
  471|   128k|      if (Idx == npos)
  ------------------
  |  Branch (471:11): [True: 113k, False: 14.3k]
  ------------------
  472|   113k|        return std::make_pair(*this, StringRef());
  473|  14.3k|      return std::make_pair(slice(0, Idx), slice(Idx+1, npos));
  474|   128k|    }
_ZNK7llvm_ks9StringRef5ltrimES0_:
  547|  56.1k|    StringRef ltrim(StringRef Chars = " \t\n\v\f\r") const {
  548|  56.1k|      return drop_front(std::min(Length, find_first_not_of(Chars)));
  549|  56.1k|    }
_ZNK7llvm_ks9StringRef5rtrimES0_:
  553|  56.1k|    StringRef rtrim(StringRef Chars = " \t\n\v\f\r") const {
  554|  56.1k|      return drop_back(Length - std::min(Length, find_last_not_of(Chars) + 1));
  555|  56.1k|    }
_ZNK7llvm_ks9StringRef4trimES0_:
  559|  56.1k|    StringRef trim(StringRef Chars = " \t\n\v\f\r") const {
  560|  56.1k|      return ltrim(Chars).rtrim(Chars);
  561|  56.1k|    }
_ZN7llvm_ks9StringRef12consume_backES0_:
  564|    139|    bool consume_back(StringRef Suffix) {
  565|    139|      if (!endswith(Suffix))
  ------------------
  |  Branch (565:11): [True: 138, False: 1]
  ------------------
  566|    138|        return false;
  567|       |
  568|      1|      *this = drop_back(Suffix.size());
  569|      1|      return true;
  570|    139|    }
_ZN7llvm_kseqENS_9StringRefES0_:
  579|  2.10M|  inline bool operator==(StringRef LHS, StringRef RHS) {
  580|  2.10M|    return LHS.equals(RHS);
  581|  2.10M|  }
_ZN7llvm_ksneENS_9StringRefES0_:
  584|   535k|  inline bool operator!=(StringRef LHS, StringRef RHS) {
  585|   535k|    return !(LHS == RHS);
  586|   535k|  }
_ZN7llvm_ksltENS_9StringRefES0_:
  588|   408k|  inline bool operator<(StringRef LHS, StringRef RHS) {
  589|   408k|    return LHS.compare(RHS) == -1;
  590|   408k|  }
_ZN7llvm_kspLERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS_9StringRefE:
  604|  13.7k|  inline std::string &operator+=(std::string &buffer, StringRef string) {
  605|  13.7k|    return buffer.append(string.data(), string.size());
  606|  13.7k|  }

_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_EC2ENS_9StringRefE:
   54|  18.8k|  : Str(S), Result(nullptr) { }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj4EEERS3_RAT__KcRKS2_:
   58|  75.2k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  75.2k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 61.6k, False: 13.6k]
  |  Branch (59:20): [True: 5.55k, False: 56.0k]
  ------------------
   60|  5.55k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 635, False: 4.92k]
  ------------------
   61|    635|      Result = &Value;
   62|    635|    }
   63|       |
   64|  75.2k|    return *this;
   65|  75.2k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj7EEERS3_RAT__KcRKS2_:
   58|   225k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   225k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 165k, False: 60.0k]
  |  Branch (59:20): [True: 15.2k, False: 150k]
  ------------------
   60|  15.2k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 1.87k, False: 13.4k]
  ------------------
   61|  1.87k|      Result = &Value;
   62|  1.87k|    }
   63|       |
   64|   225k|    return *this;
   65|   225k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj9EEERS3_RAT__KcRKS2_:
   58|   169k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   169k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 124k, False: 44.7k]
  |  Branch (59:20): [True: 4.70k, False: 119k]
  ------------------
   60|  4.70k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 393, False: 4.30k]
  ------------------
   61|    393|      Result = &Value;
   62|    393|    }
   63|       |
   64|   169k|    return *this;
   65|   169k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj10EEERS3_RAT__KcRKS2_:
   58|   112k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   112k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 76.9k, False: 35.9k]
  |  Branch (59:20): [True: 4.47k, False: 72.5k]
  ------------------
   60|  4.47k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 610, False: 3.86k]
  ------------------
   61|    610|      Result = &Value;
   62|    610|    }
   63|       |
   64|   112k|    return *this;
   65|   112k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj6EEERS3_RAT__KcRKS2_:
   58|   301k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   301k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 183k, False: 117k]
  |  Branch (59:20): [True: 21.3k, False: 161k]
  ------------------
   60|  21.3k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 1.23k, False: 20.1k]
  ------------------
   61|  1.23k|      Result = &Value;
   62|  1.23k|    }
   63|       |
   64|   301k|    return *this;
   65|   301k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj5EEERS3_RAT__KcRKS2_:
   58|  75.2k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  75.2k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 58.8k, False: 16.4k]
  |  Branch (59:20): [True: 3.86k, False: 54.9k]
  ------------------
   60|  3.86k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 1.18k, False: 2.68k]
  ------------------
   61|  1.18k|      Result = &Value;
   62|  1.18k|    }
   63|       |
   64|  75.2k|    return *this;
   65|  75.2k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj12EEERS3_RAT__KcRKS2_:
   58|   131k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   131k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 73.8k, False: 57.8k]
  |  Branch (59:20): [True: 6.38k, False: 67.4k]
  ------------------
   60|  6.38k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 1.41k, False: 4.96k]
  ------------------
   61|  1.41k|      Result = &Value;
   62|  1.41k|    }
   63|       |
   64|   131k|    return *this;
   65|   131k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj8EEERS3_RAT__KcRKS2_:
   58|   206k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   206k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 124k, False: 82.2k]
  |  Branch (59:20): [True: 6.37k, False: 118k]
  ------------------
   60|  6.37k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 540, False: 5.83k]
  ------------------
   61|    540|      Result = &Value;
   62|    540|    }
   63|       |
   64|   206k|    return *this;
   65|   206k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj11EEERS3_RAT__KcRKS2_:
   58|  37.6k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  37.6k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 27.0k, False: 10.5k]
  |  Branch (59:20): [True: 683, False: 26.3k]
  ------------------
   60|    683|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 38, False: 645]
  ------------------
   61|     38|      Result = &Value;
   62|     38|    }
   63|       |
   64|  37.6k|    return *this;
   65|  37.6k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj2EEERS3_RAT__KcRKS2_:
   58|  37.6k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  37.6k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 29.1k, False: 8.45k]
  |  Branch (59:20): [True: 4.54k, False: 24.6k]
  ------------------
   60|  4.54k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 2.21k, False: 2.33k]
  ------------------
   61|  2.21k|      Result = &Value;
   62|  2.21k|    }
   63|       |
   64|  37.6k|    return *this;
   65|  37.6k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj3EEERS3_RAT__KcRKS2_:
   58|  37.6k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  37.6k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 21.1k, False: 16.5k]
  |  Branch (59:20): [True: 1.11k, False: 19.9k]
  ------------------
   60|  1.11k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 206, False: 904]
  ------------------
   61|    206|      Result = &Value;
   62|    206|    }
   63|       |
   64|  37.6k|    return *this;
   65|  37.6k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj13EEERS3_RAT__KcRKS2_:
   58|   112k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   112k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 59.1k, False: 53.7k]
  |  Branch (59:20): [True: 4.17k, False: 54.9k]
  ------------------
   60|  4.17k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 516, False: 3.66k]
  ------------------
   61|    516|      Result = &Value;
   62|    516|    }
   63|       |
   64|   112k|    return *this;
   65|   112k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj14EEERS3_RAT__KcRKS2_:
   58|  75.2k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  75.2k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 43.5k, False: 31.6k]
  |  Branch (59:20): [True: 1.64k, False: 41.9k]
  ------------------
   60|  1.64k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 254, False: 1.38k]
  ------------------
   61|    254|      Result = &Value;
   62|    254|    }
   63|       |
   64|  75.2k|    return *this;
   65|  75.2k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj15EEERS3_RAT__KcRKS2_:
   58|  56.4k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  56.4k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 32.7k, False: 23.6k]
  |  Branch (59:20): [True: 870, False: 31.9k]
  ------------------
   60|    870|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 43, False: 827]
  ------------------
   61|     43|      Result = &Value;
   62|     43|    }
   63|       |
   64|  56.4k|    return *this;
   65|  56.4k|  }
_ZN7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E4CaseILj16EEERS3_RAT__KcRKS2_:
   58|  18.8k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  18.8k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 10.8k, False: 7.99k]
  |  Branch (59:20): [True: 588, False: 10.2k]
  ------------------
   60|    588|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 234, False: 354]
  ------------------
   61|    234|      Result = &Value;
   62|    234|    }
   63|       |
   64|  18.8k|    return *this;
   65|  18.8k|  }
_ZNK7llvm_ks12StringSwitchINS_15MCSymbolRefExpr11VariantKindES2_E7DefaultERKS2_:
  150|  18.8k|  R Default(const T& Value) const {
  151|  18.8k|    if (Result)
  ------------------
  |  Branch (151:9): [True: 11.3k, False: 7.42k]
  ------------------
  152|  11.3k|      return *Result;
  153|       |
  154|  7.42k|    return Value;
  155|  18.8k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_EC2ES1_:
   54|   123k|  : Str(S), Result(nullptr) { }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E4CaseILj14EEERS2_RAT__KcRKS1_:
   58|  1.08k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  1.08k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 1.05k, False: 25]
  |  Branch (59:20): [True: 32, False: 1.02k]
  ------------------
   60|     32|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 32]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|  1.08k|    return *this;
   65|  1.08k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E4CaseILj13EEERS2_RAT__KcRKS1_:
   58|    541|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|    541|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 541, False: 0]
  |  Branch (59:20): [True: 44, False: 497]
  ------------------
   60|     44|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 25, False: 19]
  ------------------
   61|     25|      Result = &Value;
   62|     25|    }
   63|       |
   64|    541|    return *this;
   65|    541|  }
_ZNK7llvm_ks12StringSwitchINS_9StringRefES1_E7DefaultERKS1_:
  150|   123k|  R Default(const T& Value) const {
  151|   123k|    if (Result)
  ------------------
  |  Branch (151:9): [True: 25, False: 123k]
  ------------------
  152|     25|      return *Result;
  153|       |
  154|   123k|    return Value;
  155|   123k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj5ELj5ELj5ELj5EEERS3_RAT__KcRAT0__S6_RAT1__S6_RAT2__S6_RKS2_:
  120|   136k|                      const T& Value) {
  121|   136k|    if (!Result && (
  ------------------
  |  Branch (121:9): [True: 136k, False: 0]
  ------------------
  122|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (122:10): [True: 0, False: 136k]
  |  Branch (122:32): [True: 0, False: 0]
  ------------------
  123|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (123:10): [True: 0, False: 136k]
  |  Branch (123:32): [True: 0, False: 0]
  ------------------
  124|   136k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0) ||
  ------------------
  |  Branch (124:10): [True: 0, False: 136k]
  |  Branch (124:32): [True: 0, False: 0]
  ------------------
  125|   136k|        (N3-1 == Str.size() && std::memcmp(S3, Str.data(), N3-1) == 0))) {
  ------------------
  |  Branch (125:10): [True: 0, False: 136k]
  |  Branch (125:32): [True: 0, False: 0]
  ------------------
  126|      0|      Result = &Value;
  127|      0|    }
  128|       |
  129|   136k|    return *this;
  130|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj5ELj5ELj5EEERS3_RAT__KcRAT0__S6_RAT1__S6_RKS2_:
  105|   136k|                      const char (&S2)[N2], const T& Value) {
  106|   136k|    if (!Result && (
  ------------------
  |  Branch (106:9): [True: 136k, False: 0]
  ------------------
  107|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (107:10): [True: 0, False: 136k]
  |  Branch (107:32): [True: 0, False: 0]
  ------------------
  108|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (108:10): [True: 0, False: 136k]
  |  Branch (108:32): [True: 0, False: 0]
  ------------------
  109|   136k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0))) {
  ------------------
  |  Branch (109:10): [True: 0, False: 136k]
  |  Branch (109:32): [True: 0, False: 0]
  ------------------
  110|      0|      Result = &Value;
  111|      0|    }
  112|       |
  113|   136k|    return *this;
  114|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj6ELj7ELj8EEERS3_RAT__KcRAT0__S6_RAT1__S6_RKS2_:
  105|   136k|                      const char (&S2)[N2], const T& Value) {
  106|   136k|    if (!Result && (
  ------------------
  |  Branch (106:9): [True: 136k, False: 0]
  ------------------
  107|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (107:10): [True: 0, False: 136k]
  |  Branch (107:32): [True: 0, False: 0]
  ------------------
  108|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (108:10): [True: 0, False: 136k]
  |  Branch (108:32): [True: 0, False: 0]
  ------------------
  109|   136k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0))) {
  ------------------
  |  Branch (109:10): [True: 136k, False: 0]
  |  Branch (109:32): [True: 0, False: 136k]
  ------------------
  110|      0|      Result = &Value;
  111|      0|    }
  112|       |
  113|   136k|    return *this;
  114|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj8ELj6EEERS3_RAT__KcRAT0__S6_RKS2_:
   92|   136k|                      const T& Value) {
   93|   136k|    if (!Result && (
  ------------------
  |  Branch (93:9): [True: 136k, False: 0]
  ------------------
   94|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (94:10): [True: 136k, False: 0]
  |  Branch (94:32): [True: 0, False: 136k]
  ------------------
   95|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) {
  ------------------
  |  Branch (95:10): [True: 0, False: 136k]
  |  Branch (95:32): [True: 0, False: 0]
  ------------------
   96|      0|      Result = &Value;
   97|      0|    }
   98|       |
   99|   136k|    return *this;
  100|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj10ELj4ELj6EEERS3_RAT__KcRAT0__S6_RAT1__S6_RKS2_:
  105|   136k|                      const char (&S2)[N2], const T& Value) {
  106|   136k|    if (!Result && (
  ------------------
  |  Branch (106:9): [True: 136k, False: 0]
  ------------------
  107|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (107:10): [True: 0, False: 136k]
  |  Branch (107:32): [True: 0, False: 0]
  ------------------
  108|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (108:10): [True: 0, False: 136k]
  |  Branch (108:32): [True: 0, False: 0]
  ------------------
  109|   136k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0))) {
  ------------------
  |  Branch (109:10): [True: 0, False: 136k]
  |  Branch (109:32): [True: 0, False: 0]
  ------------------
  110|      0|      Result = &Value;
  111|      0|    }
  112|       |
  113|   136k|    return *this;
  114|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj12ELj8EEERS3_RAT__KcRAT0__S6_RKS2_:
   92|   136k|                      const T& Value) {
   93|   136k|    if (!Result && (
  ------------------
  |  Branch (93:9): [True: 136k, False: 0]
  ------------------
   94|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (94:10): [True: 0, False: 136k]
  |  Branch (94:32): [True: 0, False: 0]
  ------------------
   95|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) {
  ------------------
  |  Branch (95:10): [True: 136k, False: 0]
  |  Branch (95:32): [True: 0, False: 136k]
  ------------------
   96|      0|      Result = &Value;
   97|      0|    }
   98|       |
   99|   136k|    return *this;
  100|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj5ELj7ELj13EEERS3_RAT__KcRAT0__S6_RAT1__S6_RKS2_:
  105|   136k|                      const char (&S2)[N2], const T& Value) {
  106|   136k|    if (!Result && (
  ------------------
  |  Branch (106:9): [True: 136k, False: 0]
  ------------------
  107|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (107:10): [True: 0, False: 136k]
  |  Branch (107:32): [True: 0, False: 0]
  ------------------
  108|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (108:10): [True: 0, False: 136k]
  |  Branch (108:32): [True: 0, False: 0]
  ------------------
  109|   136k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0))) {
  ------------------
  |  Branch (109:10): [True: 0, False: 136k]
  |  Branch (109:32): [True: 0, False: 0]
  ------------------
  110|      0|      Result = &Value;
  111|      0|    }
  112|       |
  113|   136k|    return *this;
  114|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj7ELj15EEERS3_RAT__KcRAT0__S6_RKS2_:
   92|   136k|                      const T& Value) {
   93|   136k|    if (!Result && (
  ------------------
  |  Branch (93:9): [True: 136k, False: 0]
  ------------------
   94|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (94:10): [True: 0, False: 136k]
  |  Branch (94:32): [True: 0, False: 0]
  ------------------
   95|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) {
  ------------------
  |  Branch (95:10): [True: 0, False: 136k]
  |  Branch (95:32): [True: 0, False: 0]
  ------------------
   96|      0|      Result = &Value;
   97|      0|    }
   98|       |
   99|   136k|    return *this;
  100|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj7ELj9EEERS3_RAT__KcRAT0__S6_RKS2_:
   92|   136k|                      const T& Value) {
   93|   136k|    if (!Result && (
  ------------------
  |  Branch (93:9): [True: 136k, False: 0]
  ------------------
   94|   136k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (94:10): [True: 0, False: 136k]
  |  Branch (94:32): [True: 0, False: 0]
  ------------------
   95|   136k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) {
  ------------------
  |  Branch (95:10): [True: 0, False: 136k]
  |  Branch (95:32): [True: 0, False: 0]
  ------------------
   96|      0|      Result = &Value;
   97|      0|    }
   98|       |
   99|   136k|    return *this;
  100|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj6ELj8EEERS3_RAT__KcRAT0__S6_RKS2_:
   92|   136k|                      const T& Value) {
   93|   136k|    if (!Result && (
  ------------------
  |  Branch (93:9): [True: 0, False: 136k]
  ------------------
   94|      0|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (94:10): [True: 0, False: 0]
  |  Branch (94:32): [True: 0, False: 0]
  ------------------
   95|      0|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) {
  ------------------
  |  Branch (95:10): [True: 0, False: 0]
  |  Branch (95:32): [True: 0, False: 0]
  ------------------
   96|      0|      Result = &Value;
   97|      0|    }
   98|       |
   99|   136k|    return *this;
  100|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E5CasesILj8ELj8EEERS3_RAT__KcRAT0__S6_RKS2_:
   92|   136k|                      const T& Value) {
   93|   136k|    if (!Result && (
  ------------------
  |  Branch (93:9): [True: 0, False: 136k]
  ------------------
   94|      0|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (94:10): [True: 0, False: 0]
  |  Branch (94:32): [True: 0, False: 0]
  ------------------
   95|      0|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) {
  ------------------
  |  Branch (95:10): [True: 0, False: 0]
  |  Branch (95:32): [True: 0, False: 0]
  ------------------
   96|      0|      Result = &Value;
   97|      0|    }
   98|       |
   99|   136k|    return *this;
  100|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E10StartsWithILj8EEERS3_RAT__KcRKS2_:
   80|   136k|  StringSwitch& StartsWith(const char (&S)[N], const T &Value) {
   81|   136k|    if (!Result && Str.size() >= N-1 &&
  ------------------
  |  Branch (81:9): [True: 0, False: 136k]
  |  Branch (81:20): [True: 0, False: 0]
  ------------------
   82|      0|        std::memcmp(S, Str.data(), N-1) == 0) {
  ------------------
  |  Branch (82:9): [True: 0, False: 0]
  ------------------
   83|      0|      Result = &Value;
   84|      0|    }
   85|       |
   86|   136k|    return *this;
   87|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_EC2ENS_9StringRefE:
   54|   136k|  : Str(S), Result(nullptr) { }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E4CaseILj8EEERS3_RAT__KcRKS2_:
   58|  1.22M|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  1.22M|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 408k, False: 817k]
  |  Branch (59:20): [True: 408k, False: 0]
  ------------------
   60|   408k|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 136k, False: 272k]
  ------------------
   61|   136k|      Result = &Value;
   62|   136k|    }
   63|       |
   64|  1.22M|    return *this;
   65|  1.22M|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E4CaseILj11EEERS3_RAT__KcRKS2_:
   58|   136k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   136k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 136k, False: 0]
  |  Branch (59:20): [True: 0, False: 136k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   136k|    return *this;
   65|   136k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E4CaseILj6EEERS3_RAT__KcRKS2_:
   58|  1.22M|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  1.22M|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 408k, False: 817k]
  |  Branch (59:20): [True: 0, False: 408k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|  1.22M|    return *this;
   65|  1.22M|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E4CaseILj4EEERS3_RAT__KcRKS2_:
   58|   408k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   408k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 272k, False: 136k]
  |  Branch (59:20): [True: 0, False: 272k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   408k|    return *this;
   65|   408k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E4CaseILj5EEERS3_RAT__KcRKS2_:
   58|   545k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   545k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 136k, False: 408k]
  |  Branch (59:20): [True: 0, False: 136k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   545k|    return *this;
   65|   545k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E4CaseILj7EEERS3_RAT__KcRKS2_:
   58|   817k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   817k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 408k, False: 408k]
  |  Branch (59:20): [True: 0, False: 408k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   817k|    return *this;
   65|   817k|  }
_ZN7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E4CaseILj9EEERS3_RAT__KcRKS2_:
   58|   272k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   272k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 272k, False: 0]
  |  Branch (59:20): [True: 0, False: 272k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   272k|    return *this;
   65|   272k|  }
_ZNK7llvm_ks12StringSwitchINS_6Triple8ArchTypeES2_E7DefaultERKS2_:
  150|   136k|  R Default(const T& Value) const {
  151|   136k|    if (Result)
  ------------------
  |  Branch (151:9): [True: 136k, False: 0]
  ------------------
  152|   136k|      return *Result;
  153|       |
  154|      0|    return Value;
  155|   136k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E4CaseILj4EEERS2_RAT__KcRKS1_:
   58|   490k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   490k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 490k, False: 0]
  |  Branch (59:20): [True: 0, False: 490k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   490k|    return *this;
   65|   490k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E4CaseILj3EEERS2_RAT__KcRKS1_:
   58|   122k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   122k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 122k, False: 0]
  |  Branch (59:20): [True: 0, False: 122k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   122k|    return *this;
   65|   122k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E4CaseILj6EEERS2_RAT__KcRKS1_:
   58|   245k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   245k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 245k, False: 0]
  |  Branch (59:20): [True: 0, False: 245k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   245k|    return *this;
   65|   245k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E4CaseILj9EEERS2_RAT__KcRKS1_:
   58|   245k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   245k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 245k, False: 0]
  |  Branch (59:20): [True: 0, False: 245k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   245k|    return *this;
   65|   245k|  }
_ZN7llvm_ks12StringSwitchINS_11RISCVMCExpr11VariantKindES2_EC2ENS_9StringRefE:
   54|    139|  : Str(S), Result(nullptr) { }
_ZN7llvm_ks12StringSwitchINS_11RISCVMCExpr11VariantKindES2_E4CaseILj3EEERS3_RAT__KcRKS2_:
   58|    278|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|    278|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 277, False: 1]
  |  Branch (59:20): [True: 201, False: 76]
  ------------------
   60|    201|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 85, False: 116]
  ------------------
   61|     85|      Result = &Value;
   62|     85|    }
   63|       |
   64|    278|    return *this;
   65|    278|  }
_ZN7llvm_ks12StringSwitchINS_11RISCVMCExpr11VariantKindES2_E4CaseILj9EEERS3_RAT__KcRKS2_:
   58|    556|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|    556|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 216, False: 340]
  |  Branch (59:20): [True: 16, False: 200]
  ------------------
   60|     16|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 16]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|    556|    return *this;
   65|    556|  }
_ZN7llvm_ks12StringSwitchINS_11RISCVMCExpr11VariantKindES2_E4CaseILj13EEERS3_RAT__KcRKS2_:
   58|    139|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|    139|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 54, False: 85]
  |  Branch (59:20): [True: 2, False: 52]
  ------------------
   60|      2|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 2]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|    139|    return *this;
   65|    139|  }
_ZN7llvm_ks12StringSwitchINS_11RISCVMCExpr11VariantKindES2_E4CaseILj10EEERS3_RAT__KcRKS2_:
   58|    139|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|    139|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 54, False: 85]
  |  Branch (59:20): [True: 1, False: 53]
  ------------------
   60|      1|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 1]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|    139|    return *this;
   65|    139|  }
_ZN7llvm_ks12StringSwitchINS_11RISCVMCExpr11VariantKindES2_E4CaseILj16EEERS3_RAT__KcRKS2_:
   58|    278|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|    278|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 108, False: 170]
  |  Branch (59:20): [True: 4, False: 104]
  ------------------
   60|      4|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 4]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|    278|    return *this;
   65|    278|  }
_ZNK7llvm_ks12StringSwitchINS_11RISCVMCExpr11VariantKindES2_E7DefaultERKS2_:
  150|    139|  R Default(const T& Value) const {
  151|    139|    if (Result)
  ------------------
  |  Branch (151:9): [True: 85, False: 54]
  ------------------
  152|     85|      return *Result;
  153|       |
  154|     54|    return Value;
  155|    139|  }
_ZN7llvm_ks12StringSwitchINS_8RISCVABI3ABIES2_EC2ENS_9StringRefE:
   54|  13.6k|  : Str(S), Result(nullptr) { }
_ZN7llvm_ks12StringSwitchINS_8RISCVABI3ABIES2_E4CaseILj6EEERS3_RAT__KcRKS2_:
   58|  40.8k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  40.8k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 40.8k, False: 0]
  |  Branch (59:20): [True: 0, False: 40.8k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|  40.8k|    return *this;
   65|  40.8k|  }
_ZN7llvm_ks12StringSwitchINS_8RISCVABI3ABIES2_E4CaseILj7EEERS3_RAT__KcRKS2_:
   58|  40.8k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  40.8k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 40.8k, False: 0]
  |  Branch (59:20): [True: 0, False: 40.8k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|  40.8k|    return *this;
   65|  40.8k|  }
_ZN7llvm_ks12StringSwitchINS_8RISCVABI3ABIES2_E4CaseILj5EEERS3_RAT__KcRKS2_:
   58|  13.6k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|  13.6k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 13.6k, False: 0]
  |  Branch (59:20): [True: 0, False: 13.6k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|  13.6k|    return *this;
   65|  13.6k|  }
_ZNK7llvm_ks12StringSwitchINS_8RISCVABI3ABIES2_E7DefaultERKS2_:
  150|  13.6k|  R Default(const T& Value) const {
  151|  13.6k|    if (Result)
  ------------------
  |  Branch (151:9): [True: 0, False: 13.6k]
  ------------------
  152|      0|      return *Result;
  153|       |
  154|  13.6k|    return Value;
  155|  13.6k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E4CaseILj5EEERS2_RAT__KcRKS1_:
   58|   245k|  StringSwitch& Case(const char (&S)[N], const T& Value) {
   59|   245k|    if (!Result && N-1 == Str.size() &&
  ------------------
  |  Branch (59:9): [True: 245k, False: 0]
  |  Branch (59:20): [True: 0, False: 245k]
  ------------------
   60|      0|        (std::memcmp(S, Str.data(), N-1) == 0)) {
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  ------------------
   61|      0|      Result = &Value;
   62|      0|    }
   63|       |
   64|   245k|    return *this;
   65|   245k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E5CasesILj4ELj5ELj6EEERS2_RAT__KcRAT0__S5_RAT1__S5_RKS1_:
  105|   122k|                      const char (&S2)[N2], const T& Value) {
  106|   122k|    if (!Result && (
  ------------------
  |  Branch (106:9): [True: 122k, False: 0]
  ------------------
  107|   122k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (107:10): [True: 0, False: 122k]
  |  Branch (107:32): [True: 0, False: 0]
  ------------------
  108|   122k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (108:10): [True: 0, False: 122k]
  |  Branch (108:32): [True: 0, False: 0]
  ------------------
  109|   122k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0))) {
  ------------------
  |  Branch (109:10): [True: 0, False: 122k]
  |  Branch (109:32): [True: 0, False: 0]
  ------------------
  110|      0|      Result = &Value;
  111|      0|    }
  112|       |
  113|   122k|    return *this;
  114|   122k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E5CasesILj4ELj5EEERS2_RAT__KcRAT0__S5_RKS1_:
   92|   122k|                      const T& Value) {
   93|   122k|    if (!Result && (
  ------------------
  |  Branch (93:9): [True: 122k, False: 0]
  ------------------
   94|   122k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (94:10): [True: 0, False: 122k]
  |  Branch (94:32): [True: 0, False: 0]
  ------------------
   95|   122k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0))) {
  ------------------
  |  Branch (95:10): [True: 0, False: 122k]
  |  Branch (95:32): [True: 0, False: 0]
  ------------------
   96|      0|      Result = &Value;
   97|      0|    }
   98|       |
   99|   122k|    return *this;
  100|   122k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E5CasesILj3ELj4ELj5ELj4EEERS2_RAT__KcRAT0__S5_RAT1__S5_RAT2__S5_RKS1_:
  120|   122k|                      const T& Value) {
  121|   122k|    if (!Result && (
  ------------------
  |  Branch (121:9): [True: 122k, False: 0]
  ------------------
  122|   122k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (122:10): [True: 0, False: 122k]
  |  Branch (122:32): [True: 0, False: 0]
  ------------------
  123|   122k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (123:10): [True: 0, False: 122k]
  |  Branch (123:32): [True: 0, False: 0]
  ------------------
  124|   122k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0) ||
  ------------------
  |  Branch (124:10): [True: 0, False: 122k]
  |  Branch (124:32): [True: 0, False: 0]
  ------------------
  125|   122k|        (N3-1 == Str.size() && std::memcmp(S3, Str.data(), N3-1) == 0))) {
  ------------------
  |  Branch (125:10): [True: 0, False: 122k]
  |  Branch (125:32): [True: 0, False: 0]
  ------------------
  126|      0|      Result = &Value;
  127|      0|    }
  128|       |
  129|   122k|    return *this;
  130|   122k|  }
_ZN7llvm_ks12StringSwitchINS_9StringRefES1_E5CasesILj3ELj4ELj8ELj6EEERS2_RAT__KcRAT0__S5_RAT1__S5_RAT2__S5_RKS1_:
  120|   122k|                      const T& Value) {
  121|   122k|    if (!Result && (
  ------------------
  |  Branch (121:9): [True: 122k, False: 0]
  ------------------
  122|   122k|        (N0-1 == Str.size() && std::memcmp(S0, Str.data(), N0-1) == 0) ||
  ------------------
  |  Branch (122:10): [True: 0, False: 122k]
  |  Branch (122:32): [True: 0, False: 0]
  ------------------
  123|   122k|        (N1-1 == Str.size() && std::memcmp(S1, Str.data(), N1-1) == 0) ||
  ------------------
  |  Branch (123:10): [True: 0, False: 122k]
  |  Branch (123:32): [True: 0, False: 0]
  ------------------
  124|   122k|        (N2-1 == Str.size() && std::memcmp(S2, Str.data(), N2-1) == 0) ||
  ------------------
  |  Branch (124:10): [True: 122k, False: 0]
  |  Branch (124:32): [True: 0, False: 122k]
  ------------------
  125|   122k|        (N3-1 == Str.size() && std::memcmp(S3, Str.data(), N3-1) == 0))) {
  ------------------
  |  Branch (125:10): [True: 0, False: 122k]
  |  Branch (125:32): [True: 0, False: 0]
  ------------------
  126|      0|      Result = &Value;
  127|      0|    }
  128|       |
  129|   122k|    return *this;
  130|   122k|  }

_ZN7llvm_ks6TripleC2Ev:
  223|  13.6k|  Triple() : Data(), Arch(), Vendor(), OS(), Environment(), ObjectFormat() {}
_ZNK7llvm_ks6Triple15getObjectFormatEv:
  285|  40.8k|  ObjectFormatType getObjectFormat() const { return ObjectFormat; }
_ZNK7llvm_ks6Triple7getArchEv:
  255|   259k|  ArchType getArch() const { return Arch; }
_ZNK7llvm_ks6Triple5getOSEv:
  264|  40.8k|  OSType getOS() const { return OS; }
_ZNK7llvm_ks6Triple9getTripleEv:
  326|  13.6k|  const std::string &getTriple() const { return Data; }
_ZNK7llvm_ks6Triple11isOSSolarisEv:
  458|  13.6k|  bool isOSSolaris() const {
  459|  13.6k|    return getOS() == Triple::Solaris;
  460|  13.6k|  }
_ZNK7llvm_ks6Triple16isOSBinFormatELFEv:
  525|  13.6k|  bool isOSBinFormatELF() const {
  526|  13.6k|    return getObjectFormat() == Triple::ELF;
  527|  13.6k|  }

_ZN7llvm_ks5TwineC2ERKNS_9StringRefE:
  286|   253k|      : LHSKind(StringRefKind), RHSKind(EmptyKind) {
  287|   253k|      LHS.stringRef = &Str;
  288|       |      assert(isValid() && "Invalid twine!");
  ------------------
  |  Branch (288:7): [True: 253k, False: 0]
  |  Branch (288:7): [True: 253k, Folded]
  |  Branch (288:7): [True: 253k, False: 0]
  ------------------
  289|   253k|    }
_ZNK7llvm_ks5Twine7isValidEv:
  213|   613k|    bool isValid() const {
  214|       |      // Nullary twines always have Empty on the RHS.
  215|   613k|      if (isNullary() && getRHSKind() != EmptyKind)
  ------------------
  |  Branch (215:11): [True: 0, False: 613k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|        return false;
  217|       |
  218|       |      // Null should never appear on the RHS.
  219|   613k|      if (getRHSKind() == NullKind)
  ------------------
  |  Branch (219:11): [True: 0, False: 613k]
  ------------------
  220|      0|        return false;
  221|       |
  222|       |      // The RHS cannot be non-empty if the LHS is empty.
  223|   613k|      if (getRHSKind() != EmptyKind && getLHSKind() == EmptyKind)
  ------------------
  |  Branch (223:11): [True: 3.84k, False: 609k]
  |  Branch (223:40): [True: 0, False: 3.84k]
  ------------------
  224|      0|        return false;
  225|       |
  226|       |      // A twine child should always be binary.
  227|   613k|      if (getLHSKind() == TwineKind &&
  ------------------
  |  Branch (227:11): [True: 2.29k, False: 611k]
  ------------------
  228|  2.29k|          !LHS.twine->isBinary())
  ------------------
  |  Branch (228:11): [True: 0, False: 2.29k]
  ------------------
  229|      0|        return false;
  230|   613k|      if (getRHSKind() == TwineKind &&
  ------------------
  |  Branch (230:11): [True: 0, False: 613k]
  ------------------
  231|      0|          !RHS.twine->isBinary())
  ------------------
  |  Branch (231:11): [True: 0, False: 0]
  ------------------
  232|      0|        return false;
  233|       |
  234|   613k|      return true;
  235|   613k|    }
_ZNK7llvm_ks5Twine9isNullaryEv:
  197|   645k|    bool isNullary() const {
  198|   645k|      return isNull() || isEmpty();
  ------------------
  |  Branch (198:14): [True: 0, False: 645k]
  |  Branch (198:26): [True: 0, False: 645k]
  ------------------
  199|   645k|    }
_ZNK7llvm_ks5Twine6isNullEv:
  187|   653k|    bool isNull() const {
  188|   653k|      return getLHSKind() == NullKind;
  189|   653k|    }
_ZNK7llvm_ks5Twine7isEmptyEv:
  192|   653k|    bool isEmpty() const {
  193|   653k|      return getLHSKind() == EmptyKind;
  194|   653k|    }
_ZNK7llvm_ks5Twine10getRHSKindEv:
  241|  2.70M|    NodeKind getRHSKind() const { return RHSKind; }
_ZNK7llvm_ks5Twine10getLHSKindEv:
  238|  3.10M|    NodeKind getLHSKind() const { return LHSKind; }
_ZNK7llvm_ks5Twine8isBinaryEv:
  207|  2.29k|    bool isBinary() const {
  208|  2.29k|      return getLHSKind() != NullKind && getRHSKind() != EmptyKind;
  ------------------
  |  Branch (208:14): [True: 2.29k, False: 0]
  |  Branch (208:42): [True: 2.29k, False: 0]
  ------------------
  209|  2.29k|    }
_ZN7llvm_ks5TwineC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  279|  68.1k|      : LHSKind(StdStringKind), RHSKind(EmptyKind) {
  280|  68.1k|      LHS.stdString = &Str;
  281|       |      assert(isValid() && "Invalid twine!");
  ------------------
  |  Branch (281:7): [True: 68.1k, False: 0]
  |  Branch (281:7): [True: 68.1k, Folded]
  |  Branch (281:7): [True: 68.1k, False: 0]
  ------------------
  282|  68.1k|    }
_ZN7llvm_ks5TwineC2ENS0_5ChildENS0_8NodeKindES1_S2_:
  178|  3.79k|        : LHS(LHS), RHS(RHS), LHSKind(LHSKind), RHSKind(RHSKind) {
  179|       |      assert(isValid() && "Invalid twine!");
  ------------------
  |  Branch (179:7): [True: 3.79k, False: 0]
  |  Branch (179:7): [True: 3.79k, Folded]
  |  Branch (179:7): [True: 3.79k, False: 0]
  ------------------
  180|  3.79k|    }
_ZNK7llvm_ks5Twine7isUnaryEv:
  202|  34.8k|    bool isUnary() const {
  203|  34.8k|      return getRHSKind() == EmptyKind && !isNullary();
  ------------------
  |  Branch (203:14): [True: 32.5k, False: 2.29k]
  |  Branch (203:43): [True: 32.5k, False: 0]
  ------------------
  204|  34.8k|    }
_ZN7llvm_ks5TwineC2EPKc:
  267|   288k|      : RHSKind(EmptyKind) {
  268|   288k|      if (Str[0] != '\0') {
  ------------------
  |  Branch (268:11): [True: 288k, False: 0]
  ------------------
  269|   288k|        LHS.cString = Str;
  270|   288k|        LHSKind = CStringKind;
  271|   288k|      } else
  272|      0|        LHSKind = EmptyKind;
  273|       |
  274|       |      assert(isValid() && "Invalid twine!");
  ------------------
  |  Branch (274:7): [True: 288k, False: 0]
  |  Branch (274:7): [True: 288k, Folded]
  |  Branch (274:7): [True: 288k, False: 0]
  ------------------
  275|   288k|    }
_ZN7llvm_ks5TwineC2Ei:
  324|    174|      : LHSKind(DecIKind), RHSKind(EmptyKind) {
  325|    174|      LHS.decI = Val;
  326|    174|    }
_ZN7llvm_ks5TwineC2ERKl:
  336|    322|      : LHSKind(DecLKind), RHSKind(EmptyKind) {
  337|    322|      LHS.decL = &Val;
  338|    322|    }
_ZN7llvm_ks5TwineC2EPKcRKNS_9StringRefE:
  359|     50|        : LHSKind(CStringKind), RHSKind(StringRefKind) {
  360|     50|      this->LHS.cString = LHS;
  361|     50|      this->RHS.stringRef = &RHS;
  362|       |      assert(isValid() && "Invalid twine!");
  ------------------
  |  Branch (362:7): [True: 50, False: 0]
  |  Branch (362:7): [True: 50, Folded]
  |  Branch (362:7): [True: 50, False: 0]
  ------------------
  363|     50|    }
_ZNK7llvm_ks5Twine17isSingleStringRefEv:
  403|   637k|    bool isSingleStringRef() const {
  404|   637k|      if (getRHSKind() != EmptyKind) return false;
  ------------------
  |  Branch (404:11): [True: 1.55k, False: 635k]
  ------------------
  405|       |
  406|   635k|      switch (getLHSKind()) {
  407|      0|      case EmptyKind:
  ------------------
  |  Branch (407:7): [True: 0, False: 635k]
  ------------------
  408|   131k|      case CStringKind:
  ------------------
  |  Branch (408:7): [True: 131k, False: 503k]
  ------------------
  409|   131k|      case StdStringKind:
  ------------------
  |  Branch (409:7): [True: 0, False: 635k]
  ------------------
  410|   635k|      case StringRefKind:
  ------------------
  |  Branch (410:7): [True: 503k, False: 131k]
  ------------------
  411|   635k|      case SmallStringKind:
  ------------------
  |  Branch (411:7): [True: 0, False: 635k]
  ------------------
  412|   635k|        return true;
  413|      0|      default:
  ------------------
  |  Branch (413:7): [True: 0, False: 635k]
  ------------------
  414|      0|        return false;
  415|   635k|      }
  416|   635k|    }
_ZNK7llvm_ks5Twine18getSingleStringRefEv:
  436|   317k|    StringRef getSingleStringRef() const {
  437|   317k|      assert(isSingleStringRef() &&"This cannot be had as a single stringref!");
  ------------------
  |  Branch (437:7): [True: 317k, False: 0]
  |  Branch (437:7): [True: 317k, Folded]
  |  Branch (437:7): [True: 317k, False: 0]
  ------------------
  438|   317k|      switch (getLHSKind()) {
  439|      0|      default: llvm_unreachable("Out of sync with isSingleStringRef");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  |  Branch (439:7): [True: 0, False: 317k]
  ------------------
  440|      0|      case EmptyKind:      return StringRef();
  ------------------
  |  Branch (440:7): [True: 0, False: 317k]
  ------------------
  441|  65.8k|      case CStringKind:    return StringRef(LHS.cString);
  ------------------
  |  Branch (441:7): [True: 65.8k, False: 251k]
  ------------------
  442|      0|      case StdStringKind:  return StringRef(*LHS.stdString);
  ------------------
  |  Branch (442:7): [True: 0, False: 317k]
  ------------------
  443|   251k|      case StringRefKind:  return *LHS.stringRef;
  ------------------
  |  Branch (443:7): [True: 251k, False: 65.8k]
  ------------------
  444|      0|      case SmallStringKind:
  ------------------
  |  Branch (444:7): [True: 0, False: 317k]
  ------------------
  445|      0|        return StringRef(LHS.smallString->data(), LHS.smallString->size());
  446|   317k|      }
  447|   317k|    }
_ZNK7llvm_ks5Twine11toStringRefERNS_15SmallVectorImplIcEE:
  452|   319k|    StringRef toStringRef(SmallVectorImpl<char> &Out) const {
  453|   319k|      if (isSingleStringRef())
  ------------------
  |  Branch (453:11): [True: 317k, False: 1.55k]
  ------------------
  454|   317k|        return getSingleStringRef();
  455|  1.55k|      toVector(Out);
  456|  1.55k|      return StringRef(Out.data(), Out.size());
  457|   319k|    }
_ZNK7llvm_ks5Twine6concatERKS0_:
  485|  3.79k|  inline Twine Twine::concat(const Twine &Suffix) const {
  486|       |    // Concatenation with null is null.
  487|  3.79k|    if (isNull() || Suffix.isNull())
  ------------------
  |  Branch (487:9): [True: 0, False: 3.79k]
  |  Branch (487:21): [True: 0, False: 3.79k]
  ------------------
  488|      0|      return Twine(NullKind);
  489|       |
  490|       |    // Concatenation with empty yields the other side.
  491|  3.79k|    if (isEmpty())
  ------------------
  |  Branch (491:9): [True: 0, False: 3.79k]
  ------------------
  492|      0|      return Suffix;
  493|  3.79k|    if (Suffix.isEmpty())
  ------------------
  |  Branch (493:9): [True: 0, False: 3.79k]
  ------------------
  494|      0|      return *this;
  495|       |
  496|       |    // Otherwise we need to create a new node, taking care to fold in unary
  497|       |    // twines.
  498|  3.79k|    Child NewLHS, NewRHS;
  499|  3.79k|    NewLHS.twine = this;
  500|  3.79k|    NewRHS.twine = &Suffix;
  501|  3.79k|    NodeKind NewLHSKind = TwineKind, NewRHSKind = TwineKind;
  502|  3.79k|    if (isUnary()) {
  ------------------
  |  Branch (502:9): [True: 1.50k, False: 2.29k]
  ------------------
  503|  1.50k|      NewLHS = LHS;
  504|  1.50k|      NewLHSKind = getLHSKind();
  505|  1.50k|    }
  506|  3.79k|    if (Suffix.isUnary()) {
  ------------------
  |  Branch (506:9): [True: 3.79k, False: 0]
  ------------------
  507|  3.79k|      NewRHS = Suffix.LHS;
  508|  3.79k|      NewRHSKind = Suffix.getLHSKind();
  509|  3.79k|    }
  510|       |
  511|  3.79k|    return Twine(NewLHS, NewLHSKind, NewRHS, NewRHSKind);
  512|  3.79k|  }
_ZN7llvm_ksplERKNS_5TwineES2_:
  514|  3.79k|  inline Twine operator+(const Twine &LHS, const Twine &RHS) {
  515|  3.79k|    return LHS.concat(RHS);
  516|  3.79k|  }
_ZN7llvm_ksplEPKcRKNS_9StringRefE:
  521|     50|  inline Twine operator+(const char *LHS, const StringRef &RHS) {
  522|     50|    return Twine(LHS, RHS);
  523|     50|  }
_ZN7llvm_kslsERNS_11raw_ostreamERKNS_5TwineE:
  532|   191k|  inline raw_ostream &operator<<(raw_ostream &OS, const Twine &RHS) {
  533|   191k|    RHS.print(OS);
  534|   191k|    return OS;
  535|   191k|  }

_ZNK7llvm_ks14ilist_iteratorINS_10MCFragmentEE19getNodePtrUncheckedEv:
  283|  33.8M|  pointer getNodePtrUnchecked() const { return NodePtr; }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE6insertENS_14ilist_iteratorIS1_EEPS1_:
  461|  55.0k|  iterator insert(iterator where, NodeTy *New) {
  462|  55.0k|    NodeTy *CurNode = where.getNodePtrUnchecked();
  463|  55.0k|    NodeTy *PrevNode = this->getPrev(CurNode);
  464|  55.0k|    this->setNext(New, CurNode);
  465|  55.0k|    this->setPrev(New, PrevNode);
  466|       |
  467|  55.0k|    if (CurNode != Head)  // Is PrevNode off the beginning of the list?
  ------------------
  |  Branch (467:9): [True: 48.0k, False: 6.99k]
  ------------------
  468|  48.0k|      this->setNext(PrevNode, New);
  469|  6.99k|    else
  470|  6.99k|      Head = New;
  471|  55.0k|    this->setPrev(CurNode, New);
  472|       |
  473|  55.0k|    this->addNodeToList(New);  // Notify traits that we added a node...
  474|  55.0k|    return iterator(New);
  475|  55.0k|  }
_ZN7llvm_ks21ilist_nextprev_traitsINS_10MCFragmentEE7getPrevEPS1_:
   57|  66.9M|  static NodeTy *getPrev(NodeTy *N) { return N->getPrev(); }
_ZN7llvm_ks21ilist_nextprev_traitsINS_10MCFragmentEE7setNextEPS1_S3_:
   63|   172k|  static void setNext(NodeTy *N, NodeTy *Next) { N->setNext(Next); }
_ZN7llvm_ks21ilist_nextprev_traitsINS_10MCFragmentEE7setPrevEPS1_S3_:
   62|   234k|  static void setPrev(NodeTy *N, NodeTy *Prev) { N->setPrev(Prev); }
_ZN7llvm_ks14ilist_iteratorINS_10MCFragmentEEC2EPS1_:
  223|  33.8M|  explicit ilist_iterator(pointer NP) : NodePtr(NP) {}
_ZNK7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE11getPrevNodeERS1_:
  692|  50.3k|  NodeTy *getPrevNode(NodeTy &N) const {
  693|  50.3k|    auto I = N.getIterator();
  694|  50.3k|    if (I == begin())
  ------------------
  |  Branch (694:9): [True: 6.29k, False: 44.0k]
  ------------------
  695|  6.29k|      return nullptr;
  696|  44.0k|    return &*std::prev(I);
  697|  50.3k|  }
_ZNK7llvm_ks14ilist_iteratorINS_10MCFragmentEEeqIKS1_EEbRKNS0_IT_EE:
  254|  50.3k|  template <class Y> bool operator==(const ilist_iterator<Y> &RHS) const {
  255|  50.3k|    return NodePtr == RHS.getNodePtrUnchecked();
  256|  50.3k|  }
_ZNK7llvm_ks14ilist_iteratorIKNS_10MCFragmentEE19getNodePtrUncheckedEv:
  283|  99.3k|  pointer getNodePtrUnchecked() const { return NodePtr; }
_ZNK7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE5beginEv:
  412|  50.3k|  const_iterator begin() const {
  413|  50.3k|    CreateLazySentinel();
  414|  50.3k|    return const_iterator(Head);
  415|  50.3k|  }
_ZNK7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE18CreateLazySentinelEv:
  375|  33.6M|  void CreateLazySentinel() const {
  376|  33.6M|    this->ensureHead(Head);
  377|  33.6M|  }
_ZN7llvm_ks21ilist_sentinel_traitsINS_10MCFragmentEE10ensureHeadERPS1_:
   91|  33.8M|  static NodeTy *ensureHead(NodeTy *&Head) {
   92|  33.8M|    if (!Head) {
  ------------------
  |  Branch (92:9): [True: 13.9k, False: 33.8M]
  ------------------
   93|  13.9k|      Head = ilist_traits<NodeTy>::createSentinel();
   94|  13.9k|      ilist_traits<NodeTy>::noteHead(Head, Head);
   95|  13.9k|      ilist_traits<NodeTy>::setNext(Head, nullptr);
   96|  13.9k|      return Head;
   97|  13.9k|    }
   98|  33.8M|    return ilist_traits<NodeTy>::getPrev(Head);
   99|  33.8M|  }
_ZN7llvm_ks21ilist_sentinel_traitsINS_10MCFragmentEE14createSentinelEv:
   78|  13.9k|  static NodeTy *createSentinel() { return new NodeTy(); }
_ZN7llvm_ks21ilist_sentinel_traitsINS_10MCFragmentEE8noteHeadEPS1_S3_:
  102|  13.9k|  static void noteHead(NodeTy *NewHead, NodeTy *Sentinel) {
  103|  13.9k|    ilist_traits<NodeTy>::setPrev(NewHead, Sentinel);
  104|  13.9k|  }
_ZN7llvm_ks14ilist_iteratorIKNS_10MCFragmentEEC2EPS2_:
  223|  50.3k|  explicit ilist_iterator(pointer NP) : NodePtr(NP) {}
_ZN7llvm_ks14ilist_iteratorINS_10MCFragmentEEmmEv:
  262|  32.9M|  ilist_iterator &operator--() {      // predecrement - Back up
  263|  32.9M|    NodePtr = Traits::getPrev(NodePtr);
  264|  32.9M|    assert(NodePtr && "--'d off the beginning of an ilist!");
  ------------------
  |  Branch (264:5): [True: 32.9M, False: 0]
  |  Branch (264:5): [True: 32.9M, Folded]
  |  Branch (264:5): [True: 32.9M, False: 0]
  ------------------
  265|  32.9M|    return *this;
  266|  32.9M|  }
_ZN7llvm_ks14ilist_iteratorINS_10MCFragmentEEC2Ev:
  225|  85.2k|  ilist_iterator() : NodePtr(nullptr) {}
_ZN7llvm_ks14ilist_iteratorINS_10MCFragmentEEppEv:
  267|   257k|  ilist_iterator &operator++() {      // preincrement - Advance
  268|   257k|    NodePtr = Traits::getNext(NodePtr);
  269|   257k|    return *this;
  270|   257k|  }
_ZN7llvm_ks21ilist_nextprev_traitsINS_10MCFragmentEE7getNextEPS1_:
   58|   312k|  static NodeTy *getNext(NodeTy *N) { return N->getNext(); }
_ZNK7llvm_ks14ilist_iteratorINS_10MCFragmentEEeqIS1_EEbRKNS0_IT_EE:
  254|  50.9k|  template <class Y> bool operator==(const ilist_iterator<Y> &RHS) const {
  255|  50.9k|    return NodePtr == RHS.getNodePtrUnchecked();
  256|  50.9k|  }
_ZNK7llvm_ks14ilist_iteratorINS_10MCFragmentEEdeEv:
  248|  33.2M|  reference operator*() const {
  249|  33.2M|    return *NodePtr;
  250|  33.2M|  }
_ZNK7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE5emptyEv:
  434|  6.29k|  bool LLVM_ATTRIBUTE_UNUSED_RESULT empty() const {
  435|  6.29k|    return !Head || Head == getTail();
  ------------------
  |  Branch (435:12): [True: 0, False: 6.29k]
  |  Branch (435:21): [True: 0, False: 6.29k]
  ------------------
  436|  6.29k|  }
_ZNK7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE7getTailEv:
  370|  6.29k|  const NodeTy *getTail() const { return this->ensureHead(Head); }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE3endEv:
  416|   165k|  iterator end() {
  417|   165k|    CreateLazySentinel();
  418|   165k|    return iterator(getTail());
  419|   165k|  }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE7getTailEv:
  369|   179k|  NodeTy *getTail() { return this->ensureHead(Head); }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE5beginEv:
  408|  33.4M|  iterator begin() {
  409|  33.4M|    CreateLazySentinel();
  410|  33.4M|    return iterator(Head);
  411|  33.4M|  }
_ZNK7llvm_ks14ilist_iteratorINS_10MCFragmentEEneIS1_EEbRKNS0_IT_EE:
  257|  33.7M|  template <class Y> bool operator!=(const ilist_iterator<Y> &RHS) const {
  258|  33.7M|    return NodePtr != RHS.getNodePtrUnchecked();
  259|  33.7M|  }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEEC2Ev:
  400|   592k|  iplist() : Head(this->provideInitialHead()) {}
_ZN7llvm_ks21ilist_sentinel_traitsINS_10MCFragmentEE18provideInitialHeadEv:
   86|   592k|  static NodeTy *provideInitialHead() { return nullptr; }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEED2Ev:
  401|   592k|  ~iplist() {
  402|   592k|    if (!Head) return;
  ------------------
  |  Branch (402:9): [True: 578k, False: 13.9k]
  ------------------
  403|  13.9k|    clear();
  404|  13.9k|    Traits::destroySentinel(getTail());
  405|  13.9k|  }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE5clearEv:
  605|  13.9k|  void clear() { if (Head) erase(begin(), end()); }
  ------------------
  |  Branch (605:22): [True: 13.9k, False: 0]
  ------------------
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE5eraseENS_14ilist_iteratorIS1_EES6_:
  599|  13.9k|  iterator erase(iterator first, iterator last) {
  600|  68.9k|    while (first != last)
  ------------------
  |  Branch (600:12): [True: 55.0k, False: 13.9k]
  ------------------
  601|  55.0k|      first = erase(first);
  602|  13.9k|    return last;
  603|  13.9k|  }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE5eraseENS_14ilist_iteratorIS1_EE:
  517|  55.0k|  iterator erase(iterator where) {
  518|  55.0k|    this->deleteNode(remove(where));
  519|  55.0k|    return where;
  520|  55.0k|  }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE6removeERNS_14ilist_iteratorIS1_EE:
  484|  55.0k|  NodeTy *remove(iterator &IT) {
  485|  55.0k|    assert(IT != end() && "Cannot remove end of list!");
  ------------------
  |  Branch (485:5): [True: 55.0k, False: 0]
  |  Branch (485:5): [True: 55.0k, Folded]
  |  Branch (485:5): [True: 55.0k, False: 0]
  ------------------
  486|  55.0k|    NodeTy *Node = &*IT;
  487|  55.0k|    NodeTy *NextNode = this->getNext(Node);
  488|  55.0k|    NodeTy *PrevNode = this->getPrev(Node);
  489|       |
  490|  55.0k|    if (Node != Head)  // Is PrevNode off the beginning of the list?
  ------------------
  |  Branch (490:9): [True: 0, False: 55.0k]
  ------------------
  491|      0|      this->setNext(PrevNode, NextNode);
  492|  55.0k|    else
  493|  55.0k|      Head = NextNode;
  494|  55.0k|    this->setPrev(NextNode, PrevNode);
  495|  55.0k|    IT.reset(NextNode);
  496|  55.0k|    this->removeNodeFromList(Node);  // Notify traits that we removed a node...
  497|       |
  498|       |    // Set the next/prev pointers of the current node to null.  This isn't
  499|       |    // strictly required, but this catches errors where a node is removed from
  500|       |    // an ilist (and potentially deleted) with iterators still pointing at it.
  501|       |    // When those iterators are incremented or decremented, they will assert on
  502|       |    // the null next/prev pointer instead of "usually working".
  503|  55.0k|    this->setNext(Node, nullptr);
  504|  55.0k|    this->setPrev(Node, nullptr);
  505|  55.0k|    return Node;
  506|  55.0k|  }
_ZN7llvm_ks14ilist_iteratorINS_10MCFragmentEE5resetEPS1_:
  241|  55.0k|  void reset(pointer NP) { NodePtr = NP; }
_ZN7llvm_ks21ilist_sentinel_traitsINS_10MCFragmentEE15destroySentinelEPS1_:
   81|  13.9k|  static void destroySentinel(NodeTy *N) { delete N; }
_ZNK7llvm_ks14ilist_iteratorINS_10MCFragmentEEptEv:
  251|  51.4k|  pointer operator->() const { return &operator*(); }
_ZN7llvm_ks6iplistINS_10MCFragmentENS_12ilist_traitsIS1_EEE6rbeginEv:
  426|  6.29k|  reverse_iterator rbegin()            { return reverse_iterator(end()); }
_ZN7llvm_ks14ilist_iteratorIKNS_10MCFragmentEEC2IS1_EERKNS0_IT_EE:
  231|  11.7k|    : NodePtr(RHS.getNodePtrUnchecked()) {}
_ZNK7llvm_ks14ilist_iteratorIKNS_10MCFragmentEEneIS2_EEbRKNS0_IT_EE:
  257|  49.0k|  template <class Y> bool operator!=(const ilist_iterator<Y> &RHS) const {
  258|  49.0k|    return NodePtr != RHS.getNodePtrUnchecked();
  259|  49.0k|  }
_ZN7llvm_ks14ilist_iteratorIKNS_10MCFragmentEEppEv:
  267|  43.1k|  ilist_iterator &operator++() {      // preincrement - Advance
  268|  43.1k|    NodePtr = Traits::getNext(NodePtr);
  269|  43.1k|    return *this;
  270|  43.1k|  }
_ZN7llvm_ks21ilist_nextprev_traitsINS_10MCFragmentEE7getNextEPKS1_:
   60|  43.1k|  static const NodeTy *getNext(const NodeTy *N) { return N->getNext(); }
_ZNK7llvm_ks14ilist_iteratorIKNS_10MCFragmentEEdeEv:
  248|  43.1k|  reference operator*() const {
  249|  43.1k|    return *NodePtr;
  250|  43.1k|  }
_ZN7llvm_ks13simplify_typeIKNS_14ilist_iteratorINS_10MCFragmentEEEE18getSimplifiedValueERS4_:
  333|    476|  static SimpleType getSimplifiedValue(const ilist_iterator<NodeTy> &Node) {
  334|    476|    return &*Node;
  335|    476|  }
_ZN7llvm_ks13simplify_typeINS_14ilist_iteratorINS_10MCFragmentEEEE18getSimplifiedValueERS3_:
  326|    476|  static SimpleType getSimplifiedValue(ilist_iterator<NodeTy> &Node) {
  327|    476|    return &*Node;
  328|    476|  }

_ZN7llvm_ks15ilist_half_nodeINS_10MCFragmentEE7getPrevEv:
   33|  66.9M|  NodeTy *getPrev() { return Prev; }
_ZN7llvm_ks10ilist_nodeINS_10MCFragmentEE7setNextEPS1_:
   56|   172k|  void setNext(NodeTy *N) { Next = N; }
_ZN7llvm_ks15ilist_half_nodeINS_10MCFragmentEE7setPrevEPS1_:
   35|   234k|  void setPrev(NodeTy *P) { Prev = P; }
_ZN7llvm_ks22ilist_node_with_parentINS_10MCFragmentENS_9MCSectionEEC2Ev:
   78|   661k|  ilist_node_with_parent() = default;
_ZN7llvm_ks10ilist_nodeINS_10MCFragmentEEC2Ev:
   58|   661k|  ilist_node() : Next(nullptr) {}
_ZN7llvm_ks15ilist_half_nodeINS_10MCFragmentEEC2Ev:
   36|   661k|  ilist_half_node() : Prev(nullptr) {}
_ZN7llvm_ks22ilist_node_with_parentINS_10MCFragmentENS_9MCSectionEE11getPrevNodeEv:
   94|  50.3k|  NodeTy *getPrevNode() {
   95|       |    // Should be separated to a reused function, but then we couldn't use auto
   96|       |    // (and would need the type of the list).
   97|  50.3k|    const auto &List =
   98|  50.3k|        getNodeParent()->*(ParentTy::getSublistAccess((NodeTy *)nullptr));
   99|  50.3k|    return List.getPrevNode(*static_cast<NodeTy *>(this));
  100|  50.3k|  }
_ZNK7llvm_ks22ilist_node_with_parentINS_10MCFragmentENS_9MCSectionEE13getNodeParentEv:
   86|  50.3k|  const ParentTy *getNodeParent() const {
   87|  50.3k|    return static_cast<const NodeTy *>(this)->getParent();
   88|  50.3k|  }
_ZN7llvm_ks10ilist_nodeINS_10MCFragmentEE11getIteratorEv:
   61|  50.3k|  ilist_iterator<NodeTy> getIterator() {
   62|       |    // FIXME: Stop downcasting to create the iterator (potential UB).
   63|  50.3k|    return ilist_iterator<NodeTy>(static_cast<NodeTy *>(this));
   64|  50.3k|  }
_ZN7llvm_ks10ilist_nodeINS_10MCFragmentEE7getNextEv:
   54|   312k|  NodeTy *getNext() { return Next; }
_ZNK7llvm_ks10ilist_nodeINS_10MCFragmentEE7getNextEv:
   55|  43.1k|  const NodeTy *getNext() const { return Next; }

_ZN7llvm_ks16pointee_iteratorINSt3__111__wrap_iterIPPNS_9MCSectionEEES3_EC2IS6_EEOT_:
  239|  72.1k|      : pointee_iterator::iterator_adaptor_base(std::forward<U &&>(u)) {}
_ZN7llvm_ks21iterator_adaptor_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPNS_9MCSectionEEES4_EES7_NS2_26random_access_iterator_tagES4_lS5_RS4_NS2_15iterator_traitsIS7_EEEC2IS7_EEOT_NS2_9enable_ifIXntsr3std10is_base_ofINS2_9remove_cvINS2_16remove_referenceISF_E4typeEE4typeES8_EE5valueEiE4typeE:
  163|  72.1k|      : I(std::forward<U &&>(u)) {}
_ZN7llvm_ks16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES4_EC2IS7_EEOT_:
  239|  12.1k|      : pointee_iterator::iterator_adaptor_base(std::forward<U &&>(u)) {}
_ZN7llvm_ks21iterator_adaptor_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EES8_NS2_26random_access_iterator_tagES5_lS6_RS5_NS2_15iterator_traitsIS8_EEEC2IS8_EEOT_NS2_9enable_ifIXntsr3std10is_base_ofINS2_9remove_cvINS2_16remove_referenceISG_E4typeEE4typeES9_EE5valueEiE4typeE:
  163|  12.1k|      : I(std::forward<U &&>(u)) {}
_ZNK7llvm_ks20iterator_facade_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPNS_9MCSectionEEES4_EENS2_26random_access_iterator_tagES4_lS5_RS4_EneERKS8_:
   96|  72.6k|  bool operator!=(const DerivedT &RHS) const {
   97|  72.6k|    return !static_cast<const DerivedT *>(this)->operator==(RHS);
   98|  72.6k|  }
_ZNK7llvm_ks21iterator_adaptor_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPNS_9MCSectionEEES4_EES7_NS2_26random_access_iterator_tagES4_lS5_RS4_NS2_15iterator_traitsIS7_EEEeqERKS8_:
  208|  72.6k|  bool operator==(const DerivedT &RHS) const { return I == RHS.I; }
_ZN7llvm_ks21iterator_adaptor_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPNS_9MCSectionEEES4_EES7_NS2_26random_access_iterator_tagES4_lS5_RS4_NS2_15iterator_traitsIS7_EEEppEv:
  195|  36.5k|  DerivedT &operator++() {
  196|  36.5k|    ++I;
  197|  36.5k|    return *static_cast<DerivedT *>(this);
  198|  36.5k|  }
_ZNK7llvm_ks16pointee_iteratorINSt3__111__wrap_iterIPPNS_9MCSectionEEES3_EdeEv:
  241|  37.3k|  T &operator*() const { return **this->I; }
_ZNK7llvm_ks20iterator_facade_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EENS2_26random_access_iterator_tagES5_lS6_RS5_EneERKS9_:
   96|  67.2k|  bool operator!=(const DerivedT &RHS) const {
   97|  67.2k|    return !static_cast<const DerivedT *>(this)->operator==(RHS);
   98|  67.2k|  }
_ZNK7llvm_ks21iterator_adaptor_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EES8_NS2_26random_access_iterator_tagES5_lS6_RS5_NS2_15iterator_traitsIS8_EEEeqERKS9_:
  208|  67.2k|  bool operator==(const DerivedT &RHS) const { return I == RHS.I; }
_ZN7llvm_ks21iterator_adaptor_baseINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EES8_NS2_26random_access_iterator_tagES5_lS6_RS5_NS2_15iterator_traitsIS8_EEEppEv:
  195|  61.1k|  DerivedT &operator++() {
  196|  61.1k|    ++I;
  197|  61.1k|    return *static_cast<DerivedT *>(this);
  198|  61.1k|  }
_ZNK7llvm_ks16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES4_EdeEv:
  241|  61.1k|  T &operator*() const { return **this->I; }

_ZN7llvm_ks10make_rangeINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EEEENS_14iterator_rangeIT_EESB_SB_:
   54|  6.07k|template <class T> iterator_range<T> make_range(T x, T y) {
   55|  6.07k|  return iterator_range<T>(std::move(x), std::move(y));
   56|  6.07k|}
_ZN7llvm_ks10make_rangeINS_14TargetRegistry8iteratorEEENS_14iterator_rangeIT_EES4_S4_:
   54|  95.4k|template <class T> iterator_range<T> make_range(T x, T y) {
   55|  95.4k|  return iterator_range<T>(std::move(x), std::move(y));
   56|  95.4k|}
_ZN7llvm_ks14iterator_rangeINS_14TargetRegistry8iteratorEEC2ES2_S2_:
   43|  95.4k|      : begin_iterator(std::move(begin_iterator)),
   44|  95.4k|        end_iterator(std::move(end_iterator)) {}
_ZNK7llvm_ks14iterator_rangeINS_14TargetRegistry8iteratorEE5beginEv:
   46|  27.2k|  IteratorT begin() const { return begin_iterator; }
_ZNK7llvm_ks14iterator_rangeINS_14TargetRegistry8iteratorEE3endEv:
   47|  68.1k|  IteratorT end() const { return end_iterator; }
_ZN7llvm_ks14iterator_rangeINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EEEC2ES9_S9_:
   43|  6.07k|      : begin_iterator(std::move(begin_iterator)),
   44|  6.07k|        end_iterator(std::move(end_iterator)) {}
_ZNK7llvm_ks14iterator_rangeINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EEE5beginEv:
   46|  6.07k|  IteratorT begin() const { return begin_iterator; }
_ZNK7llvm_ks14iterator_rangeINS_16pointee_iteratorINSt3__111__wrap_iterIPPKNS_8MCSymbolEEES5_EEE3endEv:
   47|  6.07k|  IteratorT end() const { return end_iterator; }

_ZN7llvm_ks12MCAsmBackend7setArchEi:
  145|  13.6k|  void setArch(int arch) { KsArch = arch; }
_ZN7llvm_ks12MCAsmBackend17processFixupValueERKNS_11MCAssemblerERKNS_11MCAsmLayoutERKNS_7MCFixupEPKNS_10MCFragmentERKNS_7MCValueERmRb:
   85|  7.14k|                                 bool &IsResolved) {}
_ZNK7llvm_ks12MCAsmBackend17getMinimumNopSizeEv:
  128|    121|  virtual unsigned getMinimumNopSize() const { return 1; }

_ZN7llvm_ks9MCAsmInfo8setRadixEj:
  480|  13.6k|  void setRadix(unsigned v) { Radix = v; }
_ZNK7llvm_ks9MCAsmInfo14isLittleEndianEv:
  379|  32.7M|  bool isLittleEndian() const { return IsLittleEndian; }
_ZNK7llvm_ks9MCAsmInfo24hasSubsectionsViaSymbolsEv:
  384|   182k|  bool hasSubsectionsViaSymbols() const { return HasSubsectionsViaSymbols; }
_ZNK7llvm_ks9MCAsmInfo13getDollarIsPCEv:
  450|  28.8k|  bool getDollarIsPC() const { return DollarIsPC; }
_ZNK7llvm_ks9MCAsmInfo18getSeparatorStringEv:
  451|  57.3M|  const char *getSeparatorString() const { return SeparatorString; }
_ZNK7llvm_ks9MCAsmInfo16getCommentStringEv:
  457|  19.6M|  const char *getCommentString() const { return CommentString; }
_ZNK7llvm_ks9MCAsmInfo22getPrivateGlobalPrefixEv:
  463|   204k|  const char *getPrivateGlobalPrefix() const { return PrivateGlobalPrefix; }
_ZNK7llvm_ks9MCAsmInfo8getRadixEv:
  481|  13.6k|  unsigned getRadix() const { return Radix; }
_ZNK7llvm_ks9MCAsmInfo17doesAllowAtInNameEv:
  482|  2.89k|  bool doesAllowAtInName() const { return AllowAtInName; }
_ZNK7llvm_ks9MCAsmInfo21getAlignmentIsInBytesEv:
  490|  10.9k|  bool getAlignmentIsInBytes() const { return AlignmentIsInBytes; }
_ZNK7llvm_ks9MCAsmInfo21getTextAlignFillValueEv:
  491|  4.65k|  unsigned getTextAlignFillValue() const { return TextAlignFillValue; }
_ZNK7llvm_ks9MCAsmInfo34getCOMMDirectiveAlignmentIsInBytesEv:
  497|    179|  bool getCOMMDirectiveAlignmentIsInBytes() const {
  498|    179|    return COMMDirectiveAlignmentIsInBytes;
  499|    179|  }
_ZNK7llvm_ks9MCAsmInfo30getLCOMMDirectiveAlignmentTypeEv:
  500|    197|  LCOMM::LCOMMType getLCOMMDirectiveAlignmentType() const {
  501|    197|    return LCOMMDirectiveAlignmentType;
  502|    197|  }
_ZNK7llvm_ks9MCAsmInfo25useParensForSymbolVariantEv:
  548|   297k|  bool useParensForSymbolVariant() const { return UseParensForSymbolVariant; }
_ZN7llvm_ks9MCAsmInfo20addInitialFrameStateERKNS_16MCCFIInstructionE:
  550|  13.6k|  void addInitialFrameState(const MCCFIInstruction &Inst) {
  551|  13.6k|    InitialFrameState.push_back(Inst);
  552|  13.6k|  }
_ZNK7llvm_ks9MCAsmInfo21compressDebugSectionsEv:
  566|  5.89k|  bool compressDebugSections() const { return CompressDebugSections; }
_ZNK7llvm_ks9MCAsmInfo19shouldUseLogicalShrEv:
  572|   534k|  bool shouldUseLogicalShr() const { return UseLogicalShr; }

_ZNK7llvm_ks11MCAsmLayout12getAssemblerEv:
   51|  93.9k|  MCAssembler &getAssembler() const { return Assembler; }
_ZN7llvm_ks11MCAsmLayout15getSectionOrderEv:
   66|  24.7k|  llvm_ks::SmallVectorImpl<MCSection *> &getSectionOrder() { return SectionOrder; }

_ZNK7llvm_ks11MCAssembler8setErrorEj:
   64|  6.23k|  void setError(unsigned E) const { KsError = E; }
_ZNK7llvm_ks11MCAssembler8getErrorEv:
   65|  54.6k|  unsigned getError() const { return KsError; }
_ZNK7llvm_ks11MCAssembler14setSymResolverEPv:
   67|  6.07k|  void setSymResolver(void *h) const { KsSymResolver = h; }
_ZNK7llvm_ks11MCAssembler18getELFHeaderEFlagsEv:
  236|  13.6k|  unsigned getELFHeaderEFlags() const { return ELFHeaderEFlags; }
_ZN7llvm_ks11MCAssembler18setELFHeaderEFlagsEj:
  237|  13.6k|  void setELFHeaderEFlags(unsigned Flags) { ELFHeaderEFlags = Flags; }
_ZNK7llvm_ks11MCAssembler10getContextEv:
  264|  24.7k|  MCContext &getContext() const { return Context; }
_ZNK7llvm_ks11MCAssembler10getBackendEv:
  266|  35.5k|  MCAsmBackend &getBackend() const { return Backend; }
_ZNK7llvm_ks11MCAssembler10getEmitterEv:
  268|  1.21k|  MCCodeEmitter &getEmitter() const { return Emitter; }
_ZNK7llvm_ks11MCAssembler9getWriterEv:
  270|  82.4k|  MCObjectWriter &getWriter() const { return Writer; }
_ZNK7llvm_ks11MCAssembler11getRelaxAllEv:
  294|  1.83k|  bool getRelaxAll() const { return RelaxAll; }
_ZNK7llvm_ks11MCAssembler17isBundlingEnabledEv:
  297|  32.9M|  bool isBundlingEnabled() const { return BundleAlignSize != 0; }
_ZN7llvm_ks11MCAssembler5beginEv:
  310|  36.0k|  iterator begin() { return Sections.begin(); }
_ZN7llvm_ks11MCAssembler3endEv:
  313|  36.0k|  iterator end() { return Sections.end(); }
_ZN7llvm_ks11MCAssembler12symbol_beginEv:
  321|  6.07k|  symbol_iterator symbol_begin() { return Symbols.begin(); }
_ZN7llvm_ks11MCAssembler10symbol_endEv:
  324|  6.07k|  symbol_iterator symbol_end() { return Symbols.end(); }
_ZN7llvm_ks11MCAssembler7symbolsEv:
  327|  6.07k|  symbol_range symbols() { return make_range(symbol_begin(), symbol_end()); }
_ZN7llvm_ks11MCAssembler11addFileNameENS_9StringRefE:
  411|  1.19k|  void addFileName(StringRef FileName) {
  412|  1.19k|    if (std::find(FileNames.begin(), FileNames.end(), FileName) ==
  ------------------
  |  Branch (412:9): [True: 652, False: 545]
  ------------------
  413|  1.19k|        FileNames.end())
  414|    652|      FileNames.push_back(FileName);
  415|  1.19k|  }

_ZN7llvm_ks7MCCVLocC2Ejjjjbb:
   43|  13.6k|      : FunctionId(functionid), FileNum(fileNum), Line(line), Column(column),
   44|  13.6k|        PrologueEnd(prologueend), IsStmt(isstmt) {}

_ZN7llvm_ks9MCContext13ELFSectionKeyC2ENS_9StringRefES2_j:
  183|   591k|          : SectionName(SectionName), GroupName(GroupName), UniqueID(UniqueID) {
  184|   591k|      }
_ZNK7llvm_ks9MCContext13ELFSectionKeyltERKS1_:
  185|  4.01M|      bool operator<(const ELFSectionKey &Other) const {
  186|  4.01M|        if (SectionName != Other.SectionName)
  ------------------
  |  Branch (186:13): [True: 4.01M, False: 126]
  ------------------
  187|  4.01M|          return SectionName < Other.SectionName;
  188|    126|        if (GroupName != Other.GroupName)
  ------------------
  |  Branch (188:13): [True: 0, False: 126]
  ------------------
  189|      0|          return GroupName < Other.GroupName;
  190|    126|        return UniqueID < Other.UniqueID;
  191|    126|      }
_ZNK7llvm_ks9MCContext10getAsmInfoEv:
  242|  32.9M|    const MCAsmInfo *getAsmInfo() const { return MAI; }
_ZNK7llvm_ks9MCContext15getRegisterInfoEv:
  244|  1.52k|    const MCRegisterInfo *getRegisterInfo() const { return MRI; }
_ZNK7llvm_ks9MCContext17getObjectFileInfoEv:
  246|  14.1k|    const MCObjectFileInfo *getObjectFileInfo() const { return MOFI; }
_ZN7llvm_ks9MCContext14getBaseAddressEv:
  251|  6.29k|    uint64_t getBaseAddress() { return BaseAddress; }
_ZN7llvm_ks9MCContext13getELFSectionENS_9StringRefEjj:
  331|   387k|                                unsigned Flags) {
  332|   387k|      return getELFSection(Section, Type, Flags, nullptr);
  333|   387k|    }
_ZN7llvm_ks9MCContext13getELFSectionENS_9StringRefEjjPKc:
  336|   523k|                                unsigned Flags, const char *BeginSymName) {
  337|   523k|      return getELFSection(Section, Type, Flags, 0, "", BeginSymName);
  338|   523k|    }
_ZN7llvm_ks9MCContext13getELFSectionENS_9StringRefEjjjS1_:
  342|  68.1k|                                StringRef Group) {
  343|  68.1k|      return getELFSection(Section, Type, Flags, EntrySize, Group, nullptr);
  344|  68.1k|    }
_ZN7llvm_ks9MCContext13getELFSectionENS_9StringRefEjjjS1_PKc:
  348|   591k|                                StringRef Group, const char *BeginSymName) {
  349|   591k|      return getELFSection(Section, Type, Flags, EntrySize, Group, ~0,
  350|   591k|                           BeginSymName);
  351|   591k|    }
_ZN7llvm_ks9MCContext19getMCDwarfLineTableEj:
  435|     69|    MCDwarfLineTable &getMCDwarfLineTable(unsigned CUID) {
  436|     69|      return MCDwarfLineTablesCUMap[CUID];
  437|     69|    }
_ZN7llvm_ks9MCContext15getMCDwarfFilesEj:
  445|     69|    const SmallVectorImpl<MCDwarfFile> &getMCDwarfFiles(unsigned CUID = 0) {
  446|     69|      return getMCDwarfLineTable(CUID).getMCDwarfFiles();
  447|     69|    }
_ZN7llvm_ks9MCContext22getGenDwarfForAssemblyEv:
  486|  13.5k|    bool getGenDwarfForAssembly() { return GenDwarfForAssembly; }
_ZN7llvm_ks9MCContext8allocateEjj:
  555|  1.01M|    void *allocate(unsigned Size, unsigned Align = 8) {
  556|  1.01M|      return Allocator.Allocate(Size, Align);
  557|  1.01M|    }
_ZnwmRN7llvm_ks9MCContextEm:
  596|   793k|                          size_t Alignment = 8) LLVM_NOEXCEPT {
  597|   793k|  return C.allocate(Bytes, Alignment);
  598|   793k|}

_ZN7llvm_ks10MCDwarfLocC2Ejjjjjj:
   78|  27.2k|      : FileNum(fileNum), Line(line), Column(column), Flags(flags), Isa(isa),
   79|  27.2k|        Discriminator(discriminator) {}
_ZN7llvm_ks22MCDwarfLineTableHeaderC2Ev:
  205|     69|  MCDwarfLineTableHeader() : Label(nullptr) {}
_ZN7llvm_ks16MCDwarfLineTable15getMCDwarfFilesEv:
  265|     69|  SmallVectorImpl<MCDwarfFile> &getMCDwarfFiles() {
  266|     69|    return Header.MCDwarfFiles;
  267|     69|  }
_ZN7llvm_ks16MCCFIInstructionC2ENS0_6OpTypeEPNS_8MCSymbolEjiNS_9StringRefE:
  358|  13.6k|      : Operation(Op), Label(L), Register(R), Offset(O),
  359|  13.6k|        Values(V.begin(), V.end()) {
  360|       |    assert(Op != OpRegister);
  ------------------
  |  Branch (360:5): [True: 13.6k, False: 0]
  ------------------
  361|  13.6k|  }
_ZN7llvm_ks16MCCFIInstruction12createDefCfaEPNS_8MCSymbolEji:
  372|  13.6k|                                       int Offset) {
  373|  13.6k|    return MCCFIInstruction(OpDefCfa, L, Register, -Offset, "");
  374|  13.6k|  }

_ZN7llvm_ks23MCELFObjectTargetWriter8getOSABIENS_6Triple6OSTypeE:
   54|  13.6k|  static uint8_t getOSABI(Triple::OSType OSType) {
   55|  13.6k|    switch (OSType) {
   56|      0|      case Triple::CloudABI:
  ------------------
  |  Branch (56:7): [True: 0, False: 13.6k]
  ------------------
   57|      0|        return ELF::ELFOSABI_CLOUDABI;
   58|      0|      case Triple::PS4:
  ------------------
  |  Branch (58:7): [True: 0, False: 13.6k]
  ------------------
   59|      0|      case Triple::FreeBSD:
  ------------------
  |  Branch (59:7): [True: 0, False: 13.6k]
  ------------------
   60|      0|        return ELF::ELFOSABI_FREEBSD;
   61|  13.6k|      default:
  ------------------
  |  Branch (61:7): [True: 13.6k, False: 0]
  ------------------
   62|  13.6k|        return ELF::ELFOSABI_NONE;
   63|  13.6k|    }
   64|  13.6k|  }
_ZN7llvm_ks18ELFRelocationEntryC2EmPKNS_11MCSymbolELFEjm:
   37|  5.57k|      : Offset(Offset), Symbol(Symbol), Type(Type), Addend(Addend) {}
_ZN7llvm_ks23MCELFObjectTargetWriterD2Ev:
   66|  13.6k|  virtual ~MCELFObjectTargetWriter() {}
_ZNK7llvm_ks23MCELFObjectTargetWriter7is64BitEv:
   82|    236|  bool is64Bit() const { return Is64Bit; }

_ZN7llvm_ks13MCELFStreamerC2ERNS_9MCContextERNS_12MCAsmBackendERNS_17raw_pwrite_streamEPNS_13MCCodeEmitterE:
   32|  13.6k|      : MCObjectStreamer(Context, TAB, OS, Emitter), SeenIdent(false) {}

_ZN7llvm_ks6MCExprC2ENS0_8ExprKindE:
   59|   793k|  explicit MCExpr(ExprKind Kind) : Kind(Kind) {}
_ZNK7llvm_ks6MCExpr7getKindEv:
   70|  3.32M|  ExprKind getKind() const { return Kind; }
_ZN7llvm_ks14MCConstantExprC2El:
  134|   357k|      : MCExpr(MCExpr::Constant), Value(Value) {}
_ZNK7llvm_ks14MCConstantExpr8getValueEv:
  146|   379k|  int64_t getValue() const { return Value; }
_ZN7llvm_ks14MCConstantExpr7classofEPKNS_6MCExprE:
  150|   848k|  static bool classof(const MCExpr *E) {
  151|   848k|    return E->getKind() == MCExpr::Constant;
  152|   848k|  }
_ZN7llvm_ks15MCSymbolRefExpr6createEPKNS_8MCSymbolERNS_9MCContextE:
  320|      1|  static const MCSymbolRefExpr *create(const MCSymbol *Symbol, MCContext &Ctx) {
  321|      1|    return MCSymbolRefExpr::create(Symbol, VK_None, Ctx);
  322|      1|  }
_ZNK7llvm_ks15MCSymbolRefExpr9getSymbolEv:
  333|   524k|  const MCSymbol &getSymbol() const { return *Symbol; }
_ZNK7llvm_ks15MCSymbolRefExpr7getKindEv:
  335|   145k|  VariantKind getKind() const { return Kind; }
_ZNK7llvm_ks15MCSymbolRefExpr24hasSubsectionsViaSymbolsEv:
  339|  2.18k|  bool hasSubsectionsViaSymbols() const { return HasSubsectionsViaSymbols; }
_ZN7llvm_ks15MCSymbolRefExpr7classofEPKNS_6MCExprE:
  351|   497k|  static bool classof(const MCExpr *E) {
  352|   497k|    return E->getKind() == MCExpr::SymbolRef;
  353|   497k|  }
_ZN7llvm_ks11MCUnaryExprC2ENS0_6OpcodeEPKNS_6MCExprE:
  371|   116k|      : MCExpr(MCExpr::Unary), Op(Op), Expr(Expr) {}
_ZN7llvm_ks11MCUnaryExpr10createLNotEPKNS_6MCExprERNS_9MCContextE:
  379|  3.97k|  static const MCUnaryExpr *createLNot(const MCExpr *Expr, MCContext &Ctx) {
  380|  3.97k|    return create(LNot, Expr, Ctx);
  381|  3.97k|  }
_ZN7llvm_ks11MCUnaryExpr11createMinusEPKNS_6MCExprERNS_9MCContextE:
  382|  56.7k|  static const MCUnaryExpr *createMinus(const MCExpr *Expr, MCContext &Ctx) {
  383|  56.7k|    return create(Minus, Expr, Ctx);
  384|  56.7k|  }
_ZN7llvm_ks11MCUnaryExpr9createNotEPKNS_6MCExprERNS_9MCContextE:
  385|  40.5k|  static const MCUnaryExpr *createNot(const MCExpr *Expr, MCContext &Ctx) {
  386|  40.5k|    return create(Not, Expr, Ctx);
  387|  40.5k|  }
_ZN7llvm_ks11MCUnaryExpr10createPlusEPKNS_6MCExprERNS_9MCContextE:
  388|  14.8k|  static const MCUnaryExpr *createPlus(const MCExpr *Expr, MCContext &Ctx) {
  389|  14.8k|    return create(Plus, Expr, Ctx);
  390|  14.8k|  }
_ZNK7llvm_ks11MCUnaryExpr9getOpcodeEv:
  397|   126k|  Opcode getOpcode() const { return Op; }
_ZNK7llvm_ks11MCUnaryExpr10getSubExprEv:
  400|   224k|  const MCExpr *getSubExpr() const { return Expr; }
_ZN7llvm_ks11MCUnaryExpr7classofEPKNS_6MCExprE:
  404|   213k|  static bool classof(const MCExpr *E) {
  405|   213k|    return E->getKind() == MCExpr::Unary;
  406|   213k|  }
_ZN7llvm_ks12MCBinaryExprC2ENS0_6OpcodeEPKNS_6MCExprES4_:
  443|   143k|      : MCExpr(MCExpr::Binary), Op(Op), LHS(LHS), RHS(RHS) {}
_ZNK7llvm_ks12MCBinaryExpr9getOpcodeEv:
  533|   176k|  Opcode getOpcode() const { return Op; }
_ZNK7llvm_ks12MCBinaryExpr6getLHSEv:
  536|   386k|  const MCExpr *getLHS() const { return LHS; }
_ZNK7llvm_ks12MCBinaryExpr6getRHSEv:
  539|   333k|  const MCExpr *getRHS() const { return RHS; }
_ZN7llvm_ks12MCBinaryExpr7classofEPKNS_6MCExprE:
  543|   381k|  static bool classof(const MCExpr *E) {
  544|   381k|    return E->getKind() == MCExpr::Binary;
  545|   381k|  }
_ZN7llvm_ks12MCTargetExprC2Ev:
  555|     12|  MCTargetExpr() : MCExpr(Target) {}
_ZN7llvm_ks12MCTargetExpr7classofEPKNS_6MCExprE:
  567|     23|  static bool classof(const MCExpr *E) {
  568|     23|    return E->getKind() == MCExpr::Target;
  569|     23|  }

_ZN7llvm_ks7MCFixup6createEjPKNS_6MCExprENS_11MCFixupKindENS_5SMLocE:
   87|  44.6k|                        MCFixupKind Kind, SMLoc Loc = SMLoc()) {
   88|  44.6k|    assert(unsigned(Kind) < MaxTargetFixupKind && "Kind out of range!");
  ------------------
  |  Branch (88:5): [True: 44.6k, False: 0]
  |  Branch (88:5): [True: 44.6k, Folded]
  |  Branch (88:5): [True: 44.6k, False: 0]
  ------------------
   89|  44.6k|    MCFixup FI;
   90|  44.6k|    FI.Value = Value;
   91|  44.6k|    FI.Offset = Offset;
   92|  44.6k|    FI.Kind = unsigned(Kind);
   93|  44.6k|    FI.Loc = Loc;
   94|  44.6k|    return FI;
   95|  44.6k|  }
_ZNK7llvm_ks7MCFixup7getKindEv:
  119|  39.7k|  MCFixupKind getKind() const { return MCFixupKind(Kind); }
_ZNK7llvm_ks7MCFixup9getOffsetEv:
  121|  12.1k|  uint32_t getOffset() const { return Offset; }
_ZN7llvm_ks7MCFixup9setOffsetEj:
  122|     20|  void setOffset(uint32_t Value) { Offset = Value; }
_ZNK7llvm_ks7MCFixup8getValueEv:
  124|  7.94k|  const MCExpr *getValue() const { return Value; }
_ZN7llvm_ks7MCFixup14getKindForSizeEjb:
  128|  44.2k|  static MCFixupKind getKindForSize(unsigned Size, bool isPCRel) {
  129|  44.2k|    switch (Size) {
  130|      0|    default: llvm_unreachable("Invalid generic fixup size!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  |  Branch (130:5): [True: 0, False: 44.2k]
  ------------------
  131|    565|    case 1: return isPCRel ? FK_PCRel_1 : FK_Data_1;
  ------------------
  |  Branch (131:5): [True: 565, False: 43.7k]
  |  Branch (131:20): [True: 0, False: 565]
  ------------------
  132|     16|    case 2: return isPCRel ? FK_PCRel_2 : FK_Data_2;
  ------------------
  |  Branch (132:5): [True: 16, False: 44.2k]
  |  Branch (132:20): [True: 0, False: 16]
  ------------------
  133|  43.3k|    case 4: return isPCRel ? FK_PCRel_4 : FK_Data_4;
  ------------------
  |  Branch (133:5): [True: 43.3k, False: 912]
  |  Branch (133:20): [True: 0, False: 43.3k]
  ------------------
  134|    331|    case 8: return isPCRel ? FK_PCRel_8 : FK_Data_8;
  ------------------
  |  Branch (134:5): [True: 331, False: 43.9k]
  |  Branch (134:20): [True: 0, False: 331]
  ------------------
  135|  44.2k|    }
  136|  44.2k|  }
_ZNK7llvm_ks7MCFixup6getLocEv:
  162|  1.25k|  SMLoc getLoc() const { return Loc; }

_ZNK7llvm_ks10MCFragment7getKindEv:
   97|  66.2M|  FragmentType getKind() const { return Kind; }
_ZNK7llvm_ks10MCFragment9getParentEv:
   99|   611k|  MCSection *getParent() const { return Parent; }
_ZN7llvm_ks10MCFragment9setParentEPNS_9MCSectionE:
  100|  55.0k|  void setParent(MCSection *Value) { Parent = Value; }
_ZNK7llvm_ks10MCFragment14getLayoutOrderEv:
  105|   398k|  unsigned getLayoutOrder() const { return LayoutOrder; }
_ZN7llvm_ks10MCFragment14setLayoutOrderEj:
  106|  51.4k|  void setLayoutOrder(unsigned Value) { LayoutOrder = Value; }
_ZNK7llvm_ks10MCFragment16getBundlePaddingEv:
  121|  33.2k|  uint8_t getBundlePadding() const { return BundlePadding; }
_ZNK7llvm_ks10MCFragment7isDummyEv:
  128|   592k|  bool isDummy() const { return Kind == FT_Dummy; }
_ZN7llvm_ks15MCDummyFragmentC2EPNS_9MCSectionE:
  136|   592k|      : MCFragment(FT_Dummy, false, 0, Sec){};
_ZN7llvm_ks17MCEncodedFragmentC2ENS_10MCFragment12FragmentTypeEbPNS_9MCSectionE:
  147|  8.73k|      : MCFragment(FType, HasInstructions, 0, Sec) {}
_ZN7llvm_ks17MCEncodedFragment7classofEPKNS_10MCFragmentE:
  150|  50.9k|  static bool classof(const MCFragment *F) {
  151|  50.9k|    MCFragment::FragmentType Kind = F->getKind();
  152|  50.9k|    switch (Kind) {
  153|  36.5k|    default:
  ------------------
  |  Branch (153:5): [True: 36.5k, False: 14.4k]
  ------------------
  154|  36.5k|      return false;
  155|    826|    case MCFragment::FT_Relaxable:
  ------------------
  |  Branch (155:5): [True: 826, False: 50.1k]
  ------------------
  156|    826|    case MCFragment::FT_CompactEncodedInst:
  ------------------
  |  Branch (156:5): [True: 0, False: 50.9k]
  ------------------
  157|  14.4k|    case MCFragment::FT_Data:
  ------------------
  |  Branch (157:5): [True: 13.6k, False: 37.3k]
  ------------------
  158|  14.4k|      return true;
  159|  50.9k|    }
  160|  50.9k|  }
_ZN7llvm_ks14MCDataFragmentC2EPNS_9MCSectionE:
  222|  8.05k|      : MCEncodedFragmentWithFixups<32, 4>(FT_Data, false, Sec) {}
_ZN7llvm_ks14MCDataFragment18setHasInstructionsEb:
  224|    541|  void setHasInstructions(bool V) { HasInstructions = V; }
_ZN7llvm_ks14MCDataFragment7classofEPKNS_10MCFragmentE:
  226|  65.8M|  static bool classof(const MCFragment *F) {
  227|  65.8M|    return F->getKind() == MCFragment::FT_Data;
  228|  65.8M|  }
_ZN7llvm_ks28MCCompactEncodedInstFragment7classofEPKNS_10MCFragmentE:
  242|  7.24k|  static bool classof(const MCFragment *F) {
  243|  7.24k|    return F->getKind() == MCFragment::FT_CompactEncodedInst;
  244|  7.24k|  }
_ZN7llvm_ks19MCRelaxableFragmentC2ERKNS_6MCInstERKNS_15MCSubtargetInfoEPNS_9MCSectionE:
  261|    677|      : MCEncodedFragmentWithFixups(FT_Relaxable, true, Sec),
  262|    677|        Inst(Inst), STI(STI) {}
_ZNK7llvm_ks19MCRelaxableFragment7getInstEv:
  264|    476|  const MCInst &getInst() const { return Inst; }
_ZN7llvm_ks19MCRelaxableFragment7classofEPKNS_10MCFragmentE:
  269|  3.79k|  static bool classof(const MCFragment *F) {
  270|  3.79k|    return F->getKind() == MCFragment::FT_Relaxable;
  271|  3.79k|  }
_ZN7llvm_ks15MCAlignFragmentC2EjljjPNS_9MCSectionE:
  297|  7.96k|      : MCFragment(FT_Align, false, 0, Sec), Alignment(Alignment),
  298|  7.96k|        EmitNops(false), Value(Value),
  299|  7.96k|        ValueSize(ValueSize), MaxBytesToEmit(MaxBytesToEmit) {}
_ZNK7llvm_ks15MCAlignFragment12getAlignmentEv:
  304|  10.9k|  unsigned getAlignment() const { return Alignment; }
_ZNK7llvm_ks15MCAlignFragment8getValueEv:
  306|  16.9M|  int64_t getValue() const { return Value; }
_ZNK7llvm_ks15MCAlignFragment12getValueSizeEv:
  308|  16.9M|  unsigned getValueSize() const { return ValueSize; }
_ZNK7llvm_ks15MCAlignFragment17getMaxBytesToEmitEv:
  310|  10.9k|  unsigned getMaxBytesToEmit() const { return MaxBytesToEmit; }
_ZNK7llvm_ks15MCAlignFragment11hasEmitNopsEv:
  312|  6.36k|  bool hasEmitNops() const { return EmitNops; }
_ZN7llvm_ks15MCAlignFragment11setEmitNopsEb:
  313|  3.49k|  void setEmitNops(bool Value) { EmitNops = Value; }
_ZN7llvm_ks15MCAlignFragment7classofEPKNS_10MCFragmentE:
  317|  28.0k|  static bool classof(const MCFragment *F) {
  318|  28.0k|    return F->getKind() == MCFragment::FT_Align;
  319|  28.0k|  }
_ZN7llvm_ks14MCFillFragmentC2EhmPNS_9MCSectionE:
  332|  12.5k|      : MCFragment(FT_Fill, false, 0, Sec), Value(Value), Size(Size) {}
_ZNK7llvm_ks14MCFillFragment8getValueEv:
  334|  6.22k|  uint8_t getValue() const { return Value; }
_ZNK7llvm_ks14MCFillFragment7getSizeEv:
  335|  24.7k|  uint64_t getSize() const { return Size; }
_ZN7llvm_ks14MCFillFragment7classofEPKNS_10MCFragmentE:
  337|  37.2k|  static bool classof(const MCFragment *F) {
  338|  37.2k|    return F->getKind() == MCFragment::FT_Fill;
  339|  37.2k|  }
_ZN7llvm_ks13MCOrgFragmentC2ERKNS_6MCExprEaPNS_9MCSectionE:
  352|  25.8k|      : MCFragment(FT_Org, false, 0, Sec), Offset(&Offset), Value(Value) {}
_ZNK7llvm_ks13MCOrgFragment9getOffsetEv:
  357|  37.3k|  const MCExpr &getOffset() const { return *Offset; }
_ZNK7llvm_ks13MCOrgFragment8getValueEv:
  359|  71.4M|  uint8_t getValue() const { return Value; }
_ZN7llvm_ks13MCOrgFragment7classofEPKNS_10MCFragmentE:
  363|  79.0k|  static bool classof(const MCFragment *F) {
  364|  79.0k|    return F->getKind() == MCFragment::FT_Org;
  365|  79.0k|  }
_ZN7llvm_ks27MCEncodedFragmentWithFixupsILj32ELj4EEC2ENS_10MCFragment12FragmentTypeEbPNS_9MCSectionE:
  195|  8.05k|      : MCEncodedFragmentWithContents<ContentsSize>(FType, HasInstructions,
  196|  8.05k|                                                    Sec) {}
_ZN7llvm_ks29MCEncodedFragmentWithContentsILj32EEC2ENS_10MCFragment12FragmentTypeEbPNS_9MCSectionE:
  174|  8.05k|      : MCEncodedFragment(FType, HasInstructions, Sec) {}
_ZN7llvm_ks29MCEncodedFragmentWithContentsILj32EE11getContentsEv:
  177|  65.8M|  SmallVectorImpl<char> &getContents() { return Contents; }
_ZN7llvm_ks27MCEncodedFragmentWithFixupsILj32ELj4EE9getFixupsEv:
  202|  51.1k|  SmallVectorImpl<MCFixup> &getFixups() { return Fixups; }
_ZN7llvm_ks27MCEncodedFragmentWithFixupsILj8ELj1EE9getFixupsEv:
  202|  2.09k|  SmallVectorImpl<MCFixup> &getFixups() { return Fixups; }
_ZNK7llvm_ks29MCEncodedFragmentWithContentsILj32EE11getContentsEv:
  178|  11.0k|  const SmallVectorImpl<char> &getContents() const { return Contents; }
_ZN7llvm_ks27MCEncodedFragmentWithFixupsILj8ELj1EEC2ENS_10MCFragment12FragmentTypeEbPNS_9MCSectionE:
  195|    677|      : MCEncodedFragmentWithContents<ContentsSize>(FType, HasInstructions,
  196|    677|                                                    Sec) {}
_ZN7llvm_ks29MCEncodedFragmentWithContentsILj8EEC2ENS_10MCFragment12FragmentTypeEbPNS_9MCSectionE:
  174|    677|      : MCEncodedFragment(FType, HasInstructions, Sec) {}
_ZN7llvm_ks29MCEncodedFragmentWithContentsILj8EE11getContentsEv:
  177|  1.09k|  SmallVectorImpl<char> &getContents() { return Contents; }
_ZNK7llvm_ks29MCEncodedFragmentWithContentsILj8EE11getContentsEv:
  178|  1.14k|  const SmallVectorImpl<char> &getContents() const { return Contents; }
_ZNK7llvm_ks27MCEncodedFragmentWithFixupsILj8ELj1EE9getFixupsEv:
  203|    476|  const SmallVectorImpl<MCFixup> &getFixups() const { return Fixups; }

_ZN7llvm_ks9MCOperandC2Ev:
   52|  2.82k|  MCOperand() : Kind(kInvalid), FPImmVal(0.0) {}
_ZNK7llvm_ks9MCOperand5isRegEv:
   55|  3.63k|  bool isReg() const { return Kind == kRegister; }
_ZNK7llvm_ks9MCOperand5isImmEv:
   56|  3.72k|  bool isImm() const { return Kind == kImmediate; }
_ZNK7llvm_ks9MCOperand6isExprEv:
   58|  3.46k|  bool isExpr() const { return Kind == kExpr; }
_ZNK7llvm_ks9MCOperand6getRegEv:
   62|  3.31k|  unsigned getReg() const {
   63|  3.31k|    assert(isReg() && "This is not a register operand!");
  ------------------
  |  Branch (63:5): [True: 3.31k, False: 0]
  |  Branch (63:5): [True: 3.31k, Folded]
  |  Branch (63:5): [True: 3.31k, False: 0]
  ------------------
   64|  3.31k|    return RegVal;
   65|  3.31k|  }
_ZNK7llvm_ks9MCOperand6getImmEv:
   73|  1.36k|  int64_t getImm() const {
   74|  1.36k|    assert(isImm() && "This is not an immediate");
  ------------------
  |  Branch (74:5): [True: 1.36k, False: 0]
  |  Branch (74:5): [True: 1.36k, Folded]
  |  Branch (74:5): [True: 1.36k, False: 0]
  ------------------
   75|  1.36k|    return ImmVal;
   76|  1.36k|  }
_ZNK7llvm_ks9MCOperand7getExprEv:
   92|  1.33k|  const MCExpr *getExpr() const {
   93|  1.33k|    assert(isExpr() && "This is not an expression");
  ------------------
  |  Branch (93:5): [True: 1.33k, False: 0]
  |  Branch (93:5): [True: 1.33k, Folded]
  |  Branch (93:5): [True: 1.33k, False: 0]
  ------------------
   94|  1.33k|    return ExprVal;
   95|  1.33k|  }
_ZN7llvm_ks9MCOperand9createRegEj:
  110|  1.49k|  static MCOperand createReg(unsigned Reg) {
  111|  1.49k|    MCOperand Op;
  112|  1.49k|    Op.Kind = kRegister;
  113|  1.49k|    Op.RegVal = Reg;
  114|  1.49k|    return Op;
  115|  1.49k|  }
_ZN7llvm_ks9MCOperand9createImmEl:
  116|    981|  static MCOperand createImm(int64_t Val) {
  117|    981|    MCOperand Op;
  118|    981|    Op.Kind = kImmediate;
  119|    981|    Op.ImmVal = Val;
  120|    981|    return Op;
  121|    981|  }
_ZN7llvm_ks9MCOperand10createExprEPKNS_6MCExprE:
  128|    345|  static MCOperand createExpr(const MCExpr *Val) {
  129|    345|    MCOperand Op;
  130|    345|    Op.Kind = kExpr;
  131|    345|    Op.ExprVal = Val;
  132|    345|    return Op;
  133|    345|  }
_ZN7llvm_ks6MCInstC2Em:
  158|  4.59k|  MCInst(uint64_t addr = 0) : Opcode(0), Address(addr) {}
_ZN7llvm_ks6MCInst9setOpcodeEj:
  160|  3.41k|  void setOpcode(unsigned Op) { Opcode = Op; }
_ZNK7llvm_ks6MCInst9getOpcodeEv:
  161|  13.6k|  unsigned getOpcode() const { return Opcode; }
_ZN7llvm_ks6MCInst6setLocENS_5SMLocE:
  166|  2.43k|  void setLoc(SMLoc loc) { Loc = loc; }
_ZNK7llvm_ks6MCInst6getLocEv:
  167|  1.56k|  SMLoc getLoc() const { return Loc; }
_ZNK7llvm_ks6MCInst10getOperandEj:
  169|  6.85k|  const MCOperand &getOperand(unsigned i) const { return Operands[i]; }
_ZN7llvm_ks6MCInst10getOperandEj:
  170|  1.80k|  MCOperand &getOperand(unsigned i) { return Operands[i]; }
_ZNK7llvm_ks6MCInst14getNumOperandsEv:
  171|  1.21k|  unsigned getNumOperands() const { return Operands.size(); }
_ZN7llvm_ks6MCInst10addOperandERKNS_9MCOperandE:
  173|  3.70k|  void addOperand(const MCOperand &Op) { Operands.push_back(Op); }
_ZN7llvm_ks6MCInst5clearEv:
  177|  1.21k|  void clear() { Operands.clear(); }

_ZN7llvm_ks13MCInstBuilderC2Ej:
   27|     18|  MCInstBuilder(unsigned Opcode) {
   28|     18|    Inst.setOpcode(Opcode);
   29|     18|  }
_ZN7llvm_ks13MCInstBuilder6addRegEj:
   32|     24|  MCInstBuilder &addReg(unsigned Reg) {
   33|     24|    Inst.addOperand(MCOperand::createReg(Reg));
   34|     24|    return *this;
   35|     24|  }
_ZN7llvm_ks13MCInstBuilder6addImmEl:
   38|      8|  MCInstBuilder &addImm(int64_t Val) {
   39|      8|    Inst.addOperand(MCOperand::createImm(Val));
   40|      8|    return *this;
   41|      8|  }
_ZN7llvm_ks13MCInstBuilder7addExprEPKNS_6MCExprE:
   50|      2|  MCInstBuilder &addExpr(const MCExpr *Val) {
   51|      2|    Inst.addOperand(MCOperand::createExpr(Val));
   52|      2|    return *this;
   53|      2|  }
_ZN7llvm_ks13MCInstBuilder10addOperandERKNS_9MCOperandE:
   62|     11|  MCInstBuilder &addOperand(const MCOperand &Op) {
   63|     11|    Inst.addOperand(Op);
   64|     11|    return *this;
   65|     11|  }
_ZN7llvm_ks13MCInstBuildercvRNS_6MCInstEEv:
   67|     18|  operator MCInst&() {
   68|     18|    return Inst;
   69|     18|  }

_ZNK7llvm_ks11MCInstrDesc9getOpcodeEv:
  196|    326|  unsigned getOpcode() const { return Opcode; }
_ZNK7llvm_ks11MCInstrDesc7getSizeEv:
  324|  1.21k|  unsigned getSize() const { return Size; }

_ZN7llvm_ks11MCInstrInfo15InitMCInstrInfoEPKNS_11MCInstrDescEPKjPKcj:
   34|  13.6k|                       unsigned NO) {
   35|  13.6k|    Desc = D;
   36|  13.6k|    InstrNameIndices = NI;
   37|  13.6k|    InstrNameData = ND;
   38|  13.6k|    NumOpcodes = NO;
   39|  13.6k|  }
_ZNK7llvm_ks11MCInstrInfo3getEj:
   45|  1.71k|  const MCInstrDesc &get(unsigned Opcode) const {
   46|  1.71k|    assert(Opcode < NumOpcodes && "Invalid opcode!");
  ------------------
  |  Branch (46:5): [True: 1.71k, False: 0]
  |  Branch (46:5): [True: 1.71k, Folded]
  |  Branch (46:5): [True: 1.71k, False: 0]
  ------------------
   47|  1.71k|    return Desc[Opcode];
   48|  1.71k|  }

_ZN7llvm_ks14MCLOHContainerC2Ev:
  128|  13.6k|  MCLOHContainer() : EmitSize(0) {}

_ZNK7llvm_ks16MCObjectFileInfo14getTextSectionEv:
  219|  13.6k|  MCSection *getTextSection() const { return TextSection; }
_ZNK7llvm_ks16MCObjectFileInfo17getObjectFileTypeEv:
  339|   204k|  Environment getObjectFileType() const { return Env; }
_ZNK7llvm_ks16MCObjectFileInfo15getTargetTripleEv:
  352|    541|  const Triple &getTargetTriple() const { return TT; }

_ZN7llvm_ks16MCObjectStreamer6insertEPNS_10MCFragmentE:
   64|  50.6k|  void insert(MCFragment *F) {
   65|  50.6k|    flushPendingLabels(F);
   66|  50.6k|    MCSection *CurSection = getCurrentSectionOnly();
   67|  50.6k|    CurSection->getFragmentList().insert(CurInsertionPoint, F);
   68|  50.6k|    F->setParent(CurSection);
   69|  50.6k|  }
_ZN7llvm_ks16MCObjectStreamer12getAssemblerEv:
   87|   256k|  MCAssembler &getAssembler() { return *Assembler; }

_ZN7llvm_ks14MCObjectWriterC2ERNS_17raw_pwrite_streamEb:
   51|  13.6k|      : OS(&OS), IsLittleEndian(IsLittleEndian) {}
_ZN7llvm_ks14MCObjectWriter9getStreamEv:
   65|  89.6k|  raw_pwrite_stream &getStream() { return *OS; }
_ZN7llvm_ks14MCObjectWriter6write8Eh:
  127|  88.3M|  void write8(uint8_t Value) { *OS << char(Value); }
_ZN7llvm_ks14MCObjectWriter9writeLE16Et:
  129|      2|  void writeLE16(uint16_t Value) {
  130|      2|    support::endian::Writer<support::little>(*OS).write(Value);
  131|      2|  }
_ZN7llvm_ks14MCObjectWriter9writeLE32Ej:
  133|  6.29M|  void writeLE32(uint32_t Value) {
  134|  6.29M|    support::endian::Writer<support::little>(*OS).write(Value);
  135|  6.29M|  }
_ZN7llvm_ks14MCObjectWriter7write16Et:
  153|      2|  void write16(uint16_t Value) {
  154|      2|    if (IsLittleEndian)
  ------------------
  |  Branch (154:9): [True: 2, False: 0]
  ------------------
  155|      2|      writeLE16(Value);
  156|      0|    else
  157|      0|      writeBE16(Value);
  158|      2|  }
_ZN7llvm_ks14MCObjectWriter7write32Ej:
  160|  6.29M|  void write32(uint32_t Value) {
  161|  6.29M|    if (IsLittleEndian)
  ------------------
  |  Branch (161:9): [True: 6.29M, False: 0]
  ------------------
  162|  6.29M|      writeLE32(Value);
  163|      0|    else
  164|      0|      writeBE32(Value);
  165|  6.29M|  }
_ZN7llvm_ks14MCObjectWriter10WriteZerosEj:
  174|  5.89k|  void WriteZeros(unsigned N) {
  175|  5.89k|    const char Zeros[16] = {0};
  176|       |
  177|  5.89k|    for (unsigned i = 0, e = N / 16; i != e; ++i)
  ------------------
  |  Branch (177:38): [True: 0, False: 5.89k]
  ------------------
  178|      0|      *OS << StringRef(Zeros, 16);
  179|       |
  180|  5.89k|    *OS << StringRef(Zeros, N % 16);
  181|  5.89k|  }
_ZN7llvm_ks14MCObjectWriter10writeBytesERKNS_15SmallVectorImplIcEEj:
  184|  5.57k|                  unsigned ZeroFillSize = 0) {
  185|  5.57k|    writeBytes(StringRef(ByteVec.data(), ByteVec.size()), ZeroFillSize);
  186|  5.57k|  }
_ZN7llvm_ks14MCObjectWriter10writeBytesENS_9StringRefEj:
  188|  1.80M|  void writeBytes(StringRef Str, unsigned ZeroFillSize = 0) {
  189|       |    // TODO: this version may need to go away once all fragment contents are
  190|       |    // converted to SmallVector<char, N>
  191|  1.80M|    assert(
  ------------------
  |  Branch (191:5): [True: 1.80M, False: 0]
  |  Branch (191:5): [True: 0, False: 0]
  |  Branch (191:5): [True: 1.80M, Folded]
  |  Branch (191:5): [True: 1.80M, False: 0]
  ------------------
  192|  1.80M|        (ZeroFillSize == 0 || Str.size() <= ZeroFillSize) &&
  193|  1.80M|        "data size greater than fill size, unexpected large write will occur");
  194|  1.80M|    *OS << Str;
  195|  1.80M|    if (ZeroFillSize)
  ------------------
  |  Branch (195:9): [True: 0, False: 1.80M]
  ------------------
  196|      0|      WriteZeros(ZeroFillSize - Str.size());
  197|  1.80M|  }

_ZN7llvm_ks7AsmCondC2Ev:
   35|  13.6k|  AsmCond() : TheCond(NoCond), CondMet(false), Ignore(false) {}

_ZNK7llvm_ks8AsmLexer6getMAIEv:
   57|  33.8k|  const MCAsmInfo &getMAI() const { return MAI; }

_ZN7llvm_ks8AsmTokenC2Ev:
   65|  52.2k|  AsmToken() {}
_ZN7llvm_ks8AsmTokenC2ENS0_9TokenKindENS_9StringRefENS_5APIntE:
   67|   576k|      : Kind(Kind), Str(Str), IntVal(IntVal) {}
_ZN7llvm_ks8AsmTokenC2ENS0_9TokenKindENS_9StringRefEl:
   69|  18.8M|      : Kind(Kind), Str(Str), IntVal(64, IntVal, true) {}
_ZNK7llvm_ks8AsmToken7getKindEv:
   71|  2.49M|  TokenKind getKind() const { return Kind; }
_ZNK7llvm_ks8AsmToken2isENS0_9TokenKindE:
   72|  39.3M|  bool is(TokenKind K) const { return Kind == K; }
_ZNK7llvm_ks8AsmToken5isNotENS0_9TokenKindE:
   73|  27.4M|  bool isNot(TokenKind K) const { return Kind != K; }
_ZNK7llvm_ks8AsmToken17getStringContentsERb:
   80|  11.0k|  StringRef getStringContents(bool &valid) const {
   81|       |    //assert(Kind == String && "This token isn't a string!");
   82|  11.0k|    if (Kind != String) {
  ------------------
  |  Branch (82:9): [True: 0, False: 11.0k]
  ------------------
   83|      0|        valid = false;
   84|      0|        return nullptr;
   85|      0|    }
   86|  11.0k|    valid = true;
   87|  11.0k|    return Str.slice(1, Str.size() - 1);
   88|  11.0k|  }
_ZNK7llvm_ks8AsmToken13getIdentifierEv:
   94|  1.23M|  StringRef getIdentifier() const {
   95|  1.23M|    if (Kind == Identifier)
  ------------------
  |  Branch (95:9): [True: 1.23M, False: 5.48k]
  ------------------
   96|  1.23M|      return getString();
   97|  5.48k|    bool valid;
   98|  5.48k|    return getStringContents(valid);
   99|  1.23M|  }
_ZNK7llvm_ks8AsmToken9getStringEv:
  106|  1.80M|  StringRef getString() const { return Str; }
_ZNK7llvm_ks8AsmToken9getIntValERb:
  111|   198k|  int64_t getIntVal(bool &valid) const {
  112|       |    //assert(Kind == Integer && "This token isn't an integer!");
  113|   198k|    if (Kind != Integer) {
  ------------------
  |  Branch (113:9): [True: 0, False: 198k]
  ------------------
  114|      0|        valid = false;
  115|      0|        return -1;
  116|      0|    }
  117|   198k|    valid = true;
  118|   198k|    return IntVal.getZExtValue();
  119|   198k|  }
_ZNK7llvm_ks8AsmToken11getAPIntValERb:
  121|  1.11k|  APInt getAPIntVal(bool &valid) const {
  122|       |    //assert((Kind == Integer || Kind == BigNum) &&
  123|       |    //       "This token isn't an integer!");
  124|  1.11k|    if (Kind != Integer && Kind != BigNum) {
  ------------------
  |  Branch (124:9): [True: 345, False: 774]
  |  Branch (124:28): [True: 0, False: 345]
  ------------------
  125|      0|        valid = false;
  126|       |        //return APInt(-1);
  127|      0|    }
  128|  1.11k|    valid = true;
  129|  1.11k|    return IntVal;
  130|  1.11k|  }
_ZN7llvm_ks10MCAsmLexer8SetErrorENS_5SMLocERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  154|  21.2k|  void SetError(SMLoc errLoc, const std::string &err) {
  155|  21.2k|    ErrLoc = errLoc;
  156|  21.2k|    Err = err;
  157|  21.2k|  }
_ZN7llvm_ks10MCAsmLexer3LexEv:
  166|  19.3M|  const AsmToken &Lex() {
  167|  19.3M|    assert(!CurTok.empty());
  ------------------
  |  Branch (167:5): [True: 19.3M, False: 0]
  ------------------
  168|  19.3M|    CurTok.erase(CurTok.begin());
  169|  19.3M|    if (CurTok.empty())
  ------------------
  |  Branch (169:9): [True: 19.3M, False: 107]
  ------------------
  170|  19.3M|      CurTok.emplace_back(LexToken());
  171|  19.3M|    return CurTok.front();
  172|  19.3M|  }
_ZN7llvm_ks10MCAsmLexer5UnLexERKNS_8AsmTokenE:
  174|    107|  void UnLex(AsmToken const &Token) {
  175|    107|    CurTok.insert(CurTok.begin(), Token);
  176|    107|  }
_ZNK7llvm_ks10MCAsmLexer6getTokEv:
  184|  72.2M|  const AsmToken &getTok() const {
  185|  72.2M|    return CurTok[0];
  186|  72.2M|  }
_ZN7llvm_ks10MCAsmLexer7peekTokEb:
  189|  20.0k|  const AsmToken peekTok(bool ShouldSkipSpace = true) {
  190|  20.0k|    AsmToken Tok;
  191|       |
  192|  20.0k|    MutableArrayRef<AsmToken> Buf(Tok);
  193|  20.0k|    if (peekTokens(Buf, ShouldSkipSpace) != 1)
  ------------------
  |  Branch (193:9): [True: 5, False: 20.0k]
  ------------------
  194|      5|        return AsmToken(AsmToken::Error, nullptr);
  195|       |
  196|  20.0k|    return Tok;
  197|  20.0k|  }
_ZN7llvm_ks10MCAsmLexer9getErrLocEv:
  204|  21.2k|  SMLoc getErrLoc() {
  205|  21.2k|    return ErrLoc;
  206|  21.2k|  }
_ZN7llvm_ks10MCAsmLexer6getErrEv:
  209|  21.2k|  const std::string &getErr() {
  210|  21.2k|    return Err;
  211|  21.2k|  }
_ZNK7llvm_ks10MCAsmLexer7getKindEv:
  214|  2.48M|  AsmToken::TokenKind getKind() const { return getTok().getKind(); }
_ZNK7llvm_ks10MCAsmLexer2isENS_8AsmToken9TokenKindE:
  217|  19.9M|  bool is(AsmToken::TokenKind K) const { return getTok().is(K); }
_ZNK7llvm_ks10MCAsmLexer5isNotENS_8AsmToken9TokenKindE:
  220|  27.4M|  bool isNot(AsmToken::TokenKind K) const { return getTok().isNot(K); }
_ZN7llvm_ks10MCAsmLexer12setSkipSpaceEb:
  223|   268k|  void setSkipSpace(bool val) { SkipSpace = val; }

_ZNK7llvm_ks11MCAsmParser8getLexerEv:
   93|  22.0M|  const MCAsmLexer &getLexer() const {
   94|  22.0M|    return const_cast<MCAsmParser*>(this)->getLexer();
   95|  22.0M|  }
_ZNK7llvm_ks11MCAsmParser15getTargetParserEv:
  102|   739k|  MCTargetAsmParser &getTargetParser() const { return *TargetParser; }

_ZN7llvm_ks20MCAsmParserExtension10getContextEv:
   54|  2.28k|  MCContext &getContext() { return getParser().getContext(); }
_ZN7llvm_ks20MCAsmParserExtension8getLexerEv:
   56|   158k|  MCAsmLexer &getLexer() { return getParser().getLexer(); }
_ZN7llvm_ks20MCAsmParserExtension9getParserEv:
   61|  1.16M|  MCAsmParser &getParser() { return *Parser; }
_ZNK7llvm_ks20MCAsmParserExtension9getParserEv:
   62|  54.3k|  const MCAsmParser &getParser() const {
   63|  54.3k|    return const_cast<MCAsmParserExtension*>(this)->getParser();
   64|  54.3k|  }
_ZN7llvm_ks20MCAsmParserExtension11getStreamerEv:
   67|  12.0k|  MCStreamer &getStreamer() { return getParser().getStreamer(); }
_ZN7llvm_ks20MCAsmParserExtension7WarningENS_5SMLocERKNS_5TwineE:
   68|    925|  bool Warning(SMLoc L, const Twine &Msg) {
   69|    925|    return getParser().Warning(L, Msg);
   70|    925|  }
_ZN7llvm_ks20MCAsmParserExtension5ErrorENS_5SMLocERKNS_5TwineE:
   71|  7.35k|  bool Error(SMLoc L, const Twine &Msg) {
   72|  7.35k|    return getParser().Error(L, Msg);
   73|  7.35k|  }
_ZN7llvm_ks20MCAsmParserExtension8TokErrorERKNS_5TwineE:
   77|    178|  bool TokError(const Twine &Msg) {
   78|    178|    return getParser().TokError(Msg);
   79|    178|  }
_ZN7llvm_ks20MCAsmParserExtension3LexEv:
   81|  4.63k|  const AsmToken &Lex() { return getParser().Lex(); }
_ZNK7llvm_ks20MCAsmParserExtension21HasBracketExpressionsEv:
   85|    220|  bool HasBracketExpressions() const { return BracketExpressionsSupported; }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_18parseDirectiveDescES5_S6_EEEEbPS0_S5_S6_:
   36|     32|                              SMLoc DirectiveLoc) {
   37|     32|    T *Obj = static_cast<T*>(Target);
   38|     32|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|     32|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_18parseDirectiveLsymES5_S6_EEEEbPS0_S5_S6_:
   36|     54|                              SMLoc DirectiveLoc) {
   37|     54|    T *Obj = static_cast<T*>(Target);
   38|     54|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|     54|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_24parseDirectiveDumpOrLoadES5_S6_EEEEbPS0_S5_S6_:
   36|    833|                              SMLoc DirectiveLoc) {
   37|    833|    T *Obj = static_cast<T*>(Target);
   38|    833|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|    833|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_21parseDirectiveSectionES5_S6_EEEEbPS0_S5_S6_:
   36|    679|                              SMLoc DirectiveLoc) {
   37|    679|    T *Obj = static_cast<T*>(Target);
   38|    679|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|    679|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_18parseDirectiveTBSSES5_S6_EEEEbPS0_S5_S6_:
   36|    323|                              SMLoc DirectiveLoc) {
   37|    323|    T *Obj = static_cast<T*>(Target);
   38|    323|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|    323|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_24parseSectionDirectiveBssES5_S6_EEEEbPS0_S5_S6_:
   36|    475|                              SMLoc DirectiveLoc) {
   37|    475|    T *Obj = static_cast<T*>(Target);
   38|    475|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|    475|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_26parseSectionDirectiveConstES5_S6_EEEEbPS0_S5_S6_:
   36|     89|                              SMLoc DirectiveLoc) {
   37|     89|    T *Obj = static_cast<T*>(Target);
   38|     89|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|     89|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_25parseSectionDirectiveDataES5_S6_EEEEbPS0_S5_S6_:
   36|    614|                              SMLoc DirectiveLoc) {
   37|    614|    T *Obj = static_cast<T*>(Target);
   38|    614|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|    614|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_25parseSectionDirectiveDyldES5_S6_EEEEbPS0_S5_S6_:
   36|     10|                              SMLoc DirectiveLoc) {
   37|     10|    T *Obj = static_cast<T*>(Target);
   38|     10|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|     10|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_26parseSectionDirectiveTDataES5_S6_EEEEbPS0_S5_S6_:
   36|      1|                              SMLoc DirectiveLoc) {
   37|      1|    T *Obj = static_cast<T*>(Target);
   38|      1|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|      1|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_25parseSectionDirectiveTextES5_S6_EEEEbPS0_S5_S6_:
   36|      1|                              SMLoc DirectiveLoc) {
   37|      1|    T *Obj = static_cast<T*>(Target);
   38|      1|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|      1|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_24parseSectionDirectiveTLVES5_S6_EEEEbPS0_S5_S6_:
   36|      1|                              SMLoc DirectiveLoc) {
   37|      1|    T *Obj = static_cast<T*>(Target);
   38|      1|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|      1|  }
DarwinAsmParser.cpp:_ZN7llvm_ks20MCAsmParserExtension15HandleDirectiveIN12_GLOBAL__N_115DarwinAsmParserETnMT_FbNS_9StringRefENS_5SMLocEEXadL_ZNS3_26parseSectionDirectiveIdentES5_S6_EEEEbPS0_S5_S6_:
   36|    207|                              SMLoc DirectiveLoc) {
   37|    207|    T *Obj = static_cast<T*>(Target);
   38|    207|    return (Obj->*Handler)(Directive, DirectiveLoc);
   39|    207|  }

_ZN7llvm_ks18MCParsedAsmOperandD2Ev:
   43|  29.4k|  virtual ~MCParsedAsmOperand() {}
_ZN7llvm_ks18MCParsedAsmOperandC2Ev:
   40|  29.4k|  MCParsedAsmOperand() = default;

_ZN7llvm_ks20ParseInstructionInfoC2EPNS_15SmallVectorImplINS_10AsmRewriteEEE:
   81|  10.2k|    : AsmRewrites(rewrites) {}
_ZNK7llvm_ks17MCTargetAsmParser22getAvailableFeaturesFBEv:
  130|  27.6k|  FeatureBitset getAvailableFeaturesFB() const { return AvailableFeaturesFB; }
_ZN7llvm_ks17MCTargetAsmParser22setAvailableFeaturesFBENS_13FeatureBitsetE:
  132|  13.6k|  void setAvailableFeaturesFB(FeatureBitset Value) { AvailableFeaturesFB = Value; }
_ZNK7llvm_ks17MCTargetAsmParser16getTargetOptionsEv:
  137|  9.05k|  MCTargetOptions getTargetOptions() const { return MCOptions; }
_ZN7llvm_ks17MCTargetAsmParser16ParseInstructionERNS_20ParseInstructionInfoENS_9StringRefENS_8AsmTokenERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS6_14default_deleteIS8_EEEEEERj:
  165|  10.2k|                                AsmToken Token, OperandVector &Operands, unsigned int &ErrorCode) {
  166|  10.2k|    return ParseInstruction(Info, Name, Token.getLoc(), Operands, ErrorCode);
  167|  10.2k|  }
_ZN7llvm_ks17MCTargetAsmParser25checkTargetMatchPredicateERNS_6MCInstE:
  206|  2.43k|  virtual unsigned checkTargetMatchPredicate(MCInst &Inst) {
  207|  2.43k|    return Match_Success;
  208|  2.43k|  }
_ZN7llvm_ks17MCTargetAsmParser20equalIsAsmAssignmentEv:
  214|   174k|  virtual bool equalIsAsmAssignment() { return true; };
_ZN7llvm_ks17MCTargetAsmParser7isLabelERNS_8AsmTokenERb:
  216|    446|  virtual bool isLabel(AsmToken &Token, bool &valid) { valid = true; return true; };
_ZN7llvm_ks17MCTargetAsmParser19applyModifierToExprEPKNS_6MCExprENS_15MCSymbolRefExpr11VariantKindERNS_9MCContextE:
  220|  20.1k|                                            MCContext &Ctx) {
  221|  20.1k|    return nullptr;
  222|  20.1k|  }
_ZN7llvm_ks17MCTargetAsmParser13onLabelParsedEPNS_8MCSymbolE:
  224|    162|  virtual void onLabelParsed(MCSymbol *Symbol) { }
_ZN7llvm_ks19DiagnosticPredicateC2Eb:
  269|  1.06k|      : Type(Match ? DiagnosticPredicateTy::Match
  ------------------
  |  Branch (269:14): [True: 879, False: 185]
  ------------------
  270|  1.06k|                   : DiagnosticPredicateTy::NearMatch) {}
_ZNK7llvm_ks19DiagnosticPredicate7isMatchEv:
  275|  1.06k|  bool isMatch() const { return Type == DiagnosticPredicateTy::Match; }
_ZNK7llvm_ks19DiagnosticPredicate11isNearMatchEv:
  276|    185|  bool isNearMatch() const { return Type == DiagnosticPredicateTy::NearMatch; }

_ZNK7llvm_ks15MCRegisterClass8containsEj:
   67|    554|  bool contains(unsigned Reg) const {
   68|    554|    unsigned InByte = Reg % 8;
   69|    554|    unsigned Byte = Reg / 8;
   70|    554|    if (Byte >= RegSetSize)
  ------------------
  |  Branch (70:9): [True: 17, False: 537]
  ------------------
   71|     17|      return false;
   72|    537|    return (RegSet[Byte] & (1 << InByte)) != 0;
   73|    554|  }
_ZNK7llvm_ks14MCRegisterInfo16DwarfLLVMRegPairltES1_:
  145|  95.4k|    bool operator<(DwarfLLVMRegPair RHS) const { return FromReg < RHS.FromReg; }
_ZN7llvm_ks14MCRegisterInfo18InitMCRegisterInfoEPKNS_14MCRegisterDescEjjjPKNS_15MCRegisterClassEjPA2_KtjPS7_PKjPKcSE_SA_jPKNS0_17SubRegCoveredBitsESA_:
  256|  13.6k|                          const uint16_t *RET) {
  257|  13.6k|    Desc = D;
  258|  13.6k|    NumRegs = NR;
  259|  13.6k|    RAReg = RA;
  260|  13.6k|    PCReg = PC;
  261|  13.6k|    Classes = C;
  262|  13.6k|    DiffLists = DL;
  263|  13.6k|    RegUnitMaskSequences = RUMS;
  264|  13.6k|    RegStrings = Strings;
  265|  13.6k|    RegClassStrings = ClassStrings;
  266|  13.6k|    NumClasses = NC;
  267|  13.6k|    RegUnitRoots = RURoots;
  268|  13.6k|    NumRegUnits = NRU;
  269|  13.6k|    SubRegIndices = SubIndices;
  270|  13.6k|    NumSubRegIndices = NumIndices;
  271|  13.6k|    SubRegIdxRanges = SubIdxRanges;
  272|  13.6k|    RegEncodingTable = RET;
  273|  13.6k|  }
_ZN7llvm_ks14MCRegisterInfo22mapLLVMRegsToDwarfRegsEPKNS0_16DwarfLLVMRegPairEjb:
  279|  27.2k|                              bool isEH) {
  280|  27.2k|    if (isEH) {
  ------------------
  |  Branch (280:9): [True: 13.6k, False: 13.6k]
  ------------------
  281|  13.6k|      EHL2DwarfRegs = Map;
  282|  13.6k|      EHL2DwarfRegsSize = Size;
  283|  13.6k|    } else {
  284|  13.6k|      L2DwarfRegs = Map;
  285|  13.6k|      L2DwarfRegsSize = Size;
  286|  13.6k|    }
  287|  27.2k|  }
_ZN7llvm_ks14MCRegisterInfo22mapDwarfRegsToLLVMRegsEPKNS0_16DwarfLLVMRegPairEjb:
  293|  27.2k|                              bool isEH) {
  294|  27.2k|    if (isEH) {
  ------------------
  |  Branch (294:9): [True: 13.6k, False: 13.6k]
  ------------------
  295|  13.6k|      EHDwarf2LRegs = Map;
  296|  13.6k|      EHDwarf2LRegsSize = Size;
  297|  13.6k|    } else {
  298|  13.6k|      Dwarf2LRegs = Map;
  299|  13.6k|      Dwarf2LRegsSize = Size;
  300|  13.6k|    }
  301|  27.2k|  }
_ZNK7llvm_ks14MCRegisterInfo14regclass_beginEv:
  399|    500|  regclass_iterator regclass_begin() const { return Classes; }
_ZNK7llvm_ks14MCRegisterInfo12regclass_endEv:
  400|    500|  regclass_iterator regclass_end() const { return Classes+NumClasses; }
_ZNK7llvm_ks14MCRegisterInfo16getNumRegClassesEv:
  402|    500|  unsigned getNumRegClasses() const {
  403|    500|    return (unsigned)(regclass_end()-regclass_begin());
  404|    500|  }
_ZNK7llvm_ks14MCRegisterInfo11getRegClassEj:
  408|    500|  const MCRegisterClass& getRegClass(unsigned i) const {
  409|    500|    assert(i < getNumRegClasses() && "Register Class ID out of range");
  ------------------
  |  Branch (409:5): [True: 500, False: 0]
  |  Branch (409:5): [True: 500, Folded]
  |  Branch (409:5): [True: 500, False: 0]
  ------------------
  410|    500|    return Classes[i];
  411|    500|  }
_ZNK7llvm_ks14MCRegisterInfo16getEncodingValueEj:
  418|    308|  uint16_t getEncodingValue(unsigned RegNo) const {
  419|    308|    assert(RegNo < NumRegs &&
  ------------------
  |  Branch (419:5): [True: 308, False: 0]
  |  Branch (419:5): [True: 308, Folded]
  |  Branch (419:5): [True: 308, False: 0]
  ------------------
  420|    308|           "Attempting to get encoding for invalid register number!");
  421|    308|    return RegEncodingTable[RegNo];
  422|    308|  }

_ZN7llvm_ks17ilist_node_traitsINS_10MCFragmentEE13addNodeToListEPS1_:
   40|  55.0k|  void addNodeToList(MCFragment *) {}
_ZN7llvm_ks17ilist_node_traitsINS_10MCFragmentEE18removeNodeFromListEPS1_:
   41|  55.0k|  void removeNodeFromList(MCFragment *) {}
_ZNK7llvm_ks9MCSection10getVariantEv:
  113|  11.5k|  SectionVariant getVariant() const { return Variant; }
_ZN7llvm_ks9MCSection14getBeginSymbolEv:
  115|  29.0k|  MCSymbol *getBeginSymbol() { return Begin; }
_ZN7llvm_ks9MCSection14setBeginSymbolEPNS_8MCSymbolE:
  119|  13.9k|  void setBeginSymbol(MCSymbol *Sym) {
  120|  13.9k|    assert(!Begin);
  ------------------
  |  Branch (120:5): [True: 13.9k, False: 0]
  ------------------
  121|  13.9k|    Begin = Sym;
  122|  13.9k|  }
_ZNK7llvm_ks9MCSection12getAlignmentEv:
  126|  13.9k|  unsigned getAlignment() const { return Alignment; }
_ZN7llvm_ks9MCSection12setAlignmentEj:
  127|    499|  void setAlignment(unsigned Value) { Alignment = Value; }
_ZN7llvm_ks9MCSection10setOrdinalEj:
  130|  6.29k|  void setOrdinal(unsigned Value) { Ordinal = Value; }
_ZN7llvm_ks9MCSection14setLayoutOrderEj:
  133|  6.29k|  void setLayoutOrder(unsigned Value) { LayoutOrder = Value; }
_ZNK7llvm_ks9MCSection14isBundleLockedEv:
  137|  57.9k|  bool isBundleLocked() const { return BundleLockState != NotBundleLocked; }
_ZN7llvm_ks9MCSection18setHasInstructionsEb:
  147|  1.21k|  void setHasInstructions(bool Value) { HasInstructions = Value; }
_ZNK7llvm_ks9MCSection12isRegisteredEv:
  149|  14.5k|  bool isRegistered() const { return IsRegistered; }
_ZN7llvm_ks9MCSection15setIsRegisteredEb:
  150|  13.9k|  void setIsRegistered(bool Value) { IsRegistered = Value; }
_ZN7llvm_ks9MCSection15getFragmentListEv:
  152|  33.4M|  MCSection::FragmentListType &getFragmentList() { return Fragments; }
_ZN7llvm_ks9MCSection16getSublistAccessEPNS_10MCFragmentE:
  158|  50.3k|  static FragmentListType MCSection::*getSublistAccess(MCFragment *) {
  159|  50.3k|    return &MCSection::Fragments;
  160|  50.3k|  }
_ZN7llvm_ks9MCSection16getDummyFragmentEv:
  163|  69.2k|  MCDummyFragment &getDummyFragment() { return DummyFragment; }
_ZNK7llvm_ks9MCSection5beginEv:
  166|  5.89k|  MCSection::const_iterator begin() const {
  167|  5.89k|    return const_cast<MCSection *>(this)->begin();
  168|  5.89k|  }
_ZNK7llvm_ks9MCSection3endEv:
  171|  5.89k|  MCSection::const_iterator end() const {
  172|  5.89k|    return const_cast<MCSection *>(this)->end();
  173|  5.89k|  }

_ZNK7llvm_ks12MCSectionELF14getSectionNameEv:
   74|  31.3k|  StringRef getSectionName() const { return SectionName; }
_ZNK7llvm_ks12MCSectionELF8getGroupEv:
   78|  20.5k|  const MCSymbolELF *getGroup() const { return Group; }
_ZN7llvm_ks12MCSectionELFC2ENS_9StringRefEjjNS_11SectionKindEjPKNS_11MCSymbolELFEjPNS_8MCSymbolEPKS0_:
   58|   592k|      : MCSection(SV_ELF, K, Begin), SectionName(Section), Type(type),
   59|   592k|        Flags(flags), UniqueID(UniqueID), EntrySize(entrySize), Group(group),
   60|   592k|        Associated(Associated) {
   61|   592k|    if (Group)
  ------------------
  |  Branch (61:9): [True: 0, False: 592k]
  ------------------
   62|      0|      Group->setIsSignature();
   63|   592k|  }
_ZNK7llvm_ks12MCSectionELF7getTypeEv:
   75|  17.9k|  unsigned getType() const { return Type; }
_ZNK7llvm_ks12MCSectionELF8getFlagsEv:
   76|  81.9k|  unsigned getFlags() const { return Flags; }
_ZN7llvm_ks12MCSectionELF7classofEPKNS_9MCSectionE:
   90|  11.5k|  static bool classof(const MCSection *S) {
   91|  11.5k|    return S->getVariant() == SV_ELF;
   92|  11.5k|  }

_ZNK7llvm_ks14MCSectionMachO7getTypeEv:
   58|  1.72k|  MachO::SectionType getType() const {
   59|  1.72k|    return static_cast<MachO::SectionType>(TypeAndAttributes &
   60|  1.72k|                                           MachO::SECTION_TYPE);
   61|  1.72k|  }
_ZNK7llvm_ks14MCSectionMachO12hasAttributeEj:
   62|     73|  bool hasAttribute(unsigned Value) const {
   63|     73|    return (TypeAndAttributes & Value) != 0;
   64|     73|  }

_ZNK7llvm_ks10MCStreamer14setSymResolverEPv:
  201|  13.6k|  void setSymResolver(void *h) const { KsSymResolver = h; }
_ZNK7llvm_ks10MCStreamer14getSymResolverEv:
  202|  6.07k|  void *getSymResolver() const { return KsSymResolver; }
_ZN7llvm_ks10MCStreamer17setTargetStreamerEPNS_16MCTargetStreamerE:
  207|  13.6k|  void setTargetStreamer(MCTargetStreamer *TS) {
  208|  13.6k|    TargetStreamer.reset(TS);
  209|  13.6k|  }
_ZNK7llvm_ks10MCStreamer10getContextEv:
  215|  30.2k|  MCContext &getContext() const { return Context; }
_ZN7llvm_ks10MCStreamer17getTargetStreamerEv:
  217|  94.4k|  MCTargetStreamer *getTargetStreamer() {
  218|  94.4k|    return TargetStreamer.get();
  219|  94.4k|  }
_ZN7llvm_ks10MCStreamer19getNumWinFrameInfosEv:
  226|  13.6k|  unsigned getNumWinFrameInfos() { return WinFrameInfos.size(); }
_ZN7llvm_ks10MCStreamer12AddBlankLineEv:
  275|  9.13M|  virtual void AddBlankLine() {}
_ZNK7llvm_ks10MCStreamer17getCurrentSectionEv:
  283|  67.2M|  MCSectionSubPair getCurrentSection() const {
  284|  67.2M|    if (!SectionStack.empty())
  ------------------
  |  Branch (284:9): [True: 67.2M, False: 0]
  ------------------
  285|  67.2M|      return SectionStack.back().first;
  286|      0|    return MCSectionSubPair();
  287|  67.2M|  }
_ZNK7llvm_ks10MCStreamer21getCurrentSectionOnlyEv:
  288|  67.1M|  MCSection *getCurrentSectionOnly() const { return getCurrentSection().first; }

_ZNK7llvm_ks15MCSubtargetInfo15getTargetTripleEv:
   54|  68.1k|  const Triple &getTargetTriple() const { return TargetTriple; }
_ZNK7llvm_ks15MCSubtargetInfo14getFeatureBitsEv:
   63|  84.1k|  const FeatureBitset& getFeatureBits() const {
   64|  84.1k|    return FeatureBits;
   65|  84.1k|  }
_ZNK7llvm_ks15MCSubtargetInfo10hasFeatureEj:
   73|  43.7k|  bool hasFeature(unsigned Feature) const {
   74|  43.7k|    return FeatureBits[Feature];
   75|  43.7k|  }

_ZN7llvm_ks8MCSymbolC2ENS0_10SymbolKindEPKNS_14StringMapEntryIbEEb:
  150|   218k|      : IsTemporary(isTemporary), IsRedefinable(false), IsUsed(false),
  151|   218k|        IsRegistered(false), IsExternal(false), IsPrivateExtern(false),
  152|   218k|        Kind(Kind), IsUsedInReloc(false), SymbolContents(SymContentsUnset),
  153|   218k|        CommonAlignLog2(0), Flags(0) {
  154|   218k|    Offset = 0;
  155|   218k|    FragmentAndHasName.setInt(!!Name);
  156|   218k|    if (Name)
  ------------------
  |  Branch (156:9): [True: 218k, False: 0]
  ------------------
  157|   218k|      getNameEntryPtr() = Name;
  158|   218k|  }
_ZNK7llvm_ks8MCSymbol13getSectionPtrEb:
  179|  16.1k|  MCSection *getSectionPtr(bool SetUsed = true) const {
  180|  16.1k|    if (MCFragment *F = getFragment(SetUsed)) {
  ------------------
  |  Branch (180:21): [True: 16.1k, False: 0]
  ------------------
  181|  16.1k|      assert(F != AbsolutePseudoFragment);
  ------------------
  |  Branch (181:7): [True: 16.1k, False: 0]
  ------------------
  182|  16.1k|      return F->getParent();
  183|  16.1k|    }
  184|      0|    return nullptr;
  185|  16.1k|  }
_ZN7llvm_ks8MCSymbol15getNameEntryPtrEv:
  188|   220k|  const StringMapEntry<bool> *&getNameEntryPtr() {
  189|   220k|    assert(FragmentAndHasName.getInt() && "Name is required");
  ------------------
  |  Branch (189:5): [True: 220k, False: 0]
  |  Branch (189:5): [True: 220k, Folded]
  |  Branch (189:5): [True: 220k, False: 0]
  ------------------
  190|   220k|    NameEntryStorageTy *Name = reinterpret_cast<NameEntryStorageTy *>(this);
  191|   220k|    return (*(Name - 1)).NameEntry;
  192|   220k|  }
_ZNK7llvm_ks8MCSymbol15getNameEntryPtrEv:
  193|  2.23k|  const StringMapEntry<bool> *&getNameEntryPtr() const {
  194|  2.23k|    return const_cast<MCSymbol*>(this)->getNameEntryPtr();
  195|  2.23k|  }
_ZNK7llvm_ks8MCSymbol7getNameEv:
  199|  2.23k|  StringRef getName() const {
  200|  2.23k|    if (!FragmentAndHasName.getInt())
  ------------------
  |  Branch (200:9): [True: 0, False: 2.23k]
  ------------------
  201|      0|      return StringRef();
  202|       |
  203|  2.23k|    return getNameEntryPtr()->first();
  204|  2.23k|  }
_ZNK7llvm_ks8MCSymbol12isRegisteredEv:
  206|   216k|  bool isRegistered() const { return IsRegistered; }
_ZNK7llvm_ks8MCSymbol15setIsRegisteredEb:
  207|  74.8k|  void setIsRegistered(bool Value) const { IsRegistered = Value; }
_ZNK7llvm_ks8MCSymbol14setUsedInRelocEv:
  209|  4.76k|  void setUsedInReloc() const { IsUsedInReloc = true; }
_ZNK7llvm_ks8MCSymbol13isUsedInRelocEv:
  210|    320|  bool isUsedInReloc() const { return IsUsedInReloc; }
_ZNK7llvm_ks8MCSymbol11isTemporaryEv:
  216|     73|  bool isTemporary() const { return IsTemporary; }
_ZNK7llvm_ks8MCSymbol6isUsedEv:
  219|  31.1k|  bool isUsed() const { return IsUsed; }
_ZN7llvm_ks8MCSymbol14setRedefinableEb:
  225|  21.3k|  void setRedefinable(bool Value) { IsRedefinable = Value; }
_ZN7llvm_ks8MCSymbol18redefineIfPossibleEv:
  227|    166|  void redefineIfPossible() {
  228|    166|    if (IsRedefinable) {
  ------------------
  |  Branch (228:9): [True: 4, False: 162]
  ------------------
  229|      4|      if (SymbolContents == SymContentsVariable) {
  ------------------
  |  Branch (229:11): [True: 3, False: 1]
  ------------------
  230|      3|        Value = nullptr;
  231|      3|        SymbolContents = SymContentsUnset;
  232|      3|      }
  233|      4|      setUndefined();
  234|      4|      IsRedefinable = false;
  235|      4|    }
  236|    166|  }
_ZNK7llvm_ks8MCSymbol9isDefinedEb:
  245|   256k|  bool isDefined(bool SetUsed = true) const {
  246|   256k|    return getFragment(SetUsed) != nullptr;
  247|   256k|  }
_ZNK7llvm_ks8MCSymbol11isInSectionEb:
  251|  51.6k|  bool isInSection(bool SetUsed = true) const {
  252|  51.6k|    return isDefined(SetUsed) && !isAbsolute(SetUsed);
  ------------------
  |  Branch (252:12): [True: 36.4k, False: 15.2k]
  |  Branch (252:34): [True: 35.9k, False: 488]
  ------------------
  253|  51.6k|  }
_ZNK7llvm_ks8MCSymbol11isUndefinedEb:
  256|   191k|  bool isUndefined(bool SetUsed = true) const { return !isDefined(SetUsed); }
_ZNK7llvm_ks8MCSymbol10isAbsoluteEb:
  259|  37.2k|  bool isAbsolute(bool SetUsed = true) const {
  260|  37.2k|    return getFragment(SetUsed) == AbsolutePseudoFragment;
  261|  37.2k|  }
_ZNK7llvm_ks8MCSymbol10getSectionEb:
  264|  16.1k|  MCSection &getSection(bool SetUsed = true) const {
  265|  16.1k|    assert(isInSection(SetUsed) && "Invalid accessor!");
  ------------------
  |  Branch (265:5): [True: 16.1k, False: 0]
  |  Branch (265:5): [True: 16.1k, Folded]
  |  Branch (265:5): [True: 16.1k, False: 0]
  ------------------
  266|  16.1k|    return *getSectionPtr(SetUsed);
  267|  16.1k|  }
_ZNK7llvm_ks8MCSymbol11setFragmentEPNS_10MCFragmentE:
  270|   129k|  void setFragment(MCFragment *F) const {
  271|   129k|    assert(!isVariable() && "Cannot set fragment of variable");
  ------------------
  |  Branch (271:5): [True: 129k, False: 0]
  |  Branch (271:5): [True: 129k, Folded]
  |  Branch (271:5): [True: 129k, False: 0]
  ------------------
  272|   129k|    FragmentAndHasName.setPointer(F);
  273|   129k|  }
_ZN7llvm_ks8MCSymbol12setUndefinedEv:
  276|  19.1k|  void setUndefined() { FragmentAndHasName.setPointer(nullptr); }
_ZNK7llvm_ks8MCSymbol5isELFEv:
  278|   165k|  bool isELF() const { return Kind == SymbolKindELF; }
_ZNK7llvm_ks8MCSymbol10isVariableEv:
  289|  1.01M|  bool isVariable() const {
  290|  1.01M|    return SymbolContents == SymContentsVariable;
  291|  1.01M|  }
_ZNK7llvm_ks8MCSymbol16getVariableValueEb:
  294|  55.4k|  const MCExpr *getVariableValue(bool SetUsed = true) const {
  295|  55.4k|    assert(isVariable() && "Invalid accessor!");
  ------------------
  |  Branch (295:5): [True: 55.4k, False: 0]
  |  Branch (295:5): [True: 55.4k, Folded]
  |  Branch (295:5): [True: 55.4k, False: 0]
  ------------------
  296|  55.4k|    IsUsed |= SetUsed;
  297|  55.4k|    return Value;
  298|  55.4k|  }
_ZNK7llvm_ks8MCSymbol9getOffsetEv:
  314|  23.0k|  uint64_t getOffset() const {
  315|  23.0k|    assert((SymbolContents == SymContentsUnset ||
  ------------------
  |  Branch (315:5): [True: 150, False: 22.9k]
  |  Branch (315:5): [True: 22.9k, False: 0]
  |  Branch (315:5): [True: 23.0k, Folded]
  |  Branch (315:5): [True: 23.0k, False: 0]
  ------------------
  316|  23.0k|            SymbolContents == SymContentsOffset) &&
  317|  23.0k|           "Cannot get offset for a common/variable symbol");
  318|  23.0k|    return Offset;
  319|  23.0k|  }
_ZN7llvm_ks8MCSymbol9setOffsetEm:
  320|  60.4k|  void setOffset(uint64_t Value) {
  321|  60.4k|    assert((SymbolContents == SymContentsUnset ||
  ------------------
  |  Branch (321:5): [True: 60.4k, False: 0]
  |  Branch (321:5): [True: 0, False: 0]
  |  Branch (321:5): [True: 60.4k, Folded]
  |  Branch (321:5): [True: 60.4k, False: 0]
  ------------------
  322|  60.4k|            SymbolContents == SymContentsOffset) &&
  323|  60.4k|           "Cannot set offset for a common/variable symbol");
  324|  60.4k|    Offset = Value;
  325|  60.4k|    SymbolContents = SymContentsOffset;
  326|  60.4k|  }
_ZN7llvm_ks8MCSymbol9setCommonEmj:
  338|     75|  void setCommon(uint64_t Size, unsigned Align) {
  339|     75|    assert(getOffset() == 0);
  ------------------
  |  Branch (339:5): [True: 75, False: 0]
  ------------------
  340|     75|    CommonSize = Size;
  341|     75|    SymbolContents = SymContentsCommon;
  342|       |
  343|     75|    assert((!Align || isPowerOf2_32(Align)) &&
  ------------------
  |  Branch (343:5): [True: 0, False: 75]
  |  Branch (343:5): [True: 75, False: 0]
  |  Branch (343:5): [True: 75, Folded]
  |  Branch (343:5): [True: 75, False: 0]
  ------------------
  344|     75|           "Alignment must be a power of 2");
  345|     75|    unsigned Log2Align = Log2_32(Align) + 1;
  346|     75|    assert(Log2Align < (1U << NumCommonAlignmentBits) &&
  ------------------
  |  Branch (346:5): [True: 75, False: 0]
  |  Branch (346:5): [True: 75, Folded]
  |  Branch (346:5): [True: 75, False: 0]
  ------------------
  347|     75|           "Out of range alignment");
  348|     75|    CommonAlignLog2 = Log2Align;
  349|     75|  }
_ZNK7llvm_ks8MCSymbol18getCommonAlignmentEv:
  352|    689|  unsigned getCommonAlignment() const {
  353|    689|    assert(isCommon() && "Not a 'common' symbol!");
  ------------------
  |  Branch (353:5): [True: 689, False: 0]
  |  Branch (353:5): [True: 689, Folded]
  |  Branch (353:5): [True: 689, False: 0]
  ------------------
  354|    689|    return CommonAlignLog2 ? (1U << (CommonAlignLog2 - 1)) : 0;
  ------------------
  |  Branch (354:12): [True: 689, False: 0]
  ------------------
  355|    689|  }
_ZN7llvm_ks8MCSymbol13declareCommonEmj:
  362|    764|  bool declareCommon(uint64_t Size, unsigned Align) {
  363|    764|    assert(isCommon() || getOffset() == 0);
  ------------------
  |  Branch (363:5): [True: 689, False: 75]
  |  Branch (363:5): [True: 75, False: 0]
  |  Branch (363:5): [True: 764, False: 0]
  ------------------
  364|    764|    if(isCommon()) {
  ------------------
  |  Branch (364:8): [True: 689, False: 75]
  ------------------
  365|    689|      if(CommonSize != Size || getCommonAlignment() != Align)
  ------------------
  |  Branch (365:10): [True: 0, False: 689]
  |  Branch (365:32): [True: 0, False: 689]
  ------------------
  366|      0|       return true;
  367|    689|    } else
  368|     75|      setCommon(Size, Align);
  369|    764|    return false;
  370|    764|  }
_ZNK7llvm_ks8MCSymbol8isCommonEv:
  373|  2.21k|  bool isCommon() const {
  374|  2.21k|    return SymbolContents == SymContentsCommon;
  375|  2.21k|  }
_ZNK7llvm_ks8MCSymbol11getFragmentEb:
  377|   479k|  MCFragment *getFragment(bool SetUsed = true) const {
  378|   479k|    MCFragment *Fragment = FragmentAndHasName.getPointer();
  379|   479k|    if (Fragment || !isVariable())
  ------------------
  |  Branch (379:9): [True: 250k, False: 228k]
  |  Branch (379:21): [True: 207k, False: 20.7k]
  ------------------
  380|   458k|      return Fragment;
  381|  20.7k|    Fragment = getVariableValue(SetUsed)->findAssociatedFragment();
  382|  20.7k|    FragmentAndHasName.setPointer(Fragment);
  383|  20.7k|    return Fragment;
  384|   479k|  }
_ZNK7llvm_ks8MCSymbol10isExternalEv:
  386|    604|  bool isExternal() const { return IsExternal; }
_ZNK7llvm_ks8MCSymbol11setExternalEb:
  387|    811|  void setExternal(bool Value) const { IsExternal = Value; }
_ZNK7llvm_ks8MCSymbol8getFlagsEv:
  400|  30.6k|  uint32_t getFlags() const { return Flags; }
_ZNK7llvm_ks8MCSymbol8setFlagsEj:
  403|  21.7k|  void setFlags(uint32_t Value) const {
  404|  21.7k|    assert(Value < (1U << NumFlagsBits) && "Out of range flags");
  ------------------
  |  Branch (404:5): [True: 21.7k, False: 0]
  |  Branch (404:5): [True: 21.7k, Folded]
  |  Branch (404:5): [True: 21.7k, False: 0]
  ------------------
  405|  21.7k|    Flags = Value;
  406|  21.7k|  }

_ZN7llvm_ks11MCSymbolELFC2EPKNS_14StringMapEntryIbEEb:
   22|   218k|      : MCSymbol(SymbolKindELF, Name, isTemporary) {}
_ZN7llvm_ks11MCSymbolELF7classofEPKNS_8MCSymbolE:
   47|   165k|  static bool classof(const MCSymbol *S) { return S->isELF(); }
_ZN7llvm_ks11MCSymbolELF7setSizeEPKNS_6MCExprE:
   23|    827|  void setSize(const MCExpr *SS) { SymbolSize = SS; }

ks.cpp:_ZL28InitMCTargetOptionsFromFlagsv:
   34|  13.6k|static inline MCTargetOptions InitMCTargetOptionsFromFlags() {
   35|  13.6k|  MCTargetOptions Options;
   36|  13.6k|  Options.MCRelaxAll = RelaxAll;
   37|  13.6k|  Options.DwarfVersion = DwarfVersion;
   38|  13.6k|  Options.ABIName = ABIName;
   39|  13.6k|  Options.MCFatalWarnings = FatalWarnings;
   40|  13.6k|  Options.MCNoWarn = NoWarn;
   41|  13.6k|  return Options;
   42|  13.6k|}

_ZNK7llvm_ks7MCValue11getConstantEv:
   46|   672k|  int64_t getConstant() const { return Cst; }
_ZNK7llvm_ks7MCValue7getSymAEv:
   47|   406k|  const MCSymbolRefExpr *getSymA() const { return SymA; }
_ZNK7llvm_ks7MCValue7getSymBEv:
   48|   338k|  const MCSymbolRefExpr *getSymB() const { return SymB; }
_ZNK7llvm_ks7MCValue10isAbsoluteEv:
   52|   444k|  bool isAbsolute() const { return !SymA && !SymB; }
  ------------------
  |  Branch (52:36): [True: 200k, False: 244k]
  |  Branch (52:45): [True: 196k, False: 4.29k]
  ------------------
_ZN7llvm_ks7MCValue3getEPKNS_15MCSymbolRefExprES3_lj:
   64|   396k|                     int64_t Val = 0, uint32_t RefKind = 0) {
   65|   396k|    MCValue R;
   66|   396k|    R.Cst = Val;
   67|   396k|    R.SymA = SymA;
   68|   396k|    R.SymB = SymB;
   69|   396k|    R.RefKind = RefKind;
   70|   396k|    return R;
   71|   396k|  }
_ZN7llvm_ks7MCValue3getEl:
   73|   271k|  static MCValue get(int64_t Val) {
   74|   271k|    MCValue R;
   75|   271k|    R.Cst = Val;
   76|   271k|    R.SymA = nullptr;
   77|   271k|    R.SymB = nullptr;
   78|   271k|    R.RefKind = 0;
   79|   271k|    return R;
   80|   271k|  }

_ZN7llvm_ks11SectionKind3getENS0_4KindE:
  161|   593k|  static SectionKind get(Kind K) {
  162|   593k|    SectionKind Res;
  163|   593k|    Res.K = K;
  164|   593k|    return Res;
  165|   593k|  }
_ZN7llvm_ks11SectionKind7getTextEv:
  169|  13.6k|  static SectionKind getText() { return get(Text); }
_ZN7llvm_ks11SectionKind11getReadOnlyEv:
  170|   578k|  static SectionKind getReadOnly() { return get(ReadOnly); }
_ZN7llvm_ks11SectionKind7getDataEv:
  189|  1.72k|  static SectionKind getData() { return get(Data); }

_ZNK7llvm_ks18StringTableBuilder11isFinalizedEv:
   64|  11.3k|  bool isFinalized() const {
   65|  11.3k|    return !StringTable.empty();
   66|  11.3k|  }

_ZN7llvm_ks13FeatureBitsetC2Ev:
   37|  63.7k|  FeatureBitset() : bitset() {}
_ZN7llvm_ks13FeatureBitsetC2ERKNSt3__16bitsetILm128EEE:
   39|      3|  FeatureBitset(const bitset<MAX_SUBTARGET_FEATURES>& B) : bitset(B) {}
_ZN7llvm_ks13FeatureBitsetC2ESt16initializer_listIjE:
   41|  1.44k|  FeatureBitset(std::initializer_list<unsigned> Init) : bitset() {
   42|  1.44k|    for (auto I : Init)
  ------------------
  |  Branch (42:17): [True: 3.58k, False: 1.44k]
  ------------------
   43|  3.58k|      set(I);
   44|  1.44k|  }
_ZNK7llvm_ks18SubtargetFeatureKVltENS_9StringRefE:
   59|  27.2k|  bool operator<(StringRef S) const {
   60|  27.2k|    return StringRef(Key) < S;
   61|  27.2k|  }
_ZNK7llvm_ks18SubtargetFeatureKVltERKS0_:
   64|   109k|  bool operator<(const SubtargetFeatureKV &Other) const {
   65|   109k|    return StringRef(Key) < StringRef(Other.Key);
   66|   109k|  }
_ZNK7llvm_ks15SubtargetInfoKVltENS_9StringRefE:
   79|  27.2k|  bool operator<(StringRef S) const {
   80|  27.2k|    return StringRef(Key) < S;
   81|  27.2k|  }

_ZN7llvm_ks7alignOfINS_12MCSectionELFEEEjv:
  106|   109k|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
_ZN7llvm_ks7alignOfINS_14MCSectionMachOEEEjv:
  106|    700|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
_ZN7llvm_ks7alignOfINS_14StringMapEntryIPNS_8MCSymbolEEEEEjv:
  106|  26.8k|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
_ZN7llvm_ks7alignOfINS_14StringMapEntryIbEEEEjv:
  106|   218k|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
_ZN7llvm_ks7alignOfINS_14StringMapEntryIjEEEEjv:
  106|   150k|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
_ZN7llvm_ks7alignOfINS_14StringMapEntryIPNS_14MCSectionMachOEEEEEjv:
  106|    302|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
_ZN7llvm_ks7alignOfINS_14StringMapEntryINSt3__14pairIPNS_20MCAsmParserExtensionEPFbS5_NS_9StringRefENS_5SMLocEEEEEEEEjv:
  106|   899k|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
AsmParser.cpp:_ZN7llvm_ks7alignOfINS_14StringMapEntryIN12_GLOBAL__N_19AsmParser13DirectiveKindEEEEEjv:
  106|  1.71M|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
AsmParser.cpp:_ZN7llvm_ks7alignOfINS_14StringMapEntryIN12_GLOBAL__N_110MCAsmMacroEEEEEjv:
  106|    735|inline unsigned alignOf() { return AlignOf<T>::Alignment; }
_ZN7llvm_ks7alignOfINS_8MCSymbol18NameEntryStorageTyEEEjv:
  106|   218k|inline unsigned alignOf() { return AlignOf<T>::Alignment; }

_ZN7llvm_ks15MallocAllocator8AllocateEmm:
   94|  2.82M|                                                size_t /*Alignment*/) {
   95|  2.82M|    return malloc(Size);
   96|  2.82M|  }
_ZN7llvm_ks15MallocAllocator10DeallocateEPKvm:
  101|  2.82M|  void Deallocate(const void *Ptr, size_t /*Size*/) {
  102|  2.82M|    free(const_cast<void *>(Ptr));
  103|  2.82M|  }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EE8AllocateEmm:
  209|  1.84M|  Allocate(size_t Size, size_t Alignment) {
  210|  1.84M|    assert(Alignment > 0 && "0-byte alignnment is not allowed. Use 1 instead.");
  ------------------
  |  Branch (210:5): [True: 1.84M, False: 0]
  |  Branch (210:5): [True: 1.84M, Folded]
  |  Branch (210:5): [True: 1.84M, False: 0]
  ------------------
  211|       |
  212|       |    // Keep track of how many bytes we've allocated.
  213|  1.84M|    BytesAllocated += Size;
  214|       |
  215|  1.84M|    size_t Adjustment = alignmentAdjustment(CurPtr, Alignment);
  216|  1.84M|    assert(Adjustment + Size >= Size && "Adjustment + Size must not overflow");
  ------------------
  |  Branch (216:5): [True: 1.84M, False: 0]
  |  Branch (216:5): [True: 1.84M, Folded]
  |  Branch (216:5): [True: 1.84M, False: 0]
  ------------------
  217|       |
  218|       |    // Check if we have enough space.
  219|  1.84M|    if (Adjustment + Size <= size_t(End - CurPtr)) {
  ------------------
  |  Branch (219:9): [True: 1.79M, False: 58.1k]
  ------------------
  220|  1.79M|      char *AlignedPtr = CurPtr + Adjustment;
  221|  1.79M|      CurPtr = AlignedPtr + Size;
  222|       |      // Update the allocation point of this memory block in MemorySanitizer.
  223|       |      // Without this, MemorySanitizer messages for values originated from here
  224|       |      // will point to the allocation of the entire slab.
  225|  1.79M|      __msan_allocated_memory(AlignedPtr, Size);
  226|       |      // Similarly, tell ASan about this space.
  227|  1.79M|      __asan_unpoison_memory_region(AlignedPtr, Size);
  228|  1.79M|      return AlignedPtr;
  229|  1.79M|    }
  230|       |
  231|       |    // If Size is really big, allocate a separate slab for it.
  232|  58.1k|    size_t PaddedSize = Size + Alignment - 1;
  233|  58.1k|    if (PaddedSize > SizeThreshold) {
  ------------------
  |  Branch (233:9): [True: 8, False: 58.1k]
  ------------------
  234|      8|      void *NewSlab = Allocator.Allocate(PaddedSize, 0);
  235|       |      // We own the new slab and don't want anyone reading anyting other than
  236|       |      // pieces returned from this method.  So poison the whole slab.
  237|      8|      __asan_poison_memory_region(NewSlab, PaddedSize);
  238|      8|      CustomSizedSlabs.push_back(std::make_pair(NewSlab, PaddedSize));
  239|       |
  240|      8|      uintptr_t AlignedAddr = alignAddr(NewSlab, Alignment);
  241|      8|      assert(AlignedAddr + Size <= (uintptr_t)NewSlab + PaddedSize);
  ------------------
  |  Branch (241:7): [True: 8, False: 0]
  ------------------
  242|      8|      char *AlignedPtr = (char*)AlignedAddr;
  243|      8|      __msan_allocated_memory(AlignedPtr, Size);
  244|      8|      __asan_unpoison_memory_region(AlignedPtr, Size);
  245|      8|      return AlignedPtr;
  246|      8|    }
  247|       |
  248|       |    // Otherwise, start a new slab and try again.
  249|  58.1k|    StartNewSlab();
  250|  58.1k|    uintptr_t AlignedAddr = alignAddr(CurPtr, Alignment);
  251|  58.1k|    assert(AlignedAddr + Size <= (uintptr_t)End &&
  ------------------
  |  Branch (251:5): [True: 58.1k, False: 0]
  |  Branch (251:5): [True: 58.1k, Folded]
  |  Branch (251:5): [True: 58.1k, False: 0]
  ------------------
  252|  58.1k|           "Unable to allocate memory!");
  253|  58.1k|    char *AlignedPtr = (char*)AlignedAddr;
  254|  58.1k|    CurPtr = AlignedPtr + Size;
  255|  58.1k|    __msan_allocated_memory(AlignedPtr, Size);
  256|  58.1k|    __asan_unpoison_memory_region(AlignedPtr, Size);
  257|  58.1k|    return AlignedPtr;
  258|  58.1k|  }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EE12StartNewSlabEv:
  319|  58.1k|  void StartNewSlab() {
  320|  58.1k|    size_t AllocatedSlabSize = computeSlabSize(Slabs.size());
  321|       |
  322|  58.1k|    void *NewSlab = Allocator.Allocate(AllocatedSlabSize, 0);
  323|       |    // We own the new slab and don't want anyone reading anything other than
  324|       |    // pieces returned from this method.  So poison the whole slab.
  325|  58.1k|    __asan_poison_memory_region(NewSlab, AllocatedSlabSize);
  326|       |
  327|  58.1k|    Slabs.push_back(NewSlab);
  328|  58.1k|    CurPtr = (char *)(NewSlab);
  329|  58.1k|    End = ((char *)NewSlab) + AllocatedSlabSize;
  330|  58.1k|  }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EE15computeSlabSizeEj:
  309|   171k|  static size_t computeSlabSize(unsigned SlabIdx) {
  310|       |    // Scale the actual allocated slab size based on the number of slabs
  311|       |    // allocated. Every 128 slabs allocated, we double the allocated size to
  312|       |    // reduce allocation frequency, but saturate at multiplying the slab size by
  313|       |    // 2^30.
  314|   171k|    return SlabSize * ((size_t)1 << std::min<size_t>(30, SlabIdx / 128));
  315|   171k|  }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEC2Ev:
  145|  81.7k|      : CurPtr(nullptr), End(nullptr), BytesAllocated(0), Allocator() {}
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_13MCSectionCOFFEEC2Ev:
  367|  13.6k|  SpecificBumpPtrAllocator() : Allocator() {}
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_12MCSectionELFEEC2Ev:
  367|  13.6k|  SpecificBumpPtrAllocator() : Allocator() {}
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_14MCSectionMachOEEC2Ev:
  367|  13.6k|  SpecificBumpPtrAllocator() : Allocator() {}
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_15MCSubtargetInfoEEC2Ev:
  367|  13.6k|  SpecificBumpPtrAllocator() : Allocator() {}
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EED2Ev:
  164|  81.7k|  ~BumpPtrAllocatorImpl() {
  165|  81.7k|    DeallocateSlabs(Slabs.begin(), Slabs.end());
  166|  81.7k|    DeallocateCustomSizedSlabs();
  167|  81.7k|  }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EE15DeallocateSlabsEPPvS4_:
  334|   123k|                       SmallVectorImpl<void *>::iterator E) {
  335|   181k|    for (; I != E; ++I) {
  ------------------
  |  Branch (335:12): [True: 58.1k, False: 123k]
  ------------------
  336|  58.1k|      size_t AllocatedSlabSize =
  337|  58.1k|          computeSlabSize(std::distance(Slabs.begin(), I));
  338|  58.1k|      Allocator.Deallocate(*I, AllocatedSlabSize);
  339|  58.1k|    }
  340|   123k|  }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EE26DeallocateCustomSizedSlabsEv:
  343|   204k|  void DeallocateCustomSizedSlabs() {
  344|   204k|    for (auto &PtrAndSize : CustomSizedSlabs) {
  ------------------
  |  Branch (344:27): [True: 8, False: 204k]
  ------------------
  345|      8|      void *Ptr = PtrAndSize.first;
  346|      8|      size_t Size = PtrAndSize.second;
  347|      8|      Allocator.Deallocate(Ptr, Size);
  348|      8|    }
  349|   204k|  }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_13MCSectionCOFFEED2Ev:
  370|  13.6k|  ~SpecificBumpPtrAllocator() { DestroyAll(); }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_12MCSectionELFEED2Ev:
  370|  13.6k|  ~SpecificBumpPtrAllocator() { DestroyAll(); }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_14MCSectionMachOEED2Ev:
  370|  13.6k|  ~SpecificBumpPtrAllocator() { DestroyAll(); }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EE10DeallocateEPKvm:
  263|   245k|  void Deallocate(const void *Ptr, size_t Size) {
  264|   245k|    __asan_poison_memory_region(Ptr, Size);
  265|   245k|  }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_15MCSubtargetInfoEED2Ev:
  370|  13.6k|  ~SpecificBumpPtrAllocator() { DestroyAll(); }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_13MCSectionCOFFEE10DestroyAllEv:
  380|  27.2k|  void DestroyAll() {
  381|  27.2k|    auto DestroyElements = [](char *Begin, char *End) {
  382|  27.2k|      assert(Begin == (char*)alignAddr(Begin, alignOf<T>()));
  383|  27.2k|      for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  384|  27.2k|        reinterpret_cast<T *>(Ptr)->~T();
  385|  27.2k|    };
  386|       |
  387|  27.2k|    for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E;
  ------------------
  |  Branch (387:71): [True: 0, False: 27.2k]
  ------------------
  388|  27.2k|         ++I) {
  389|      0|      size_t AllocatedSlabSize = BumpPtrAllocator::computeSlabSize(
  390|      0|          std::distance(Allocator.Slabs.begin(), I));
  391|      0|      char *Begin = (char*)alignAddr(*I, alignOf<T>());
  392|      0|      char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
  ------------------
  |  Branch (392:19): [True: 0, False: 0]
  ------------------
  393|      0|                                               : (char *)*I + AllocatedSlabSize;
  394|       |
  395|      0|      DestroyElements(Begin, End);
  396|      0|    }
  397|       |
  398|  27.2k|    for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
  ------------------
  |  Branch (398:27): [True: 0, False: 27.2k]
  ------------------
  399|      0|      void *Ptr = PtrAndSize.first;
  400|      0|      size_t Size = PtrAndSize.second;
  401|      0|      DestroyElements((char*)alignAddr(Ptr, alignOf<T>()), (char *)Ptr + Size);
  402|      0|    }
  403|       |
  404|  27.2k|    Allocator.Reset();
  405|  27.2k|  }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_12MCSectionELFEE10DestroyAllEv:
  380|  27.2k|  void DestroyAll() {
  381|  27.2k|    auto DestroyElements = [](char *Begin, char *End) {
  382|  27.2k|      assert(Begin == (char*)alignAddr(Begin, alignOf<T>()));
  383|  27.2k|      for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  384|  27.2k|        reinterpret_cast<T *>(Ptr)->~T();
  385|  27.2k|    };
  386|       |
  387|  81.7k|    for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E;
  ------------------
  |  Branch (387:71): [True: 54.5k, False: 27.2k]
  ------------------
  388|  54.5k|         ++I) {
  389|  54.5k|      size_t AllocatedSlabSize = BumpPtrAllocator::computeSlabSize(
  390|  54.5k|          std::distance(Allocator.Slabs.begin(), I));
  391|  54.5k|      char *Begin = (char*)alignAddr(*I, alignOf<T>());
  392|  54.5k|      char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
  ------------------
  |  Branch (392:19): [True: 27.2k, False: 27.2k]
  ------------------
  393|  54.5k|                                               : (char *)*I + AllocatedSlabSize;
  394|       |
  395|  54.5k|      DestroyElements(Begin, End);
  396|  54.5k|    }
  397|       |
  398|  27.2k|    for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
  ------------------
  |  Branch (398:27): [True: 0, False: 27.2k]
  ------------------
  399|      0|      void *Ptr = PtrAndSize.first;
  400|      0|      size_t Size = PtrAndSize.second;
  401|      0|      DestroyElements((char*)alignAddr(Ptr, alignOf<T>()), (char *)Ptr + Size);
  402|      0|    }
  403|       |
  404|  27.2k|    Allocator.Reset();
  405|  27.2k|  }
_ZZN7llvm_ks24SpecificBumpPtrAllocatorINS_12MCSectionELFEE10DestroyAllEvENKUlPcS3_E_clES3_S3_:
  381|  54.5k|    auto DestroyElements = [](char *Begin, char *End) {
  382|  54.5k|      assert(Begin == (char*)alignAddr(Begin, alignOf<T>()));
  ------------------
  |  Branch (382:7): [True: 54.5k, False: 0]
  ------------------
  383|   646k|      for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  ------------------
  |  Branch (383:31): [True: 592k, False: 54.5k]
  ------------------
  384|   592k|        reinterpret_cast<T *>(Ptr)->~T();
  385|  54.5k|    };
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_14MCSectionMachOEE10DestroyAllEv:
  380|  27.2k|  void DestroyAll() {
  381|  27.2k|    auto DestroyElements = [](char *Begin, char *End) {
  382|  27.2k|      assert(Begin == (char*)alignAddr(Begin, alignOf<T>()));
  383|  27.2k|      for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  384|  27.2k|        reinterpret_cast<T *>(Ptr)->~T();
  385|  27.2k|    };
  386|       |
  387|  27.6k|    for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E;
  ------------------
  |  Branch (387:71): [True: 350, False: 27.2k]
  ------------------
  388|  27.2k|         ++I) {
  389|    350|      size_t AllocatedSlabSize = BumpPtrAllocator::computeSlabSize(
  390|    350|          std::distance(Allocator.Slabs.begin(), I));
  391|    350|      char *Begin = (char*)alignAddr(*I, alignOf<T>());
  392|    350|      char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
  ------------------
  |  Branch (392:19): [True: 350, False: 0]
  ------------------
  393|    350|                                               : (char *)*I + AllocatedSlabSize;
  394|       |
  395|    350|      DestroyElements(Begin, End);
  396|    350|    }
  397|       |
  398|  27.2k|    for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
  ------------------
  |  Branch (398:27): [True: 0, False: 27.2k]
  ------------------
  399|      0|      void *Ptr = PtrAndSize.first;
  400|      0|      size_t Size = PtrAndSize.second;
  401|      0|      DestroyElements((char*)alignAddr(Ptr, alignOf<T>()), (char *)Ptr + Size);
  402|      0|    }
  403|       |
  404|  27.2k|    Allocator.Reset();
  405|  27.2k|  }
_ZZN7llvm_ks24SpecificBumpPtrAllocatorINS_14MCSectionMachOEE10DestroyAllEvENKUlPcS3_E_clES3_S3_:
  381|    350|    auto DestroyElements = [](char *Begin, char *End) {
  382|    350|      assert(Begin == (char*)alignAddr(Begin, alignOf<T>()));
  ------------------
  |  Branch (382:7): [True: 350, False: 0]
  ------------------
  383|    652|      for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  ------------------
  |  Branch (383:31): [True: 302, False: 350]
  ------------------
  384|    302|        reinterpret_cast<T *>(Ptr)->~T();
  385|    350|    };
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_15MCSubtargetInfoEE10DestroyAllEv:
  380|  27.2k|  void DestroyAll() {
  381|  27.2k|    auto DestroyElements = [](char *Begin, char *End) {
  382|  27.2k|      assert(Begin == (char*)alignAddr(Begin, alignOf<T>()));
  383|  27.2k|      for (char *Ptr = Begin; Ptr + sizeof(T) <= End; Ptr += sizeof(T))
  384|  27.2k|        reinterpret_cast<T *>(Ptr)->~T();
  385|  27.2k|    };
  386|       |
  387|  27.2k|    for (auto I = Allocator.Slabs.begin(), E = Allocator.Slabs.end(); I != E;
  ------------------
  |  Branch (387:71): [True: 0, False: 27.2k]
  ------------------
  388|  27.2k|         ++I) {
  389|      0|      size_t AllocatedSlabSize = BumpPtrAllocator::computeSlabSize(
  390|      0|          std::distance(Allocator.Slabs.begin(), I));
  391|      0|      char *Begin = (char*)alignAddr(*I, alignOf<T>());
  392|      0|      char *End = *I == Allocator.Slabs.back() ? Allocator.CurPtr
  ------------------
  |  Branch (392:19): [True: 0, False: 0]
  ------------------
  393|      0|                                               : (char *)*I + AllocatedSlabSize;
  394|       |
  395|      0|      DestroyElements(Begin, End);
  396|      0|    }
  397|       |
  398|  27.2k|    for (auto &PtrAndSize : Allocator.CustomSizedSlabs) {
  ------------------
  |  Branch (398:27): [True: 0, False: 27.2k]
  ------------------
  399|      0|      void *Ptr = PtrAndSize.first;
  400|      0|      size_t Size = PtrAndSize.second;
  401|      0|      DestroyElements((char*)alignAddr(Ptr, alignOf<T>()), (char *)Ptr + Size);
  402|      0|    }
  403|       |
  404|  27.2k|    Allocator.Reset();
  405|  27.2k|  }
_ZN7llvm_ks20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EE5ResetEv:
  189|   122k|  void Reset() {
  190|       |    // Deallocate all but the first slab, and deallocate all custom-sized slabs.
  191|   122k|    DeallocateCustomSizedSlabs();
  192|   122k|    CustomSizedSlabs.clear();
  193|       |
  194|   122k|    if (Slabs.empty())
  ------------------
  |  Branch (194:9): [True: 81.4k, False: 41.2k]
  ------------------
  195|  81.4k|      return;
  196|       |
  197|       |    // Reset the state.
  198|  41.2k|    BytesAllocated = 0;
  199|  41.2k|    CurPtr = (char *)Slabs.front();
  200|  41.2k|    End = CurPtr + SlabSize;
  201|       |
  202|  41.2k|    __asan_poison_memory_region(*Slabs.begin(), computeSlabSize(0));
  203|  41.2k|    DeallocateSlabs(std::next(Slabs.begin()), Slabs.end());
  204|  41.2k|    Slabs.erase(std::next(Slabs.begin()), Slabs.end());
  205|  41.2k|  }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_14MCSectionMachOEE8AllocateEm:
  408|    302|  T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
_ZN7llvm_ks13AllocatorBaseINS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE8AllocateINS_14MCSectionMachOEEEPT_m:
   76|    302|  template <typename T> T *Allocate(size_t Num = 1) {
   77|    302|    return static_cast<T *>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment));
   78|    302|  }
_ZN7llvm_ks13AllocatorBaseINS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE8AllocateEmm:
   46|   592k|  void *Allocate(size_t Size, size_t Alignment) {
   47|   592k|#ifdef __clang__
   48|   592k|    static_assert(static_cast<void *(AllocatorBase::*)(size_t, size_t)>(
   49|   592k|                      &AllocatorBase::Allocate) !=
   50|   592k|                      static_cast<void *(DerivedT::*)(size_t, size_t)>(
   51|   592k|                          &DerivedT::Allocate),
   52|   592k|                  "Class derives from AllocatorBase without implementing the "
   53|   592k|                  "core Allocate(size_t, size_t) overload!");
   54|   592k|#endif
   55|   592k|    return static_cast<DerivedT *>(this)->Allocate(Size, Alignment);
   56|   592k|  }
_ZN7llvm_ks24SpecificBumpPtrAllocatorINS_12MCSectionELFEE8AllocateEm:
  408|   592k|  T *Allocate(size_t num = 1) { return Allocator.Allocate<T>(num); }
_ZN7llvm_ks13AllocatorBaseINS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEEE8AllocateINS_12MCSectionELFEEEPT_m:
   76|   592k|  template <typename T> T *Allocate(size_t Num = 1) {
   77|   592k|    return static_cast<T *>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment));
   78|   592k|  }

_ZN7llvm_ks4castINS_11MCSymbolELFENS_8MCSymbolEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  70.8k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  70.8k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 70.8k, False: 0]
  |  Branch (237:3): [True: 70.8k, Folded]
  |  Branch (237:3): [True: 70.8k, False: 0]
  ------------------
  238|  70.8k|  return cast_convert_val<X, Y*,
  239|  70.8k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  70.8k|}
_ZN7llvm_ks3isaINS_11MCSymbolELFEPNS_8MCSymbolEEEbRKT0_:
  132|  71.4k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  71.4k|  return isa_impl_wrap<X, const Y,
  134|  71.4k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  71.4k|}
_ZN7llvm_ks13isa_impl_wrapINS_11MCSymbolELFEKPNS_8MCSymbolEPKS2_E4doitERS4_:
  111|  71.4k|  static bool doit(const From &Val) {
  112|  71.4k|    return isa_impl_wrap<To, SimpleFrom,
  113|  71.4k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  71.4k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  71.4k|  }
_ZN7llvm_ks13isa_impl_wrapINS_11MCSymbolELFEPKNS_8MCSymbolES4_E4doitERKS4_:
  121|  85.7k|  static bool doit(const FromTy &Val) {
  122|  85.7k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  85.7k|  }
_ZN7llvm_ks11isa_impl_clINS_11MCSymbolELFEPKNS_8MCSymbolEE4doitES4_:
   94|  85.7k|  static inline bool doit(const From *Val) {
   95|  85.7k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 85.7k, False: 0]
  |  Branch (95:5): [True: 85.7k, Folded]
  |  Branch (95:5): [True: 85.7k, False: 0]
  ------------------
   96|  85.7k|    return isa_impl<To, From>::doit(*Val);
   97|  85.7k|  }
_ZN7llvm_ks8isa_implINS_11MCSymbolELFENS_8MCSymbolEvE4doitERKS2_:
   55|   165k|  static inline bool doit(const From &Val) {
   56|   165k|    return To::classof(&Val);
   57|   165k|  }
_ZN7llvm_ks13simplify_typeIKPNS_8MCSymbolEE18getSimplifiedValueERS3_:
   45|  71.4k|  static RetType getSimplifiedValue(const From& Val) {
   46|  71.4k|    return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
   47|  71.4k|  }
_ZN7llvm_ks13simplify_typeIPNS_8MCSymbolEE18getSimplifiedValueERS2_:
   36|  71.4k|  static SimpleType &getSimplifiedValue(From &Val) { return Val; }
_ZN7llvm_ks16cast_convert_valINS_11MCSymbolELFEPNS_8MCSymbolES3_E4doitERKS3_:
  200|  70.8k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  70.8k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  70.8k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  70.8k|    return Res2;
  204|  70.8k|  }
_ZN7llvm_ks12cast_or_nullINS_11MCSymbolELFENS_8MCSymbolEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  267|  14.5k|cast_or_null(Y *Val) {
  268|  14.5k|  if (!Val) return nullptr;
  ------------------
  |  Branch (268:7): [True: 13.9k, False: 563]
  ------------------
  269|  14.5k|  assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (269:3): [True: 563, False: 0]
  |  Branch (269:3): [True: 563, Folded]
  |  Branch (269:3): [True: 563, False: 0]
  ------------------
  270|    563|  return cast<X>(Val);
  271|    563|}
_ZN7llvm_ks4castINS_11MCSymbolELFES1_EENS_10cast_rettyIT_PT0_E8ret_typeES5_:
  236|    827|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|    827|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 827, False: 0]
  |  Branch (237:3): [True: 827, Folded]
  |  Branch (237:3): [True: 827, False: 0]
  ------------------
  238|    827|  return cast_convert_val<X, Y*,
  239|    827|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|    827|}
_ZN7llvm_ks3isaINS_11MCSymbolELFEPS1_EEbRKT0_:
  132|    827|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|    827|  return isa_impl_wrap<X, const Y,
  134|    827|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|    827|}
_ZN7llvm_ks13isa_impl_wrapINS_11MCSymbolELFEKPS1_PKS1_E4doitERS3_:
  111|    827|  static bool doit(const From &Val) {
  112|    827|    return isa_impl_wrap<To, SimpleFrom,
  113|    827|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|    827|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|    827|  }
_ZN7llvm_ks13isa_impl_wrapINS_11MCSymbolELFEPKS1_S3_E4doitERKS3_:
  121|    827|  static bool doit(const FromTy &Val) {
  122|    827|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|    827|  }
_ZN7llvm_ks11isa_impl_clINS_11MCSymbolELFEPKS1_E4doitES3_:
   94|    827|  static inline bool doit(const From *Val) {
   95|    827|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 827, False: 0]
  |  Branch (95:5): [True: 827, Folded]
  |  Branch (95:5): [True: 827, False: 0]
  ------------------
   96|    827|    return isa_impl<To, From>::doit(*Val);
   97|    827|  }
_ZN7llvm_ks8isa_implINS_11MCSymbolELFES1_vE4doitERKS1_:
   64|    827|  static inline bool doit(const From &) { return true; }
_ZN7llvm_ks13simplify_typeIKPNS_11MCSymbolELFEE18getSimplifiedValueERS3_:
   45|    827|  static RetType getSimplifiedValue(const From& Val) {
   46|    827|    return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
   47|    827|  }
_ZN7llvm_ks13simplify_typeIPNS_11MCSymbolELFEE18getSimplifiedValueERS2_:
   36|    827|  static SimpleType &getSimplifiedValue(From &Val) { return Val; }
_ZN7llvm_ks16cast_convert_valINS_11MCSymbolELFEPS1_S2_E4doitERKS2_:
  200|    827|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|    827|    typename cast_retty<To, FromTy>::ret_type Res2
  202|    827|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|    827|    return Res2;
  204|    827|  }
_ZN7llvm_ks4castINS_12MCTargetExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  236|     13|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|     13|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 13, False: 0]
  |  Branch (237:3): [True: 13, Folded]
  |  Branch (237:3): [True: 13, False: 0]
  ------------------
  238|     13|  return cast_convert_val<X, Y*,
  239|     13|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|     13|}
_ZN7llvm_ks3isaINS_12MCTargetExprEPKNS_6MCExprEEEbRKT0_:
  132|     13|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|     13|  return isa_impl_wrap<X, const Y,
  134|     13|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|     13|}
_ZN7llvm_ks13isa_impl_wrapINS_12MCTargetExprEKPKNS_6MCExprES4_E4doitERS5_:
  111|     13|  static bool doit(const From &Val) {
  112|     13|    return isa_impl_wrap<To, SimpleFrom,
  113|     13|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|     13|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|     13|  }
_ZN7llvm_ks13isa_impl_wrapINS_12MCTargetExprEPKNS_6MCExprES4_E4doitERKS4_:
  121|     13|  static bool doit(const FromTy &Val) {
  122|     13|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|     13|  }
_ZN7llvm_ks11isa_impl_clINS_12MCTargetExprEPKNS_6MCExprEE4doitES4_:
   94|     13|  static inline bool doit(const From *Val) {
   95|     13|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 13, False: 0]
  |  Branch (95:5): [True: 13, Folded]
  |  Branch (95:5): [True: 13, False: 0]
  ------------------
   96|     13|    return isa_impl<To, From>::doit(*Val);
   97|     13|  }
_ZN7llvm_ks8isa_implINS_12MCTargetExprENS_6MCExprEvE4doitERKS2_:
   55|     23|  static inline bool doit(const From &Val) {
   56|     23|    return To::classof(&Val);
   57|     23|  }
_ZN7llvm_ks13simplify_typeIKPKNS_6MCExprEE18getSimplifiedValueERS4_:
   45|  1.73M|  static RetType getSimplifiedValue(const From& Val) {
   46|  1.73M|    return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
   47|  1.73M|  }
_ZN7llvm_ks13simplify_typeIPKNS_6MCExprEE18getSimplifiedValueERS3_:
   36|  1.73M|  static SimpleType &getSimplifiedValue(From &Val) { return Val; }
_ZN7llvm_ks16cast_convert_valINS_12MCTargetExprEPKNS_6MCExprES4_E4doitERKS4_:
  200|     13|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|     13|    typename cast_retty<To, FromTy>::ret_type Res2
  202|     13|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|     13|    return Res2;
  204|     13|  }
_ZN7llvm_ks4castINS_12MCBinaryExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  236|   308k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|   308k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 308k, False: 0]
  |  Branch (237:3): [True: 308k, Folded]
  |  Branch (237:3): [True: 308k, False: 0]
  ------------------
  238|   308k|  return cast_convert_val<X, Y*,
  239|   308k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|   308k|}
_ZN7llvm_ks3isaINS_12MCBinaryExprEPKNS_6MCExprEEEbRKT0_:
  132|   308k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|   308k|  return isa_impl_wrap<X, const Y,
  134|   308k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|   308k|}
_ZN7llvm_ks13isa_impl_wrapINS_12MCBinaryExprEKPKNS_6MCExprES4_E4doitERS5_:
  111|   308k|  static bool doit(const From &Val) {
  112|   308k|    return isa_impl_wrap<To, SimpleFrom,
  113|   308k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|   308k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|   308k|  }
_ZN7llvm_ks13isa_impl_wrapINS_12MCBinaryExprEPKNS_6MCExprES4_E4doitERKS4_:
  121|   308k|  static bool doit(const FromTy &Val) {
  122|   308k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|   308k|  }
_ZN7llvm_ks11isa_impl_clINS_12MCBinaryExprEPKNS_6MCExprEE4doitES4_:
   94|   308k|  static inline bool doit(const From *Val) {
   95|   308k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 308k, False: 0]
  |  Branch (95:5): [True: 308k, Folded]
  |  Branch (95:5): [True: 308k, False: 0]
  ------------------
   96|   308k|    return isa_impl<To, From>::doit(*Val);
   97|   308k|  }
_ZN7llvm_ks8isa_implINS_12MCBinaryExprENS_6MCExprEvE4doitERKS2_:
   55|   381k|  static inline bool doit(const From &Val) {
   56|   381k|    return To::classof(&Val);
   57|   381k|  }
_ZN7llvm_ks16cast_convert_valINS_12MCBinaryExprEPKNS_6MCExprES4_E4doitERKS4_:
  200|   308k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|   308k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|   308k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|   308k|    return Res2;
  204|   308k|  }
_ZN7llvm_ks4castINS_15MCSymbolRefExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  236|   376k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|   376k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 376k, False: 0]
  |  Branch (237:3): [True: 376k, Folded]
  |  Branch (237:3): [True: 376k, False: 0]
  ------------------
  238|   376k|  return cast_convert_val<X, Y*,
  239|   376k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|   376k|}
_ZN7llvm_ks3isaINS_15MCSymbolRefExprEPKNS_6MCExprEEEbRKT0_:
  132|   391k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|   391k|  return isa_impl_wrap<X, const Y,
  134|   391k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|   391k|}
_ZN7llvm_ks13isa_impl_wrapINS_15MCSymbolRefExprEKPKNS_6MCExprES4_E4doitERS5_:
  111|   391k|  static bool doit(const From &Val) {
  112|   391k|    return isa_impl_wrap<To, SimpleFrom,
  113|   391k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|   391k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|   391k|  }
_ZN7llvm_ks13isa_impl_wrapINS_15MCSymbolRefExprEPKNS_6MCExprES4_E4doitERKS4_:
  121|   391k|  static bool doit(const FromTy &Val) {
  122|   391k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|   391k|  }
_ZN7llvm_ks11isa_impl_clINS_15MCSymbolRefExprEPKNS_6MCExprEE4doitES4_:
   94|   391k|  static inline bool doit(const From *Val) {
   95|   391k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 391k, False: 0]
  |  Branch (95:5): [True: 391k, Folded]
  |  Branch (95:5): [True: 391k, False: 0]
  ------------------
   96|   391k|    return isa_impl<To, From>::doit(*Val);
   97|   391k|  }
_ZN7llvm_ks8isa_implINS_15MCSymbolRefExprENS_6MCExprEvE4doitERKS2_:
   55|   497k|  static inline bool doit(const From &Val) {
   56|   497k|    return To::classof(&Val);
   57|   497k|  }
_ZN7llvm_ks16cast_convert_valINS_15MCSymbolRefExprEPKNS_6MCExprES4_E4doitERKS4_:
  200|   376k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|   376k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|   376k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|   376k|    return Res2;
  204|   376k|  }
_ZN7llvm_ks4castINS_11MCSymbolELFEKNS_8MCSymbolEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  79.8k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  79.8k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 79.8k, False: 0]
  |  Branch (230:3): [True: 79.8k, Folded]
  |  Branch (230:3): [True: 79.8k, False: 0]
  ------------------
  231|  79.8k|  return cast_convert_val<X, Y,
  232|  79.8k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  79.8k|}
_ZN7llvm_ks3isaINS_11MCSymbolELFENS_8MCSymbolEEEbRKT0_:
  132|  79.8k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  79.8k|  return isa_impl_wrap<X, const Y,
  134|  79.8k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  79.8k|}
_ZN7llvm_ks13isa_impl_wrapINS_11MCSymbolELFEKNS_8MCSymbolES3_E4doitERS3_:
  121|  79.8k|  static bool doit(const FromTy &Val) {
  122|  79.8k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  79.8k|  }
_ZN7llvm_ks11isa_impl_clINS_11MCSymbolELFEKNS_8MCSymbolEE4doitERS3_:
   74|  79.8k|  static inline bool doit(const From &Val) {
   75|  79.8k|    return isa_impl<To, From>::doit(Val);
   76|  79.8k|  }
_ZN7llvm_ks16cast_convert_valINS_11MCSymbolELFEKNS_8MCSymbolES3_E4doitERS3_:
  200|  79.8k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  79.8k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  79.8k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  79.8k|    return Res2;
  204|  79.8k|  }
_ZN7llvm_ks4castINS_11MCUnaryExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  236|   179k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|   179k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 179k, False: 0]
  |  Branch (237:3): [True: 179k, Folded]
  |  Branch (237:3): [True: 179k, False: 0]
  ------------------
  238|   179k|  return cast_convert_val<X, Y*,
  239|   179k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|   179k|}
_ZN7llvm_ks3isaINS_11MCUnaryExprEPKNS_6MCExprEEEbRKT0_:
  132|   179k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|   179k|  return isa_impl_wrap<X, const Y,
  134|   179k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|   179k|}
_ZN7llvm_ks13isa_impl_wrapINS_11MCUnaryExprEKPKNS_6MCExprES4_E4doitERS5_:
  111|   179k|  static bool doit(const From &Val) {
  112|   179k|    return isa_impl_wrap<To, SimpleFrom,
  113|   179k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|   179k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|   179k|  }
_ZN7llvm_ks13isa_impl_wrapINS_11MCUnaryExprEPKNS_6MCExprES4_E4doitERKS4_:
  121|   179k|  static bool doit(const FromTy &Val) {
  122|   179k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|   179k|  }
_ZN7llvm_ks11isa_impl_clINS_11MCUnaryExprEPKNS_6MCExprEE4doitES4_:
   94|   179k|  static inline bool doit(const From *Val) {
   95|   179k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 179k, False: 0]
  |  Branch (95:5): [True: 179k, Folded]
  |  Branch (95:5): [True: 179k, False: 0]
  ------------------
   96|   179k|    return isa_impl<To, From>::doit(*Val);
   97|   179k|  }
_ZN7llvm_ks8isa_implINS_11MCUnaryExprENS_6MCExprEvE4doitERKS2_:
   55|   213k|  static inline bool doit(const From &Val) {
   56|   213k|    return To::classof(&Val);
   57|   213k|  }
_ZN7llvm_ks16cast_convert_valINS_11MCUnaryExprEPKNS_6MCExprES4_E4doitERKS4_:
  200|   179k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|   179k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|   179k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|   179k|    return Res2;
  204|   179k|  }
_ZN7llvm_ks4castINS_19MCRelaxableFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  1.35k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  1.35k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 1.35k, False: 0]
  |  Branch (237:3): [True: 1.35k, Folded]
  |  Branch (237:3): [True: 1.35k, False: 0]
  ------------------
  238|  1.35k|  return cast_convert_val<X, Y*,
  239|  1.35k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  1.35k|}
_ZN7llvm_ks3isaINS_19MCRelaxableFragmentEPNS_10MCFragmentEEEbRKT0_:
  132|  1.35k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  1.35k|  return isa_impl_wrap<X, const Y,
  134|  1.35k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  1.35k|}
_ZN7llvm_ks13isa_impl_wrapINS_19MCRelaxableFragmentEKPNS_10MCFragmentEPKS2_E4doitERS4_:
  111|  1.35k|  static bool doit(const From &Val) {
  112|  1.35k|    return isa_impl_wrap<To, SimpleFrom,
  113|  1.35k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  1.35k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  1.35k|  }
_ZN7llvm_ks13isa_impl_wrapINS_19MCRelaxableFragmentEPKNS_10MCFragmentES4_E4doitERKS4_:
  121|  1.35k|  static bool doit(const FromTy &Val) {
  122|  1.35k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  1.35k|  }
_ZN7llvm_ks11isa_impl_clINS_19MCRelaxableFragmentEPKNS_10MCFragmentEE4doitES4_:
   94|  1.35k|  static inline bool doit(const From *Val) {
   95|  1.35k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 1.35k, False: 0]
  |  Branch (95:5): [True: 1.35k, Folded]
  |  Branch (95:5): [True: 1.35k, False: 0]
  ------------------
   96|  1.35k|    return isa_impl<To, From>::doit(*Val);
   97|  1.35k|  }
_ZN7llvm_ks8isa_implINS_19MCRelaxableFragmentENS_10MCFragmentEvE4doitERKS2_:
   55|  2.97k|  static inline bool doit(const From &Val) {
   56|  2.97k|    return To::classof(&Val);
   57|  2.97k|  }
_ZN7llvm_ks13simplify_typeIKPNS_10MCFragmentEE18getSimplifiedValueERS3_:
   45|  65.9M|  static RetType getSimplifiedValue(const From& Val) {
   46|  65.9M|    return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
   47|  65.9M|  }
_ZN7llvm_ks13simplify_typeIPNS_10MCFragmentEE18getSimplifiedValueERS2_:
   36|  65.9M|  static SimpleType &getSimplifiedValue(From &Val) { return Val; }
_ZN7llvm_ks16cast_convert_valINS_19MCRelaxableFragmentEPNS_10MCFragmentES3_E4doitERKS3_:
  200|  1.83k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  1.83k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  1.83k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  1.83k|    return Res2;
  204|  1.83k|  }
_ZN7llvm_ks4castINS_14MCDataFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  32.9M|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  32.9M|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 32.9M, False: 0]
  |  Branch (237:3): [True: 32.9M, Folded]
  |  Branch (237:3): [True: 32.9M, False: 0]
  ------------------
  238|  32.9M|  return cast_convert_val<X, Y*,
  239|  32.9M|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  32.9M|}
_ZN7llvm_ks3isaINS_14MCDataFragmentEPNS_10MCFragmentEEEbRKT0_:
  132|  65.8M|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  65.8M|  return isa_impl_wrap<X, const Y,
  134|  65.8M|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  65.8M|}
_ZN7llvm_ks13isa_impl_wrapINS_14MCDataFragmentEKPNS_10MCFragmentEPKS2_E4doitERS4_:
  111|  65.8M|  static bool doit(const From &Val) {
  112|  65.8M|    return isa_impl_wrap<To, SimpleFrom,
  113|  65.8M|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  65.8M|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  65.8M|  }
_ZN7llvm_ks13isa_impl_wrapINS_14MCDataFragmentEPKNS_10MCFragmentES4_E4doitERKS4_:
  121|  65.8M|  static bool doit(const FromTy &Val) {
  122|  65.8M|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  65.8M|  }
_ZN7llvm_ks11isa_impl_clINS_14MCDataFragmentEPKNS_10MCFragmentEE4doitES4_:
   94|  65.8M|  static inline bool doit(const From *Val) {
   95|  65.8M|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 65.8M, False: 0]
  |  Branch (95:5): [True: 65.8M, Folded]
  |  Branch (95:5): [True: 65.8M, False: 0]
  ------------------
   96|  65.8M|    return isa_impl<To, From>::doit(*Val);
   97|  65.8M|  }
_ZN7llvm_ks8isa_implINS_14MCDataFragmentENS_10MCFragmentEvE4doitERKS2_:
   55|  65.8M|  static inline bool doit(const From &Val) {
   56|  65.8M|    return To::classof(&Val);
   57|  65.8M|  }
_ZN7llvm_ks16cast_convert_valINS_14MCDataFragmentEPNS_10MCFragmentES3_E4doitERKS3_:
  200|  32.9M|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  32.9M|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  32.9M|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  32.9M|    return Res2;
  204|  32.9M|  }
_ZN7llvm_ks8dyn_castINS_15MCSymbolRefExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  297|  14.2k|dyn_cast(Y *Val) {
  298|  14.2k|  return isa<X>(Val) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (298:10): [True: 10.3k, False: 3.97k]
  ------------------
  299|  14.2k|}
_ZN7llvm_ks8isa_implINS_14MCConstantExprENS_6MCExprEvE4doitERKS2_:
   55|   848k|  static inline bool doit(const From &Val) {
   56|   848k|    return To::classof(&Val);
   57|   848k|  }
_ZN7llvm_ks4castINS_15MCSymbolRefExprEKNS_6MCExprEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|   105k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|   105k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 105k, False: 0]
  |  Branch (230:3): [True: 105k, Folded]
  |  Branch (230:3): [True: 105k, False: 0]
  ------------------
  231|   105k|  return cast_convert_val<X, Y,
  232|   105k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|   105k|}
_ZN7llvm_ks3isaINS_15MCSymbolRefExprENS_6MCExprEEEbRKT0_:
  132|   105k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|   105k|  return isa_impl_wrap<X, const Y,
  134|   105k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|   105k|}
_ZN7llvm_ks13isa_impl_wrapINS_15MCSymbolRefExprEKNS_6MCExprES3_E4doitERS3_:
  121|   105k|  static bool doit(const FromTy &Val) {
  122|   105k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|   105k|  }
_ZN7llvm_ks11isa_impl_clINS_15MCSymbolRefExprEKNS_6MCExprEE4doitERS3_:
   74|   105k|  static inline bool doit(const From &Val) {
   75|   105k|    return isa_impl<To, From>::doit(Val);
   76|   105k|  }
_ZN7llvm_ks16cast_convert_valINS_15MCSymbolRefExprEKNS_6MCExprES3_E4doitERS3_:
  200|   105k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|   105k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|   105k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|   105k|    return Res2;
  204|   105k|  }
_ZN7llvm_ks4castINS_11MCUnaryExprEKNS_6MCExprEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  33.5k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  33.5k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 33.5k, False: 0]
  |  Branch (230:3): [True: 33.5k, Folded]
  |  Branch (230:3): [True: 33.5k, False: 0]
  ------------------
  231|  33.5k|  return cast_convert_val<X, Y,
  232|  33.5k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  33.5k|}
_ZN7llvm_ks3isaINS_11MCUnaryExprENS_6MCExprEEEbRKT0_:
  132|  33.5k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  33.5k|  return isa_impl_wrap<X, const Y,
  134|  33.5k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  33.5k|}
_ZN7llvm_ks13isa_impl_wrapINS_11MCUnaryExprEKNS_6MCExprES3_E4doitERS3_:
  121|  33.5k|  static bool doit(const FromTy &Val) {
  122|  33.5k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  33.5k|  }
_ZN7llvm_ks11isa_impl_clINS_11MCUnaryExprEKNS_6MCExprEE4doitERS3_:
   74|  33.5k|  static inline bool doit(const From &Val) {
   75|  33.5k|    return isa_impl<To, From>::doit(Val);
   76|  33.5k|  }
_ZN7llvm_ks16cast_convert_valINS_11MCUnaryExprEKNS_6MCExprES3_E4doitERS3_:
  200|  33.5k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  33.5k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  33.5k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  33.5k|    return Res2;
  204|  33.5k|  }
_ZN7llvm_ks4castINS_12MCBinaryExprEKNS_6MCExprEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  72.3k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  72.3k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 72.3k, False: 0]
  |  Branch (230:3): [True: 72.3k, Folded]
  |  Branch (230:3): [True: 72.3k, False: 0]
  ------------------
  231|  72.3k|  return cast_convert_val<X, Y,
  232|  72.3k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  72.3k|}
_ZN7llvm_ks3isaINS_12MCBinaryExprENS_6MCExprEEEbRKT0_:
  132|  72.3k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  72.3k|  return isa_impl_wrap<X, const Y,
  134|  72.3k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  72.3k|}
_ZN7llvm_ks13isa_impl_wrapINS_12MCBinaryExprEKNS_6MCExprES3_E4doitERS3_:
  121|  72.3k|  static bool doit(const FromTy &Val) {
  122|  72.3k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  72.3k|  }
_ZN7llvm_ks11isa_impl_clINS_12MCBinaryExprEKNS_6MCExprEE4doitERS3_:
   74|  72.3k|  static inline bool doit(const From &Val) {
   75|  72.3k|    return isa_impl<To, From>::doit(Val);
   76|  72.3k|  }
_ZN7llvm_ks16cast_convert_valINS_12MCBinaryExprEKNS_6MCExprES3_E4doitERS3_:
  200|  72.3k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  72.3k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  72.3k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  72.3k|    return Res2;
  204|  72.3k|  }
_ZN7llvm_ks3isaINS_14MCConstantExprEPKNS_6MCExprEEEbRKT0_:
  132|   848k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|   848k|  return isa_impl_wrap<X, const Y,
  134|   848k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|   848k|}
_ZN7llvm_ks13isa_impl_wrapINS_14MCConstantExprEKPKNS_6MCExprES4_E4doitERS5_:
  111|   848k|  static bool doit(const From &Val) {
  112|   848k|    return isa_impl_wrap<To, SimpleFrom,
  113|   848k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|   848k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|   848k|  }
_ZN7llvm_ks13isa_impl_wrapINS_14MCConstantExprEPKNS_6MCExprES4_E4doitERKS4_:
  121|   848k|  static bool doit(const FromTy &Val) {
  122|   848k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|   848k|  }
_ZN7llvm_ks11isa_impl_clINS_14MCConstantExprEPKNS_6MCExprEE4doitES4_:
   94|   848k|  static inline bool doit(const From *Val) {
   95|   848k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 848k, False: 0]
  |  Branch (95:5): [True: 848k, Folded]
  |  Branch (95:5): [True: 848k, False: 0]
  ------------------
   96|   848k|    return isa_impl<To, From>::doit(*Val);
   97|   848k|  }
_ZN7llvm_ks8dyn_castINS_14MCConstantExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  297|   456k|dyn_cast(Y *Val) {
  298|   456k|  return isa<X>(Val) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (298:10): [True: 182k, False: 274k]
  ------------------
  299|   456k|}
_ZN7llvm_ks4castINS_14MCConstantExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  236|   379k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|   379k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 379k, False: 0]
  |  Branch (237:3): [True: 379k, Folded]
  |  Branch (237:3): [True: 379k, False: 0]
  ------------------
  238|   379k|  return cast_convert_val<X, Y*,
  239|   379k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|   379k|}
_ZN7llvm_ks16cast_convert_valINS_14MCConstantExprEPKNS_6MCExprES4_E4doitERKS4_:
  200|   379k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|   379k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|   379k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|   379k|    return Res2;
  204|   379k|  }
_ZN7llvm_ks4castINS_15MCAlignFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  11.4k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  11.4k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 11.4k, False: 0]
  |  Branch (237:3): [True: 11.4k, Folded]
  |  Branch (237:3): [True: 11.4k, False: 0]
  ------------------
  238|  11.4k|  return cast_convert_val<X, Y*,
  239|  11.4k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  11.4k|}
_ZN7llvm_ks3isaINS_15MCAlignFragmentEPNS_10MCFragmentEEEbRKT0_:
  132|  11.4k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  11.4k|  return isa_impl_wrap<X, const Y,
  134|  11.4k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  11.4k|}
_ZN7llvm_ks13isa_impl_wrapINS_15MCAlignFragmentEKPNS_10MCFragmentEPKS2_E4doitERS4_:
  111|  11.4k|  static bool doit(const From &Val) {
  112|  11.4k|    return isa_impl_wrap<To, SimpleFrom,
  113|  11.4k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  11.4k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  11.4k|  }
_ZN7llvm_ks13isa_impl_wrapINS_15MCAlignFragmentEPKNS_10MCFragmentES4_E4doitERKS4_:
  121|  11.4k|  static bool doit(const FromTy &Val) {
  122|  11.4k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  11.4k|  }
_ZN7llvm_ks11isa_impl_clINS_15MCAlignFragmentEPKNS_10MCFragmentEE4doitES4_:
   94|  11.4k|  static inline bool doit(const From *Val) {
   95|  11.4k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 11.4k, False: 0]
  |  Branch (95:5): [True: 11.4k, Folded]
  |  Branch (95:5): [True: 11.4k, False: 0]
  ------------------
   96|  11.4k|    return isa_impl<To, From>::doit(*Val);
   97|  11.4k|  }
_ZN7llvm_ks8isa_implINS_15MCAlignFragmentENS_10MCFragmentEvE4doitERKS2_:
   55|  28.0k|  static inline bool doit(const From &Val) {
   56|  28.0k|    return To::classof(&Val);
   57|  28.0k|  }
_ZN7llvm_ks16cast_convert_valINS_15MCAlignFragmentEPNS_10MCFragmentES3_E4doitERKS3_:
  200|  11.4k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  11.4k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  11.4k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  11.4k|    return Res2;
  204|  11.4k|  }
_ZN7llvm_ks4castINS_14MCFillFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  12.5k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  12.5k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 12.5k, False: 0]
  |  Branch (237:3): [True: 12.5k, Folded]
  |  Branch (237:3): [True: 12.5k, False: 0]
  ------------------
  238|  12.5k|  return cast_convert_val<X, Y*,
  239|  12.5k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  12.5k|}
_ZN7llvm_ks3isaINS_14MCFillFragmentEPNS_10MCFragmentEEEbRKT0_:
  132|  12.5k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  12.5k|  return isa_impl_wrap<X, const Y,
  134|  12.5k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  12.5k|}
_ZN7llvm_ks13isa_impl_wrapINS_14MCFillFragmentEKPNS_10MCFragmentEPKS2_E4doitERS4_:
  111|  12.5k|  static bool doit(const From &Val) {
  112|  12.5k|    return isa_impl_wrap<To, SimpleFrom,
  113|  12.5k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  12.5k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  12.5k|  }
_ZN7llvm_ks13isa_impl_wrapINS_14MCFillFragmentEPKNS_10MCFragmentES4_E4doitERKS4_:
  121|  12.5k|  static bool doit(const FromTy &Val) {
  122|  12.5k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  12.5k|  }
_ZN7llvm_ks11isa_impl_clINS_14MCFillFragmentEPKNS_10MCFragmentEE4doitES4_:
   94|  12.5k|  static inline bool doit(const From *Val) {
   95|  12.5k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 12.5k, False: 0]
  |  Branch (95:5): [True: 12.5k, Folded]
  |  Branch (95:5): [True: 12.5k, False: 0]
  ------------------
   96|  12.5k|    return isa_impl<To, From>::doit(*Val);
   97|  12.5k|  }
_ZN7llvm_ks8isa_implINS_14MCFillFragmentENS_10MCFragmentEvE4doitERKS2_:
   55|  37.2k|  static inline bool doit(const From &Val) {
   56|  37.2k|    return To::classof(&Val);
   57|  37.2k|  }
_ZN7llvm_ks16cast_convert_valINS_14MCFillFragmentEPNS_10MCFragmentES3_E4doitERKS3_:
  200|  12.5k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  12.5k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  12.5k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  12.5k|    return Res2;
  204|  12.5k|  }
_ZN7llvm_ks4castINS_13MCOrgFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  25.8k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  25.8k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 25.8k, False: 0]
  |  Branch (237:3): [True: 25.8k, Folded]
  |  Branch (237:3): [True: 25.8k, False: 0]
  ------------------
  238|  25.8k|  return cast_convert_val<X, Y*,
  239|  25.8k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  25.8k|}
_ZN7llvm_ks3isaINS_13MCOrgFragmentEPNS_10MCFragmentEEEbRKT0_:
  132|  25.8k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  25.8k|  return isa_impl_wrap<X, const Y,
  134|  25.8k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  25.8k|}
_ZN7llvm_ks13isa_impl_wrapINS_13MCOrgFragmentEKPNS_10MCFragmentEPKS2_E4doitERS4_:
  111|  25.8k|  static bool doit(const From &Val) {
  112|  25.8k|    return isa_impl_wrap<To, SimpleFrom,
  113|  25.8k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  25.8k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  25.8k|  }
_ZN7llvm_ks13isa_impl_wrapINS_13MCOrgFragmentEPKNS_10MCFragmentES4_E4doitERKS4_:
  121|  25.8k|  static bool doit(const FromTy &Val) {
  122|  25.8k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  25.8k|  }
_ZN7llvm_ks11isa_impl_clINS_13MCOrgFragmentEPKNS_10MCFragmentEE4doitES4_:
   94|  25.8k|  static inline bool doit(const From *Val) {
   95|  25.8k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 25.8k, False: 0]
  |  Branch (95:5): [True: 25.8k, Folded]
  |  Branch (95:5): [True: 25.8k, False: 0]
  ------------------
   96|  25.8k|    return isa_impl<To, From>::doit(*Val);
   97|  25.8k|  }
_ZN7llvm_ks8isa_implINS_13MCOrgFragmentENS_10MCFragmentEvE4doitERKS2_:
   55|  79.0k|  static inline bool doit(const From &Val) {
   56|  79.0k|    return To::classof(&Val);
   57|  79.0k|  }
_ZN7llvm_ks16cast_convert_valINS_13MCOrgFragmentEPNS_10MCFragmentES3_E4doitERKS3_:
  200|  25.8k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  25.8k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  25.8k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  25.8k|    return Res2;
  204|  25.8k|  }
_ZN7llvm_ks16dyn_cast_or_nullINS_14MCDataFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  320|  33.4M|dyn_cast_or_null(Y *Val) {
  321|  33.4M|  return (Val && isa<X>(Val)) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (321:11): [True: 32.9M, False: 493k]
  |  Branch (321:18): [True: 32.8M, False: 42.4k]
  ------------------
  322|  33.4M|}
_ZN7llvm_ks4castINS_12MCTargetExprEKNS_6MCExprEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|     10|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|     10|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 10, False: 0]
  |  Branch (230:3): [True: 10, Folded]
  |  Branch (230:3): [True: 10, False: 0]
  ------------------
  231|     10|  return cast_convert_val<X, Y,
  232|     10|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|     10|}
_ZN7llvm_ks3isaINS_12MCTargetExprENS_6MCExprEEEbRKT0_:
  132|     10|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|     10|  return isa_impl_wrap<X, const Y,
  134|     10|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|     10|}
_ZN7llvm_ks13isa_impl_wrapINS_12MCTargetExprEKNS_6MCExprES3_E4doitERS3_:
  121|     10|  static bool doit(const FromTy &Val) {
  122|     10|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|     10|  }
_ZN7llvm_ks11isa_impl_clINS_12MCTargetExprEKNS_6MCExprEE4doitERS3_:
   74|     10|  static inline bool doit(const From &Val) {
   75|     10|    return isa_impl<To, From>::doit(Val);
   76|     10|  }
_ZN7llvm_ks16cast_convert_valINS_12MCTargetExprEKNS_6MCExprES3_E4doitERS3_:
  200|     10|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|     10|    typename cast_retty<To, FromTy>::ret_type Res2
  202|     10|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|     10|    return Res2;
  204|     10|  }
_ZN7llvm_ks8dyn_castINS_12MCBinaryExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  297|     47|dyn_cast(Y *Val) {
  298|     47|  return isa<X>(Val) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (298:10): [True: 36, False: 11]
  ------------------
  299|     47|}
_ZN7llvm_ks8dyn_castINS_11RISCVMCExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  297|  2.29k|dyn_cast(Y *Val) {
  298|  2.29k|  return isa<X>(Val) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (298:10): [True: 24, False: 2.27k]
  ------------------
  299|  2.29k|}
_ZN7llvm_ks3isaINS_11RISCVMCExprEPKNS_6MCExprEEEbRKT0_:
  132|  2.33k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  2.33k|  return isa_impl_wrap<X, const Y,
  134|  2.33k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  2.33k|}
_ZN7llvm_ks13isa_impl_wrapINS_11RISCVMCExprEKPKNS_6MCExprES4_E4doitERS5_:
  111|  2.33k|  static bool doit(const From &Val) {
  112|  2.33k|    return isa_impl_wrap<To, SimpleFrom,
  113|  2.33k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  2.33k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  2.33k|  }
_ZN7llvm_ks13isa_impl_wrapINS_11RISCVMCExprEPKNS_6MCExprES4_E4doitERKS4_:
  121|  2.33k|  static bool doit(const FromTy &Val) {
  122|  2.33k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  2.33k|  }
_ZN7llvm_ks11isa_impl_clINS_11RISCVMCExprEPKNS_6MCExprEE4doitES4_:
   94|  2.33k|  static inline bool doit(const From *Val) {
   95|  2.33k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 2.33k, False: 0]
  |  Branch (95:5): [True: 2.33k, Folded]
  |  Branch (95:5): [True: 2.33k, False: 0]
  ------------------
   96|  2.33k|    return isa_impl<To, From>::doit(*Val);
   97|  2.33k|  }
_ZN7llvm_ks8isa_implINS_11RISCVMCExprENS_6MCExprEvE4doitERKS2_:
   55|  2.33k|  static inline bool doit(const From &Val) {
   56|  2.33k|    return To::classof(&Val);
   57|  2.33k|  }
_ZN7llvm_ks4castINS_11RISCVMCExprEKNS_6MCExprEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  236|     34|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|     34|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 34, False: 0]
  |  Branch (237:3): [True: 34, Folded]
  |  Branch (237:3): [True: 34, False: 0]
  ------------------
  238|     34|  return cast_convert_val<X, Y*,
  239|     34|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|     34|}
_ZN7llvm_ks16cast_convert_valINS_11RISCVMCExprEPKNS_6MCExprES4_E4doitERKS4_:
  200|     34|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|     34|    typename cast_retty<To, FromTy>::ret_type Res2
  202|     34|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|     34|    return Res2;
  204|     34|  }
_ZN7llvm_ks4castINS_14MCDataFragmentEKNS_10MCFragmentEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  11.0k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  11.0k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 11.0k, False: 0]
  |  Branch (230:3): [True: 11.0k, Folded]
  |  Branch (230:3): [True: 11.0k, False: 0]
  ------------------
  231|  11.0k|  return cast_convert_val<X, Y,
  232|  11.0k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  11.0k|}
_ZN7llvm_ks3isaINS_14MCDataFragmentENS_10MCFragmentEEEbRKT0_:
  132|  11.0k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  11.0k|  return isa_impl_wrap<X, const Y,
  134|  11.0k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  11.0k|}
_ZN7llvm_ks13isa_impl_wrapINS_14MCDataFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  121|  11.0k|  static bool doit(const FromTy &Val) {
  122|  11.0k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  11.0k|  }
_ZN7llvm_ks11isa_impl_clINS_14MCDataFragmentEKNS_10MCFragmentEE4doitERS3_:
   74|  11.0k|  static inline bool doit(const From &Val) {
   75|  11.0k|    return isa_impl<To, From>::doit(Val);
   76|  11.0k|  }
_ZN7llvm_ks16cast_convert_valINS_14MCDataFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  200|  11.0k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  11.0k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  11.0k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  11.0k|    return Res2;
  204|  11.0k|  }
_ZN7llvm_ks4castINS_19MCRelaxableFragmentEKNS_10MCFragmentEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  1.14k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  1.14k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 1.14k, False: 0]
  |  Branch (230:3): [True: 1.14k, Folded]
  |  Branch (230:3): [True: 1.14k, False: 0]
  ------------------
  231|  1.14k|  return cast_convert_val<X, Y,
  232|  1.14k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  1.14k|}
_ZN7llvm_ks3isaINS_19MCRelaxableFragmentENS_10MCFragmentEEEbRKT0_:
  132|  1.14k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  1.14k|  return isa_impl_wrap<X, const Y,
  134|  1.14k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  1.14k|}
_ZN7llvm_ks13isa_impl_wrapINS_19MCRelaxableFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  121|  1.14k|  static bool doit(const FromTy &Val) {
  122|  1.14k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  1.14k|  }
_ZN7llvm_ks11isa_impl_clINS_19MCRelaxableFragmentEKNS_10MCFragmentEE4doitERS3_:
   74|  1.14k|  static inline bool doit(const From &Val) {
   75|  1.14k|    return isa_impl<To, From>::doit(Val);
   76|  1.14k|  }
_ZN7llvm_ks16cast_convert_valINS_19MCRelaxableFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  200|  1.14k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  1.14k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  1.14k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  1.14k|    return Res2;
  204|  1.14k|  }
_ZN7llvm_ks4castINS_14MCFillFragmentEKNS_10MCFragmentEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  24.7k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  24.7k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 24.7k, False: 0]
  |  Branch (230:3): [True: 24.7k, Folded]
  |  Branch (230:3): [True: 24.7k, False: 0]
  ------------------
  231|  24.7k|  return cast_convert_val<X, Y,
  232|  24.7k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  24.7k|}
_ZN7llvm_ks3isaINS_14MCFillFragmentENS_10MCFragmentEEEbRKT0_:
  132|  24.7k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  24.7k|  return isa_impl_wrap<X, const Y,
  134|  24.7k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  24.7k|}
_ZN7llvm_ks13isa_impl_wrapINS_14MCFillFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  121|  24.7k|  static bool doit(const FromTy &Val) {
  122|  24.7k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  24.7k|  }
_ZN7llvm_ks11isa_impl_clINS_14MCFillFragmentEKNS_10MCFragmentEE4doitERS3_:
   74|  24.7k|  static inline bool doit(const From &Val) {
   75|  24.7k|    return isa_impl<To, From>::doit(Val);
   76|  24.7k|  }
_ZN7llvm_ks16cast_convert_valINS_14MCFillFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  200|  24.7k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  24.7k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  24.7k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  24.7k|    return Res2;
  204|  24.7k|  }
_ZN7llvm_ks4castINS_15MCAlignFragmentEKNS_10MCFragmentEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  16.6k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  16.6k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 16.6k, False: 0]
  |  Branch (230:3): [True: 16.6k, Folded]
  |  Branch (230:3): [True: 16.6k, False: 0]
  ------------------
  231|  16.6k|  return cast_convert_val<X, Y,
  232|  16.6k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  16.6k|}
_ZN7llvm_ks3isaINS_15MCAlignFragmentENS_10MCFragmentEEEbRKT0_:
  132|  16.6k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  16.6k|  return isa_impl_wrap<X, const Y,
  134|  16.6k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  16.6k|}
_ZN7llvm_ks13isa_impl_wrapINS_15MCAlignFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  121|  16.6k|  static bool doit(const FromTy &Val) {
  122|  16.6k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  16.6k|  }
_ZN7llvm_ks11isa_impl_clINS_15MCAlignFragmentEKNS_10MCFragmentEE4doitERS3_:
   74|  16.6k|  static inline bool doit(const From &Val) {
   75|  16.6k|    return isa_impl<To, From>::doit(Val);
   76|  16.6k|  }
_ZN7llvm_ks16cast_convert_valINS_15MCAlignFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  200|  16.6k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  16.6k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  16.6k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  16.6k|    return Res2;
  204|  16.6k|  }
_ZN7llvm_ks4castINS_13MCOrgFragmentEKNS_10MCFragmentEEENS_10cast_rettyIT_T0_E8ret_typeERS6_:
  229|  53.2k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  53.2k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 53.2k, False: 0]
  |  Branch (230:3): [True: 53.2k, Folded]
  |  Branch (230:3): [True: 53.2k, False: 0]
  ------------------
  231|  53.2k|  return cast_convert_val<X, Y,
  232|  53.2k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  53.2k|}
_ZN7llvm_ks3isaINS_13MCOrgFragmentENS_10MCFragmentEEEbRKT0_:
  132|  53.2k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  53.2k|  return isa_impl_wrap<X, const Y,
  134|  53.2k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  53.2k|}
_ZN7llvm_ks13isa_impl_wrapINS_13MCOrgFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  121|  53.2k|  static bool doit(const FromTy &Val) {
  122|  53.2k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  53.2k|  }
_ZN7llvm_ks11isa_impl_clINS_13MCOrgFragmentEKNS_10MCFragmentEE4doitERS3_:
   74|  53.2k|  static inline bool doit(const From &Val) {
   75|  53.2k|    return isa_impl<To, From>::doit(Val);
   76|  53.2k|  }
_ZN7llvm_ks16cast_convert_valINS_13MCOrgFragmentEKNS_10MCFragmentES3_E4doitERS3_:
  200|  53.2k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  53.2k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  53.2k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  53.2k|    return Res2;
  204|  53.2k|  }
_ZN7llvm_ks3isaINS_17MCEncodedFragmentEPNS_10MCFragmentEEEbRKT0_:
  132|  50.9k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  50.9k|  return isa_impl_wrap<X, const Y,
  134|  50.9k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  50.9k|}
_ZN7llvm_ks13isa_impl_wrapINS_17MCEncodedFragmentEKPNS_10MCFragmentEPKS2_E4doitERS4_:
  111|  50.9k|  static bool doit(const From &Val) {
  112|  50.9k|    return isa_impl_wrap<To, SimpleFrom,
  113|  50.9k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  50.9k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  50.9k|  }
_ZN7llvm_ks13isa_impl_wrapINS_17MCEncodedFragmentEPKNS_10MCFragmentES4_E4doitERKS4_:
  121|  50.9k|  static bool doit(const FromTy &Val) {
  122|  50.9k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  50.9k|  }
_ZN7llvm_ks11isa_impl_clINS_17MCEncodedFragmentEPKNS_10MCFragmentEE4doitES4_:
   94|  50.9k|  static inline bool doit(const From *Val) {
   95|  50.9k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 50.9k, False: 0]
  |  Branch (95:5): [True: 50.9k, Folded]
  |  Branch (95:5): [True: 50.9k, False: 0]
  ------------------
   96|  50.9k|    return isa_impl<To, From>::doit(*Val);
   97|  50.9k|  }
_ZN7llvm_ks8isa_implINS_17MCEncodedFragmentENS_10MCFragmentEvE4doitERKS2_:
   55|  50.9k|  static inline bool doit(const From &Val) {
   56|  50.9k|    return To::classof(&Val);
   57|  50.9k|  }
_ZN7llvm_ks8dyn_castINS_17MCEncodedFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  297|  43.7k|dyn_cast(Y *Val) {
  298|  43.7k|  return isa<X>(Val) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (298:10): [True: 7.24k, False: 36.5k]
  ------------------
  299|  43.7k|}
_ZN7llvm_ks4castINS_17MCEncodedFragmentENS_10MCFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  7.24k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  7.24k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 7.24k, False: 0]
  |  Branch (237:3): [True: 7.24k, Folded]
  |  Branch (237:3): [True: 7.24k, False: 0]
  ------------------
  238|  7.24k|  return cast_convert_val<X, Y*,
  239|  7.24k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  7.24k|}
_ZN7llvm_ks16cast_convert_valINS_17MCEncodedFragmentEPNS_10MCFragmentES3_E4doitERKS3_:
  200|  7.24k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  7.24k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  7.24k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  7.24k|    return Res2;
  204|  7.24k|  }
_ZN7llvm_ks3isaINS_28MCCompactEncodedInstFragmentEPNS_17MCEncodedFragmentEEEbRKT0_:
  132|  7.24k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  7.24k|  return isa_impl_wrap<X, const Y,
  134|  7.24k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  7.24k|}
_ZN7llvm_ks13isa_impl_wrapINS_28MCCompactEncodedInstFragmentEKPNS_17MCEncodedFragmentEPKS2_E4doitERS4_:
  111|  7.24k|  static bool doit(const From &Val) {
  112|  7.24k|    return isa_impl_wrap<To, SimpleFrom,
  113|  7.24k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  7.24k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  7.24k|  }
_ZN7llvm_ks13isa_impl_wrapINS_28MCCompactEncodedInstFragmentEPKNS_17MCEncodedFragmentES4_E4doitERKS4_:
  121|  7.24k|  static bool doit(const FromTy &Val) {
  122|  7.24k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  7.24k|  }
_ZN7llvm_ks11isa_impl_clINS_28MCCompactEncodedInstFragmentEPKNS_17MCEncodedFragmentEE4doitES4_:
   94|  7.24k|  static inline bool doit(const From *Val) {
   95|  7.24k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 7.24k, False: 0]
  |  Branch (95:5): [True: 7.24k, Folded]
  |  Branch (95:5): [True: 7.24k, False: 0]
  ------------------
   96|  7.24k|    return isa_impl<To, From>::doit(*Val);
   97|  7.24k|  }
_ZN7llvm_ks8isa_implINS_28MCCompactEncodedInstFragmentENS_17MCEncodedFragmentEvE4doitERKS2_:
   55|  7.24k|  static inline bool doit(const From &Val) {
   56|  7.24k|    return To::classof(&Val);
   57|  7.24k|  }
_ZN7llvm_ks13simplify_typeIKPNS_17MCEncodedFragmentEE18getSimplifiedValueERS3_:
   45|  22.1k|  static RetType getSimplifiedValue(const From& Val) {
   46|  22.1k|    return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
   47|  22.1k|  }
_ZN7llvm_ks13simplify_typeIPNS_17MCEncodedFragmentEE18getSimplifiedValueERS2_:
   36|  22.1k|  static SimpleType &getSimplifiedValue(From &Val) { return Val; }
_ZN7llvm_ks8dyn_castINS_14MCDataFragmentENS_17MCEncodedFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  297|  7.24k|dyn_cast(Y *Val) {
  298|  7.24k|  return isa<X>(Val) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (298:10): [True: 6.83k, False: 413]
  ------------------
  299|  7.24k|}
_ZN7llvm_ks3isaINS_14MCDataFragmentEPNS_17MCEncodedFragmentEEEbRKT0_:
  132|  14.0k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  14.0k|  return isa_impl_wrap<X, const Y,
  134|  14.0k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  14.0k|}
_ZN7llvm_ks13isa_impl_wrapINS_14MCDataFragmentEKPNS_17MCEncodedFragmentEPKS2_E4doitERS4_:
  111|  14.0k|  static bool doit(const From &Val) {
  112|  14.0k|    return isa_impl_wrap<To, SimpleFrom,
  113|  14.0k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  14.0k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  14.0k|  }
_ZN7llvm_ks13isa_impl_wrapINS_14MCDataFragmentEPKNS_17MCEncodedFragmentES4_E4doitERKS4_:
  121|  14.0k|  static bool doit(const FromTy &Val) {
  122|  14.0k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  14.0k|  }
_ZN7llvm_ks11isa_impl_clINS_14MCDataFragmentEPKNS_17MCEncodedFragmentEE4doitES4_:
   94|  14.0k|  static inline bool doit(const From *Val) {
   95|  14.0k|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 14.0k, False: 0]
  |  Branch (95:5): [True: 14.0k, Folded]
  |  Branch (95:5): [True: 14.0k, False: 0]
  ------------------
   96|  14.0k|    return isa_impl<To, From>::doit(*Val);
   97|  14.0k|  }
_ZN7llvm_ks8isa_implINS_14MCDataFragmentENS_17MCEncodedFragmentEvE4doitERKS2_:
   55|  14.0k|  static inline bool doit(const From &Val) {
   56|  14.0k|    return To::classof(&Val);
   57|  14.0k|  }
_ZN7llvm_ks4castINS_14MCDataFragmentENS_17MCEncodedFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|  6.83k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  6.83k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 6.83k, False: 0]
  |  Branch (237:3): [True: 6.83k, Folded]
  |  Branch (237:3): [True: 6.83k, False: 0]
  ------------------
  238|  6.83k|  return cast_convert_val<X, Y*,
  239|  6.83k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  6.83k|}
_ZN7llvm_ks16cast_convert_valINS_14MCDataFragmentEPNS_17MCEncodedFragmentES3_E4doitERKS3_:
  200|  6.83k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  6.83k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  6.83k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  6.83k|    return Res2;
  204|  6.83k|  }
_ZN7llvm_ks8dyn_castINS_19MCRelaxableFragmentENS_17MCEncodedFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  297|    413|dyn_cast(Y *Val) {
  298|    413|  return isa<X>(Val) ? cast<X>(Val) : nullptr;
  ------------------
  |  Branch (298:10): [True: 413, False: 0]
  ------------------
  299|    413|}
_ZN7llvm_ks3isaINS_19MCRelaxableFragmentEPNS_17MCEncodedFragmentEEEbRKT0_:
  132|    826|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|    826|  return isa_impl_wrap<X, const Y,
  134|    826|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|    826|}
_ZN7llvm_ks13isa_impl_wrapINS_19MCRelaxableFragmentEKPNS_17MCEncodedFragmentEPKS2_E4doitERS4_:
  111|    826|  static bool doit(const From &Val) {
  112|    826|    return isa_impl_wrap<To, SimpleFrom,
  113|    826|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|    826|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|    826|  }
_ZN7llvm_ks13isa_impl_wrapINS_19MCRelaxableFragmentEPKNS_17MCEncodedFragmentES4_E4doitERKS4_:
  121|    826|  static bool doit(const FromTy &Val) {
  122|    826|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|    826|  }
_ZN7llvm_ks11isa_impl_clINS_19MCRelaxableFragmentEPKNS_17MCEncodedFragmentEE4doitES4_:
   94|    826|  static inline bool doit(const From *Val) {
   95|    826|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (95:5): [True: 826, False: 0]
  |  Branch (95:5): [True: 826, Folded]
  |  Branch (95:5): [True: 826, False: 0]
  ------------------
   96|    826|    return isa_impl<To, From>::doit(*Val);
   97|    826|  }
_ZN7llvm_ks8isa_implINS_19MCRelaxableFragmentENS_17MCEncodedFragmentEvE4doitERKS2_:
   55|    826|  static inline bool doit(const From &Val) {
   56|    826|    return To::classof(&Val);
   57|    826|  }
_ZN7llvm_ks4castINS_19MCRelaxableFragmentENS_17MCEncodedFragmentEEENS_10cast_rettyIT_PT0_E8ret_typeES6_:
  236|    413|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|    413|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 413, False: 0]
  |  Branch (237:3): [True: 413, Folded]
  |  Branch (237:3): [True: 413, False: 0]
  ------------------
  238|    413|  return cast_convert_val<X, Y*,
  239|    413|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|    413|}
_ZN7llvm_ks16cast_convert_valINS_19MCRelaxableFragmentEPNS_17MCEncodedFragmentES3_E4doitERKS3_:
  200|    413|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|    413|    typename cast_retty<To, FromTy>::ret_type Res2
  202|    413|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|    413|    return Res2;
  204|    413|  }
_ZN7llvm_ks4castINS_19MCRelaxableFragmentENS_14ilist_iteratorINS_10MCFragmentEEEEENS_10cast_rettyIT_T0_E8ret_typeERS7_:
  229|    476|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|    476|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 476, False: 0]
  |  Branch (230:3): [True: 476, Folded]
  |  Branch (230:3): [True: 476, False: 0]
  ------------------
  231|    476|  return cast_convert_val<X, Y,
  232|    476|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|    476|}
_ZN7llvm_ks3isaINS_19MCRelaxableFragmentENS_14ilist_iteratorINS_10MCFragmentEEEEEbRKT0_:
  132|    476|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|    476|  return isa_impl_wrap<X, const Y,
  134|    476|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|    476|}
_ZN7llvm_ks13isa_impl_wrapINS_19MCRelaxableFragmentEKNS_14ilist_iteratorINS_10MCFragmentEEEPS3_E4doitERS5_:
  111|    476|  static bool doit(const From &Val) {
  112|    476|    return isa_impl_wrap<To, SimpleFrom,
  113|    476|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|    476|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|    476|  }
_ZN7llvm_ks13isa_impl_wrapINS_19MCRelaxableFragmentEPNS_10MCFragmentES3_E4doitERKS3_:
  121|    476|  static bool doit(const FromTy &Val) {
  122|    476|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|    476|  }
_ZN7llvm_ks11isa_impl_clINS_19MCRelaxableFragmentEPNS_10MCFragmentEE4doitEPKS2_:
   80|    476|  static inline bool doit(const From *Val) {
   81|    476|    assert(Val && "isa<> used on a null pointer");
  ------------------
  |  Branch (81:5): [True: 476, False: 0]
  |  Branch (81:5): [True: 476, Folded]
  |  Branch (81:5): [True: 476, False: 0]
  ------------------
   82|    476|    return isa_impl<To, From>::doit(*Val);
   83|    476|  }
_ZN7llvm_ks16cast_convert_valINS_19MCRelaxableFragmentENS_14ilist_iteratorINS_10MCFragmentEEEPS3_E4doitERS4_:
  191|    476|  static typename cast_retty<To, From>::ret_type doit(From &Val) {
  192|    476|    return cast_convert_val<To, SimpleFrom,
  193|    476|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  194|    476|                          simplify_type<From>::getSimplifiedValue(Val));
  195|    476|  }
_ZN7llvm_ks3isaINS_11MCSymbolELFEPKNS_8MCSymbolEEEbRKT0_:
  132|  14.2k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  14.2k|  return isa_impl_wrap<X, const Y,
  134|  14.2k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  14.2k|}
_ZN7llvm_ks13isa_impl_wrapINS_11MCSymbolELFEKPKNS_8MCSymbolES4_E4doitERS5_:
  111|  14.2k|  static bool doit(const From &Val) {
  112|  14.2k|    return isa_impl_wrap<To, SimpleFrom,
  113|  14.2k|      typename simplify_type<SimpleFrom>::SimpleType>::doit(
  114|  14.2k|                          simplify_type<const From>::getSimplifiedValue(Val));
  115|  14.2k|  }
_ZN7llvm_ks13simplify_typeIKPKNS_8MCSymbolEE18getSimplifiedValueERS4_:
   45|  14.2k|  static RetType getSimplifiedValue(const From& Val) {
   46|  14.2k|    return simplify_type<From>::getSimplifiedValue(const_cast<From&>(Val));
   47|  14.2k|  }
_ZN7llvm_ks13simplify_typeIPKNS_8MCSymbolEE18getSimplifiedValueERS3_:
   36|  14.2k|  static SimpleType &getSimplifiedValue(From &Val) { return Val; }
_ZN7llvm_ks4castINS_11MCSymbolELFEKNS_8MCSymbolEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  236|  9.53k|inline typename cast_retty<X, Y *>::ret_type cast(Y *Val) {
  237|  9.53k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (237:3): [True: 9.53k, False: 0]
  |  Branch (237:3): [True: 9.53k, Folded]
  |  Branch (237:3): [True: 9.53k, False: 0]
  ------------------
  238|  9.53k|  return cast_convert_val<X, Y*,
  239|  9.53k|                          typename simplify_type<Y*>::SimpleType>::doit(Val);
  240|  9.53k|}
_ZN7llvm_ks16cast_convert_valINS_11MCSymbolELFEPKNS_8MCSymbolES4_E4doitERKS4_:
  200|  9.53k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  9.53k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  9.53k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  9.53k|    return Res2;
  204|  9.53k|  }
_ZN7llvm_ks4castINS_12MCSectionELFENS_9MCSectionEEENS_10cast_rettyIT_T0_E8ret_typeERS5_:
  229|  11.5k|inline typename cast_retty<X, Y>::ret_type cast(Y &Val) {
  230|  11.5k|  assert(isa<X>(Val) && "cast<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (230:3): [True: 11.5k, False: 0]
  |  Branch (230:3): [True: 11.5k, Folded]
  |  Branch (230:3): [True: 11.5k, False: 0]
  ------------------
  231|  11.5k|  return cast_convert_val<X, Y,
  232|  11.5k|                          typename simplify_type<Y>::SimpleType>::doit(Val);
  233|  11.5k|}
_ZN7llvm_ks3isaINS_12MCSectionELFENS_9MCSectionEEEbRKT0_:
  132|  11.5k|LLVM_ATTRIBUTE_UNUSED_RESULT inline bool isa(const Y &Val) {
  133|  11.5k|  return isa_impl_wrap<X, const Y,
  134|  11.5k|                       typename simplify_type<const Y>::SimpleType>::doit(Val);
  135|  11.5k|}
_ZN7llvm_ks13isa_impl_wrapINS_12MCSectionELFEKNS_9MCSectionES3_E4doitERS3_:
  121|  11.5k|  static bool doit(const FromTy &Val) {
  122|  11.5k|    return isa_impl_cl<To,FromTy>::doit(Val);
  123|  11.5k|  }
_ZN7llvm_ks11isa_impl_clINS_12MCSectionELFEKNS_9MCSectionEE4doitERS3_:
   74|  11.5k|  static inline bool doit(const From &Val) {
   75|  11.5k|    return isa_impl<To, From>::doit(Val);
   76|  11.5k|  }
_ZN7llvm_ks8isa_implINS_12MCSectionELFENS_9MCSectionEvE4doitERKS2_:
   55|  11.5k|  static inline bool doit(const From &Val) {
   56|  11.5k|    return To::classof(&Val);
   57|  11.5k|  }
_ZN7llvm_ks16cast_convert_valINS_12MCSectionELFENS_9MCSectionES2_E4doitERKS2_:
  200|  11.5k|  static typename cast_retty<To, FromTy>::ret_type doit(const FromTy &Val) {
  201|  11.5k|    typename cast_retty<To, FromTy>::ret_type Res2
  202|  11.5k|     = (typename cast_retty<To, FromTy>::ret_type)const_cast<FromTy&>(Val);
  203|  11.5k|    return Res2;
  204|  11.5k|  }
_ZN7llvm_ks12cast_or_nullINS_11MCSymbolELFEKNS_8MCSymbolEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  267|  5.57k|cast_or_null(Y *Val) {
  268|  5.57k|  if (!Val) return nullptr;
  ------------------
  |  Branch (268:7): [True: 809, False: 4.76k]
  ------------------
  269|  5.57k|  assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (269:3): [True: 4.76k, False: 0]
  |  Branch (269:3): [True: 4.76k, Folded]
  |  Branch (269:3): [True: 4.76k, False: 0]
  ------------------
  270|  4.76k|  return cast<X>(Val);
  271|  4.76k|}
_ZN7llvm_ks12cast_or_nullINS_12MCSectionELFEKNS_9MCSectionEEENS_10cast_rettyIT_PT0_E8ret_typeES7_:
  267|    809|cast_or_null(Y *Val) {
  268|    809|  if (!Val) return nullptr;
  ------------------
  |  Branch (268:7): [True: 809, False: 0]
  ------------------
  269|    809|  assert(isa<X>(Val) && "cast_or_null<Ty>() argument of incompatible type!");
  ------------------
  |  Branch (269:3): [True: 0, False: 0]
  |  Branch (269:3): [True: 0, Folded]
  |  Branch (269:3): [True: 0, False: 0]
  ------------------
  270|      0|  return cast<X>(Val);
  271|      0|}

_ZN7llvm_ks7support6endian9byte_swapItLNS0_10endiannessE1EEET_S4_:
   39|    966|inline value_type byte_swap(value_type value) {
   40|    966|  if (endian != native && sys::IsBigEndianHost != (endian == big))
  ------------------
  |  Branch (40:7): [True: 0, Folded]
  |  Branch (40:27): [Folded, False: 0]
  ------------------
   41|      0|    sys::swapByteOrder(value);
   42|    966|  return value;
   43|    966|}
_ZN7llvm_ks7support6endian9byte_swapIjLNS0_10endiannessE1EEET_S4_:
   39|  6.29M|inline value_type byte_swap(value_type value) {
   40|  6.29M|  if (endian != native && sys::IsBigEndianHost != (endian == big))
  ------------------
  |  Branch (40:7): [True: 0, Folded]
  |  Branch (40:27): [Folded, False: 0]
  ------------------
   41|      0|    sys::swapByteOrder(value);
   42|  6.29M|  return value;
   43|  6.29M|}

_ZN7llvm_ks7support6endian6WriterILNS0_10endiannessE1EE5writeIjEEvT_:
   34|  6.29M|  template <typename value_type> void write(value_type Val) {
   35|  6.29M|    Val = byte_swap<value_type, endian>(Val);
   36|  6.29M|    OS.write((const char *)&Val, sizeof(value_type));
   37|  6.29M|  }
_ZN7llvm_ks7support6endian6WriterILNS0_10endiannessE1EE5writeItEEvT_:
   34|    966|  template <typename value_type> void write(value_type Val) {
   35|    966|    Val = byte_swap<value_type, endian>(Val);
   36|    966|    OS.write((const char *)&Val, sizeof(value_type));
   37|    966|  }
_ZN7llvm_ks7support6endian6WriterILNS0_10endiannessE1EEC2ERNS_11raw_ostreamE:
   29|  6.29M|  Writer(raw_ostream &OS) : OS(OS) {}

_ZN7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEEC2ES6_:
  110|  13.6k|  ErrorOr(T Val) : HasError(false) {
  111|  13.6k|    new (getStorage()) storage_type(moveIfMoveConstructible<storage_type>(Val));
  112|  13.6k|  }
_ZN7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEE10getStorageEv:
  262|  40.8k|  storage_type *getStorage() {
  263|  40.8k|    assert(!HasError && "Cannot get value when an error exists!");
  ------------------
  |  Branch (263:5): [True: 40.8k, False: 0]
  |  Branch (263:5): [True: 40.8k, Folded]
  |  Branch (263:5): [True: 40.8k, False: 0]
  ------------------
  264|  40.8k|    return reinterpret_cast<storage_type*>(TStorage.buffer);
  265|  40.8k|  }
_ZN7llvm_ks23moveIfMoveConstructibleINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEES6_EEONS1_9enable_ifIXsr3std16is_constructibleIT_T0_EE5valueENS1_16remove_referenceIS9_E4typeEE4typeERS9_:
   29|  13.6k| moveIfMoveConstructible(V &Val) {
   30|  13.6k|  return std::move(Val);
   31|  13.6k|}
_ZN7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEED2Ev:
  166|  13.6k|  ~ErrorOr() {
  167|  13.6k|    if (!HasError)
  ------------------
  |  Branch (167:9): [True: 13.6k, False: 9]
  ------------------
  168|  13.6k|      getStorage()->~storage_type();
  169|  13.6k|  }
_ZNK7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEE8getErrorEv:
  179|  13.6k|  std::error_code getError() const {
  180|  13.6k|    return HasError ? *getErrorStorage() : std::error_code();
  ------------------
  |  Branch (180:12): [True: 0, False: 13.6k]
  ------------------
  181|  13.6k|  }
_ZN7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEE15getErrorStorageEv:
  272|      9|  std::error_code *getErrorStorage() {
  273|      9|    assert(HasError && "Cannot get error when a value exists!");
  ------------------
  |  Branch (273:5): [True: 9, False: 0]
  |  Branch (273:5): [True: 9, Folded]
  |  Branch (273:5): [True: 9, False: 0]
  ------------------
  274|      9|    return reinterpret_cast<std::error_code *>(ErrorStorage.buffer);
  275|      9|  }
_ZN7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEEdeEv:
  189|  13.6k|  reference operator *() {
  190|  13.6k|    return *getStorage();
  191|  13.6k|  }
_ZN7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEEC2ENS1_10error_codeE:
  106|      9|  ErrorOr(std::error_code EC) : HasError(true) {
  107|      9|    new (getErrorStorage()) std::error_code(EC);
  108|      9|  }
_ZNK7llvm_ks7ErrorOrINSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEEEcvbEv:
  172|      9|  explicit operator bool() const {
  173|      9|    return !HasError;
  174|      9|  }

_ZN7llvm_ks3sys2fs8UniqueIDC2Emm:
  123|  27.2k|  UniqueID(uint64_t Device, uint64_t File) : Device(Device), File(File) {}
_ZNK7llvm_ks3sys2fs8UniqueIDeqERKS2_:
  124|  13.6k|  bool operator==(const UniqueID &Other) const {
  125|  13.6k|    return Device == Other.Device && File == Other.File;
  ------------------
  |  Branch (125:12): [True: 13.6k, False: 0]
  |  Branch (125:38): [True: 13.6k, False: 0]
  ------------------
  126|  13.6k|  }
_ZN7llvm_ks3sys2fs11file_statusC2Ev:
  161|  27.2k|    file_status() : fs_st_dev(0), fs_st_ino(0), fs_st_mtime(0),
  162|  27.2k|        fs_st_uid(0), fs_st_gid(0), fs_st_size(0),
  163|  27.2k|        Type(file_type::status_error), Perms(perms_not_known) {}
_ZN7llvm_ks3sys2fs11file_statusC2ENS1_9file_typeENS1_5permsEmmljjl:
  171|  27.2k|        : fs_st_dev(Dev), fs_st_ino(Ino), fs_st_mtime(MTime), fs_st_uid(UID),
  172|  27.2k|          fs_st_gid(GID), fs_st_size(Size), Type(Type), Perms(Perms) {}
_ZNK7llvm_ks3sys2fs11file_status4typeEv:
  196|      1|  file_type type() const { return Type; }

_ZN7llvm_ks6isUIntILj32EEEbm:
  302|  1.20k|inline bool isUInt<32>(uint64_t x) {
  303|  1.20k|  return static_cast<uint32_t>(x) == x;
  304|  1.20k|}
_ZN7llvm_ks7isUIntNEjm:
  315|  32.7M|inline bool isUIntN(unsigned N, uint64_t x) {
  316|  32.7M|  return N >= 64 || x < (UINT64_C(1)<<(N));
  ------------------
  |  Branch (316:10): [True: 2.39k, False: 32.7M]
  |  Branch (316:21): [True: 32.7M, False: 4.62k]
  ------------------
  317|  32.7M|}
_ZN7llvm_ks6isIntNEjl:
  321|  4.62k|inline bool isIntN(unsigned N, int64_t x) {
  322|  4.62k|  return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
  ------------------
  |  Branch (322:10): [True: 0, False: 4.62k]
  |  Branch (322:22): [True: 4.29k, False: 332]
  |  Branch (322:51): [True: 4.16k, False: 123]
  ------------------
  323|  4.62k|}
_ZN7llvm_ks13isPowerOf2_32Ej:
  354|     75|inline bool isPowerOf2_32(uint32_t Value) {
  355|     75|  return Value && !(Value & (Value - 1));
  ------------------
  |  Branch (355:10): [True: 75, False: 0]
  |  Branch (355:19): [True: 75, False: 0]
  ------------------
  356|     75|}
_ZN7llvm_ks13isPowerOf2_64Em:
  360|  2.01M|inline bool isPowerOf2_64(uint64_t Value) {
  361|  2.01M|  return Value && !(Value & (Value - int64_t(1L)));
  ------------------
  |  Branch (361:10): [True: 2.01M, False: 6]
  |  Branch (361:19): [True: 2.01M, False: 944]
  ------------------
  362|  2.01M|}
_ZN7llvm_ks7Log2_32Ej:
  468|     75|inline unsigned Log2_32(uint32_t Value) {
  469|     75|  return 31 - countLeadingZeros(Value);
  470|     75|}
_ZN7llvm_ks7Log2_64Em:
  474|      7|inline unsigned Log2_64(uint64_t Value) {
  475|      7|  return 63 - countLeadingZeros(Value);
  476|      7|}
_ZN7llvm_ks9alignAddrEPKvm:
  565|  2.01M|inline uintptr_t alignAddr(const void *Addr, size_t Alignment) {
  566|  2.01M|  assert(Alignment && isPowerOf2_64((uint64_t)Alignment) &&
  ------------------
  |  Branch (566:3): [True: 2.01M, False: 0]
  |  Branch (566:3): [True: 2.01M, False: 0]
  |  Branch (566:3): [True: 2.01M, Folded]
  |  Branch (566:3): [True: 2.01M, False: 0]
  ------------------
  567|  2.01M|         "Alignment is not a power of two!");
  568|       |
  569|  2.01M|  assert((uintptr_t)Addr + Alignment - 1 >= (uintptr_t)Addr);
  ------------------
  |  Branch (569:3): [True: 2.01M, False: 0]
  ------------------
  570|       |
  571|  2.01M|  return (((uintptr_t)Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1));
  572|  2.01M|}
_ZN7llvm_ks19alignmentAdjustmentEPKvm:
  576|  1.84M|inline size_t alignmentAdjustment(const void *Ptr, size_t Alignment) {
  577|  1.84M|  return alignAddr(Ptr, Alignment) - (uintptr_t)Ptr;
  578|  1.84M|}
_ZN7llvm_ks12NextPowerOf2Em:
  582|  36.9k|inline uint64_t NextPowerOf2(uint64_t A) {
  583|  36.9k|  A |= (A >> 1);
  584|  36.9k|  A |= (A >> 2);
  585|  36.9k|  A |= (A >> 4);
  586|  36.9k|  A |= (A >> 8);
  587|  36.9k|  A |= (A >> 16);
  588|  36.9k|  A |= (A >> 32);
  589|  36.9k|  return A + 1;
  590|  36.9k|}
_ZN7llvm_ks7alignToEmmm:
  619|  54.1k|inline uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew = 0) {
  620|  54.1k|  Skew %= Align;
  621|  54.1k|  return (Value + Align - 1 - Skew) / Align * Align + Skew;
  622|  54.1k|}
_ZN7llvm_ks17OffsetToAlignmentEmm:
  627|  16.8k|inline uint64_t OffsetToAlignment(uint64_t Value, uint64_t Align) {
  628|  16.8k|  return alignTo(Value, Align) - Value;
  629|  16.8k|}
_ZN7llvm_ks17countLeadingZerosIjEEmT_NS_12ZeroBehaviorE:
  178|     75|std::size_t countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
  179|     75|  static_assert(std::numeric_limits<T>::is_integer &&
  180|     75|                    !std::numeric_limits<T>::is_signed,
  181|     75|                "Only unsigned integral types are allowed.");
  182|     75|  return detail::LeadingZerosCounter<T, sizeof(T)>::count(Val, ZB);
  183|     75|}
_ZN7llvm_ks6detail19LeadingZerosCounterIjLm4EE5countEjNS_12ZeroBehaviorE:
  137|     75|  static std::size_t count(T Val, ZeroBehavior ZB) {
  138|     75|    if (ZB != ZB_Undefined && Val == 0)
  ------------------
  |  Branch (138:9): [True: 75, False: 0]
  |  Branch (138:31): [True: 0, False: 75]
  ------------------
  139|      0|      return 32;
  140|       |
  141|     75|#if __has_builtin(__builtin_clz) || LLVM_GNUC_PREREQ(4, 0, 0)
  142|     75|    return __builtin_clz(Val);
  143|       |#elif defined(_MSC_VER)
  144|       |    unsigned long Index;
  145|       |    _BitScanReverse(&Index, Val);
  146|       |    return Index ^ 31;
  147|       |#endif
  148|     75|  }
_ZN7llvm_ks17countLeadingZerosImEEmT_NS_12ZeroBehaviorE:
  178|   884k|std::size_t countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
  179|   884k|  static_assert(std::numeric_limits<T>::is_integer &&
  180|   884k|                    !std::numeric_limits<T>::is_signed,
  181|   884k|                "Only unsigned integral types are allowed.");
  182|   884k|  return detail::LeadingZerosCounter<T, sizeof(T)>::count(Val, ZB);
  183|   884k|}
_ZN7llvm_ks6detail19LeadingZerosCounterImLm8EE5countEmNS_12ZeroBehaviorE:
  153|   884k|  static std::size_t count(T Val, ZeroBehavior ZB) {
  154|   884k|    if (ZB != ZB_Undefined && Val == 0)
  ------------------
  |  Branch (154:9): [True: 694k, False: 189k]
  |  Branch (154:31): [True: 172k, False: 521k]
  ------------------
  155|   172k|      return 64;
  156|       |
  157|   711k|#if __has_builtin(__builtin_clzll) || LLVM_GNUC_PREREQ(4, 0, 0)
  158|   711k|    return __builtin_clzll(Val);
  159|       |#elif defined(_MSC_VER)
  160|       |    unsigned long Index;
  161|       |    _BitScanReverse64(&Index, Val);
  162|       |    return Index ^ 63;
  163|       |#endif
  164|   884k|  }
_ZN7llvm_ks18countTrailingZerosImEEmT_NS_12ZeroBehaviorE:
  109|  36.2k|std::size_t countTrailingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
  110|  36.2k|  static_assert(std::numeric_limits<T>::is_integer &&
  111|  36.2k|                    !std::numeric_limits<T>::is_signed,
  112|  36.2k|                "Only unsigned integral types are allowed.");
  113|  36.2k|  return detail::TrailingZerosCounter<T, sizeof(T)>::count(Val, ZB);
  114|  36.2k|}
_ZN7llvm_ks6detail20TrailingZerosCounterImLm8EE5countEmNS_12ZeroBehaviorE:
   84|  36.2k|  static std::size_t count(T Val, ZeroBehavior ZB) {
   85|  36.2k|    if (ZB != ZB_Undefined && Val == 0)
  ------------------
  |  Branch (85:9): [True: 0, False: 36.2k]
  |  Branch (85:31): [True: 0, False: 0]
  ------------------
   86|      0|      return 64;
   87|       |
   88|  36.2k|#if __has_builtin(__builtin_ctzll) || LLVM_GNUC_PREREQ(4, 0, 0)
   89|  36.2k|    return __builtin_ctzll(Val);
   90|       |#elif defined(_MSC_VER)
   91|       |    unsigned long Index;
   92|       |    _BitScanForward64(&Index, Val);
   93|       |    return Index;
   94|       |#endif
   95|  36.2k|  }
_ZN7llvm_ks12findFirstSetImEET_S1_NS_12ZeroBehaviorE:
  192|  36.2k|template <typename T> T findFirstSet(T Val, ZeroBehavior ZB = ZB_Max) {
  193|  36.2k|  if (ZB == ZB_Max && Val == 0)
  ------------------
  |  Branch (193:7): [True: 36.2k, False: 0]
  |  Branch (193:23): [True: 0, False: 36.2k]
  ------------------
  194|      0|    return std::numeric_limits<T>::max();
  195|       |
  196|  36.2k|  return countTrailingZeros(Val, ZB_Undefined);
  197|  36.2k|}
_ZN7llvm_ks11findLastSetImEET_S1_NS_12ZeroBehaviorE:
  206|   189k|template <typename T> T findLastSet(T Val, ZeroBehavior ZB = ZB_Max) {
  207|   189k|  if (ZB == ZB_Max && Val == 0)
  ------------------
  |  Branch (207:7): [True: 189k, False: 0]
  |  Branch (207:23): [True: 0, False: 189k]
  ------------------
  208|      0|    return std::numeric_limits<T>::max();
  209|       |
  210|       |  // Use ^ instead of - because both gcc and llvm can remove the associated ^
  211|       |  // in the __builtin_clz intrinsic on x86.
  212|   189k|  return countLeadingZeros(Val, ZB_Undefined) ^
  213|   189k|         (std::numeric_limits<T>::digits - 1);
  214|   189k|}
_ZN7llvm_ks6isUIntILj5EEEbm:
  289|      5|inline bool isUInt(uint64_t x) {
  290|      5|  return N >= 64 || x < (UINT64_C(1)<<(N));
  ------------------
  |  Branch (290:10): [Folded, False: 5]
  |  Branch (290:21): [True: 3, False: 2]
  ------------------
  291|      5|}
_ZN7llvm_ks5isIntILj6EEEbl:
  263|    113|inline bool isInt(int64_t x) {
  264|    113|  return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
  ------------------
  |  Branch (264:10): [Folded, False: 113]
  |  Branch (264:22): [True: 77, False: 36]
  |  Branch (264:51): [True: 57, False: 20]
  ------------------
  265|    113|}
_ZN7llvm_ks6isUIntILj10EEEbm:
  289|      8|inline bool isUInt(uint64_t x) {
  290|      8|  return N >= 64 || x < (UINT64_C(1)<<(N));
  ------------------
  |  Branch (290:10): [Folded, False: 8]
  |  Branch (290:21): [True: 5, False: 3]
  ------------------
  291|      8|}
_ZN7llvm_ks5isIntILj10EEEbl:
  263|     57|inline bool isInt(int64_t x) {
  264|     57|  return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
  ------------------
  |  Branch (264:10): [Folded, False: 57]
  |  Branch (264:22): [True: 25, False: 32]
  |  Branch (264:51): [True: 17, False: 8]
  ------------------
  265|     57|}
_ZN7llvm_ks6isUIntILj12EEEbm:
  289|     38|inline bool isUInt(uint64_t x) {
  290|     38|  return N >= 64 || x < (UINT64_C(1)<<(N));
  ------------------
  |  Branch (290:10): [Folded, False: 38]
  |  Branch (290:21): [True: 12, False: 26]
  ------------------
  291|     38|}
_ZN7llvm_ks12isShiftedIntILj20ELj1EEEbl:
  283|    447|inline bool isShiftedInt(int64_t x) {
  284|    447|  return isInt<N+S>(x) && (x % (1<<S) == 0);
  ------------------
  |  Branch (284:10): [True: 412, False: 35]
  |  Branch (284:27): [True: 368, False: 44]
  ------------------
  285|    447|}
_ZN7llvm_ks5isIntILj21EEEbl:
  263|    447|inline bool isInt(int64_t x) {
  264|    447|  return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
  ------------------
  |  Branch (264:10): [Folded, False: 447]
  |  Branch (264:22): [True: 433, False: 14]
  |  Branch (264:51): [True: 412, False: 21]
  ------------------
  265|    447|}
_ZN7llvm_ks5isIntILj12EEEbl:
  263|    560|inline bool isInt(int64_t x) {
  264|    560|  return N >= 64 || (-(INT64_C(1)<<(N-1)) <= x && x < (INT64_C(1)<<(N-1)));
  ------------------
  |  Branch (264:10): [Folded, False: 560]
  |  Branch (264:22): [True: 528, False: 32]
  |  Branch (264:51): [True: 509, False: 19]
  ------------------
  265|    560|}
_ZN7llvm_ks13isShiftedUIntILj8ELj2EEEbm:
  309|      8|inline bool isShiftedUInt(uint64_t x) {
  310|      8|  return isUInt<N+S>(x) && (x % (1<<S) == 0);
  ------------------
  |  Branch (310:10): [True: 5, False: 3]
  |  Branch (310:28): [True: 5, False: 0]
  ------------------
  311|      8|}
_ZN7llvm_ks12isShiftedIntILj6ELj4EEEbl:
  283|     57|inline bool isShiftedInt(int64_t x) {
  284|     57|  return isInt<N+S>(x) && (x % (1<<S) == 0);
  ------------------
  |  Branch (284:10): [True: 17, False: 40]
  |  Branch (284:27): [True: 10, False: 7]
  ------------------
  285|     57|}
_ZN7llvm_ks12isShiftedIntILj11ELj1EEEbl:
  283|    371|inline bool isShiftedInt(int64_t x) {
  284|    371|  return isInt<N+S>(x) && (x % (1<<S) == 0);
  ------------------
  |  Branch (284:10): [True: 353, False: 18]
  |  Branch (284:27): [True: 351, False: 2]
  ------------------
  285|    371|}

_ZN7llvm_ks12MemoryBufferC2Ev:
   43|  45.8k|  MemoryBuffer() {}
_ZNK7llvm_ks12MemoryBuffer14getBufferStartEv:
   49|  1.41M|  const char *getBufferStart() const { return BufferStart; }
_ZNK7llvm_ks12MemoryBuffer12getBufferEndEv:
   50|   698k|  const char *getBufferEnd() const   { return BufferEnd; }
_ZNK7llvm_ks12MemoryBuffer13getBufferSizeEv:
   51|  77.7k|  size_t getBufferSize() const { return BufferEnd-BufferStart; }
_ZNK7llvm_ks12MemoryBuffer9getBufferEv:
   53|  77.7k|  StringRef getBuffer() const {
   54|  77.7k|    return StringRef(BufferStart, getBufferSize());
   55|  77.7k|  }

_ZNK7llvm_ks3sys4path14const_iteratordeEv:
   61|  27.2k|  reference operator*() const { return Component; }
_ZNK7llvm_ks3sys4path14const_iteratorptEv:
   62|  13.6k|  pointer   operator->() const { return &Component; }
_ZNK7llvm_ks3sys4path14const_iteratorneERKS2_:
   65|  13.6k|  bool operator!=(const const_iterator &RHS) const { return !(*this == RHS); }

_ZN7llvm_ks21PointerLikeTypeTraitsIPNS_10MCFragmentEE16getAsVoidPointerES2_:
   41|   169k|  static inline void *getAsVoidPointer(T *P) { return P; }
_ZN7llvm_ks21PointerLikeTypeTraitsIPNS_10MCFragmentEE18getFromVoidPointerEPv:
   42|   479k|  static inline T *getFromVoidPointer(void *P) { return static_cast<T *>(P); }
_ZN7llvm_ks21PointerLikeTypeTraitsIPKNS_8MCSymbolEE16getAsVoidPointerES3_:
   68|  13.2k|  static inline const void *getAsVoidPointer(const T *P) {
   69|  13.2k|    return NonConst::getAsVoidPointer(const_cast<T *>(P));
   70|  13.2k|  }
_ZN7llvm_ks21PointerLikeTypeTraitsIPNS_8MCSymbolEE16getAsVoidPointerES2_:
   41|  13.2k|  static inline void *getAsVoidPointer(T *P) { return P; }

_ZN7llvm_ks5SMLocC2Ev:
   27|  29.9M|  SMLoc() : Ptr(nullptr) {}
_ZNK7llvm_ks5SMLoc7isValidEv:
   29|  29.8k|  bool isValid() const { return Ptr != nullptr; }
_ZNK7llvm_ks5SMLoceqERKS0_:
   31|  9.54k|  bool operator==(const SMLoc &RHS) const { return RHS.Ptr == Ptr; }
_ZNK7llvm_ks5SMLocneERKS0_:
   32|  7.35M|  bool operator!=(const SMLoc &RHS) const { return RHS.Ptr != Ptr; }
_ZNK7llvm_ks5SMLoc10getPointerEv:
   34|  2.46M|  const char *getPointer() const { return Ptr; }
_ZN7llvm_ks5SMLoc14getFromPointerEPKc:
   36|  29.0M|  static SMLoc getFromPointer(const char *Ptr) {
   37|  29.0M|    SMLoc L;
   38|  29.0M|    L.Ptr = Ptr;
   39|  29.0M|    return L;
   40|  29.0M|  }
_ZN7llvm_ks7SMRangeC2ENS_5SMLocES1_:
   53|     50|  SMRange(SMLoc St, SMLoc En) : Start(St), End(En) {
   54|       |    assert(Start.isValid() == End.isValid() &&
  ------------------
  |  Branch (54:5): [True: 50, False: 0]
  |  Branch (54:5): [True: 50, Folded]
  |  Branch (54:5): [True: 50, False: 0]
  ------------------
   55|     50|           "Start and end should either both be valid or both be invalid!");
   56|     50|  }
_ZNK7llvm_ks7SMRange7isValidEv:
   58|     50|  bool isValid() const { return Start.isValid(); }

_ZN7llvm_ks9SourceMgrC2Ev:
   80|  13.6k|    : LineNoCache(nullptr), DiagHandler(nullptr), DiagContext(nullptr) {}
_ZN7llvm_ks9SourceMgr12clearBuffersEv:
  121|  13.6k|  void clearBuffers() {
  122|  13.6k|      Buffers.clear();
  123|  13.6k|  }
_ZN7llvm_ks9SourceMgr18AddNewSourceBufferENSt3__110unique_ptrINS_12MemoryBufferENS1_14default_deleteIS3_EEEENS_5SMLocE:
  128|  45.8k|                              SMLoc IncludeLoc) {
  129|  45.8k|    SrcBuffer NB;
  130|  45.8k|    NB.Buffer = std::move(F);
  131|  45.8k|    NB.IncludeLoc = IncludeLoc;
  132|  45.8k|    Buffers.push_back(std::move(NB));
  133|  45.8k|    return Buffers.size();
  134|  45.8k|  }
_ZN7llvm_ks9SourceMgr9SrcBufferC2Ev:
   55|  45.8k|    SrcBuffer() {}
_ZN7llvm_ks9SourceMgr9SrcBufferC2EOS1_:
   58|  97.5k|        : Buffer(std::move(O.Buffer)), IncludeLoc(O.IncludeLoc) {}
_ZNK7llvm_ks9SourceMgr15isValidBufferIDEj:
   74|   142k|  bool isValidBufferID(unsigned i) const { return i && i <= Buffers.size(); }
  ------------------
  |  Branch (74:51): [True: 142k, False: 0]
  |  Branch (74:56): [True: 142k, False: 0]
  ------------------
_ZN7llvm_ks9SourceMgr14setDiagHandlerEPFvRKNS_12SMDiagnosticEPvES4_:
   89|  27.2k|  void setDiagHandler(DiagHandlerTy DH, void *Ctx = nullptr) {
   90|  27.2k|    DiagHandler = DH;
   91|  27.2k|    DiagContext = Ctx;
   92|  27.2k|  }
_ZNK7llvm_ks9SourceMgr14getDiagHandlerEv:
   94|  13.6k|  DiagHandlerTy getDiagHandler() const { return DiagHandler; }
_ZNK7llvm_ks9SourceMgr14getDiagContextEv:
   95|  13.6k|  void *getDiagContext() const { return DiagContext; }
_ZNK7llvm_ks9SourceMgr15getMemoryBufferEj:
  102|   123k|  const MemoryBuffer *getMemoryBuffer(unsigned i) const {
  103|   123k|    assert(isValidBufferID(i));
  ------------------
  |  Branch (103:5): [True: 123k, False: 0]
  ------------------
  104|   123k|    return Buffers[i - 1].Buffer.get();
  105|   123k|  }
_ZNK7llvm_ks9SourceMgr13getNumBuffersEv:
  107|  49.0k|  unsigned getNumBuffers() const {
  108|  49.0k|    return Buffers.size();
  109|  49.0k|  }
_ZNK7llvm_ks9SourceMgr13getMainFileIDEv:
  111|  35.4k|  unsigned getMainFileID() const {
  112|  35.4k|    assert(getNumBuffers());
  ------------------
  |  Branch (112:5): [True: 35.4k, False: 0]
  ------------------
  113|  35.4k|    return 1;
  114|  35.4k|  }
_ZNK7llvm_ks9SourceMgr19getParentIncludeLocEj:
  116|  19.4k|  SMLoc getParentIncludeLoc(unsigned i) const {
  117|  19.4k|    assert(isValidBufferID(i));
  ------------------
  |  Branch (117:5): [True: 19.4k, False: 0]
  ------------------
  118|  19.4k|    return Buffers[i - 1].IncludeLoc;
  119|  19.4k|  }
_ZNK7llvm_ks9SourceMgr14FindLineNumberENS_5SMLocEj:
  152|  1.68k|  unsigned FindLineNumber(SMLoc Loc, unsigned BufferID = 0) const {
  153|  1.68k|    return getLineAndColumn(Loc, BufferID).first;
  154|  1.68k|  }
_ZNK7llvm_ks12SMDiagnostic12getSourceMgrEv:
  263|  22.6k|  const SourceMgr *getSourceMgr() const { return SM; }
_ZNK7llvm_ks12SMDiagnostic6getLocEv:
  264|  22.6k|  SMLoc getLoc() const { return Loc; }
_ZNK7llvm_ks12SMDiagnostic11getColumnNoEv:
  267|    841|  int getColumnNo() const { return ColumnNo; }
_ZNK7llvm_ks12SMDiagnostic7getKindEv:
  268|    841|  SourceMgr::DiagKind getKind() const { return Kind; }
_ZNK7llvm_ks12SMDiagnostic10getMessageEv:
  269|    841|  StringRef getMessage() const { return Message; }
_ZNK7llvm_ks12SMDiagnostic15getLineContentsEv:
  270|    841|  StringRef getLineContents() const { return LineContents; }
_ZNK7llvm_ks12SMDiagnostic9getRangesEv:
  271|    841|  ArrayRef<std::pair<unsigned, unsigned> > getRanges() const {
  272|    841|    return Ranges;
  273|    841|  }

_ZN7llvm_ks11StringSaverC2ERNS_20BumpPtrAllocatorImplINS_15MallocAllocatorELm4096ELm4096EEE:
   25|  13.6k|  StringSaver(BumpPtrAllocator &Alloc) : Alloc(Alloc) {}

_ZNK7llvm_ks6Target15createMCRegInfoENS_9StringRefE:
  260|  13.6k|  MCRegisterInfo *createMCRegInfo(StringRef TT) const {
  261|  13.6k|    if (!MCRegInfoCtorFn)
  ------------------
  |  Branch (261:9): [True: 0, False: 13.6k]
  ------------------
  262|      0|      return nullptr;
  263|  13.6k|    return MCRegInfoCtorFn(Triple(TT));
  264|  13.6k|  }
_ZNK7llvm_ks6Target15createMCAsmInfoERKNS_14MCRegisterInfoENS_9StringRefE:
  236|  13.6k|                             StringRef TheTriple) const {
  237|  13.6k|    if (!MCAsmInfoCtorFn)
  ------------------
  |  Branch (237:9): [True: 0, False: 13.6k]
  ------------------
  238|      0|      return nullptr;
  239|  13.6k|    return MCAsmInfoCtorFn(MRI, Triple(TheTriple));
  240|  13.6k|  }
_ZNK7llvm_ks6Target17createMCInstrInfoEv:
  244|  13.6k|  MCInstrInfo *createMCInstrInfo() const {
  245|  13.6k|    if (!MCInstrInfoCtorFn)
  ------------------
  |  Branch (245:9): [True: 0, False: 13.6k]
  ------------------
  246|      0|      return nullptr;
  247|  13.6k|    return MCInstrInfoCtorFn();
  248|  13.6k|  }
_ZNK7llvm_ks6Target21createMCSubtargetInfoENS_9StringRefES1_S1_:
  276|  13.6k|                                         StringRef Features) const {
  277|  13.6k|    if (!MCSubtargetInfoCtorFn)
  ------------------
  |  Branch (277:9): [True: 0, False: 13.6k]
  ------------------
  278|      0|      return nullptr;
  279|  13.6k|    return MCSubtargetInfoCtorFn(Triple(TheTriple), CPU, Features);
  280|  13.6k|  }
_ZNK7llvm_ks6Target19createMCAsmBackend2ERKNS_14MCRegisterInfoENS_9StringRefES4_RKNS_15MCSubtargetInfoERKNS_15MCTargetOptionsE:
  308|  13.6k|                                   StringRef TheTriple, StringRef CPU, const MCSubtargetInfo &STI, const MCTargetOptions &Options) const {
  309|  13.6k|    if (!MCAsmBackendCtorFn2)
  ------------------
  |  Branch (309:9): [True: 0, False: 13.6k]
  ------------------
  310|      0|      return nullptr;
  311|  13.6k|    return MCAsmBackendCtorFn2(*this, MRI, Triple(TheTriple), CPU, STI, Options);
  312|  13.6k|  }
_ZNK7llvm_ks6Target19createMCCodeEmitterERKNS_11MCInstrInfoERKNS_14MCRegisterInfoERNS_9MCContextE:
  338|  13.6k|                                     MCContext &Ctx) const {
  339|  13.6k|    if (!MCCodeEmitterCtorFn)
  ------------------
  |  Branch (339:9): [True: 0, False: 13.6k]
  ------------------
  340|      0|      return nullptr;
  341|  13.6k|    return MCCodeEmitterCtorFn(II, MRI, Ctx);
  342|  13.6k|  }
_ZNK7llvm_ks6Target22createMCObjectStreamerERKNS_6TripleERNS_9MCContextERNS_12MCAsmBackendERNS_17raw_pwrite_streamEPNS_13MCCodeEmitterERKNS_15MCSubtargetInfoEbb:
  356|  13.6k|                                     bool DWARFMustBeAtTheEnd) const {
  357|  13.6k|    MCStreamer *S;
  358|  13.6k|    switch (T.getObjectFormat()) {
  359|      0|    default:
  ------------------
  |  Branch (359:5): [True: 0, False: 13.6k]
  ------------------
  360|      0|      llvm_unreachable("Unknown object format");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  361|  13.6k|    case Triple::ELF:
  ------------------
  |  Branch (361:5): [True: 13.6k, False: 0]
  ------------------
  362|  13.6k|      if (ELFStreamerCtorFn)
  ------------------
  |  Branch (362:11): [True: 0, False: 13.6k]
  ------------------
  363|      0|        S = ELFStreamerCtorFn(T, Ctx, TAB, OS, Emitter, RelaxAll);
  364|  13.6k|      else
  365|  13.6k|        S = createELFStreamer(Ctx, TAB, OS, Emitter, RelaxAll);
  366|  13.6k|      break;
  367|  13.6k|    }
  368|  13.6k|    if (ObjectTargetStreamerCtorFn)
  ------------------
  |  Branch (368:9): [True: 13.6k, False: 0]
  ------------------
  369|  13.6k|      ObjectTargetStreamerCtorFn(*S, STI);
  370|  13.6k|    return S;
  371|  13.6k|  }
_ZNK7llvm_ks6Target17createMCAsmParserERKNS_15MCSubtargetInfoERNS_11MCAsmParserERKNS_11MCInstrInfoERKNS_15MCTargetOptionsE:
  320|  13.6k|                                       const MCTargetOptions &Options) const {
  321|  13.6k|    if (!MCAsmParserCtorFn)
  ------------------
  |  Branch (321:9): [True: 0, False: 13.6k]
  ------------------
  322|      0|      return nullptr;
  323|  13.6k|    return MCAsmParserCtorFn(STI, Parser, MII, Options);
  324|  13.6k|  }
_ZN7llvm_ks6TargetC2Ev:
  198|     46|      : ELFStreamerCtorFn(nullptr), NullTargetStreamerCtorFn(nullptr),
  199|     46|        AsmTargetStreamerCtorFn(nullptr), ObjectTargetStreamerCtorFn(nullptr),
  200|     46|        MCRelocationInfoCtorFn(nullptr) {}
_ZNK7llvm_ks6Target7getNextEv:
  206|   313k|  const Target *getNext() const { return Next; }
_ZN7llvm_ks14TargetRegistry8iteratorC2EPNS_6TargetE:
  420|  95.4k|    explicit iterator(Target *T) : Current(T) {}
_ZN7llvm_ks14TargetRegistry8iteratorC2Ev:
  424|  95.4k|    iterator() : Current(nullptr) {}
_ZNK7llvm_ks14TargetRegistry8iteratoreqERKS1_:
  426|   368k|    bool operator==(const iterator &x) const { return Current == x.Current; }
_ZNK7llvm_ks14TargetRegistry8iteratorneERKS1_:
  427|   340k|    bool operator!=(const iterator &x) const { return !operator==(x); }
_ZN7llvm_ks14TargetRegistry8iteratorppEv:
  430|   313k|    iterator &operator++() { // Preincrement
  431|   313k|      assert(Current && "Cannot increment end iterator!");
  ------------------
  |  Branch (431:7): [True: 313k, False: 0]
  |  Branch (431:7): [True: 313k, Folded]
  |  Branch (431:7): [True: 313k, False: 0]
  ------------------
  432|   313k|      Current = Current->getNext();
  433|   313k|      return *this;
  434|   313k|    }
_ZNK7llvm_ks14TargetRegistry8iteratordeEv:
  441|   327k|    const Target &operator*() const {
  442|   327k|      assert(Current && "Cannot dereference end iterator!");
  ------------------
  |  Branch (442:7): [True: 327k, False: 0]
  |  Branch (442:7): [True: 327k, Folded]
  |  Branch (442:7): [True: 327k, False: 0]
  ------------------
  443|   327k|      return *Current;
  444|   327k|    }
_ZN7llvm_ks14TargetRegistry17RegisterMCAsmInfoERNS_6TargetEPFPNS_9MCAsmInfoERKNS_14MCRegisterInfoERKNS_6TripleEE:
  508|     23|  static void RegisterMCAsmInfo(Target &T, Target::MCAsmInfoCtorFnTy Fn) {
  509|     23|    T.MCAsmInfoCtorFn = Fn;
  510|     23|  }
_ZN7llvm_ks14TargetRegistry19RegisterMCInstrInfoERNS_6TargetEPFPNS_11MCInstrInfoEvE:
  521|     23|  static void RegisterMCInstrInfo(Target &T, Target::MCInstrInfoCtorFnTy Fn) {
  522|     23|    T.MCInstrInfoCtorFn = Fn;
  523|     23|  }
_ZN7llvm_ks14TargetRegistry17RegisterMCRegInfoERNS_6TargetEPFPNS_14MCRegisterInfoERKNS_6TripleEE:
  541|     23|  static void RegisterMCRegInfo(Target &T, Target::MCRegInfoCtorFnTy Fn) {
  542|     23|    T.MCRegInfoCtorFn = Fn;
  543|     23|  }
_ZN7llvm_ks14TargetRegistry23RegisterMCSubtargetInfoERNS_6TargetEPFPNS_15MCSubtargetInfoERKNS_6TripleENS_9StringRefES8_E:
  555|     23|                                      Target::MCSubtargetInfoCtorFnTy Fn) {
  556|     23|    T.MCSubtargetInfoCtorFn = Fn;
  557|     23|  }
_ZN7llvm_ks14TargetRegistry20RegisterMCAsmBackendERNS_6TargetEPFPNS_12MCAsmBackendERKS1_RKNS_14MCRegisterInfoERKNS_6TripleENS_9StringRefEE:
  581|     21|  static void RegisterMCAsmBackend(Target &T, Target::MCAsmBackendCtorTy Fn) {
  582|     21|    T.MCAsmBackendCtorFn = Fn;
  583|     21|  }
_ZN7llvm_ks14TargetRegistry21RegisterMCAsmBackend2ERNS_6TargetEPFPNS_12MCAsmBackendERKS1_RKNS_14MCRegisterInfoERKNS_6TripleENS_9StringRefERKNS_15MCSubtargetInfoERKNS_15MCTargetOptionsEE:
  584|      2|  static void RegisterMCAsmBackend2(Target &T, Target::MCAsmBackendCtorTy2 Fn) {
  585|      2|    T.MCAsmBackendCtorFn2 = Fn;
  586|      2|  }
_ZN7llvm_ks14TargetRegistry19RegisterMCAsmParserERNS_6TargetEPFPNS_17MCTargetAsmParserERKNS_15MCSubtargetInfoERNS_11MCAsmParserERKNS_11MCInstrInfoERKNS_15MCTargetOptionsEE:
  597|     23|  static void RegisterMCAsmParser(Target &T, Target::MCAsmParserCtorTy Fn) {
  598|     23|    T.MCAsmParserCtorFn = Fn;
  599|     23|  }
_ZN7llvm_ks14TargetRegistry21RegisterMCCodeEmitterERNS_6TargetEPFPNS_13MCCodeEmitterERKNS_11MCInstrInfoERKNS_14MCRegisterInfoERNS_9MCContextEE:
  623|     23|  static void RegisterMCCodeEmitter(Target &T, Target::MCCodeEmitterCtorTy Fn) {
  624|     23|    T.MCCodeEmitterCtorFn = Fn;
  625|     23|  }
_ZN7llvm_ks14TargetRegistry25RegisterAsmTargetStreamerERNS_6TargetEPFPNS_16MCTargetStreamerERNS_10MCStreamerERNS_21formatted_raw_ostreamEE:
  637|      2|                                        Target::AsmTargetStreamerCtorTy Fn) {
  638|      2|    T.AsmTargetStreamerCtorFn = Fn;
  639|      2|  }
_ZN7llvm_ks14TargetRegistry28RegisterObjectTargetStreamerERNS_6TargetEPFPNS_16MCTargetStreamerERNS_10MCStreamerERKNS_15MCSubtargetInfoEE:
  643|      2|                               Target::ObjectTargetStreamerCtorTy Fn) {
  644|      2|    T.ObjectTargetStreamerCtorFn = Fn;
  645|      2|  }
_ZN7llvm_ks14TargetRegistry24RegisterMCRelocationInfoERNS_6TargetEPFPNS_16MCRelocationInfoERKNS_6TripleERNS_9MCContextEE:
  657|      2|                                       Target::MCRelocationInfoCtorTy Fn) {
  658|      2|    T.MCRelocationInfoCtorFn = Fn;
  659|      2|  }
_ZN7llvm_ks19RegisterMCAsmInfoFnC2ERNS_6TargetEPFPNS_9MCAsmInfoERKNS_14MCRegisterInfoERKNS_6TripleEE:
  715|     20|  RegisterMCAsmInfoFn(Target &T, Target::MCAsmInfoCtorFnTy Fn) {
  716|     20|    TargetRegistry::RegisterMCAsmInfo(T, Fn);
  717|     20|  }
AArch64AsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_116AArch64AsmParserEEC2ERNS_6TargetE:
  900|      3|  RegisterMCAsmParser(Target &T) {
  901|      3|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      3|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE3EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE3EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE4EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE4EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
ARMAsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_112ARMAsmParserEEC2ERNS_6TargetE:
  900|      4|  RegisterMCAsmParser(Target &T) {
  901|      4|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      4|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE1EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE1EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE2EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE2EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE26EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE26EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE27EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE27EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
HexagonAsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_116HexagonAsmParserEEC2ERNS_6TargetE:
  900|      1|  RegisterMCAsmParser(Target &T) {
  901|      1|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE8EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE8EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
MipsAsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_113MipsAsmParserEEC2ERNS_6TargetE:
  900|      4|  RegisterMCAsmParser(Target &T) {
  901|      4|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      4|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE9EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE9EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE10EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE10EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE11EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE11EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE12EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE12EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
PPCAsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_112PPCAsmParserEEC2ERNS_6TargetE:
  900|      3|  RegisterMCAsmParser(Target &T) {
  901|      3|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      3|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE14EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE14EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE15EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE15EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE16EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE16EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
SparcAsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_114SparcAsmParserEEC2ERNS_6TargetE:
  900|      3|  RegisterMCAsmParser(Target &T) {
  901|      3|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      3|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE21EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE21EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE22EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE22EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE23EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE23EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
SystemZAsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_116SystemZAsmParserEEC2ERNS_6TargetE:
  900|      1|  RegisterMCAsmParser(Target &T) {
  901|      1|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE24EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE24EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
X86AsmParser.cpp:_ZN7llvm_ks19RegisterMCAsmParserIN12_GLOBAL__N_112X86AsmParserEEC2ERNS_6TargetE:
  900|      2|  RegisterMCAsmParser(Target &T) {
  901|      2|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      2|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE28EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE28EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE29EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE29EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks19RegisterMCAsmParserINS_14RISCVAsmParserEEC2ERNS_6TargetE:
  900|      2|  RegisterMCAsmParser(Target &T) {
  901|      2|    TargetRegistry::RegisterMCAsmParser(T, &Allocator);
  902|      2|  }
_ZN7llvm_ks19RegisterMCAsmParserINS_14RISCVAsmParserEE9AllocatorERKNS_15MCSubtargetInfoERNS_11MCAsmParserERKNS_11MCInstrInfoERKNS_15MCTargetOptionsE:
  907|  13.6k|                                      const MCTargetOptions &Options) {
  908|  13.6k|    return new MCAsmParserImpl(STI, P, MII, Options);
  909|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE18EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE18EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE19EEC2ERNS_6TargetEPKcS7_:
  677|      1|  RegisterTarget(Target &T, const char *Name, const char *Desc) {
  678|      1|    TargetRegistry::RegisterTarget(T, Name, Desc, &getArchMatch);
  679|      1|  }
_ZN7llvm_ks14RegisterTargetILNS_6Triple8ArchTypeE19EE12getArchMatchES2_:
  681|  13.6k|  static bool getArchMatch(Triple::ArchType Arch) {
  682|  13.6k|    return Arch == TargetArchType;
  683|  13.6k|  }

_ZN7llvm_ks24InitializeAllTargetInfosEv:
   44|      1|  inline void InitializeAllTargetInfos() {
   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
   46|      1|#include "llvm/Config/Targets.def"
  ------------------
  |  |    1|       |/*===- llvm/Config/Targets.def - LLVM Target Architectures ------*- C++ -*-===*\
  |  |    2|       ||*                                                                            *|
  |  |    3|       ||*                     The LLVM Compiler Infrastructure                       *|
  |  |    4|       ||*                                                                            *|
  |  |    5|       ||* This file is distributed under the University of Illinois Open Source      *|
  |  |    6|       ||* License. See LICENSE.TXT for details.                                      *|
  |  |    7|       ||*                                                                            *|
  |  |    8|       ||*===----------------------------------------------------------------------===*|
  |  |    9|       ||*                                                                            *|
  |  |   10|       ||* This file enumerates all of the target architectures supported by          *|
  |  |   11|       ||* this build of LLVM. Clients of this file should define the                 *|
  |  |   12|       ||* LLVM_TARGET macro to be a function-like macro with a single                *|
  |  |   13|       ||* parameter (the name of the target); including this file will then          *|
  |  |   14|       ||* enumerate all of the targets.                                              *|
  |  |   15|       ||*                                                                            *|
  |  |   16|       ||* The set of targets supported by LLVM is generated at configuration         *|
  |  |   17|       ||* time, at which point this header is generated. Do not modify this          *|
  |  |   18|       ||* header directly.                                                           *|
  |  |   19|       ||*                                                                            *|
  |  |   20|       |\*===----------------------------------------------------------------------===*/
  |  |   21|       |
  |  |   22|       |#ifndef LLVM_TARGET
  |  |   23|       |#  error Please define the macro LLVM_TARGET(TargetName)
  |  |   24|       |#endif
  |  |   25|       |
  |  |   26|      1|LLVM_TARGET(AArch64)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   27|      1|LLVM_TARGET(ARM)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   28|      1|LLVM_TARGET(Hexagon)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   29|      1|LLVM_TARGET(Mips)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   30|      1|LLVM_TARGET(PowerPC)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   31|      1|LLVM_TARGET(Sparc)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   32|      1|LLVM_TARGET(SystemZ)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   33|      1|LLVM_TARGET(X86)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   34|      1|LLVM_TARGET(RISCV)
  |  |  ------------------
  |  |  |  |   45|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetInfo();
  |  |  ------------------
  |  |   35|       |
  |  |   36|       |
  |  |   37|      1|#undef LLVM_TARGET
  ------------------
   47|      1|  }
_ZN7llvm_ks22InitializeAllTargetMCsEv:
   67|      1|  inline void InitializeAllTargetMCs() {
   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
   69|      1|#include "llvm/Config/Targets.def"
  ------------------
  |  |    1|       |/*===- llvm/Config/Targets.def - LLVM Target Architectures ------*- C++ -*-===*\
  |  |    2|       ||*                                                                            *|
  |  |    3|       ||*                     The LLVM Compiler Infrastructure                       *|
  |  |    4|       ||*                                                                            *|
  |  |    5|       ||* This file is distributed under the University of Illinois Open Source      *|
  |  |    6|       ||* License. See LICENSE.TXT for details.                                      *|
  |  |    7|       ||*                                                                            *|
  |  |    8|       ||*===----------------------------------------------------------------------===*|
  |  |    9|       ||*                                                                            *|
  |  |   10|       ||* This file enumerates all of the target architectures supported by          *|
  |  |   11|       ||* this build of LLVM. Clients of this file should define the                 *|
  |  |   12|       ||* LLVM_TARGET macro to be a function-like macro with a single                *|
  |  |   13|       ||* parameter (the name of the target); including this file will then          *|
  |  |   14|       ||* enumerate all of the targets.                                              *|
  |  |   15|       ||*                                                                            *|
  |  |   16|       ||* The set of targets supported by LLVM is generated at configuration         *|
  |  |   17|       ||* time, at which point this header is generated. Do not modify this          *|
  |  |   18|       ||* header directly.                                                           *|
  |  |   19|       ||*                                                                            *|
  |  |   20|       |\*===----------------------------------------------------------------------===*/
  |  |   21|       |
  |  |   22|       |#ifndef LLVM_TARGET
  |  |   23|       |#  error Please define the macro LLVM_TARGET(TargetName)
  |  |   24|       |#endif
  |  |   25|       |
  |  |   26|      1|LLVM_TARGET(AArch64)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   27|      1|LLVM_TARGET(ARM)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   28|      1|LLVM_TARGET(Hexagon)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   29|      1|LLVM_TARGET(Mips)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   30|      1|LLVM_TARGET(PowerPC)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   31|      1|LLVM_TARGET(Sparc)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   32|      1|LLVM_TARGET(SystemZ)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   33|      1|LLVM_TARGET(X86)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   34|      1|LLVM_TARGET(RISCV)
  |  |  ------------------
  |  |  |  |   68|      1|#define LLVM_TARGET(TargetName) LLVMInitialize##TargetName##TargetMC();
  |  |  ------------------
  |  |   35|       |
  |  |   36|       |
  |  |   37|      1|#undef LLVM_TARGET
  ------------------
   70|      1|  }
_ZN7llvm_ks23InitializeAllAsmParsersEv:
   85|      1|  inline void InitializeAllAsmParsers() {
   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
   87|      1|#include "llvm/Config/AsmParsers.def"
  ------------------
  |  |    1|       |/*===- llvm/Config/AsmParsers.def - LLVM Assembly Parsers -------*- C++ -*-===*\
  |  |    2|       ||*                                                                            *|
  |  |    3|       ||*                     The LLVM Compiler Infrastructure                       *|
  |  |    4|       ||*                                                                            *|
  |  |    5|       ||* This file is distributed under the University of Illinois Open Source      *|
  |  |    6|       ||* License. See LICENSE.TXT for details.                                      *|
  |  |    7|       ||*                                                                            *|
  |  |    8|       ||*===----------------------------------------------------------------------===*|
  |  |    9|       ||*                                                                            *|
  |  |   10|       ||* This file enumerates all of the assembly-language parsers                  *|
  |  |   11|       ||* supported by this build of LLVM. Clients of this file should define        *|
  |  |   12|       ||* the LLVM_ASM_PARSER macro to be a function-like macro with a               *|
  |  |   13|       ||* single parameter (the name of the target whose assembly can be             *|
  |  |   14|       ||* generated); including this file will then enumerate all of the             *|
  |  |   15|       ||* targets with assembly parsers.                                             *|
  |  |   16|       ||*                                                                            *|
  |  |   17|       ||* The set of targets supported by LLVM is generated at configuration         *|
  |  |   18|       ||* time, at which point this header is generated. Do not modify this          *|
  |  |   19|       ||* header directly.                                                           *|
  |  |   20|       ||*                                                                            *|
  |  |   21|       |\*===----------------------------------------------------------------------===*/
  |  |   22|       |
  |  |   23|       |#ifndef LLVM_ASM_PARSER
  |  |   24|       |#  error Please define the macro LLVM_ASM_PARSER(TargetName)
  |  |   25|       |#endif
  |  |   26|       |
  |  |   27|      1|LLVM_ASM_PARSER(AArch64)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   28|      1|LLVM_ASM_PARSER(ARM)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   29|      1|LLVM_ASM_PARSER(Hexagon)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   30|      1|LLVM_ASM_PARSER(Mips)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   31|      1|LLVM_ASM_PARSER(PowerPC)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   32|      1|LLVM_ASM_PARSER(Sparc)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   33|      1|LLVM_ASM_PARSER(SystemZ)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   34|      1|LLVM_ASM_PARSER(X86)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   35|      1|LLVM_ASM_PARSER(RISCV)
  |  |  ------------------
  |  |  |  |   86|      1|#define LLVM_ASM_PARSER(TargetName) LLVMInitialize##TargetName##AsmParser();
  |  |  ------------------
  |  |   36|       |
  |  |   37|       |
  |  |   38|      1|#undef LLVM_ASM_PARSER
  ------------------
   88|      1|  }

_ZN7llvm_ks19raw_svector_ostreamC2ERNS_15SmallVectorImplIcEE:
  493|   295k|  explicit raw_svector_ostream(SmallVectorImpl<char> &O) : OS(O) {
  494|   295k|    SetUnbuffered();
  495|   295k|  }
_ZN7llvm_ks17raw_pwrite_streamC2Eb:
  325|   295k|      : raw_ostream(Unbuffered) {}
_ZN7llvm_ks11raw_ostreamC2Eb:
   84|   295k|      : BufferMode(unbuffered ? Unbuffered : InternalBuffer) {
  ------------------
  |  Branch (84:20): [True: 1, False: 295k]
  ------------------
   85|       |    // Start out ready to flush.
   86|   295k|    OutBufStart = OutBufEnd = OutBufCur = nullptr;
   87|   295k|  }
_ZN7llvm_ks11raw_ostream13SetUnbufferedEv:
  121|   295k|  void SetUnbuffered() {
  122|   295k|    flush();
  123|   295k|    SetBufferAndMode(nullptr, 0, Unbuffered);
  124|   295k|  }
_ZN7llvm_ks11raw_ostream5flushEv:
  134|   295k|  void flush() {
  135|   295k|    if (OutBufCur != OutBufStart)
  ------------------
  |  Branch (135:9): [True: 0, False: 295k]
  ------------------
  136|      0|      flush_nonempty();
  137|   295k|  }
_ZNK7llvm_ks11raw_ostream4tellEv:
   92|  89.6k|  uint64_t tell() const { return current_pos() + GetNumBytesInBuffer(); }
_ZNK7llvm_ks11raw_ostream19GetNumBytesInBufferEv:
  126|   384k|  size_t GetNumBytesInBuffer() const {
  127|   384k|    return OutBufCur - OutBufStart;
  128|   384k|  }
_ZN7llvm_ks11raw_ostreamlsEc:
  139|  90.6M|  raw_ostream &operator<<(char C) {
  140|  90.6M|    if (OutBufCur >= OutBufEnd)
  ------------------
  |  Branch (140:9): [True: 90.6M, False: 0]
  ------------------
  141|  90.6M|      return write(C);
  142|      0|    *OutBufCur++ = C;
  143|      0|    return *this;
  144|  90.6M|  }
_ZN7llvm_ks11raw_ostreamlsENS_9StringRefE:
  160|  11.7M|  raw_ostream &operator<<(StringRef Str) {
  161|       |    // Inline fast path, particularly for strings with a known length.
  162|  11.7M|    size_t Size = Str.size();
  163|       |
  164|       |    // Make sure we can use the fast path.
  165|  11.7M|    if (Size > (size_t)(OutBufEnd - OutBufCur))
  ------------------
  |  Branch (165:9): [True: 11.6M, False: 90.4k]
  ------------------
  166|  11.6M|      return write(Str.data(), Size);
  167|       |
  168|  90.4k|    if (Size) {
  ------------------
  |  Branch (168:9): [True: 0, False: 90.4k]
  ------------------
  169|      0|      memcpy(OutBufCur, Str.data(), Size);
  170|      0|      OutBufCur += Size;
  171|      0|    }
  172|  90.4k|    return *this;
  173|  11.7M|  }
_ZN7llvm_ks11raw_ostreamlsEPKc:
  175|   450k|  raw_ostream &operator<<(const char *Str) {
  176|       |    // Inline fast path, particularly for constant strings where a sufficiently
  177|       |    // smart compiler will simplify strlen.
  178|       |
  179|   450k|    return this->operator<<(StringRef(Str));
  180|   450k|  }
_ZN7llvm_ks11raw_ostreamlsERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  182|  31.5k|  raw_ostream &operator<<(const std::string &Str) {
  183|       |    // Avoid the fast path, it would only increase code size for a marginal win.
  184|  31.5k|    return write(Str.data(), Str.length());
  185|  31.5k|  }
_ZN7llvm_ks11raw_ostreamlsEj:
  196|  56.0k|  raw_ostream &operator<<(unsigned int N) {
  197|  56.0k|    return this->operator<<(static_cast<unsigned long>(N));
  198|  56.0k|  }
_ZN7llvm_ks11raw_ostreamlsEi:
  200|  19.9k|  raw_ostream &operator<<(int N) {
  201|  19.9k|    return this->operator<<(static_cast<long>(N));
  202|  19.9k|  }
_ZNK7llvm_ks14raw_fd_ostream9has_errorEv:
  415|      1|  bool has_error() const {
  416|      1|    return Error;
  417|      1|  }
_ZN7llvm_ks19raw_svector_ostream3strEv:
  501|  32.2k|  StringRef str() { return StringRef(OS.data(), OS.size()); }

ks_errno:
   42|  5.64k|{
   43|  5.64k|    return (ks_err)ks->errnum;
   44|  5.64k|}
ks_open:
  261|  13.6k|{
  262|  13.6k|    struct ks_struct *ks;
  263|  13.6k|    std::string TripleName = "";
  264|       |
  265|  13.6k|    if (arch < KS_ARCH_MAX) {
  ------------------
  |  Branch (265:9): [True: 13.6k, False: 0]
  ------------------
  266|       |        // LLVM-based architectures
  267|  13.6k|        ks = new (std::nothrow) ks_struct(arch, mode, KS_ERR_OK, KS_OPT_SYNTAX_INTEL);
  268|       |        
  269|  13.6k|        if (!ks) {
  ------------------
  |  Branch (269:13): [True: 0, False: 13.6k]
  ------------------
  270|       |            // memory insufficient
  271|      0|            return KS_ERR_NOMEM;
  272|      0|        }
  273|       |
  274|  13.6k|        switch(arch) {
  275|      0|            default: break;
  ------------------
  |  Branch (275:13): [True: 0, False: 13.6k]
  ------------------
  276|       |
  277|      0|#ifdef LLVM_ENABLE_ARCH_ARM
  278|      0|            case KS_ARCH_ARM:
  ------------------
  |  Branch (278:13): [True: 0, False: 13.6k]
  ------------------
  279|      0|                if (mode & ~KS_MODE_ARM_MASK) {
  ------------------
  |  |   23|      0|#define KS_MODE_ARM_MASK    (KS_MODE_ARM|KS_MODE_THUMB|KS_MODE_LITTLE_ENDIAN|KS_MODE_BIG_ENDIAN|KS_MODE_V8)
  ------------------
  |  Branch (279:21): [True: 0, False: 0]
  ------------------
  280|      0|                    delete ks;
  281|      0|                    return KS_ERR_MODE;
  282|      0|                }
  283|       |
  284|      0|                switch(mode) {
  285|      0|                    default:
  ------------------
  |  Branch (285:21): [True: 0, False: 0]
  ------------------
  286|      0|                        return KS_ERR_MODE;
  287|       |                    // big-endian
  288|      0|                    case KS_MODE_BIG_ENDIAN | KS_MODE_V8 | KS_MODE_ARM:
  ------------------
  |  Branch (288:21): [True: 0, False: 0]
  ------------------
  289|      0|                        TripleName = "armv8eb";
  290|      0|                        break;
  291|      0|                    case KS_MODE_BIG_ENDIAN | KS_MODE_V8 | KS_MODE_THUMB:
  ------------------
  |  Branch (291:21): [True: 0, False: 0]
  ------------------
  292|      0|                        TripleName = "thumbv8eb";
  293|      0|                        break;
  294|      0|                    case KS_MODE_BIG_ENDIAN | KS_MODE_ARM:
  ------------------
  |  Branch (294:21): [True: 0, False: 0]
  ------------------
  295|      0|                        TripleName = "armv7eb";
  296|      0|                        break;
  297|      0|                    case KS_MODE_BIG_ENDIAN | KS_MODE_THUMB:
  ------------------
  |  Branch (297:21): [True: 0, False: 0]
  ------------------
  298|      0|                        TripleName = "thumbebv7";
  299|      0|                        break;
  300|       |
  301|       |                    // little-endian
  302|      0|                    case KS_MODE_LITTLE_ENDIAN | KS_MODE_V8 | KS_MODE_ARM:
  ------------------
  |  Branch (302:21): [True: 0, False: 0]
  ------------------
  303|      0|                        TripleName = "armv8";
  304|      0|                        break;
  305|      0|                    case KS_MODE_LITTLE_ENDIAN | KS_MODE_V8 | KS_MODE_THUMB:
  ------------------
  |  Branch (305:21): [True: 0, False: 0]
  ------------------
  306|      0|                        TripleName = "thumbv8";
  307|      0|                        break;
  308|      0|                    case KS_MODE_LITTLE_ENDIAN | KS_MODE_ARM:
  ------------------
  |  Branch (308:21): [True: 0, False: 0]
  ------------------
  309|      0|                        TripleName = "armv7";
  310|      0|                        break;
  311|      0|                    case KS_MODE_LITTLE_ENDIAN | KS_MODE_THUMB:
  ------------------
  |  Branch (311:21): [True: 0, False: 0]
  ------------------
  312|      0|                        TripleName = "thumbv7";
  313|      0|                        break;
  314|      0|                }
  315|       |
  316|      0|                InitKs(arch, ks, TripleName);
  317|       |
  318|       |                //ks->init_arch = arm_ks_init;
  319|      0|                break;
  320|      0|#endif
  321|       |
  322|      0|#ifdef LLVM_ENABLE_ARCH_AArch64
  323|      0|            case KS_ARCH_ARM64:
  ------------------
  |  Branch (323:13): [True: 0, False: 13.6k]
  ------------------
  324|      0|                if (mode != KS_MODE_LITTLE_ENDIAN) {
  ------------------
  |  Branch (324:21): [True: 0, False: 0]
  ------------------
  325|      0|                    delete ks;
  326|      0|                    return KS_ERR_MODE;
  327|      0|                }
  328|       |
  329|      0|                TripleName = "aarch64";
  330|      0|                InitKs(arch, ks, TripleName);
  331|       |
  332|       |                //ks->init_arch = arm64_ks_init;
  333|      0|                break;
  334|      0|#endif
  335|       |
  336|      0|#ifdef LLVM_ENABLE_ARCH_Hexagon
  337|      0|            case KS_ARCH_HEXAGON:
  ------------------
  |  Branch (337:13): [True: 0, False: 13.6k]
  ------------------
  338|      0|                if (mode & ~KS_MODE_HEXAGON_MASK) {
  ------------------
  |  |   28|      0|#define KS_MODE_HEXAGON_MASK  (KS_MODE_BIG_ENDIAN)
  ------------------
  |  Branch (338:21): [True: 0, False: 0]
  ------------------
  339|      0|                    delete ks;
  340|      0|                    return KS_ERR_MODE;
  341|      0|                }
  342|       |
  343|      0|                TripleName = "hexagon";
  344|       |
  345|      0|                InitKs(arch, ks, TripleName);
  346|       |
  347|       |                //ks->init_arch = arm_ks_init;
  348|      0|                break;
  349|      0|#endif
  350|       |
  351|      0|#ifdef LLVM_ENABLE_ARCH_SystemZ
  352|      0|            case KS_ARCH_SYSTEMZ:
  ------------------
  |  Branch (352:13): [True: 0, False: 13.6k]
  ------------------
  353|      0|                if (mode & ~KS_MODE_SYSTEMZ_MASK) {
  ------------------
  |  |   29|      0|#define KS_MODE_SYSTEMZ_MASK  (KS_MODE_BIG_ENDIAN)
  ------------------
  |  Branch (353:21): [True: 0, False: 0]
  ------------------
  354|      0|                    delete ks;
  355|      0|                    return KS_ERR_MODE;
  356|      0|                }
  357|       |
  358|      0|                TripleName = "s390x";
  359|       |
  360|      0|                InitKs(arch, ks, TripleName);
  361|       |
  362|       |                //ks->init_arch = arm_ks_init;
  363|      0|                break;
  364|      0|#endif
  365|       |
  366|      0|#ifdef LLVM_ENABLE_ARCH_Sparc
  367|      0|            case KS_ARCH_SPARC:
  ------------------
  |  Branch (367:13): [True: 0, False: 13.6k]
  ------------------
  368|      0|                if ((mode & ~KS_MODE_SPARC_MASK) ||
  ------------------
  |  |   27|      0|#define KS_MODE_SPARC_MASK  (KS_MODE_V9|KS_MODE_SPARC32|KS_MODE_SPARC64|KS_MODE_LITTLE_ENDIAN|KS_MODE_BIG_ENDIAN)
  ------------------
  |  Branch (368:21): [True: 0, False: 0]
  ------------------
  369|      0|                        !(mode & (KS_MODE_SPARC32|KS_MODE_SPARC64))) {
  ------------------
  |  Branch (369:25): [True: 0, False: 0]
  ------------------
  370|      0|                    delete ks;
  371|      0|                    return KS_ERR_MODE;
  372|      0|                }
  373|      0|                if (mode & KS_MODE_BIG_ENDIAN) {
  ------------------
  |  Branch (373:21): [True: 0, False: 0]
  ------------------
  374|       |                    // big endian
  375|      0|                    if (mode & KS_MODE_SPARC64)
  ------------------
  |  Branch (375:25): [True: 0, False: 0]
  ------------------
  376|      0|                        TripleName = "sparc64";
  377|      0|                    else
  378|      0|                        TripleName = "sparc";
  379|      0|                } else {
  380|       |                    // little endian
  381|      0|                    if (mode & KS_MODE_SPARC64) {
  ------------------
  |  Branch (381:25): [True: 0, False: 0]
  ------------------
  382|       |                        // TripleName = "sparc64el";
  383|       |                        // FIXME
  384|      0|                        delete ks;
  385|      0|                        return KS_ERR_MODE;
  386|      0|                    } else
  387|      0|                        TripleName = "sparcel";
  388|      0|                }
  389|       |
  390|      0|                InitKs(arch, ks, TripleName);
  391|       |
  392|      0|                break;
  393|      0|#endif
  394|       |
  395|      0|#ifdef LLVM_ENABLE_ARCH_RISCV
  396|  13.6k|            case KS_ARCH_RISCV: {
  ------------------
  |  Branch (396:13): [True: 13.6k, False: 0]
  ------------------
  397|  13.6k|                if ((mode & ~KS_MODE_RISCV_MASK) ||
  ------------------
  |  |   32|  13.6k|#define KS_MODE_RISCV_MASK (KS_MODE_RISCV32|KS_MODE_RISCV64|KS_MODE_LITTLE_ENDIAN)
  ------------------
  |  Branch (397:21): [True: 0, False: 13.6k]
  ------------------
  398|  13.6k|                        (mode & KS_MODE_BIG_ENDIAN) ||
  ------------------
  |  Branch (398:25): [True: 0, False: 13.6k]
  ------------------
  399|  13.6k|                        !(mode & (KS_MODE_RISCV32|KS_MODE_RISCV64))) {
  ------------------
  |  Branch (399:25): [True: 0, False: 13.6k]
  ------------------
  400|      0|                    delete ks;
  401|      0|                    return KS_ERR_MODE;
  402|      0|                }
  403|       |
  404|  13.6k|                switch(mode) {
  405|      0|                    default: break;
  ------------------
  |  Branch (405:21): [True: 0, False: 13.6k]
  ------------------
  406|  13.6k|                    case KS_MODE_RISCV32:
  ------------------
  |  Branch (406:21): [True: 13.6k, False: 0]
  ------------------
  407|  13.6k|                        TripleName = "riscv32";
  408|  13.6k|                        break;
  409|      0|                    case KS_MODE_RISCV64:
  ------------------
  |  Branch (409:21): [True: 0, False: 13.6k]
  ------------------
  410|      0|                        TripleName = "riscv64";
  411|      0|                        break;
  412|  13.6k|                }
  413|       |
  414|  13.6k|                InitKs(arch, ks, TripleName);
  415|       |
  416|  13.6k|                break;
  417|  13.6k|            }
  418|      0|#endif
  419|       |
  420|      0|#ifdef LLVM_ENABLE_ARCH_Mips
  421|      0|            case KS_ARCH_MIPS:
  ------------------
  |  Branch (421:13): [True: 0, False: 13.6k]
  ------------------
  422|      0|                if ((mode & ~KS_MODE_MIPS_MASK) ||
  ------------------
  |  |   24|      0|#define KS_MODE_MIPS_MASK   (KS_MODE_MIPS32|KS_MODE_MIPS64|KS_MODE_LITTLE_ENDIAN|KS_MODE_BIG_ENDIAN)
  ------------------
  |  Branch (422:21): [True: 0, False: 0]
  ------------------
  423|      0|                        !(mode & (KS_MODE_MIPS32|KS_MODE_MIPS64))) {
  ------------------
  |  Branch (423:25): [True: 0, False: 0]
  ------------------
  424|      0|                    delete ks;
  425|      0|                    return KS_ERR_MODE;
  426|      0|                }
  427|      0|                if (mode & KS_MODE_BIG_ENDIAN) {
  ------------------
  |  Branch (427:21): [True: 0, False: 0]
  ------------------
  428|       |                    // big endian
  429|      0|                    if (mode & KS_MODE_MIPS32)
  ------------------
  |  Branch (429:25): [True: 0, False: 0]
  ------------------
  430|      0|                        TripleName = "mips";
  431|      0|                    if (mode & KS_MODE_MIPS64)
  ------------------
  |  Branch (431:25): [True: 0, False: 0]
  ------------------
  432|      0|                        TripleName = "mips64";
  433|      0|                } else {    // little endian
  434|      0|                    if (mode & KS_MODE_MIPS32)
  ------------------
  |  Branch (434:25): [True: 0, False: 0]
  ------------------
  435|      0|                        TripleName = "mipsel";
  436|      0|                    if (mode & KS_MODE_MIPS64)
  ------------------
  |  Branch (436:25): [True: 0, False: 0]
  ------------------
  437|      0|                        TripleName = "mips64el";
  438|      0|                }
  439|       |
  440|      0|                InitKs(arch, ks, TripleName);
  441|       |
  442|      0|                break;
  443|      0|#endif
  444|       |
  445|      0|#ifdef LLVM_ENABLE_ARCH_PowerPC
  446|      0|            case KS_ARCH_PPC:
  ------------------
  |  Branch (446:13): [True: 0, False: 13.6k]
  ------------------
  447|      0|                if ((mode & ~KS_MODE_PPC_MASK) ||
  ------------------
  |  |   26|      0|#define KS_MODE_PPC_MASK    (KS_MODE_PPC32|KS_MODE_PPC64|KS_MODE_LITTLE_ENDIAN|KS_MODE_BIG_ENDIAN)
  ------------------
  |  Branch (447:21): [True: 0, False: 0]
  ------------------
  448|      0|                        !(mode & (KS_MODE_PPC32|KS_MODE_PPC64))) {
  ------------------
  |  Branch (448:25): [True: 0, False: 0]
  ------------------
  449|      0|                    delete ks;
  450|      0|                    return KS_ERR_MODE;
  451|      0|                }
  452|       |
  453|      0|                if (mode & KS_MODE_BIG_ENDIAN) {
  ------------------
  |  Branch (453:21): [True: 0, False: 0]
  ------------------
  454|       |                    // big endian
  455|      0|                    if (mode & KS_MODE_PPC32)
  ------------------
  |  Branch (455:25): [True: 0, False: 0]
  ------------------
  456|      0|                        TripleName = "ppc32";
  457|      0|                    if (mode & KS_MODE_PPC64)
  ------------------
  |  Branch (457:25): [True: 0, False: 0]
  ------------------
  458|      0|                        TripleName = "ppc64";
  459|      0|                } else {    // little endian
  460|      0|                    if (mode & KS_MODE_PPC32) {
  ------------------
  |  Branch (460:25): [True: 0, False: 0]
  ------------------
  461|       |                        // do not support this mode
  462|      0|                        delete ks;
  463|      0|                        return KS_ERR_MODE;
  464|      0|                    }
  465|      0|                    if (mode & KS_MODE_MIPS64)
  ------------------
  |  Branch (465:25): [True: 0, False: 0]
  ------------------
  466|      0|                        TripleName = "ppc64le";
  467|      0|                }
  468|       |
  469|      0|                InitKs(arch, ks, TripleName);
  470|       |
  471|       |                //ks->init_arch = ppc_ks_init;
  472|      0|                break;
  473|      0|#endif
  474|       |
  475|      0|#ifdef LLVM_ENABLE_ARCH_X86
  476|      0|            case KS_ARCH_X86: {
  ------------------
  |  Branch (476:13): [True: 0, False: 13.6k]
  ------------------
  477|      0|                if ((mode & ~KS_MODE_X86_MASK) ||
  ------------------
  |  |   25|      0|#define KS_MODE_X86_MASK    (KS_MODE_16|KS_MODE_32|KS_MODE_64|KS_MODE_LITTLE_ENDIAN)
  ------------------
  |  Branch (477:21): [True: 0, False: 0]
  ------------------
  478|      0|                        (mode & KS_MODE_BIG_ENDIAN) ||
  ------------------
  |  Branch (478:25): [True: 0, False: 0]
  ------------------
  479|      0|                        !(mode & (KS_MODE_16|KS_MODE_32|KS_MODE_64))) {
  ------------------
  |  Branch (479:25): [True: 0, False: 0]
  ------------------
  480|      0|                    delete ks;
  481|      0|                    return KS_ERR_MODE;
  482|      0|                }
  483|       |
  484|      0|                switch(mode) {
  485|      0|                    default: break;
  ------------------
  |  Branch (485:21): [True: 0, False: 0]
  ------------------
  486|      0|                    case KS_MODE_16:
  ------------------
  |  Branch (486:21): [True: 0, False: 0]
  ------------------
  487|       |                        // FIXME
  488|      0|                        TripleName = "i386-unknown-unknown-code16";
  489|      0|                        break;
  490|      0|                    case KS_MODE_32:
  ------------------
  |  Branch (490:21): [True: 0, False: 0]
  ------------------
  491|       |                        // FIXME
  492|      0|                        TripleName = "i386";
  493|      0|                        break;
  494|      0|                    case KS_MODE_64:
  ------------------
  |  Branch (494:21): [True: 0, False: 0]
  ------------------
  495|       |                        // FIXME
  496|      0|                        TripleName = "x86_64";
  497|      0|                        break;
  498|      0|                }
  499|       |
  500|      0|                InitKs(arch, ks, TripleName);
  501|       |
  502|       |                //ks->init_arch = x86_ks_init;
  503|      0|                break;
  504|      0|            }
  505|      0|#endif
  506|      0|#ifdef LLVM_ENABLE_ARCH_EVM
  507|      0|            case KS_ARCH_EVM: {
  ------------------
  |  Branch (507:13): [True: 0, False: 13.6k]
  ------------------
  508|      0|                *result = ks;
  509|      0|                return KS_ERR_OK;
  510|      0|            }
  511|  13.6k|#endif
  512|  13.6k|        }
  513|       |
  514|  13.6k|        if (TripleName.empty()) {
  ------------------
  |  Branch (514:13): [True: 0, False: 13.6k]
  ------------------
  515|       |            // this arch is not supported
  516|      0|            delete ks;
  517|      0|            return KS_ERR_ARCH;
  518|      0|        }
  519|       |
  520|  13.6k|        *result = ks;
  521|       |
  522|  13.6k|        return KS_ERR_OK;
  523|  13.6k|    } else
  524|      0|        return KS_ERR_ARCH;
  525|  13.6k|}
ks_close:
  530|  13.6k|{
  531|  13.6k|    if (!ks)
  ------------------
  |  Branch (531:9): [True: 0, False: 13.6k]
  ------------------
  532|      0|        return KS_ERR_HANDLE;
  533|       |
  534|  13.6k|    if (ks->arch == KS_ARCH_EVM) {
  ------------------
  |  Branch (534:9): [True: 0, False: 13.6k]
  ------------------
  535|       |        // handle EVM differently
  536|      0|        delete ks;
  537|      0|        return KS_ERR_OK;
  538|      0|    }
  539|       |
  540|       |    // LLVM-based architectures
  541|  13.6k|    delete ks->STI;
  542|  13.6k|    delete ks->MCII;
  543|  13.6k|    delete ks->MAI;
  544|  13.6k|    delete ks->MRI;
  545|  13.6k|    delete ks->MAB;
  546|       |
  547|       |    // finally, free ks itself.
  548|  13.6k|    delete ks;
  549|       |
  550|  13.6k|    return KS_ERR_OK;
  551|  13.6k|}
ks_option:
  556|  13.6k|{
  557|  13.6k|    ks->MAI->setRadix(16);
  558|  13.6k|    switch(type) {
  ------------------
  |  Branch (558:12): [True: 13.6k, False: 0]
  ------------------
  559|  13.6k|        case KS_OPT_SYNTAX:
  ------------------
  |  Branch (559:9): [True: 13.6k, False: 0]
  ------------------
  560|  13.6k|            if (ks->arch != KS_ARCH_X86)
  ------------------
  |  Branch (560:17): [True: 13.6k, False: 0]
  ------------------
  561|  13.6k|                return KS_ERR_OPT_INVALID;
  562|      0|            switch(value) {
  563|      0|                default:
  ------------------
  |  Branch (563:17): [True: 0, False: 0]
  ------------------
  564|      0|                    return KS_ERR_OPT_INVALID;
  565|      0|                case KS_OPT_SYNTAX_RADIX16: // default syntax is Intel
  ------------------
  |  Branch (565:17): [True: 0, False: 0]
  ------------------
  566|      0|                case KS_OPT_SYNTAX_NASM | KS_OPT_SYNTAX_RADIX16:
  ------------------
  |  Branch (566:17): [True: 0, False: 0]
  ------------------
  567|      0|                case KS_OPT_SYNTAX_INTEL | KS_OPT_SYNTAX_RADIX16:
  ------------------
  |  Branch (567:17): [True: 0, False: 0]
  ------------------
  568|      0|                    ks->MAI->setRadix(16);
  569|      0|                case KS_OPT_SYNTAX_NASM:
  ------------------
  |  Branch (569:17): [True: 0, False: 0]
  ------------------
  570|      0|                case KS_OPT_SYNTAX_INTEL:
  ------------------
  |  Branch (570:17): [True: 0, False: 0]
  ------------------
  571|      0|                    ks->syntax = (ks_opt_value)value;
  572|      0|                    ks->MAI->setAssemblerDialect(1);
  573|      0|                    break;
  574|      0|                case KS_OPT_SYNTAX_GAS | KS_OPT_SYNTAX_RADIX16:
  ------------------
  |  Branch (574:17): [True: 0, False: 0]
  ------------------
  575|      0|                case KS_OPT_SYNTAX_ATT | KS_OPT_SYNTAX_RADIX16:
  ------------------
  |  Branch (575:17): [True: 0, False: 0]
  ------------------
  576|      0|                    ks->MAI->setRadix(16);
  577|      0|                case KS_OPT_SYNTAX_GAS:
  ------------------
  |  Branch (577:17): [True: 0, False: 0]
  ------------------
  578|      0|                case KS_OPT_SYNTAX_ATT:
  ------------------
  |  Branch (578:17): [True: 0, False: 0]
  ------------------
  579|      0|                    ks->syntax = (ks_opt_value)value;
  580|      0|                    ks->MAI->setAssemblerDialect(0);
  581|      0|                    break;
  582|      0|            }
  583|       |
  584|      0|            return KS_ERR_OK;
  585|      0|        case KS_OPT_SYM_RESOLVER:
  ------------------
  |  Branch (585:9): [True: 0, False: 13.6k]
  ------------------
  586|      0|            ks->sym_resolver = (ks_sym_resolver)value;
  587|      0|            return KS_ERR_OK;
  588|  13.6k|    }
  589|       |
  590|      0|    return KS_ERR_OPT_INVALID;
  591|  13.6k|}
ks_free:
  596|  7.99k|{
  597|  7.99k|    free(p);
  598|  7.99k|}
ks_asm:
  610|  13.6k|{
  611|  13.6k|    MCCodeEmitter *CE;
  612|  13.6k|    MCStreamer *Streamer;
  613|  13.6k|    unsigned char *encoding;
  614|  13.6k|    SmallString<1024> Msg;
  615|  13.6k|    raw_svector_ostream OS(Msg);
  616|       |
  617|  13.6k|    if (ks->arch == KS_ARCH_EVM) {
  ------------------
  |  Branch (617:9): [True: 0, False: 13.6k]
  ------------------
  618|       |        // handle EVM differently
  619|      0|        unsigned short opcode = EVM_opcode(assembly);
  620|      0|        if (opcode == (unsigned short)-1) {
  ------------------
  |  Branch (620:13): [True: 0, False: 0]
  ------------------
  621|       |            // invalid instruction
  622|      0|            return -1;
  623|      0|        }
  624|       |
  625|      0|        *insn_size = 1;
  626|      0|        *stat_count = 1;
  627|      0|        encoding = (unsigned char *)malloc(*insn_size);
  628|      0|        encoding[0] = opcode;
  629|      0|        *insn = encoding;
  630|      0|        return 0;
  631|      0|    }
  632|       |
  633|  13.6k|    *insn = NULL;
  634|  13.6k|    *insn_size = 0;
  635|       |
  636|  13.6k|    MCContext Ctx(ks->MAI, ks->MRI, &ks->MOFI, &ks->SrcMgr, true, address);
  637|  13.6k|    ks->MOFI.InitMCObjectFileInfo(Triple(ks->TripleName), Ctx);
  638|  13.6k|    CE = ks->TheTarget->createMCCodeEmitter(*ks->MCII, *ks->MRI, Ctx);
  639|  13.6k|    if (!CE) {
  ------------------
  |  Branch (639:9): [True: 0, False: 13.6k]
  ------------------
  640|       |        // memory insufficient
  641|      0|        return KS_ERR_NOMEM;
  642|      0|    }
  643|  13.6k|    Streamer = ks->TheTarget->createMCObjectStreamer(
  644|  13.6k|            Triple(ks->TripleName), Ctx, *ks->MAB, OS, CE, *ks->STI, ks->MCOptions.MCRelaxAll,
  645|  13.6k|            /*DWARFMustBeAtTheEnd*/ false);
  646|       |            
  647|  13.6k|    if (!Streamer) {
  ------------------
  |  Branch (647:9): [True: 0, False: 13.6k]
  ------------------
  648|       |        // memory insufficient
  649|      0|        delete CE;
  650|      0|        return KS_ERR_NOMEM;
  651|      0|    }
  652|       |
  653|       |    // Tell SrcMgr about this buffer, which is what the parser will pick up.
  654|  13.6k|    ErrorOr<std::unique_ptr<MemoryBuffer>> BufferPtr = MemoryBuffer::getMemBuffer(assembly);
  655|  13.6k|    if (BufferPtr.getError()) {
  ------------------
  |  Branch (655:9): [True: 0, False: 13.6k]
  ------------------
  656|      0|        delete Streamer;
  657|      0|        delete CE;
  658|      0|        return KS_ERR_NOMEM;
  659|      0|    }
  660|       |
  661|  13.6k|    ks->SrcMgr.clearBuffers();
  662|  13.6k|    ks->SrcMgr.AddNewSourceBuffer(std::move(*BufferPtr), SMLoc());
  663|       |
  664|  13.6k|    Streamer->setSymResolver((void *)(ks->sym_resolver));
  665|       |
  666|  13.6k|    MCAsmParser *Parser = createMCAsmParser(ks->SrcMgr, Ctx, *Streamer, *ks->MAI);
  667|  13.6k|    if (!Parser) {
  ------------------
  |  Branch (667:9): [True: 0, False: 13.6k]
  ------------------
  668|      0|        delete Streamer;
  669|      0|        delete CE;
  670|       |        // memory insufficient
  671|      0|        return KS_ERR_NOMEM;
  672|      0|    }
  673|  13.6k|    MCTargetAsmParser *TAP = ks->TheTarget->createMCAsmParser(*ks->STI, *Parser, *ks->MCII, ks->MCOptions);
  674|  13.6k|    if (!TAP) { 
  ------------------
  |  Branch (674:9): [True: 0, False: 13.6k]
  ------------------
  675|       |        // memory insufficient
  676|      0|        delete Parser;
  677|      0|        delete Streamer;
  678|      0|        delete CE;
  679|      0|        return KS_ERR_NOMEM;
  680|      0|    }
  681|  13.6k|    TAP->KsSyntax = ks->syntax;
  682|       |
  683|  13.6k|    Parser->setTargetParser(*TAP);
  684|       |
  685|       |    // TODO: optimize this to avoid setting up NASM every time we call ks_asm()
  686|  13.6k|    if (ks->arch == KS_ARCH_X86 && ks->syntax == KS_OPT_SYNTAX_NASM) {
  ------------------
  |  Branch (686:9): [True: 0, False: 13.6k]
  |  Branch (686:36): [True: 0, False: 0]
  ------------------
  687|      0|        Parser->initializeDirectiveKindMap(KS_OPT_SYNTAX_NASM);
  688|      0|        ks->MAI->setCommentString(";");
  689|      0|    }
  690|       |
  691|  13.6k|    *stat_count = Parser->Run(false, address);
  692|       |
  693|       |    // PPC counts empty statement
  694|  13.6k|    if (ks->arch == KS_ARCH_PPC)
  ------------------
  |  Branch (694:9): [True: 0, False: 13.6k]
  ------------------
  695|      0|        *stat_count = *stat_count / 2;
  696|       |
  697|  13.6k|    ks->errnum = Parser->KsError;
  698|       |
  699|  13.6k|    delete TAP;
  700|  13.6k|    delete Parser;
  701|  13.6k|    delete CE;
  702|  13.6k|    delete Streamer;
  703|       |
  704|  13.6k|    if (ks->errnum >= KS_ERR_ASM)
  ------------------
  |  |  103|  13.6k|#define KS_ERR_ASM 128
  ------------------
  |  Branch (704:9): [True: 5.64k, False: 7.99k]
  ------------------
  705|  5.64k|        return -1;
  706|  7.99k|    else {
  707|  7.99k|        *insn_size = Msg.size();
  708|  7.99k|        encoding = (unsigned char *)malloc(*insn_size);
  709|  7.99k|        if (!encoding) {
  ------------------
  |  Branch (709:13): [True: 0, False: 7.99k]
  ------------------
  710|      0|            return KS_ERR_NOMEM;
  711|      0|        }
  712|  7.99k|        memcpy(encoding, Msg.data(), *insn_size);
  713|  7.99k|        *insn = encoding;
  714|  7.99k|        return 0;
  715|  7.99k|    }
  716|  13.6k|}
ks.cpp:_ZL6InitKsiP9ks_structNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  204|  13.6k|{
  205|  13.6k|    static bool initialized = false;
  206|  13.6k|    std::string MCPU = "";
  207|       |
  208|  13.6k|    if (!initialized) {
  ------------------
  |  Branch (208:9): [True: 1, False: 13.6k]
  ------------------
  209|      1|        initialized = true;
  210|       |        // Initialize targets and assembly parsers.
  211|      1|        llvm_ks::InitializeAllTargetInfos();
  212|      1|        llvm_ks::InitializeAllTargetMCs();
  213|      1|        llvm_ks::InitializeAllAsmParsers();
  214|      1|    }
  215|       |
  216|  13.6k|    ks->TripleName = Triple::normalize(TripleName);
  217|  13.6k|    ks->TheTarget = GetTarget(ks->TripleName);
  218|  13.6k|    if (!ks->TheTarget)
  ------------------
  |  Branch (218:9): [True: 0, False: 13.6k]
  ------------------
  219|      0|        return KS_ERR_MODE;   // FIXME
  220|       |
  221|       |    // Now that GetTarget() has (potentially) replaced TripleName, it's safe to
  222|       |    // construct the Triple object.
  223|  13.6k|    Triple TheTriple(ks->TripleName);
  224|       |
  225|  13.6k|    ks->MRI = ks->TheTarget->createMCRegInfo(ks->TripleName);
  226|  13.6k|    assert(ks->MRI && "Unable to create target register info!");
  ------------------
  |  Branch (226:5): [True: 13.6k, False: 0]
  |  Branch (226:5): [True: 13.6k, Folded]
  |  Branch (226:5): [True: 13.6k, False: 0]
  ------------------
  227|       |
  228|       |    // Package up features to be passed to target/subtarget
  229|       |#if 0
  230|       |    if (MAttrs.size()) {
  231|       |        SubtargetFeatures Features;
  232|       |        for (unsigned i = 0; i != MAttrs.size(); ++i)
  233|       |            Features.AddFeature(MAttrs[i]);
  234|       |        ks->FeaturesStr = Features.getString();
  235|       |    }
  236|       |#endif
  237|       |
  238|  13.6k|    ks->MAI = ks->TheTarget->createMCAsmInfo(*ks->MRI, ks->TripleName);
  239|  13.6k|    assert(ks->MAI && "Unable to create target asm info!");
  ------------------
  |  Branch (239:5): [True: 13.6k, False: 0]
  |  Branch (239:5): [True: 13.6k, Folded]
  |  Branch (239:5): [True: 13.6k, False: 0]
  ------------------
  240|       |
  241|       |    // enable Knights Landing architecture for X86
  242|  13.6k|    if (ks->arch == KS_ARCH_X86)
  ------------------
  |  Branch (242:9): [True: 0, False: 13.6k]
  ------------------
  243|      0|        MCPU = "knl";
  244|       |
  245|  13.6k|    ks->MCII = ks->TheTarget->createMCInstrInfo();
  246|  13.6k|    ks->STI = ks->TheTarget->createMCSubtargetInfo(ks->TripleName, MCPU, ks->FeaturesStr);
  247|  13.6k|    if(ks->TripleName.rfind("riscv",0)==0){
  ------------------
  |  Branch (247:8): [True: 13.6k, False: 0]
  ------------------
  248|  13.6k|        ks->MAB = ks->TheTarget->createMCAsmBackend2(*ks->MRI, ks->TripleName, MCPU, *ks->STI, ks->MCOptions);
  249|  13.6k|    } else {
  250|      0|        ks->MAB = ks->TheTarget->createMCAsmBackend(*ks->MRI, ks->TripleName, MCPU);
  251|      0|    }
  252|  13.6k|    ks->MAB->setArch(arch);
  253|  13.6k|    ks->MCOptions = InitMCTargetOptionsFromFlags();
  254|       |
  255|  13.6k|    return KS_ERR_OK;
  256|  13.6k|}
ks.cpp:_ZL9GetTargetNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  192|  13.6k|{
  193|       |    // Figure out the target triple.
  194|  13.6k|    Triple TheTriple(TripleName);
  195|       |
  196|       |    // Get the target specific parser.
  197|  13.6k|    std::string Error;
  198|       |
  199|  13.6k|    return TargetRegistry::lookupTarget("", TheTriple, Error);
  200|  13.6k|}

_ZN9ks_structC2E7ks_archij12ks_opt_value:
   63|  13.6k|        : arch(arch), mode(mode), errnum(errnum), syntax(syntax) { }

_ZN7llvm_ks21createELFObjectWriterEPNS_23MCELFObjectTargetWriterERNS_17raw_pwrite_streamEb:
 1271|  13.6k|                                            bool IsLittleEndian) {
 1272|  13.6k|  return new ELFObjectWriter(MOTW, OS, IsLittleEndian);
 1273|  13.6k|}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriterC2EPN7llvm_ks23MCELFObjectTargetWriterERNS1_17raw_pwrite_streamEb:
  142|  13.6k|        : MCObjectWriter(OS, IsLittleEndian), TargetObjectWriter(MOTW) {}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriterD2Ev:
  297|  13.6k|{}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriter24executePostLayoutBindingERN7llvm_ks11MCAssemblerERKNS1_11MCAsmLayoutE:
  316|  6.07k|                                               const MCAsmLayout &Layout) {
  317|       |  // The presence of symbol versions causes undefined symbols and
  318|       |  // versions declared with @@@ to be renamed.
  319|       |
  320|  61.1k|  for (const MCSymbol &A : Asm.symbols()) {
  ------------------
  |  Branch (320:26): [True: 61.1k, False: 6.07k]
  ------------------
  321|  61.1k|    const auto &Alias = cast<MCSymbolELF>(A);
  322|       |    // Not an alias.
  323|  61.1k|    if (!Alias.isVariable())
  ------------------
  |  Branch (323:9): [True: 59.5k, False: 1.62k]
  ------------------
  324|  59.5k|      continue;
  325|  1.62k|    auto *Ref = dyn_cast<MCSymbolRefExpr>(Alias.getVariableValue());
  326|  1.62k|    if (!Ref)
  ------------------
  |  Branch (326:9): [True: 643, False: 983]
  ------------------
  327|    643|      continue;
  328|    983|    const auto &Symbol = cast<MCSymbolELF>(Ref->getSymbol());
  329|       |
  330|    983|    StringRef AliasName = Alias.getName();
  331|    983|    size_t Pos = AliasName.find('@');
  332|    983|    if (Pos == StringRef::npos)
  ------------------
  |  Branch (332:9): [True: 379, False: 604]
  ------------------
  333|    379|      continue;
  334|       |
  335|       |    // Aliases defined with .symvar copy the binding from the symbol they alias.
  336|       |    // This is the first place we are able to copy this information.
  337|    604|    Alias.setExternal(Symbol.isExternal());
  338|    604|    Alias.setBinding(Symbol.getBinding());
  339|       |
  340|    604|    StringRef Rest = AliasName.substr(Pos);
  341|    604|    if (!Symbol.isUndefined() && !Rest.startswith("@@@"))
  ------------------
  |  Branch (341:9): [True: 284, False: 320]
  |  Branch (341:9): [True: 122, False: 482]
  |  Branch (341:34): [True: 122, False: 162]
  ------------------
  342|    122|      continue;
  343|       |
  344|       |    // FIXME: produce a better error message.
  345|    482|    if (Symbol.isUndefined() && Rest.startswith("@@") &&
  ------------------
  |  Branch (345:9): [True: 320, False: 162]
  |  Branch (345:9): [True: 0, False: 482]
  |  Branch (345:33): [True: 36, False: 284]
  ------------------
  346|     36|        !Rest.startswith("@@@"))
  ------------------
  |  Branch (346:9): [True: 0, False: 36]
  ------------------
  347|      0|      report_fatal_error("A @@ version cannot be undefined");
  348|       |
  349|    482|    Renames.insert(std::make_pair(&Symbol, &Alias));
  350|    482|  }
  351|  6.07k|}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriter16recordRelocationERN7llvm_ks11MCAssemblerERKNS1_11MCAsmLayoutEPKNS1_10MCFragmentERKNS1_7MCFixupENS1_7MCValueERbRm:
  557|  6.82k|{
  558|  6.82k|  const MCSectionELF &FixupSection = cast<MCSectionELF>(*Fragment->getParent());
  559|  6.82k|  uint64_t C = Target.getConstant();
  560|  6.82k|  bool valid;
  561|  6.82k|  uint64_t FixupOffset = Layout.getFragmentOffset(Fragment, valid) + Fixup.getOffset();
  562|  6.82k|  MCContext &Ctx = Asm.getContext();
  563|       |
  564|  6.82k|  if (const MCSymbolRefExpr *RefB = Target.getSymB()) {
  ------------------
  |  Branch (564:30): [True: 2.06k, False: 4.76k]
  ------------------
  565|  2.06k|    assert(RefB->getKind() == MCSymbolRefExpr::VK_None &&
  ------------------
  |  Branch (565:5): [True: 2.06k, False: 0]
  |  Branch (565:5): [True: 2.06k, Folded]
  |  Branch (565:5): [True: 2.06k, False: 0]
  ------------------
  566|  2.06k|           "Should not have constructed this");
  567|       |
  568|       |    // Let A, B and C being the components of Target and R be the location of
  569|       |    // the fixup. If the fixup is not pcrel, we want to compute (A - B + C).
  570|       |    // If it is pcrel, we want to compute (A - B + C - R).
  571|       |
  572|       |    // In general, ELF has no relocations for -B. It can only represent (A + C)
  573|       |    // or (A + C - R). If B = R + K and the relocation is not pcrel, we can
  574|       |    // replace B to implement it: (A - R - K + C)
  575|  2.06k|    if (IsPCRel) {
  ------------------
  |  Branch (575:9): [True: 0, False: 2.06k]
  ------------------
  576|      0|      Ctx.reportError(
  577|      0|          Fixup.getLoc(),
  578|      0|          "No relocation available to represent this relative expression");
  579|      0|      return;
  580|      0|    }
  581|       |
  582|  2.06k|    const auto &SymB = cast<MCSymbolELF>(RefB->getSymbol());
  583|       |
  584|  2.06k|    if (SymB.isUndefined()) {
  ------------------
  |  Branch (584:9): [True: 1.25k, False: 809]
  ------------------
  585|  1.25k|      Ctx.reportError(Fixup.getLoc(),
  586|  1.25k|                      Twine("symbol '") + SymB.getName() +
  587|  1.25k|                          "' can not be undefined in a subtraction expression");
  588|  1.25k|      return;
  589|  1.25k|    }
  590|       |
  591|  2.06k|    assert(!SymB.isAbsolute() && "Should have been folded");
  ------------------
  |  Branch (591:5): [True: 809, False: 0]
  |  Branch (591:5): [True: 809, Folded]
  |  Branch (591:5): [True: 809, False: 0]
  ------------------
  592|    809|    const MCSection &SecB = SymB.getSection();
  593|    809|    if (&SecB != &FixupSection) {
  ------------------
  |  Branch (593:9): [True: 0, False: 809]
  ------------------
  594|      0|      Ctx.reportError(Fixup.getLoc(),
  595|      0|                      "Cannot represent a difference across sections");
  596|      0|      return;
  597|      0|    }
  598|       |
  599|    809|    bool valid;
  600|    809|    uint64_t SymBOffset = Layout.getSymbolOffset(SymB, valid);
  601|    809|    uint64_t K = SymBOffset - FixupOffset;
  602|    809|    IsPCRel = true;
  603|    809|    C -= K;
  604|    809|  }
  605|       |
  606|       |  // We either rejected the fixup or folded B into C at this point.
  607|  5.57k|  const MCSymbolRefExpr *RefA = Target.getSymA();
  608|  5.57k|  const auto *SymA = RefA ? cast<MCSymbolELF>(&RefA->getSymbol()) : nullptr;
  ------------------
  |  Branch (608:22): [True: 4.76k, False: 809]
  ------------------
  609|       |
  610|  5.57k|  bool ViaWeakRef = false;
  611|  5.57k|  if (SymA && SymA->isVariable()) {
  ------------------
  |  Branch (611:7): [True: 4.76k, False: 809]
  |  Branch (611:15): [True: 421, False: 4.34k]
  ------------------
  612|    421|    const MCExpr *Expr = SymA->getVariableValue();
  613|    421|    if (const auto *Inner = dyn_cast<MCSymbolRefExpr>(Expr)) {
  ------------------
  |  Branch (613:21): [True: 315, False: 106]
  ------------------
  614|    315|      if (Inner->getKind() == MCSymbolRefExpr::VK_WEAKREF) {
  ------------------
  |  Branch (614:11): [True: 0, False: 315]
  ------------------
  615|      0|        SymA = cast<MCSymbolELF>(&Inner->getSymbol());
  616|      0|        ViaWeakRef = true;
  617|      0|      }
  618|    315|    }
  619|    421|  }
  620|       |
  621|  5.57k|  unsigned Type = getRelocType(Ctx, Target, Fixup, IsPCRel);
  622|  5.57k|  bool RelocateWithSymbol = shouldRelocateWithSymbol(Asm, RefA, SymA, C, Type);
  623|  5.57k|  if (!RelocateWithSymbol && SymA && !SymA->isUndefined()) {
  ------------------
  |  Branch (623:7): [True: 809, False: 4.76k]
  |  Branch (623:30): [True: 0, False: 809]
  |  Branch (623:38): [True: 0, False: 0]
  ------------------
  624|      0|    bool valid;
  625|      0|    C += Layout.getSymbolOffset(*SymA, valid);
  626|      0|  }
  627|       |
  628|  5.57k|  uint64_t Addend = 0;
  629|  5.57k|  if (hasRelocationAddend()) {
  ------------------
  |  Branch (629:7): [True: 0, False: 5.57k]
  ------------------
  630|      0|    Addend = C;
  631|      0|    C = 0;
  632|      0|  }
  633|       |
  634|  5.57k|  FixedValue = C;
  635|       |
  636|  5.57k|  if (!RelocateWithSymbol) {
  ------------------
  |  Branch (636:7): [True: 809, False: 4.76k]
  ------------------
  637|    809|    const MCSection *SecA =
  638|    809|        (SymA && !SymA->isUndefined()) ? &SymA->getSection() : nullptr;
  ------------------
  |  Branch (638:10): [True: 0, False: 809]
  |  Branch (638:18): [True: 0, False: 0]
  ------------------
  639|    809|    auto *ELFSec = cast_or_null<MCSectionELF>(SecA);
  640|    809|    const auto *SectionSymbol =
  641|    809|        ELFSec ? cast<MCSymbolELF>(ELFSec->getBeginSymbol()) : nullptr;
  ------------------
  |  Branch (641:9): [True: 0, False: 809]
  ------------------
  642|    809|    if (SectionSymbol)
  ------------------
  |  Branch (642:9): [True: 0, False: 809]
  ------------------
  643|      0|      SectionSymbol->setUsedInReloc();
  644|    809|    ELFRelocationEntry Rec(FixupOffset, SectionSymbol, Type, Addend);
  645|    809|    Relocations[&FixupSection].push_back(Rec);
  646|    809|    return;
  647|    809|  }
  648|       |
  649|  4.76k|  if (SymA) {
  ------------------
  |  Branch (649:7): [True: 4.76k, False: 0]
  ------------------
  650|  4.76k|    if (const MCSymbolELF *R = Renames.lookup(SymA))
  ------------------
  |  Branch (650:28): [True: 11, False: 4.75k]
  ------------------
  651|     11|      SymA = R;
  652|       |
  653|  4.76k|    if (ViaWeakRef)
  ------------------
  |  Branch (653:9): [True: 0, False: 4.76k]
  ------------------
  654|      0|      SymA->setIsWeakrefUsedInReloc();
  655|  4.76k|    else
  656|  4.76k|      SymA->setUsedInReloc();
  657|  4.76k|  }
  658|  4.76k|  ELFRelocationEntry Rec(FixupOffset, SymA, Type, Addend);
  659|  4.76k|  Relocations[&FixupSection].push_back(Rec);
  660|  4.76k|  return;
  661|  5.57k|}
ELFObjectWriter.cpp:_ZNK12_GLOBAL__N_115ELFObjectWriter12getRelocTypeERN7llvm_ks9MCContextERKNS1_7MCValueERKNS1_7MCFixupEb:
  133|  5.57k|                          const MCFixup &Fixup, bool IsPCRel) const {
  134|  5.57k|      return TargetObjectWriter->getRelocType(Ctx, Target, Fixup, IsPCRel);
  135|  5.57k|    }
ELFObjectWriter.cpp:_ZNK12_GLOBAL__N_115ELFObjectWriter24shouldRelocateWithSymbolERKN7llvm_ks11MCAssemblerEPKNS1_15MCSymbolRefExprEPKNS1_8MCSymbolEmj:
  437|  5.57k|                                               unsigned Type) const {
  438|  5.57k|  const auto *Sym = cast_or_null<MCSymbolELF>(S);
  439|       |  // A PCRel relocation to an absolute value has no symbol (or section). We
  440|       |  // represent that with a relocation to a null section.
  441|  5.57k|  if (!RefA)
  ------------------
  |  Branch (441:7): [True: 809, False: 4.76k]
  ------------------
  442|    809|    return false;
  443|       |
  444|  4.76k|  MCSymbolRefExpr::VariantKind Kind = RefA->getKind();
  445|  4.76k|  switch (Kind) {
  446|  4.74k|  default:
  ------------------
  |  Branch (446:3): [True: 4.74k, False: 18]
  ------------------
  447|  4.74k|    break;
  448|       |  // The .odp creation emits a relocation against the symbol ".TOC." which
  449|       |  // create a R_PPC64_TOC relocation. However the relocation symbol name
  450|       |  // in final object creation should be NULL, since the symbol does not
  451|       |  // really exist, it is just the reference to TOC base for the current
  452|       |  // object file. Since the symbol is undefined, returning false results
  453|       |  // in a relocation with a null section which is the desired result.
  454|  4.74k|  case MCSymbolRefExpr::VK_PPC_TOCBASE:
  ------------------
  |  Branch (454:3): [True: 0, False: 4.76k]
  ------------------
  455|      0|    return false;
  456|       |
  457|       |  // These VariantKind cause the relocation to refer to something other than
  458|       |  // the symbol itself, like a linker generated table. Since the address of
  459|       |  // symbol is not relevant, we cannot replace the symbol with the
  460|       |  // section and patch the difference in the addend.
  461|     18|  case MCSymbolRefExpr::VK_GOT:
  ------------------
  |  Branch (461:3): [True: 18, False: 4.74k]
  ------------------
  462|     18|  case MCSymbolRefExpr::VK_PLT:
  ------------------
  |  Branch (462:3): [True: 0, False: 4.76k]
  ------------------
  463|     18|  case MCSymbolRefExpr::VK_GOTPCREL:
  ------------------
  |  Branch (463:3): [True: 0, False: 4.76k]
  ------------------
  464|     18|  case MCSymbolRefExpr::VK_Mips_GOT:
  ------------------
  |  Branch (464:3): [True: 0, False: 4.76k]
  ------------------
  465|     18|  case MCSymbolRefExpr::VK_PPC_GOT_LO:
  ------------------
  |  Branch (465:3): [True: 0, False: 4.76k]
  ------------------
  466|     18|  case MCSymbolRefExpr::VK_PPC_GOT_HI:
  ------------------
  |  Branch (466:3): [True: 0, False: 4.76k]
  ------------------
  467|     18|  case MCSymbolRefExpr::VK_PPC_GOT_HA:
  ------------------
  |  Branch (467:3): [True: 0, False: 4.76k]
  ------------------
  468|     18|    return true;
  469|  4.76k|  }
  470|       |
  471|       |  // An undefined symbol is not in any section, so the relocation has to point
  472|       |  // to the symbol itself.
  473|  4.76k|  assert(Sym && "Expected a symbol");
  ------------------
  |  Branch (473:3): [True: 4.74k, False: 0]
  |  Branch (473:3): [True: 4.74k, Folded]
  |  Branch (473:3): [True: 4.74k, False: 0]
  ------------------
  474|  4.74k|  if (Sym->isUndefined())
  ------------------
  |  Branch (474:7): [True: 0, False: 4.74k]
  ------------------
  475|      0|    return true;
  476|       |
  477|  4.74k|  unsigned Binding = Sym->getBinding();
  478|  4.74k|  switch(Binding) {
  479|      0|  default:
  ------------------
  |  Branch (479:3): [True: 0, False: 4.74k]
  ------------------
  480|      0|    llvm_unreachable("Invalid Binding");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  481|  4.74k|  case ELF::STB_LOCAL:
  ------------------
  |  Branch (481:3): [True: 4.74k, False: 0]
  ------------------
  482|  4.74k|    break;
  483|      0|  case ELF::STB_WEAK:
  ------------------
  |  Branch (483:3): [True: 0, False: 4.74k]
  ------------------
  484|       |    // If the symbol is weak, it might be overridden by a symbol in another
  485|       |    // file. The relocation has to point to the symbol so that the linker
  486|       |    // can update it.
  487|      0|    return true;
  488|      0|  case ELF::STB_GLOBAL:
  ------------------
  |  Branch (488:3): [True: 0, False: 4.74k]
  ------------------
  489|       |    // Global ELF symbols can be preempted by the dynamic linker. The relocation
  490|       |    // has to point to the symbol for a reason analogous to the STB_WEAK case.
  491|      0|    return true;
  492|  4.74k|  }
  493|       |
  494|       |  // If a relocation points to a mergeable section, we have to be careful.
  495|       |  // If the offset is zero, a relocation with the section will encode the
  496|       |  // same information. With a non-zero offset, the situation is different.
  497|       |  // For example, a relocation can point 42 bytes past the end of a string.
  498|       |  // If we change such a relocation to use the section, the linker would think
  499|       |  // that it pointed to another string and subtracting 42 at runtime will
  500|       |  // produce the wrong value.
  501|  4.74k|  auto &Sec = cast<MCSectionELF>(Sym->getSection());
  502|  4.74k|  unsigned Flags = Sec.getFlags();
  503|  4.74k|  if (Flags & ELF::SHF_MERGE) {
  ------------------
  |  Branch (503:7): [True: 0, False: 4.74k]
  ------------------
  504|      0|    if (C != 0)
  ------------------
  |  Branch (504:9): [True: 0, False: 0]
  ------------------
  505|      0|      return true;
  506|       |
  507|       |    // It looks like gold has a bug (http://sourceware.org/PR16794) and can
  508|       |    // only handle section relocations to mergeable sections if using RELA.
  509|      0|    if (!hasRelocationAddend())
  ------------------
  |  Branch (509:9): [True: 0, False: 0]
  ------------------
  510|      0|      return true;
  511|      0|  }
  512|       |
  513|       |  // Most TLS relocations use a got, so they need the symbol. Even those that
  514|       |  // are just an offset (@tpoff), require a symbol in gold versions before
  515|       |  // 5efeedf61e4fe720fd3e9a08e6c91c10abb66d42 (2014-09-26) which fixed
  516|       |  // http://sourceware.org/PR16773.
  517|  4.74k|  if (Flags & ELF::SHF_TLS)
  ------------------
  |  Branch (517:7): [True: 0, False: 4.74k]
  ------------------
  518|      0|    return true;
  519|       |
  520|       |  // If the symbol is a thumb function the final relocation must set the lowest
  521|       |  // bit. With a symbol that is done by just having the symbol have that bit
  522|       |  // set, so we would lose the bit if we relocated with the section.
  523|       |  // FIXME: We could use the section but add the bit to the relocation value.
  524|  4.74k|  if (Asm.isThumbFunc(Sym))
  ------------------
  |  Branch (524:7): [True: 0, False: 4.74k]
  ------------------
  525|      0|    return true;
  526|       |
  527|  4.74k|  if (TargetObjectWriter->needsRelocateWithSymbol(*Sym, Type))
  ------------------
  |  Branch (527:7): [True: 4.74k, False: 0]
  ------------------
  528|  4.74k|    return true;
  529|      0|  return false;
  530|  4.74k|}
ELFObjectWriter.cpp:_ZNK12_GLOBAL__N_115ELFObjectWriter19hasRelocationAddendEv:
  127|  5.92k|    bool hasRelocationAddend() const {
  128|       |      // Keystone doesn't want relocation addends.
  129|       |      /* return TargetObjectWriter->hasRelocationAddend(); */
  130|  5.92k|      return false;
  131|  5.92k|    }
ELFObjectWriter.cpp:_ZNK12_GLOBAL__N_115ELFObjectWriter38isSymbolRefDifferenceFullyResolvedImplERKN7llvm_ks11MCAssemblerERKNS1_8MCSymbolERKNS1_10MCFragmentEbb:
 1237|  10.5k|    bool InSet, bool IsPCRel) const {
 1238|  10.5k|  const auto &SymA = cast<MCSymbolELF>(SA);
 1239|  10.5k|  if (IsPCRel) {
  ------------------
  |  Branch (1239:7): [True: 204, False: 10.3k]
  ------------------
 1240|    204|    assert(!InSet);
  ------------------
  |  Branch (1240:5): [True: 204, False: 0]
  ------------------
 1241|    204|    if (::isWeak(SymA))
  ------------------
  |  Branch (1241:9): [True: 0, False: 204]
  ------------------
 1242|      0|      return false;
 1243|    204|  }
 1244|  10.5k|  return MCObjectWriter::isSymbolRefDifferenceFullyResolvedImpl(Asm, SymA, FB,
 1245|  10.5k|                                                                InSet, IsPCRel);
 1246|  10.5k|}
ELFObjectWriter.cpp:_ZL6isWeakRKN7llvm_ks11MCSymbolELFE:
  535|    204|static bool isWeak(const MCSymbolELF &Sym) {
  536|    204|  if (Sym.getType() == ELF::STT_GNU_IFUNC)
  ------------------
  |  Branch (536:7): [True: 0, False: 204]
  ------------------
  537|      0|    return true;
  538|       |
  539|    204|  switch (Sym.getBinding()) {
  540|      0|  default:
  ------------------
  |  Branch (540:3): [True: 0, False: 204]
  ------------------
  541|      0|    llvm_unreachable("Unknown binding");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  542|    204|  case ELF::STB_LOCAL:
  ------------------
  |  Branch (542:3): [True: 204, False: 0]
  ------------------
  543|    204|    return false;
  544|      0|  case ELF::STB_GLOBAL:
  ------------------
  |  Branch (544:3): [True: 0, False: 204]
  ------------------
  545|      0|    return false;
  546|      0|  case ELF::STB_WEAK:
  ------------------
  |  Branch (546:3): [True: 0, False: 204]
  ------------------
  547|      0|  case ELF::STB_GNU_UNIQUE:
  ------------------
  |  Branch (547:3): [True: 0, False: 204]
  ------------------
  548|      0|    return true;
  549|    204|  }
  550|    204|}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriter11writeObjectERN7llvm_ks11MCAssemblerERKNS1_11MCAsmLayoutE:
 1103|  5.68k|{
 1104|  5.68k|  MCContext &Ctx = Asm.getContext();
 1105|  5.68k|  MCSectionELF *StrtabSection =
 1106|  5.68k|      Ctx.getELFSection(".strtab", ELF::SHT_STRTAB, 0);
 1107|  5.68k|  StringTableIndex = addToSectionTable(StrtabSection);
 1108|       |
 1109|  5.68k|  RevGroupMapTy RevGroupMap;
 1110|  5.68k|  SectionIndexMapTy SectionIndexMap;
 1111|       |
 1112|  5.68k|  std::map<const MCSymbol *, std::vector<const MCSectionELF *>> GroupMembers;
 1113|       |
 1114|       |  // ... then the sections ...
 1115|  5.68k|  SectionOffsetsTy SectionOffsets;
 1116|  5.68k|  std::vector<MCSectionELF *> Groups;
 1117|  5.68k|  std::vector<MCSectionELF *> Relocations;
 1118|  5.89k|  for (MCSection &Sec : Asm) {
  ------------------
  |  Branch (1118:23): [True: 5.89k, False: 5.32k]
  ------------------
 1119|  5.89k|    MCSectionELF &Section = static_cast<MCSectionELF &>(Sec);
 1120|       |
 1121|  5.89k|    align(Section.getAlignment());
 1122|       |
 1123|       |    // Remember the offset into the file for this section.
 1124|  5.89k|    uint64_t SecStart = getStream().tell();
 1125|       |
 1126|  5.89k|    const MCSymbolELF *SignatureSymbol = Section.getGroup();
 1127|  5.89k|    writeSectionData(Asm, Section, Layout);
 1128|  5.89k|    if (Asm.getError())
  ------------------
  |  Branch (1128:9): [True: 365, False: 5.52k]
  ------------------
 1129|    365|        return;
 1130|       |
 1131|  5.52k|    uint64_t SecEnd = getStream().tell();
 1132|  5.52k|    SectionOffsets[&Section] = std::make_pair(SecStart, SecEnd);
 1133|       |
 1134|  5.52k|    MCSectionELF *RelSection = createRelocationSection(Ctx, Section);
 1135|       |
 1136|  5.52k|    if (SignatureSymbol) {
  ------------------
  |  Branch (1136:9): [True: 0, False: 5.52k]
  ------------------
 1137|      0|      Asm.registerSymbol(*SignatureSymbol);
 1138|      0|      unsigned &GroupIdx = RevGroupMap[SignatureSymbol];
 1139|      0|      if (!GroupIdx) {
  ------------------
  |  Branch (1139:11): [True: 0, False: 0]
  ------------------
 1140|      0|        MCSectionELF *Group = Ctx.createELFGroupSection(SignatureSymbol);
 1141|      0|        GroupIdx = addToSectionTable(Group);
 1142|      0|        Group->setAlignment(4);
 1143|      0|        Groups.push_back(Group);
 1144|      0|      }
 1145|      0|      std::vector<const MCSectionELF *> &Members =
 1146|      0|          GroupMembers[SignatureSymbol];
 1147|      0|      Members.push_back(&Section);
 1148|      0|      if (RelSection)
  ------------------
  |  Branch (1148:11): [True: 0, False: 0]
  ------------------
 1149|      0|        Members.push_back(RelSection);
 1150|      0|    }
 1151|       |
 1152|  5.52k|    SectionIndexMap[&Section] = addToSectionTable(&Section);
 1153|  5.52k|    if (RelSection) {
  ------------------
  |  Branch (1153:9): [True: 118, False: 5.41k]
  ------------------
 1154|    118|      SectionIndexMap[RelSection] = addToSectionTable(RelSection);
 1155|    118|      Relocations.push_back(RelSection);
 1156|    118|    }
 1157|  5.52k|  }
 1158|       |
 1159|  5.32k|return;
 1160|       |
 1161|  5.32k|  for (MCSectionELF *Group : Groups) {
  ------------------
  |  Branch (1161:28): [True: 0, False: 0]
  ------------------
 1162|      0|    align(Group->getAlignment());
 1163|       |
 1164|       |    // Remember the offset into the file for this section.
 1165|      0|    uint64_t SecStart = getStream().tell();
 1166|       |
 1167|      0|    const MCSymbol *SignatureSymbol = Group->getGroup();
 1168|      0|    assert(SignatureSymbol);
  ------------------
  |  Branch (1168:5): [True: 0, False: 0]
  ------------------
 1169|      0|    write(uint32_t(ELF::GRP_COMDAT));
 1170|      0|    for (const MCSectionELF *Member : GroupMembers[SignatureSymbol]) {
  ------------------
  |  Branch (1170:37): [True: 0, False: 0]
  ------------------
 1171|      0|      uint32_t SecIndex = SectionIndexMap.lookup(Member);
 1172|      0|      write(SecIndex);
 1173|      0|    }
 1174|       |
 1175|      0|    uint64_t SecEnd = getStream().tell();
 1176|      0|    SectionOffsets[Group] = std::make_pair(SecStart, SecEnd);
 1177|      0|  }
 1178|       |
 1179|       |  // Compute symbol table information.
 1180|      0|  computeSymbolTable(Asm, Layout, SectionIndexMap, RevGroupMap, SectionOffsets);
 1181|       |
 1182|      0|  for (MCSectionELF *RelSection : Relocations) {
  ------------------
  |  Branch (1182:33): [True: 0, False: 0]
  ------------------
 1183|      0|    align(RelSection->getAlignment());
 1184|       |
 1185|       |    // Remember the offset into the file for this section.
 1186|      0|    uint64_t SecStart = getStream().tell();
 1187|       |
 1188|      0|    writeRelocations(Asm, *RelSection->getAssociatedSection());	// qq
 1189|       |
 1190|      0|    uint64_t SecEnd = getStream().tell();
 1191|      0|    SectionOffsets[RelSection] = std::make_pair(SecStart, SecEnd);
 1192|      0|  }
 1193|       |
 1194|      0|  {
 1195|      0|    uint64_t SecStart = getStream().tell();
 1196|      0|    const MCSectionELF *Sec = createStringTable(Ctx);
 1197|      0|    uint64_t SecEnd = getStream().tell();
 1198|      0|    SectionOffsets[Sec] = std::make_pair(SecStart, SecEnd);
 1199|      0|  }
 1200|       |
 1201|      0|  uint64_t NaturalAlignment = is64Bit() ? 8 : 4;
  ------------------
  |  Branch (1201:31): [True: 0, False: 0]
  ------------------
 1202|      0|  align(NaturalAlignment);
 1203|       |
 1204|      0|  const uint64_t SectionHeaderOffset = getStream().tell();
 1205|       |
 1206|       |  // ... then the section header table ...
 1207|      0|  writeSectionHeader(Layout, SectionIndexMap, SectionOffsets);
 1208|       |
 1209|      0|  uint16_t NumSections = (SectionTable.size() + 1 >= ELF::SHN_LORESERVE)
  ------------------
  |  Branch (1209:26): [True: 0, False: 0]
  ------------------
 1210|      0|                             ? (uint16_t)ELF::SHN_UNDEF
 1211|      0|                             : SectionTable.size() + 1;
 1212|      0|  if (sys::IsLittleEndianHost != IsLittleEndian)
  ------------------
  |  Branch (1212:7): [True: 0, False: 0]
  ------------------
 1213|      0|    sys::swapByteOrder(NumSections);
 1214|      0|  unsigned NumSectionsOffset;
 1215|       |
 1216|      0|  if (is64Bit()) {
  ------------------
  |  Branch (1216:7): [True: 0, False: 0]
  ------------------
 1217|      0|    uint64_t Val = SectionHeaderOffset;
 1218|      0|    if (sys::IsLittleEndianHost != IsLittleEndian)
  ------------------
  |  Branch (1218:9): [True: 0, False: 0]
  ------------------
 1219|      0|      sys::swapByteOrder(Val);
 1220|      0|    getStream().pwrite(reinterpret_cast<char *>(&Val), sizeof(Val),
 1221|      0|                       offsetof(ELF::Elf64_Ehdr, e_shoff));
 1222|      0|    NumSectionsOffset = offsetof(ELF::Elf64_Ehdr, e_shnum);
 1223|      0|  } else {
 1224|      0|    uint32_t Val = SectionHeaderOffset;
 1225|      0|    if (sys::IsLittleEndianHost != IsLittleEndian)
  ------------------
  |  Branch (1225:9): [True: 0, False: 0]
  ------------------
 1226|      0|      sys::swapByteOrder(Val);
 1227|      0|    getStream().pwrite(reinterpret_cast<char *>(&Val), sizeof(Val),
 1228|      0|                       offsetof(ELF::Elf32_Ehdr, e_shoff));
 1229|       |    NumSectionsOffset = offsetof(ELF::Elf32_Ehdr, e_shnum);
 1230|      0|  }
 1231|      0|  getStream().pwrite(reinterpret_cast<char *>(&NumSections),
 1232|      0|                     sizeof(NumSections), NumSectionsOffset);
 1233|      0|}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriter17addToSectionTableEPKN7llvm_ks12MCSectionELFE:
  240|  11.3k|unsigned ELFObjectWriter::addToSectionTable(const MCSectionELF *Sec) {
  241|  11.3k|  SectionTable.push_back(Sec);
  242|  11.3k|  StrTabBuilder.add(Sec->getSectionName());
  243|  11.3k|  return SectionTable.size();
  244|  11.3k|}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriter5alignEj:
  235|  5.89k|void ELFObjectWriter::align(unsigned Alignment) {
  236|  5.89k|  uint64_t Padding = OffsetToAlignment(getStream().tell(), Alignment);
  237|  5.89k|  WriteZeros(Padding);
  238|  5.89k|}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriter16writeSectionDataERKN7llvm_ks11MCAssemblerERNS1_9MCSectionERKNS1_11MCAsmLayoutE:
  911|  5.89k|                                       const MCAsmLayout &Layout) {
  912|  5.89k|  MCSectionELF &Section = static_cast<MCSectionELF &>(Sec);
  913|  5.89k|  StringRef SectionName = Section.getSectionName();
  914|       |
  915|       |  // Compressing debug_frame requires handling alignment fragments which is
  916|       |  // more work (possibly generalizing MCAssembler.cpp:writeFragment to allow
  917|       |  // for writing to arbitrary buffers) for little benefit.
  918|  5.89k|  if (!Asm.getContext().getAsmInfo()->compressDebugSections() ||
  ------------------
  |  Branch (918:7): [True: 5.89k, False: 0]
  |  Branch (918:7): [True: 5.89k, False: 0]
  ------------------
  919|  5.89k|      !SectionName.startswith(".debug_") || SectionName == ".debug_frame") {
  ------------------
  |  Branch (919:7): [True: 0, False: 0]
  |  Branch (919:45): [True: 0, False: 0]
  ------------------
  920|  5.89k|    Asm.writeSectionData(&Section, Layout);
  921|  5.89k|    return;
  922|  5.89k|  }
  923|       |
  924|      0|  SmallVector<char, 128> UncompressedData;
  925|      0|  raw_svector_ostream VecOS(UncompressedData);
  926|      0|  raw_pwrite_stream &OldStream = getStream();
  927|      0|  setStream(VecOS);
  928|      0|  Asm.writeSectionData(&Section, Layout);
  929|      0|  setStream(OldStream);
  930|       |
  931|       |#if 0
  932|       |  SmallVector<char, 128> CompressedContents;
  933|       |  zlib::Status Success = zlib::compress(
  934|       |      StringRef(UncompressedData.data(), UncompressedData.size()),
  935|       |      CompressedContents);
  936|       |  if (Success != zlib::StatusOK) {
  937|       |    getStream() << UncompressedData;
  938|       |    return;
  939|       |  }
  940|       |
  941|       |  if (!prependCompressionHeader(UncompressedData.size(), CompressedContents)) {
  942|       |    getStream() << UncompressedData;
  943|       |    return;
  944|       |  }
  945|       |  Asm.getContext().renameELFSection(&Section,
  946|       |                                    (".z" + SectionName.drop_front(1)).str());
  947|       |  getStream() << CompressedContents;
  948|       |#endif
  949|      0|}
ELFObjectWriter.cpp:_ZN12_GLOBAL__N_115ELFObjectWriter23createRelocationSectionERN7llvm_ks9MCContextERKNS1_12MCSectionELFE:
  885|  5.52k|                                         const MCSectionELF &Sec) {
  886|  5.52k|  if (Relocations[&Sec].empty())
  ------------------
  |  Branch (886:7): [True: 5.41k, False: 118]
  ------------------
  887|  5.41k|    return nullptr;
  888|       |
  889|    118|  const StringRef SectionName = Sec.getSectionName();
  890|    118|  std::string RelaSectionName = hasRelocationAddend() ? ".rela" : ".rel";
  ------------------
  |  Branch (890:33): [True: 0, False: 118]
  ------------------
  891|    118|  RelaSectionName += SectionName;
  892|       |
  893|    118|  unsigned EntrySize;
  894|    118|  if (hasRelocationAddend())
  ------------------
  |  Branch (894:7): [True: 0, False: 118]
  ------------------
  895|      0|    EntrySize = is64Bit() ? sizeof(ELF::Elf64_Rela) : sizeof(ELF::Elf32_Rela);
  ------------------
  |  Branch (895:17): [True: 0, False: 0]
  ------------------
  896|    118|  else
  897|    118|    EntrySize = is64Bit() ? sizeof(ELF::Elf64_Rel) : sizeof(ELF::Elf32_Rel);
  ------------------
  |  Branch (897:17): [True: 0, False: 118]
  ------------------
  898|       |
  899|    118|  unsigned Flags = 0;
  900|    118|  if (Sec.getFlags() & ELF::SHF_GROUP)
  ------------------
  |  Branch (900:7): [True: 0, False: 118]
  ------------------
  901|      0|    Flags = ELF::SHF_GROUP;
  902|       |
  903|    118|  MCSectionELF *RelaSection = Ctx.createELFRelSection(
  904|    118|      RelaSectionName, hasRelocationAddend() ? ELF::SHT_RELA : ELF::SHT_REL,
  ------------------
  |  Branch (904:24): [True: 0, False: 118]
  ------------------
  905|    118|      Flags, EntrySize, Sec.getGroup(), &Sec);
  906|    118|  RelaSection->setAlignment(is64Bit() ? 8 : 4);
  ------------------
  |  Branch (906:29): [True: 0, False: 118]
  ------------------
  907|    118|  return RelaSection;
  908|  5.52k|}
ELFObjectWriter.cpp:_ZNK12_GLOBAL__N_115ELFObjectWriter7is64BitEv:
  126|    236|    bool is64Bit() const { return TargetObjectWriter->is64Bit(); }

_ZN7llvm_ks12MCAsmBackendC2Ev:
   15|  13.6k|MCAsmBackend::MCAsmBackend() : HasDataInCodeSupport(false) {}
_ZN7llvm_ks12MCAsmBackendD2Ev:
   17|  13.6k|MCAsmBackend::~MCAsmBackend() {}
_ZNK7llvm_ks12MCAsmBackend12getFixupKindENS_9StringRefE:
   19|    730|Optional<MCFixupKind> MCAsmBackend::getFixupKind(StringRef Name) const {
   20|    730|  return None;
   21|    730|}
_ZNK7llvm_ks12MCAsmBackend16getFixupKindInfoENS_11MCFixupKindE:
   23|  28.3k|const MCFixupKindInfo &MCAsmBackend::getFixupKindInfo(MCFixupKind Kind) const {
   24|  28.3k|  static const MCFixupKindInfo Builtins[] = {
   25|  28.3k|      {"FK_Data_1", 0, 8, 0},
   26|  28.3k|      {"FK_Data_2", 0, 16, 0},
   27|  28.3k|      {"FK_Data_4", 0, 32, 0},
   28|  28.3k|      {"FK_Data_8", 0, 64, 0},
   29|  28.3k|      {"FK_PCRel_1", 0, 8, MCFixupKindInfo::FKF_IsPCRel},
   30|  28.3k|      {"FK_PCRel_2", 0, 16, MCFixupKindInfo::FKF_IsPCRel},
   31|  28.3k|      {"FK_PCRel_4", 0, 32, MCFixupKindInfo::FKF_IsPCRel},
   32|  28.3k|      {"FK_PCRel_8", 0, 64, MCFixupKindInfo::FKF_IsPCRel},
   33|  28.3k|      {"FK_GPRel_1", 0, 8, 0},
   34|  28.3k|      {"FK_GPRel_2", 0, 16, 0},
   35|  28.3k|      {"FK_GPRel_4", 0, 32, 0},
   36|  28.3k|      {"FK_GPRel_8", 0, 64, 0},
   37|  28.3k|      {"FK_SecRel_1", 0, 8, 0},
   38|  28.3k|      {"FK_SecRel_2", 0, 16, 0},
   39|  28.3k|      {"FK_SecRel_4", 0, 32, 0},
   40|  28.3k|      {"FK_SecRel_8", 0, 64, 0}};
   41|       |
   42|  28.3k|  assert((size_t)Kind <= array_lengthof(Builtins) && "Unknown fixup kind");
  ------------------
  |  Branch (42:3): [True: 28.3k, False: 0]
  |  Branch (42:3): [True: 28.3k, Folded]
  |  Branch (42:3): [True: 28.3k, False: 0]
  ------------------
   43|  28.3k|  return Builtins[Kind];
   44|  28.3k|}

_ZN7llvm_ks9MCAsmInfoC2Ev:
   25|  13.6k|MCAsmInfo::MCAsmInfo() {
   26|  13.6k|  PointerSize = 4;
   27|  13.6k|  CalleeSaveStackSlotSize = 4;
   28|       |
   29|  13.6k|  IsLittleEndian = true;
   30|  13.6k|  StackGrowsUp = false;
   31|  13.6k|  HasSubsectionsViaSymbols = false;
   32|  13.6k|  HasMachoZeroFillDirective = false;
   33|  13.6k|  HasMachoTBSSDirective = false;
   34|  13.6k|  HasStaticCtorDtorReferenceInStaticMode = false;
   35|  13.6k|  MaxInstLength = 4;
   36|  13.6k|  MinInstAlignment = 1;
   37|  13.6k|  DollarIsPC = false;
   38|  13.6k|  SeparatorString = ";";
   39|  13.6k|  CommentString = "#";
   40|  13.6k|  LabelSuffix = ":";
   41|  13.6k|  UseAssignmentForEHBegin = false;
   42|  13.6k|  NeedsLocalForSize = false;
   43|  13.6k|  PrivateGlobalPrefix = "L";
   44|  13.6k|  PrivateLabelPrefix = PrivateGlobalPrefix;
   45|  13.6k|  LinkerPrivateGlobalPrefix = "";
   46|  13.6k|  InlineAsmStart = "APP";
   47|  13.6k|  InlineAsmEnd = "NO_APP";
   48|  13.6k|  Code16Directive = ".code16";
   49|  13.6k|  Code32Directive = ".code32";
   50|  13.6k|  Code64Directive = ".code64";
   51|  13.6k|  AssemblerDialect = 0;
   52|  13.6k|  AllowAtInName = false;
   53|  13.6k|  SupportsQuotedNames = true;
   54|  13.6k|  UseDataRegionDirectives = false;
   55|  13.6k|  ZeroDirective = "\t.zero\t";
   56|  13.6k|  AsciiDirective = "\t.ascii\t";
   57|  13.6k|  AscizDirective = "\t.asciz\t";
   58|  13.6k|  Data8bitsDirective = "\t.byte\t";
   59|  13.6k|  Data16bitsDirective = "\t.short\t";
   60|  13.6k|  Data32bitsDirective = "\t.long\t";
   61|  13.6k|  Data64bitsDirective = "\t.quad\t";
   62|  13.6k|  SunStyleELFSectionSwitchSyntax = false;
   63|  13.6k|  UsesELFSectionDirectiveForBSS = false;
   64|  13.6k|  AlignmentIsInBytes = true;
   65|  13.6k|  TextAlignFillValue = 0;
   66|  13.6k|  GPRel64Directive = nullptr;
   67|  13.6k|  GPRel32Directive = nullptr;
   68|  13.6k|  GlobalDirective = "\t.globl\t";
   69|  13.6k|  SetDirectiveSuppressesReloc = false;
   70|  13.6k|  HasAggressiveSymbolFolding = true;
   71|  13.6k|  COMMDirectiveAlignmentIsInBytes = true;
   72|  13.6k|  LCOMMDirectiveAlignmentType = LCOMM::NoAlignment;
   73|  13.6k|  HasFunctionAlignment = true;
   74|  13.6k|  HasDotTypeDotSizeDirective = true;
   75|  13.6k|  HasSingleParameterDotFile = true;
   76|  13.6k|  HasIdentDirective = false;
   77|  13.6k|  HasNoDeadStrip = false;
   78|  13.6k|  WeakDirective = "\t.weak\t";
   79|  13.6k|  WeakRefDirective = nullptr;
   80|  13.6k|  HasWeakDefDirective = false;
   81|  13.6k|  HasWeakDefCanBeHiddenDirective = false;
   82|  13.6k|  HasLinkOnceDirective = false;
   83|  13.6k|  HiddenVisibilityAttr = MCSA_Hidden;
   84|  13.6k|  HiddenDeclarationVisibilityAttr = MCSA_Hidden;
   85|  13.6k|  ProtectedVisibilityAttr = MCSA_Protected;
   86|  13.6k|  SupportsDebugInformation = false;
   87|  13.6k|  ExceptionsType = ExceptionHandling::None;
   88|  13.6k|  WinEHEncodingType = WinEH::EncodingType::Invalid;
   89|  13.6k|  DwarfUsesRelocationsAcrossSections = true;
   90|  13.6k|  DwarfFDESymbolsUseAbsDiff = false;
   91|  13.6k|  DwarfRegNumForCFI = false;
   92|  13.6k|  NeedsDwarfSectionOffsetDirective = false;
   93|  13.6k|  UseParensForSymbolVariant = false;
   94|  13.6k|  UseLogicalShr = true;
   95|       |
   96|       |  // FIXME: Clang's logic should be synced with the logic used to initialize
   97|       |  //        this member and the two implementations should be merged.
   98|       |  // For reference:
   99|       |  // - Solaris always enables the integrated assembler by default
  100|       |  //   - SparcELFMCAsmInfo and X86ELFMCAsmInfo are handling this case
  101|       |  // - Windows always enables the integrated assembler by default
  102|       |  //   - MCAsmInfoCOFF is handling this case, should it be MCAsmInfoMicrosoft?
  103|       |  // - MachO targets always enables the integrated assembler by default
  104|       |  //   - MCAsmInfoDarwin is handling this case
  105|       |  // - Generic_GCC toolchains enable the integrated assembler on a per
  106|       |  //   architecture basis.
  107|       |  //   - The target subclasses for AArch64, ARM, and X86 handle these cases
  108|  13.6k|  UseIntegratedAssembler = false;
  109|       |
  110|  13.6k|  CompressDebugSections = false;
  111|  13.6k|}
_ZN7llvm_ks9MCAsmInfoD2Ev:
  113|  13.6k|MCAsmInfo::~MCAsmInfo() {
  114|  13.6k|}

_ZN7llvm_ks12MCAsmInfoELFC2Ev:
   27|  13.6k|MCAsmInfoELF::MCAsmInfoELF() {
   28|  13.6k|  HasIdentDirective = true;
   29|  13.6k|  WeakRefDirective = "\t.weak\t";
   30|  13.6k|  PrivateGlobalPrefix = ".L";
   31|  13.6k|  PrivateLabelPrefix = ".L";
   32|  13.6k|  UsesNonexecutableStackSection = true;
   33|  13.6k|}

_ZN7llvm_ks11MCAssemblerC2ERNS_9MCContextERNS_12MCAsmBackendERNS_13MCCodeEmitterERNS_14MCObjectWriterE:
   48|  13.6k|    : Context(Context_), Backend(Backend_), Emitter(Emitter_), Writer(Writer_),
   49|  13.6k|      BundleAlignSize(0), RelaxAll(false), SubsectionsViaSymbols(false),
   50|  13.6k|      IncrementalLinkerCompatible(false), ELFHeaderEFlags(0) {
   51|  13.6k|  VersionMinInfo.Major = 0; // Major version == 0 for "none specified"
   52|  13.6k|}
_ZN7llvm_ks11MCAssemblerD2Ev:
   54|  13.6k|MCAssembler::~MCAssembler() {
   55|  13.6k|}
_ZN7llvm_ks11MCAssembler15registerSectionERNS_9MCSectionE:
   80|  14.5k|bool MCAssembler::registerSection(MCSection &Section) {
   81|  14.5k|  if (Section.isRegistered())
  ------------------
  |  Branch (81:7): [True: 563, False: 13.9k]
  ------------------
   82|    563|    return false;
   83|  13.9k|  Sections.push_back(&Section);
   84|  13.9k|  Section.setIsRegistered(true);
   85|  13.9k|  return true;
   86|  14.5k|}
_ZNK7llvm_ks11MCAssembler11isThumbFuncEPKNS_8MCSymbolE:
   88|  13.2k|bool MCAssembler::isThumbFunc(const MCSymbol *Symbol) const {
   89|  13.2k|  if (ThumbFuncs.count(Symbol))
  ------------------
  |  Branch (89:7): [True: 0, False: 13.2k]
  ------------------
   90|      0|    return true;
   91|       |
   92|  13.2k|  if (!Symbol->isVariable())
  ------------------
  |  Branch (92:7): [True: 12.0k, False: 1.19k]
  ------------------
   93|  12.0k|    return false;
   94|       |
   95|       |  // FIXME: It looks like gas supports some cases of the form "foo + 2". It
   96|       |  // is not clear if that is a bug or a feature.
   97|  1.19k|  const MCExpr *Expr = Symbol->getVariableValue();
   98|  1.19k|  const MCSymbolRefExpr *Ref = dyn_cast<MCSymbolRefExpr>(Expr);
   99|  1.19k|  if (!Ref)
  ------------------
  |  Branch (99:7): [True: 203, False: 995]
  ------------------
  100|    203|    return false;
  101|       |
  102|    995|  if (Ref->getKind() != MCSymbolRefExpr::VK_None)
  ------------------
  |  Branch (102:7): [True: 0, False: 995]
  ------------------
  103|      0|    return false;
  104|       |
  105|    995|  const MCSymbol &Sym = Ref->getSymbol();
  106|    995|  if (!isThumbFunc(&Sym))
  ------------------
  |  Branch (106:7): [True: 995, False: 0]
  ------------------
  107|    995|    return false;
  108|       |
  109|      0|  ThumbFuncs.insert(Symbol); // Cache it.
  110|      0|  return true;
  111|    995|}
_ZNK7llvm_ks11MCAssembler13evaluateFixupERKNS_11MCAsmLayoutERKNS_7MCFixupEPKNS_10MCFragmentERNS_7MCValueERmRj:
  150|  7.59k|{
  151|  7.59k|  KsError = 0;
  152|       |
  153|       |  // FIXME: This code has some duplication with recordRelocation. We should
  154|       |  // probably merge the two into a single callback that tries to evaluate a
  155|       |  // fixup and records a relocation if one is needed.
  156|  7.59k|  const MCExpr *Expr = Fixup.getValue();
  157|  7.59k|  if (!Expr->evaluateAsRelocatable(Target, &Layout, &Fixup)) {
  ------------------
  |  Branch (157:7): [True: 289, False: 7.30k]
  ------------------
  158|       |    // getContext().reportError(Fixup.getLoc(), "expected relocatable expression");
  159|       |    // Claim to have completely evaluated the fixup, to prevent any further
  160|       |    // processing from being done.
  161|       |    // return true;
  162|    289|    Value = 0;
  163|    289|    KsError = KS_ERR_ASM_INVALIDOPERAND;
  164|    289|    return false;
  165|    289|  }
  166|       |
  167|  7.30k|  bool IsPCRel = Backend.getFixupKindInfo(
  168|  7.30k|    Fixup.getKind()).Flags & MCFixupKindInfo::FKF_IsPCRel;
  169|       |
  170|  7.30k|  bool IsResolved;
  171|  7.30k|  if (IsPCRel) {
  ------------------
  |  Branch (171:7): [True: 254, False: 7.05k]
  ------------------
  172|    254|    if (Target.getSymB()) {
  ------------------
  |  Branch (172:9): [True: 0, False: 254]
  ------------------
  173|      0|      IsResolved = false;
  174|    254|    } else if (!Target.getSymA()) {
  ------------------
  |  Branch (174:16): [True: 0, False: 254]
  ------------------
  175|      0|      if (getBackend().getArch() == KS_ARCH_X86)
  ------------------
  |  Branch (175:11): [True: 0, False: 0]
  ------------------
  176|      0|          IsResolved = true;
  177|      0|      else
  178|      0|          IsResolved = false;
  179|    254|    } else {
  180|    254|      const MCSymbolRefExpr *A = Target.getSymA();
  181|    254|      const MCSymbol &SA = A->getSymbol();
  182|    254|      if (A->getKind() != MCSymbolRefExpr::VK_None || SA.isUndefined()) {
  ------------------
  |  Branch (182:11): [True: 0, False: 254]
  |  Branch (182:55): [True: 50, False: 204]
  ------------------
  183|     50|        IsResolved = false;
  184|    204|      } else {
  185|    204|        IsResolved = getWriter().isSymbolRefDifferenceFullyResolvedImpl(
  186|    204|            *this, SA, *DF, false, true);
  187|    204|      }
  188|    254|    }
  189|  7.05k|  } else {
  190|  7.05k|    IsResolved = Target.isAbsolute();
  191|  7.05k|  }
  192|       |
  193|  7.30k|  Value = Target.getConstant();
  194|       |
  195|  7.30k|  if (const MCSymbolRefExpr *A = Target.getSymA()) {
  ------------------
  |  Branch (195:30): [True: 6.01k, False: 1.29k]
  ------------------
  196|  6.01k|    const MCSymbol &Sym = A->getSymbol();
  197|  6.01k|    bool valid;
  198|  6.01k|    if (Sym.isDefined()) {
  ------------------
  |  Branch (198:9): [True: 5.89k, False: 114]
  ------------------
  199|  5.89k|      Value += Layout.getSymbolOffset(Sym, valid);
  200|  5.89k|      if (!valid) {
  ------------------
  |  Branch (200:11): [True: 10, False: 5.88k]
  ------------------
  201|     10|        KsError = KS_ERR_ASM_FIXUP_INVALID;
  202|     10|        return false;
  203|     10|      }
  204|  5.89k|    } else {
  205|       |        // a missing symbol. is there any resolver registered?
  206|    114|        if (KsSymResolver) {
  ------------------
  |  Branch (206:13): [True: 0, False: 114]
  ------------------
  207|      0|            uint64_t imm;
  208|      0|            ks_sym_resolver resolver = (ks_sym_resolver)KsSymResolver;
  209|      0|            if (resolver(Sym.getName().str().c_str(), &imm)) {
  ------------------
  |  Branch (209:17): [True: 0, False: 0]
  ------------------
  210|       |                // resolver handled this symbol
  211|      0|                Value = imm;
  212|      0|                IsResolved = true;
  213|      0|            } else {
  214|       |                // resolver did not handle this symbol
  215|      0|                KsError = KS_ERR_ASM_SYMBOL_MISSING;
  216|      0|                return false;
  217|      0|            }
  218|    114|        } else {
  219|       |            // no resolver registered
  220|    114|            KsError = KS_ERR_ASM_SYMBOL_MISSING;
  221|    114|            return false;
  222|    114|        }
  223|    114|    }
  224|  6.01k|  }
  225|       |
  226|  7.18k|  if (const MCSymbolRefExpr *B = Target.getSymB()) {
  ------------------
  |  Branch (226:30): [True: 2.06k, False: 5.11k]
  ------------------
  227|  2.06k|    const MCSymbol &Sym = B->getSymbol();
  228|  2.06k|    bool valid;
  229|  2.06k|    if (Sym.isDefined()) {
  ------------------
  |  Branch (229:9): [True: 812, False: 1.25k]
  ------------------
  230|    812|      Value -= Layout.getSymbolOffset(Sym, valid);
  231|    812|      if (!valid) {
  ------------------
  |  Branch (231:11): [True: 2, False: 810]
  ------------------
  232|      2|        KsError = KS_ERR_ASM_FIXUP_INVALID;
  233|      2|        return false;
  234|      2|      }
  235|    812|    }
  236|  2.06k|  }
  237|       |
  238|  7.18k|  bool ShouldAlignPC = Backend.getFixupKindInfo(Fixup.getKind()).Flags &
  239|  7.18k|                         MCFixupKindInfo::FKF_IsAlignedDownTo32Bits;
  240|  7.18k|  assert((ShouldAlignPC ? IsPCRel : true) &&
  ------------------
  |  Branch (240:3): [True: 0, False: 7.18k]
  |  Branch (240:3): [True: 7.18k, False: 0]
  |  Branch (240:3): [True: 7.18k, Folded]
  |  Branch (240:3): [True: 7.18k, False: 0]
  ------------------
  241|  7.18k|    "FKF_IsAlignedDownTo32Bits is only allowed on PC-relative fixups!");
  242|       |
  243|  7.18k|  if (IsPCRel) {
  ------------------
  |  Branch (243:7): [True: 199, False: 6.98k]
  ------------------
  244|    199|    bool valid;
  245|    199|    uint64_t Offset = Layout.getFragmentOffset(DF, valid) + Fixup.getOffset();
  246|    199|    if (!valid) {
  ------------------
  |  Branch (246:9): [True: 40, False: 159]
  ------------------
  247|     40|        KsError = KS_ERR_ASM_FRAGMENT_INVALID;
  248|     40|        return false;
  249|     40|    }
  250|       |
  251|       |    // A number of ARM fixups in Thumb mode require that the effective PC
  252|       |    // address be determined as the 32-bit aligned version of the actual offset.
  253|    159|    if (ShouldAlignPC) Offset &= ~0x3;
  ------------------
  |  Branch (253:9): [True: 0, False: 159]
  ------------------
  254|    159|    Value -= Offset;
  255|    159|  }
  256|       |
  257|       |  // Let the backend adjust the fixup value if necessary, including whether
  258|       |  // we need a relocation.
  259|  7.14k|  Backend.processFixupValue(*this, Layout, Fixup, DF, Target, Value,
  260|  7.14k|                            IsResolved);
  261|       |
  262|  7.14k|  return IsResolved;
  263|  7.18k|}
_ZNK7llvm_ks11MCAssembler19computeFragmentSizeERKNS_11MCAsmLayoutERKNS_10MCFragmentERb:
  267|  73.4k|{
  268|  73.4k|  valid = true;
  269|  73.4k|  switch (F.getKind()) {
  ------------------
  |  Branch (269:11): [True: 73.4k, False: 0]
  ------------------
  270|  5.87k|  case MCFragment::FT_Data:
  ------------------
  |  Branch (270:3): [True: 5.87k, False: 67.5k]
  ------------------
  271|  5.87k|    return cast<MCDataFragment>(F).getContents().size();
  272|    755|  case MCFragment::FT_Relaxable:
  ------------------
  |  Branch (272:3): [True: 755, False: 72.6k]
  ------------------
  273|    755|    return cast<MCRelaxableFragment>(F).getContents().size();
  274|      0|  case MCFragment::FT_CompactEncodedInst:
  ------------------
  |  Branch (274:3): [True: 0, False: 73.4k]
  ------------------
  275|      0|    return cast<MCCompactEncodedInstFragment>(F).getContents().size();
  276|  18.5k|  case MCFragment::FT_Fill:
  ------------------
  |  Branch (276:3): [True: 18.5k, False: 54.8k]
  ------------------
  277|  18.5k|    return cast<MCFillFragment>(F).getSize();
  278|       |
  279|      0|  case MCFragment::FT_LEB:
  ------------------
  |  Branch (279:3): [True: 0, False: 73.4k]
  ------------------
  280|      0|    return cast<MCLEBFragment>(F).getContents().size();
  281|       |
  282|      0|  case MCFragment::FT_SafeSEH:
  ------------------
  |  Branch (282:3): [True: 0, False: 73.4k]
  ------------------
  283|      0|    return 4;
  284|       |
  285|  10.9k|  case MCFragment::FT_Align: {
  ------------------
  |  Branch (285:3): [True: 10.9k, False: 62.4k]
  ------------------
  286|  10.9k|    const MCAlignFragment &AF = cast<MCAlignFragment>(F);
  287|  10.9k|    unsigned Offset = Layout.getFragmentOffset(&AF, valid);
  288|  10.9k|    if (!valid) {
  ------------------
  |  Branch (288:9): [True: 0, False: 10.9k]
  ------------------
  289|      0|        return 0;
  290|      0|    }
  291|  10.9k|    unsigned Size = OffsetToAlignment(Offset, AF.getAlignment());
  292|       |    // If we are padding with nops, force the padding to be larger than the
  293|       |    // minimum nop size.
  294|  10.9k|    if (Size > 0 && AF.hasEmitNops()) {
  ------------------
  |  Branch (294:9): [True: 820, False: 10.1k]
  |  Branch (294:21): [True: 121, False: 699]
  ------------------
  295|    121|      while (Size % getBackend().getMinimumNopSize())
  ------------------
  |  Branch (295:14): [True: 0, False: 121]
  ------------------
  296|      0|        Size += AF.getAlignment();
  297|    121|    }
  298|  10.9k|    if (Size > AF.getMaxBytesToEmit())
  ------------------
  |  Branch (298:9): [True: 17, False: 10.9k]
  ------------------
  299|     17|      return 0;
  300|  10.9k|    return Size;
  301|  10.9k|  }
  302|       |
  303|  37.3k|  case MCFragment::FT_Org: {
  ------------------
  |  Branch (303:3): [True: 37.3k, False: 36.1k]
  ------------------
  304|  37.3k|    const MCOrgFragment &OF = cast<MCOrgFragment>(F);
  305|  37.3k|    MCValue Value;
  306|  37.3k|    if (!OF.getOffset().evaluateAsValue(Value, Layout)) {
  ------------------
  |  Branch (306:9): [True: 909, False: 36.3k]
  ------------------
  307|       |      //report_fatal_error("expected assembly-time absolute expression");
  308|    909|      valid = false;
  309|    909|      return 0;
  310|    909|    }
  311|       |
  312|       |    // FIXME: We need a way to communicate this error.
  313|  36.3k|    uint64_t FragmentOffset = Layout.getFragmentOffset(&OF, valid);
  314|  36.3k|    if (!valid) {
  ------------------
  |  Branch (314:9): [True: 49, False: 36.3k]
  ------------------
  315|     49|      return 0;
  316|     49|    }
  317|  36.3k|    int64_t TargetLocation = Value.getConstant();
  318|  36.3k|    if (const MCSymbolRefExpr *A = Value.getSymA()) {
  ------------------
  |  Branch (318:32): [True: 938, False: 35.4k]
  ------------------
  319|    938|      uint64_t Val;
  320|    938|      if (!Layout.getSymbolOffset(A->getSymbol(), Val, valid)) {
  ------------------
  |  Branch (320:11): [True: 240, False: 698]
  ------------------
  321|       |        //report_fatal_error("expected absolute expression");
  322|    240|        valid = false;
  323|    240|        return 0;
  324|    240|      }
  325|    698|      TargetLocation += Val;
  326|    698|    }
  327|  36.1k|    int64_t Size = TargetLocation - FragmentOffset;
  328|  36.1k|    if (Size < 0 || Size >= 0x40000000) {
  ------------------
  |  Branch (328:9): [True: 3.80k, False: 32.2k]
  |  Branch (328:21): [True: 196, False: 32.0k]
  ------------------
  329|       |      //report_fatal_error("invalid .org offset '" + Twine(TargetLocation) +
  330|       |      //                   "' (at offset '" + Twine(FragmentOffset) + "')");
  331|  4.00k|      valid = false;
  332|  4.00k|      return 0;
  333|  4.00k|    }
  334|  32.0k|    return Size;
  335|  36.1k|  }
  336|       |
  337|      0|  case MCFragment::FT_Dwarf:
  ------------------
  |  Branch (337:3): [True: 0, False: 73.4k]
  ------------------
  338|      0|    return cast<MCDwarfLineAddrFragment>(F).getContents().size();
  339|      0|  case MCFragment::FT_DwarfFrame:
  ------------------
  |  Branch (339:3): [True: 0, False: 73.4k]
  ------------------
  340|      0|    return cast<MCDwarfCallFrameFragment>(F).getContents().size();
  341|      0|  case MCFragment::FT_Dummy:
  ------------------
  |  Branch (341:3): [True: 0, False: 73.4k]
  ------------------
  342|      0|    llvm_unreachable("Should not have been added");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  343|  73.4k|  }
  344|       |
  345|      0|  llvm_unreachable("invalid fragment kind");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  346|  73.4k|}
_ZN7llvm_ks11MCAsmLayout14layoutFragmentEPNS_10MCFragmentE:
  349|  50.3k|{
  350|  50.3k|  MCFragment *Prev = F->getPrevNode();
  351|       |
  352|       |  // We should never try to recompute something which is valid.
  353|       |  //assert(!isFragmentValid(F) && "Attempt to recompute a valid fragment!");
  354|  50.3k|  if (isFragmentValid(F))
  ------------------
  |  Branch (354:7): [True: 0, False: 50.3k]
  ------------------
  355|      0|      return true;
  356|       |
  357|       |  // We should never try to compute the fragment layout if its predecessor
  358|       |  // isn't valid.
  359|       |  //assert((!Prev || isFragmentValid(Prev)) &&
  360|       |  //       "Attempt to compute fragment before its predecessor!");
  361|  50.3k|  if (Prev && !isFragmentValid(Prev))
  ------------------
  |  Branch (361:7): [True: 44.0k, False: 6.29k]
  |  Branch (361:15): [True: 4.20k, False: 39.8k]
  ------------------
  362|  4.20k|      return true;
  363|       |
  364|  46.1k|  bool valid = true;
  365|       |  // Compute fragment offset and size.
  366|  46.1k|  if (Prev)
  ------------------
  |  Branch (366:7): [True: 39.8k, False: 6.29k]
  ------------------
  367|  39.8k|    F->Offset = Prev->Offset + getAssembler().computeFragmentSize(*this, *Prev, valid);
  368|  6.29k|  else
  369|  6.29k|    F->Offset = getAssembler().getContext().getBaseAddress();
  370|  46.1k|  if (!valid) {
  ------------------
  |  Branch (370:7): [True: 4.83k, False: 41.2k]
  ------------------
  371|  4.83k|      return false;
  372|  4.83k|  }
  373|  41.2k|  LastValidFragment[F->getParent()] = F;
  374|       |
  375|       |  // If bundling is enabled and this fragment has instructions in it, it has to
  376|       |  // obey the bundling restrictions. With padding, we'll have:
  377|       |  //
  378|       |  //
  379|       |  //        BundlePadding
  380|       |  //             |||
  381|       |  // -------------------------------------
  382|       |  //   Prev  |##########|       F        |
  383|       |  // -------------------------------------
  384|       |  //                    ^
  385|       |  //                    |
  386|       |  //                    F->Offset
  387|       |  //
  388|       |  // The fragment's offset will point to after the padding, and its computed
  389|       |  // size won't include the padding.
  390|       |  //
  391|       |  // When the -mc-relax-all flag is used, we optimize bundling by writting the
  392|       |  // padding directly into fragments when the instructions are emitted inside
  393|       |  // the streamer. When the fragment is larger than the bundle size, we need to
  394|       |  // ensure that it's bundle aligned. This means that if we end up with
  395|       |  // multiple fragments, we must emit bundle padding between fragments.
  396|       |  //
  397|       |  // ".align N" is an example of a directive that introduces multiple
  398|       |  // fragments. We could add a special case to handle ".align N" by emitting
  399|       |  // within-fragment padding (which would produce less padding when N is less
  400|       |  // than the bundle size), but for now we don't.
  401|       |  //
  402|  41.2k|  if (Assembler.isBundlingEnabled() && F->hasInstructions()) {
  ------------------
  |  Branch (402:7): [True: 0, False: 41.2k]
  |  Branch (402:40): [True: 0, False: 0]
  ------------------
  403|      0|    assert(isa<MCEncodedFragment>(F) &&
  ------------------
  |  Branch (403:5): [True: 0, False: 0]
  |  Branch (403:5): [True: 0, Folded]
  |  Branch (403:5): [True: 0, False: 0]
  ------------------
  404|      0|           "Only MCEncodedFragment implementations have instructions");
  405|      0|    if (!isa<MCEncodedFragment>(F))
  ------------------
  |  Branch (405:9): [True: 0, False: 0]
  ------------------
  406|      0|        return true;
  407|       |
  408|      0|    bool valid;
  409|      0|    uint64_t FSize = Assembler.computeFragmentSize(*this, *F, valid);
  410|      0|    if (!valid)
  ------------------
  |  Branch (410:9): [True: 0, False: 0]
  ------------------
  411|      0|        return true;
  412|       |
  413|      0|    if (!Assembler.getRelaxAll() && FSize > Assembler.getBundleAlignSize())
  ------------------
  |  Branch (413:9): [True: 0, False: 0]
  |  Branch (413:37): [True: 0, False: 0]
  ------------------
  414|       |      //report_fatal_error("Fragment can't be larger than a bundle size");
  415|      0|      return true;
  416|       |
  417|      0|    uint64_t RequiredBundlePadding = computeBundlePadding(Assembler, F,
  418|      0|                                                          F->Offset, FSize);
  419|      0|    if (RequiredBundlePadding > UINT8_MAX)
  ------------------
  |  Branch (419:9): [True: 0, False: 0]
  ------------------
  420|       |      //report_fatal_error("Padding cannot exceed 255 bytes");
  421|      0|      return true;
  422|       |
  423|      0|    F->setBundlePadding(static_cast<uint8_t>(RequiredBundlePadding));
  424|      0|    F->Offset += RequiredBundlePadding;
  425|      0|  }
  426|       |
  427|  41.2k|  return false;
  428|  41.2k|}
_ZN7llvm_ks11MCAssembler14registerSymbolERKNS_8MCSymbolEPb:
  430|   216k|void MCAssembler::registerSymbol(const MCSymbol &Symbol, bool *Created) {
  431|   216k|  bool New = !Symbol.isRegistered();
  432|   216k|  if (Created)
  ------------------
  |  Branch (432:7): [True: 0, False: 216k]
  ------------------
  433|      0|    *Created = New;
  434|   216k|  if (New) {
  ------------------
  |  Branch (434:7): [True: 74.8k, False: 141k]
  ------------------
  435|  74.8k|    Symbol.setIsRegistered(true);
  436|  74.8k|    Symbols.push_back(&Symbol);
  437|  74.8k|  }
  438|   216k|}
_ZNK7llvm_ks11MCAssembler20writeFragmentPaddingERKNS_10MCFragmentEmPNS_14MCObjectWriterE:
  441|  33.2k|                                       MCObjectWriter *OW) const {
  442|       |  // Should NOP padding be written out before this fragment?
  443|  33.2k|  unsigned BundlePadding = F.getBundlePadding();
  444|  33.2k|  if (BundlePadding > 0) {
  ------------------
  |  Branch (444:7): [True: 0, False: 33.2k]
  ------------------
  445|      0|    assert(isBundlingEnabled() &&
  ------------------
  |  Branch (445:5): [True: 0, False: 0]
  |  Branch (445:5): [True: 0, Folded]
  |  Branch (445:5): [True: 0, False: 0]
  ------------------
  446|      0|           "Writing bundle padding with disabled bundling");
  447|      0|    assert(F.hasInstructions() &&
  ------------------
  |  Branch (447:5): [True: 0, False: 0]
  |  Branch (447:5): [True: 0, Folded]
  |  Branch (447:5): [True: 0, False: 0]
  ------------------
  448|      0|           "Writing bundle padding for a fragment without instructions");
  449|       |
  450|      0|    unsigned TotalLength = BundlePadding + static_cast<unsigned>(FSize);
  451|      0|    if (F.alignToBundleEnd() && TotalLength > getBundleAlignSize()) {
  ------------------
  |  Branch (451:9): [True: 0, False: 0]
  |  Branch (451:33): [True: 0, False: 0]
  ------------------
  452|       |      // If the padding itself crosses a bundle boundary, it must be emitted
  453|       |      // in 2 pieces, since even nop instructions must not cross boundaries.
  454|       |      //             v--------------v   <- BundleAlignSize
  455|       |      //        v---------v             <- BundlePadding
  456|       |      // ----------------------------
  457|       |      // | Prev |####|####|    F    |
  458|       |      // ----------------------------
  459|       |      //        ^-------------------^   <- TotalLength
  460|      0|      unsigned DistanceToBoundary = TotalLength - getBundleAlignSize();
  461|      0|      if (!getBackend().writeNopData(DistanceToBoundary, OW))
  ------------------
  |  Branch (461:11): [True: 0, False: 0]
  ------------------
  462|      0|          report_fatal_error("unable to write NOP sequence of " +
  463|      0|                             Twine(DistanceToBoundary) + " bytes");
  464|      0|      BundlePadding -= DistanceToBoundary;
  465|      0|    }
  466|      0|    if (!getBackend().writeNopData(BundlePadding, OW))
  ------------------
  |  Branch (466:9): [True: 0, False: 0]
  ------------------
  467|      0|      report_fatal_error("unable to write NOP sequence of " +
  468|      0|                         Twine(BundlePadding) + " bytes");
  469|      0|  }
  470|  33.2k|}
_ZNK7llvm_ks11MCAssembler16writeSectionDataEPKNS_9MCSectionERKNS_11MCAsmLayoutE:
  608|  5.89k|{
  609|       |  // Ignore virtual sections.
  610|  5.89k|  if (Sec->isVirtualSection()) {
  ------------------
  |  Branch (610:7): [True: 21, False: 5.87k]
  ------------------
  611|     21|    assert(Layout.getSectionFileSize(Sec) == 0 && "Invalid size for section!");
  ------------------
  |  Branch (611:5): [True: 21, False: 0]
  |  Branch (611:5): [True: 21, Folded]
  |  Branch (611:5): [True: 21, False: 0]
  ------------------
  612|       |
  613|       |    // Check that contents are only things legal inside a virtual section.
  614|    112|    for (const MCFragment &F : *Sec) {
  ------------------
  |  Branch (614:30): [True: 112, False: 21]
  ------------------
  615|    112|      switch (F.getKind()) {
  616|      0|      default: llvm_unreachable("Invalid fragment in virtual section!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  |  Branch (616:7): [True: 0, False: 112]
  ------------------
  617|      0|      case MCFragment::FT_Data: {
  ------------------
  |  Branch (617:7): [True: 0, False: 112]
  ------------------
  618|       |        // Check that we aren't trying to write a non-zero contents (or fixups)
  619|       |        // into a virtual section. This is to support clients which use standard
  620|       |        // directives to fill the contents of virtual sections.
  621|      0|        const MCDataFragment &DF = cast<MCDataFragment>(F);
  622|      0|        assert(DF.fixup_begin() == DF.fixup_end() &&
  ------------------
  |  Branch (622:9): [True: 0, False: 0]
  |  Branch (622:9): [True: 0, Folded]
  |  Branch (622:9): [True: 0, False: 0]
  ------------------
  623|      0|               "Cannot have fixups in virtual section!");
  624|      0|        for (unsigned i = 0, e = DF.getContents().size(); i != e; ++i)
  ------------------
  |  Branch (624:59): [True: 0, False: 0]
  ------------------
  625|      0|          if (DF.getContents()[i]) {
  ------------------
  |  Branch (625:15): [True: 0, False: 0]
  ------------------
  626|      0|            if (auto *ELFSec = dyn_cast<const MCSectionELF>(Sec))
  ------------------
  |  Branch (626:23): [True: 0, False: 0]
  ------------------
  627|      0|              report_fatal_error("non-zero initializer found in section '" +
  628|      0|                  ELFSec->getSectionName() + "'");
  629|      0|            else
  630|      0|              report_fatal_error("non-zero initializer found in virtual section");
  631|      0|          }
  632|      0|        break;
  633|      0|      }
  634|     56|      case MCFragment::FT_Align:
  ------------------
  |  Branch (634:7): [True: 56, False: 56]
  ------------------
  635|       |        // Check that we aren't trying to write a non-zero value into a virtual
  636|       |        // section.
  637|     56|        assert((cast<MCAlignFragment>(F).getValueSize() == 0 ||
  ------------------
  |  Branch (637:9): [True: 0, False: 56]
  |  Branch (637:9): [True: 56, False: 0]
  |  Branch (637:9): [True: 56, Folded]
  |  Branch (637:9): [True: 56, False: 0]
  ------------------
  638|     56|                cast<MCAlignFragment>(F).getValue() == 0) &&
  639|     56|               "Invalid align in virtual section!");
  640|     56|        break;
  641|     56|      case MCFragment::FT_Fill:
  ------------------
  |  Branch (641:7): [True: 56, False: 56]
  ------------------
  642|     56|        assert((cast<MCFillFragment>(F).getValue() == 0) &&
  ------------------
  |  Branch (642:9): [True: 56, False: 0]
  |  Branch (642:9): [True: 56, Folded]
  |  Branch (642:9): [True: 56, False: 0]
  ------------------
  643|     56|               "Invalid fill in virtual section!");
  644|     56|        break;
  645|    112|      }
  646|    112|    }
  647|       |
  648|     21|    return;
  649|     21|  }
  650|       |
  651|  5.87k|  uint64_t Start = getWriter().getStream().tell();
  652|  5.87k|  (void)Start;
  653|       |
  654|  5.87k|  setError(0);
  655|  5.87k|  for (const MCFragment &F : *Sec)
  ------------------
  |  Branch (655:28): [True: 43.0k, False: 5.87k]
  ------------------
  656|  43.0k|    writeFragment(*this, Layout, F);
  657|       |
  658|       |  //assert(getWriter().getStream().tell() - Start ==
  659|       |  //       Layout.getSectionAddressSize(Sec));
  660|  5.87k|}
_ZN7llvm_ks11MCAssembler11handleFixupERKNS_11MCAsmLayoutERNS_10MCFragmentERKNS_7MCFixupERj:
  664|  7.43k|                                                   const MCFixup &Fixup, unsigned int &KsError) {
  665|       |  // Evaluate the fixup.
  666|  7.43k|  MCValue Target;
  667|  7.43k|  uint64_t FixedValue;
  668|  7.43k|  bool IsPCRel = Backend.getFixupKindInfo(Fixup.getKind()).Flags &
  669|  7.43k|                 MCFixupKindInfo::FKF_IsPCRel;
  670|  7.43k|  if (!evaluateFixup(Layout, Fixup, &F, Target, FixedValue, KsError)) {
  ------------------
  |  Branch (670:7): [True: 7.21k, False: 221]
  ------------------
  671|  7.21k|    if (KsError) {
  ------------------
  |  Branch (671:9): [True: 386, False: 6.83k]
  ------------------
  672|       |        // return a dummy value
  673|    386|        return std::make_pair(0, false);
  674|    386|    }
  675|       |    // The fixup was unresolved, we need a relocation. Inform the object
  676|       |    // writer of the relocation, and give it an opportunity to adjust the
  677|       |    // fixup value if need be.
  678|  6.83k|    if (const MCSymbolRefExpr *RefB = Target.getSymB()) {
  ------------------
  |  Branch (678:32): [True: 2.06k, False: 4.76k]
  ------------------
  679|  2.06k|        if (RefB->getKind() != MCSymbolRefExpr::VK_None) {
  ------------------
  |  Branch (679:13): [True: 4, False: 2.06k]
  ------------------
  680|      4|            KsError = KS_ERR_ASM_FIXUP_INVALID;
  681|       |            // return a dummy value
  682|      4|            return std::make_pair(0, false);
  683|      4|        }
  684|  2.06k|    }
  685|  6.82k|    getWriter().recordRelocation(*this, Layout, &F, Fixup, Target, IsPCRel,
  686|  6.82k|                                 FixedValue);
  687|  6.82k|  }
  688|       |
  689|  7.04k|  return std::make_pair(FixedValue, IsPCRel);
  690|  7.43k|}
_ZN7llvm_ks11MCAssembler6layoutERNS_11MCAsmLayoutERj:
  693|  6.07k|{
  694|  6.07k|  DEBUG_WITH_TYPE("mc-dump", {
  695|  6.07k|      llvm_ks::errs() << "assembler backend - pre-layout\n--\n";
  696|  6.07k|      dump(); });
  697|       |
  698|       |  // Create dummy fragments and assign section ordinals.
  699|  6.07k|  unsigned SectionIndex = 0;
  700|  6.29k|  for (MCSection &Sec : *this) {
  ------------------
  |  Branch (700:23): [True: 6.29k, False: 6.07k]
  ------------------
  701|       |    // Create dummy fragments to eliminate any empty sections, this simplifies
  702|       |    // layout.
  703|  6.29k|    if (Sec.getFragmentList().empty())
  ------------------
  |  Branch (703:9): [True: 0, False: 6.29k]
  ------------------
  704|      0|      new MCDataFragment(&Sec);
  705|       |
  706|  6.29k|    Sec.setOrdinal(SectionIndex++);
  707|  6.29k|  }
  708|       |
  709|       |  // Assign layout order indices to sections and fragments.
  710|  12.3k|  for (unsigned i = 0, e = Layout.getSectionOrder().size(); i != e; ++i) {
  ------------------
  |  Branch (710:61): [True: 6.29k, False: 6.07k]
  ------------------
  711|  6.29k|    MCSection *Sec = Layout.getSectionOrder()[i];
  712|  6.29k|    Sec->setLayoutOrder(i);
  713|       |
  714|  6.29k|    unsigned FragmentIndex = 0;
  715|  6.29k|    for (MCFragment &Frag : *Sec)
  ------------------
  |  Branch (715:27): [True: 51.4k, False: 6.29k]
  ------------------
  716|  51.4k|      Frag.setLayoutOrder(FragmentIndex++);
  717|  6.29k|  }
  718|       |
  719|       |  // Layout until everything fits.
  720|  6.07k|  while (layoutOnce(Layout))
  ------------------
  |  Branch (720:10): [True: 0, False: 6.07k]
  ------------------
  721|      0|    continue;
  722|       |
  723|  6.07k|  DEBUG_WITH_TYPE("mc-dump", {
  724|  6.07k|      llvm_ks::errs() << "assembler backend - post-relaxation\n--\n";
  725|  6.07k|      dump(); });
  726|       |
  727|       |  // Finalize the layout, including fragment lowering.
  728|  6.07k|  finishLayout(Layout);
  729|       |
  730|  6.07k|  DEBUG_WITH_TYPE("mc-dump", {
  731|  6.07k|      llvm_ks::errs() << "assembler backend - final-layout\n--\n";
  732|  6.07k|      dump(); });
  733|       |
  734|       |  // Allow the object writer a chance to perform post-layout binding (for
  735|       |  // example, to set the index fields in the symbol data).
  736|  6.07k|  getWriter().executePostLayoutBinding(*this, Layout);
  737|       |
  738|       |  // Evaluate and apply the fixups, generating relocation entries as necessary.
  739|  6.29k|  for (MCSection &Sec : *this) {
  ------------------
  |  Branch (739:23): [True: 6.29k, False: 5.68k]
  ------------------
  740|  43.7k|    for (MCFragment &Frag : Sec) {
  ------------------
  |  Branch (740:27): [True: 43.7k, False: 5.90k]
  ------------------
  741|  43.7k|      MCEncodedFragment *F = dyn_cast<MCEncodedFragment>(&Frag);
  742|       |      // Data and relaxable fragments both have fixups.  So only process
  743|       |      // those here.
  744|       |      // FIXME: Is there a better way to do this?  MCEncodedFragmentWithFixups
  745|       |      // being templated makes this tricky.
  746|  43.7k|      if (!F || isa<MCCompactEncodedInstFragment>(F))
  ------------------
  |  Branch (746:11): [True: 36.5k, False: 7.24k]
  |  Branch (746:17): [True: 0, False: 7.24k]
  ------------------
  747|  36.5k|        continue;
  748|  7.24k|      ArrayRef<MCFixup> Fixups;
  749|  7.24k|      MutableArrayRef<char> Contents;
  750|  7.24k|      if (auto *FragWithFixups = dyn_cast<MCDataFragment>(F)) {
  ------------------
  |  Branch (750:17): [True: 6.83k, False: 413]
  ------------------
  751|  6.83k|        Fixups = FragWithFixups->getFixups();
  752|  6.83k|        Contents = FragWithFixups->getContents();
  753|  6.83k|      } else if (auto *FragWithFixups = dyn_cast<MCRelaxableFragment>(F)) {
  ------------------
  |  Branch (753:24): [True: 413, False: 0]
  ------------------
  754|    413|        Fixups = FragWithFixups->getFixups();
  755|    413|        Contents = FragWithFixups->getContents();
  756|    413|      } else
  757|      0|        llvm_unreachable("Unknown fragment with fixups!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  758|  7.43k|      for (const MCFixup &Fixup : Fixups) {
  ------------------
  |  Branch (758:33): [True: 7.43k, False: 6.85k]
  ------------------
  759|  7.43k|        uint64_t FixedValue;
  760|  7.43k|        bool IsPCRel;
  761|  7.43k|        std::tie(FixedValue, IsPCRel) = handleFixup(Layout, *F, Fixup, KsError);
  762|  7.43k|        if (KsError)
  ------------------
  |  Branch (762:13): [True: 390, False: 7.04k]
  ------------------
  763|    390|            return;
  764|  7.04k|        getBackend().applyFixup(Fixup, Contents.data(),
  765|  7.04k|                                Contents.size(), FixedValue, IsPCRel, KsError);
  766|  7.04k|        if (KsError)
  ------------------
  |  Branch (766:13): [True: 0, False: 7.04k]
  ------------------
  767|      0|            return;
  768|  7.04k|      }
  769|  7.24k|    }
  770|  6.29k|  }
  771|  6.07k|}
_ZN7llvm_ks11MCAssembler6FinishERj:
  773|  6.07k|void MCAssembler::Finish(unsigned int &KsError) {
  774|       |  // Create the layout object.
  775|  6.07k|  MCAsmLayout Layout(*this);
  776|  6.07k|  layout(Layout, KsError);
  777|       |
  778|       |  // Write the object file.
  779|  6.07k|  if (!KsError) {
  ------------------
  |  Branch (779:7): [True: 5.68k, False: 390]
  ------------------
  780|  5.68k|      getWriter().writeObject(*this, Layout);
  781|  5.68k|      KsError = getError();
  782|  5.68k|  }
  783|  6.07k|}
_ZNK7llvm_ks11MCAssembler20fixupNeedsRelaxationERKNS_7MCFixupEPKNS_19MCRelaxableFragmentERKNS_11MCAsmLayoutERj:
  788|    157|{
  789|    157|  MCValue Target;
  790|    157|  uint64_t Value;
  791|    157|  bool Resolved = evaluateFixup(Layout, Fixup, DF, Target, Value, KsError);
  792|    157|  if (KsError) {
  ------------------
  |  Branch (792:7): [True: 69, False: 88]
  ------------------
  793|     69|      KsError = KS_ERR_ASM_FIXUP_INVALID;
  794|       |      // return a dummy value
  795|     69|      return false;
  796|     69|  }
  797|     88|  return getBackend().fixupNeedsRelaxationAdvanced(Fixup, Resolved, Value, DF,
  798|     88|                                                   Layout);
  799|    157|}
_ZNK7llvm_ks11MCAssembler23fragmentNeedsRelaxationEPKNS_19MCRelaxableFragmentERKNS_11MCAsmLayoutERj:
  803|    476|{
  804|       |  // If this inst doesn't ever need relaxation, ignore it. This occurs when we
  805|       |  // are intentionally pushing out inst fragments, or because we relaxed a
  806|       |  // previous instruction to one that doesn't need relaxation.
  807|    476|  if (!getBackend().mayNeedRelaxation(F->getInst()))
  ------------------
  |  Branch (807:7): [True: 0, False: 476]
  ------------------
  808|      0|    return false;
  809|       |
  810|    476|  for (const MCFixup &Fixup : F->getFixups())
  ------------------
  |  Branch (810:29): [True: 157, False: 476]
  ------------------
  811|    157|    if (fixupNeedsRelaxation(Fixup, F, Layout, KsError))
  ------------------
  |  Branch (811:9): [True: 0, False: 157]
  ------------------
  812|      0|      return true;
  813|       |
  814|    476|  return false;
  815|    476|}
_ZN7llvm_ks11MCAssembler16relaxInstructionERNS_11MCAsmLayoutERNS_19MCRelaxableFragmentE:
  819|    476|{
  820|    476|  unsigned KsError = 0;
  821|    476|  if (!fragmentNeedsRelaxation(&F, Layout, KsError))
  ------------------
  |  Branch (821:7): [True: 476, False: 0]
  ------------------
  822|    476|    return false;
  823|       |
  824|       |  // FIXME-PERF: We could immediately lower out instructions if we can tell
  825|       |  // they are fully resolved, to avoid retesting on later passes.
  826|       |
  827|       |  // Relax the fragment.
  828|       |
  829|      0|  MCInst Relaxed;
  830|      0|  getBackend().relaxInstruction(F.getInst(), Relaxed);
  831|       |
  832|       |  // Encode the new instruction.
  833|       |  //
  834|       |  // FIXME-PERF: If it matters, we could let the target do this. It can
  835|       |  // probably do so more efficiently in many cases.
  836|      0|  SmallVector<MCFixup, 4> Fixups;
  837|      0|  SmallString<256> Code;
  838|      0|  raw_svector_ostream VecOS(Code);
  839|      0|  getEmitter().encodeInstruction(Relaxed, VecOS, Fixups, F.getSubtargetInfo(), KsError);
  840|       |
  841|       |  // Update the fragment.
  842|      0|  F.setInst(Relaxed);
  843|      0|  F.getContents() = Code;
  844|      0|  F.getFixups() = Fixups;
  845|       |
  846|      0|  return true;
  847|    476|}
_ZN7llvm_ks11MCAssembler17layoutSectionOnceERNS_11MCAsmLayoutERNS_9MCSectionE:
  876|  6.29k|{
  877|       |  // Holds the first fragment which needed relaxing during this layout. It will
  878|       |  // remain NULL if none were relaxed.
  879|       |  // When a fragment is relaxed, all the fragments following it should get
  880|       |  // invalidated because their offset is going to change.
  881|  6.29k|  MCFragment *FirstRelaxedFragment = nullptr;
  882|       |
  883|       |  // Attempt to relax all the fragments in the section.
  884|  57.7k|  for (MCSection::iterator I = Sec.begin(), IE = Sec.end(); I != IE; ++I) {
  ------------------
  |  Branch (884:61): [True: 51.4k, False: 6.29k]
  ------------------
  885|       |    // Check if this is a fragment that needs relaxation.
  886|  51.4k|    bool RelaxedFrag = false;
  887|  51.4k|    switch(I->getKind()) {
  888|  51.0k|    default:
  ------------------
  |  Branch (888:5): [True: 51.0k, False: 476]
  ------------------
  889|  51.0k|      break;
  890|  51.0k|    case MCFragment::FT_Relaxable:
  ------------------
  |  Branch (890:5): [True: 476, False: 51.0k]
  ------------------
  891|    476|      assert(!getRelaxAll() &&
  ------------------
  |  Branch (891:7): [True: 476, False: 0]
  |  Branch (891:7): [True: 476, Folded]
  |  Branch (891:7): [True: 476, False: 0]
  ------------------
  892|    476|             "Did not expect a MCRelaxableFragment in RelaxAll mode");
  893|    476|      RelaxedFrag = relaxInstruction(Layout, *cast<MCRelaxableFragment>(I));
  894|    476|      break;
  895|      0|    case MCFragment::FT_Dwarf:
  ------------------
  |  Branch (895:5): [True: 0, False: 51.4k]
  ------------------
  896|      0|      RelaxedFrag = relaxDwarfLineAddr(Layout,
  897|      0|                                       *cast<MCDwarfLineAddrFragment>(I));
  898|      0|      break;
  899|      0|    case MCFragment::FT_DwarfFrame:
  ------------------
  |  Branch (899:5): [True: 0, False: 51.4k]
  ------------------
  900|      0|      RelaxedFrag =
  901|      0|        relaxDwarfCallFrameFragment(Layout,
  902|      0|                                    *cast<MCDwarfCallFrameFragment>(I));
  903|      0|      break;
  904|      0|    case MCFragment::FT_LEB:
  ------------------
  |  Branch (904:5): [True: 0, False: 51.4k]
  ------------------
  905|      0|      RelaxedFrag = relaxLEB(Layout, *cast<MCLEBFragment>(I));
  906|      0|      break;
  907|  51.4k|    }
  908|  51.4k|    if (RelaxedFrag && !FirstRelaxedFragment)
  ------------------
  |  Branch (908:9): [True: 0, False: 51.4k]
  |  Branch (908:24): [True: 0, False: 0]
  ------------------
  909|      0|      FirstRelaxedFragment = &*I;
  910|  51.4k|  }
  911|  6.29k|  if (FirstRelaxedFragment) {
  ------------------
  |  Branch (911:7): [True: 0, False: 6.29k]
  ------------------
  912|      0|    Layout.invalidateFragmentsFrom(FirstRelaxedFragment);
  913|      0|    return true;
  914|      0|  }
  915|  6.29k|  return false;
  916|  6.29k|}
_ZN7llvm_ks11MCAssembler10layoutOnceERNS_11MCAsmLayoutE:
  919|  6.07k|{
  920|  6.07k|  bool WasRelaxed = false;
  921|  12.3k|  for (iterator it = begin(), ie = end(); it != ie; ++it) {
  ------------------
  |  Branch (921:43): [True: 6.29k, False: 6.07k]
  ------------------
  922|  6.29k|    MCSection &Sec = *it;
  923|  6.29k|    while (layoutSectionOnce(Layout, Sec))
  ------------------
  |  Branch (923:12): [True: 0, False: 6.29k]
  ------------------
  924|      0|      WasRelaxed = true;
  925|  6.29k|  }
  926|       |
  927|  6.07k|  return WasRelaxed;
  928|  6.07k|}
_ZN7llvm_ks11MCAssembler12finishLayoutERNS_11MCAsmLayoutE:
  930|  6.07k|void MCAssembler::finishLayout(MCAsmLayout &Layout) {
  931|       |  // The layout is done. Mark every fragment as valid.
  932|  12.3k|  for (unsigned int i = 0, n = Layout.getSectionOrder().size(); i != n; ++i) {
  ------------------
  |  Branch (932:65): [True: 6.29k, False: 6.07k]
  ------------------
  933|  6.29k|    bool valid;
  934|  6.29k|    Layout.getFragmentOffset(&*Layout.getSectionOrder()[i]->rbegin(), valid);
  935|  6.29k|  }
  936|  6.07k|}
MCAssembler.cpp:_ZL13writeFragmentRKN7llvm_ks11MCAssemblerERKNS_11MCAsmLayoutERKNS_10MCFragmentE:
  475|  43.0k|{
  476|  43.0k|  if (Asm.getError())
  ------------------
  |  Branch (476:7): [True: 9.45k, False: 33.6k]
  ------------------
  477|  9.45k|      return;
  478|       |
  479|  33.6k|  MCObjectWriter *OW = &Asm.getWriter();
  480|       |
  481|  33.6k|  bool valid;
  482|       |  // FIXME: Embed in fragments instead?
  483|  33.6k|  uint64_t FragmentSize = Asm.computeFragmentSize(Layout, F, valid);
  484|  33.6k|  if (!valid) {
  ------------------
  |  Branch (484:7): [True: 365, False: 33.2k]
  ------------------
  485|    365|      Asm.setError(KS_ERR_ASM_FRAGMENT_INVALID);
  486|    365|      return;
  487|    365|  }
  488|       |
  489|  33.2k|  Asm.writeFragmentPadding(F, FragmentSize, OW);
  490|       |
  491|       |  // This variable (and its dummy usage) is to participate in the assert at
  492|       |  // the end of the function.
  493|  33.2k|  uint64_t Start = OW->getStream().tell();
  494|  33.2k|  (void) Start;
  495|       |
  496|  33.2k|  switch (F.getKind()) {
  ------------------
  |  Branch (496:11): [True: 33.2k, False: 0]
  ------------------
  497|  5.54k|  case MCFragment::FT_Align: {
  ------------------
  |  Branch (497:3): [True: 5.54k, False: 27.7k]
  ------------------
  498|  5.54k|    const MCAlignFragment &AF = cast<MCAlignFragment>(F);
  499|  5.54k|    assert(AF.getValueSize() && "Invalid virtual align in concrete fragment!");
  ------------------
  |  Branch (499:5): [True: 5.54k, False: 0]
  |  Branch (499:5): [True: 5.54k, Folded]
  |  Branch (499:5): [True: 5.54k, False: 0]
  ------------------
  500|       |
  501|  5.54k|    uint64_t Count = FragmentSize / AF.getValueSize();
  502|       |
  503|       |    // FIXME: This error shouldn't actually occur (the front end should emit
  504|       |    // multiple .align directives to enforce the semantics it wants), but is
  505|       |    // severe enough that we want to report it. How to handle this?
  506|  5.54k|    if (Count * AF.getValueSize() != FragmentSize)
  ------------------
  |  Branch (506:9): [True: 0, False: 5.54k]
  ------------------
  507|      0|      report_fatal_error("undefined .align directive, value size '" +
  508|      0|                        Twine(AF.getValueSize()) +
  509|      0|                        "' is not a divisor of padding size '" +
  510|      0|                        Twine(FragmentSize) + "'");
  511|       |
  512|       |    // See if we are aligning with nops, and if so do that first to try to fill
  513|       |    // the Count bytes.  Then if that did not fill any bytes or there are any
  514|       |    // bytes left to fill use the Value and ValueSize to fill the rest.
  515|       |    // If we are aligning with nops, ask that target to emit the right data.
  516|  5.54k|    if (AF.hasEmitNops()) {
  ------------------
  |  Branch (516:9): [True: 1.97k, False: 3.56k]
  ------------------
  517|  1.97k|      if (!Asm.getBackend().writeNopData(Count, OW))
  ------------------
  |  Branch (517:11): [True: 0, False: 1.97k]
  ------------------
  518|      0|        report_fatal_error("unable to write nop sequence of " +
  519|      0|                          Twine(Count) + " bytes");
  520|  1.97k|      break;
  521|  1.97k|    }
  522|       |
  523|       |    // Otherwise, write out in multiples of the value size.
  524|  16.9M|    for (uint64_t i = 0; i != Count; ++i) {
  ------------------
  |  Branch (524:26): [True: 16.9M, False: 3.56k]
  ------------------
  525|  16.9M|      switch (AF.getValueSize()) {
  526|      0|      default: llvm_unreachable("Invalid size!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  |  Branch (526:7): [True: 0, False: 16.9M]
  ------------------
  527|  16.9M|      case 1: OW->write8 (uint8_t (AF.getValue())); break;
  ------------------
  |  Branch (527:7): [True: 16.9M, False: 0]
  ------------------
  528|      0|      case 2: OW->write16(uint16_t(AF.getValue())); break;
  ------------------
  |  Branch (528:7): [True: 0, False: 16.9M]
  ------------------
  529|      0|      case 4: OW->write32(uint32_t(AF.getValue())); break;
  ------------------
  |  Branch (529:7): [True: 0, False: 16.9M]
  ------------------
  530|      0|      case 8: OW->write64(uint64_t(AF.getValue())); break;
  ------------------
  |  Branch (530:7): [True: 0, False: 16.9M]
  ------------------
  531|  16.9M|      }
  532|  16.9M|    }
  533|  3.56k|    break;
  534|  3.56k|  }
  535|       |
  536|  5.19k|  case MCFragment::FT_Data: 
  ------------------
  |  Branch (536:3): [True: 5.19k, False: 28.0k]
  ------------------
  537|  5.19k|    OW->writeBytes(cast<MCDataFragment>(F).getContents());
  538|  5.19k|    break;
  539|       |
  540|    386|  case MCFragment::FT_Relaxable:
  ------------------
  |  Branch (540:3): [True: 386, False: 32.8k]
  ------------------
  541|    386|    OW->writeBytes(cast<MCRelaxableFragment>(F).getContents());
  542|    386|    break;
  543|       |
  544|      0|  case MCFragment::FT_CompactEncodedInst:
  ------------------
  |  Branch (544:3): [True: 0, False: 33.2k]
  ------------------
  545|      0|    OW->writeBytes(cast<MCCompactEncodedInstFragment>(F).getContents());
  546|      0|    break;
  547|       |
  548|  6.17k|  case MCFragment::FT_Fill: {
  ------------------
  |  Branch (548:3): [True: 6.17k, False: 27.0k]
  ------------------
  549|  6.17k|    const MCFillFragment &FF = cast<MCFillFragment>(F);
  550|  6.17k|    uint8_t V = FF.getValue();
  551|  6.17k|    const unsigned MaxChunkSize = 16;
  552|  6.17k|    char Data[MaxChunkSize];
  553|  6.17k|    memcpy(Data, &V, 1);
  554|  98.7k|    for (unsigned I = 1; I < MaxChunkSize; ++I)
  ------------------
  |  Branch (554:26): [True: 92.5k, False: 6.17k]
  ------------------
  555|  92.5k|      Data[I] = Data[0];
  556|       |
  557|  6.17k|    uint64_t Size = FF.getSize();
  558|  37.0k|    for (unsigned ChunkSize = MaxChunkSize; ChunkSize; ChunkSize /= 2) {
  ------------------
  |  Branch (558:45): [True: 30.8k, False: 6.17k]
  ------------------
  559|  30.8k|      StringRef Ref(Data, ChunkSize);
  560|  1.82M|      for (uint64_t I = 0, E = Size / ChunkSize; I != E; ++I)
  ------------------
  |  Branch (560:50): [True: 1.79M, False: 30.8k]
  ------------------
  561|  1.79M|        OW->writeBytes(Ref);
  562|  30.8k|      Size = Size % ChunkSize;
  563|  30.8k|    }
  564|  6.17k|    break;
  565|  3.56k|  }
  566|       |
  567|      0|  case MCFragment::FT_LEB: {
  ------------------
  |  Branch (567:3): [True: 0, False: 33.2k]
  ------------------
  568|      0|    const MCLEBFragment &LF = cast<MCLEBFragment>(F);
  569|      0|    OW->writeBytes(LF.getContents());
  570|      0|    break;
  571|  3.56k|  }
  572|       |
  573|      0|  case MCFragment::FT_SafeSEH: {
  ------------------
  |  Branch (573:3): [True: 0, False: 33.2k]
  ------------------
  574|      0|    const MCSafeSEHFragment &SF = cast<MCSafeSEHFragment>(F);
  575|      0|    OW->write32(SF.getSymbol()->getIndex());
  576|      0|    break;
  577|  3.56k|  }
  578|       |
  579|  15.9k|  case MCFragment::FT_Org: {
  ------------------
  |  Branch (579:3): [True: 15.9k, False: 17.2k]
  ------------------
  580|  15.9k|    const MCOrgFragment &OF = cast<MCOrgFragment>(F);
  581|       |
  582|  71.4M|    for (uint64_t i = 0, e = FragmentSize; i != e; ++i)
  ------------------
  |  Branch (582:44): [True: 71.4M, False: 15.9k]
  ------------------
  583|  71.4M|      OW->write8(uint8_t(OF.getValue()));
  584|       |
  585|  15.9k|    break;
  586|  3.56k|  }
  587|       |
  588|      0|  case MCFragment::FT_Dwarf: {
  ------------------
  |  Branch (588:3): [True: 0, False: 33.2k]
  ------------------
  589|      0|    const MCDwarfLineAddrFragment &OF = cast<MCDwarfLineAddrFragment>(F);
  590|      0|    OW->writeBytes(OF.getContents());
  591|      0|    break;
  592|  3.56k|  }
  593|      0|  case MCFragment::FT_DwarfFrame: {
  ------------------
  |  Branch (593:3): [True: 0, False: 33.2k]
  ------------------
  594|      0|    const MCDwarfCallFrameFragment &CF = cast<MCDwarfCallFrameFragment>(F);
  595|      0|    OW->writeBytes(CF.getContents());
  596|      0|    break;
  597|  3.56k|  }
  598|      0|  case MCFragment::FT_Dummy:
  ------------------
  |  Branch (598:3): [True: 0, False: 33.2k]
  ------------------
  599|      0|    llvm_unreachable("Should not have been added");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  600|  33.2k|  }
  601|       |
  602|  33.2k|  assert(OW->getStream().tell() - Start == FragmentSize &&
  ------------------
  |  Branch (602:3): [True: 33.2k, False: 0]
  |  Branch (602:3): [True: 33.2k, Folded]
  |  Branch (602:3): [True: 33.2k, False: 0]
  ------------------
  603|  33.2k|         "The stream should advance by fragment size");
  604|  33.2k|}

_ZN7llvm_ks13MCCodeEmitterC2Ev:
   14|  13.6k|MCCodeEmitter::MCCodeEmitter() {
   15|  13.6k|}
_ZN7llvm_ks13MCCodeEmitterD2Ev:
   17|  13.6k|MCCodeEmitter::~MCCodeEmitter() {
   18|  13.6k|}

_ZN7llvm_ks9MCContextC2EPKNS_9MCAsmInfoEPKNS_14MCRegisterInfoEPKNS_16MCObjectFileInfoEPKNS_9SourceMgrEbm:
   40|  13.6k|    : SrcMgr(mgr), MAI(mai), MRI(mri), MOFI(mofi), Allocator(),
   41|  13.6k|      Symbols(Allocator), UsedNames(Allocator),
   42|  13.6k|      CurrentDwarfLoc(0, 0, 0, DWARF2_FLAG_IS_STMT, 0, 0), DwarfLocSeen(false),
  ------------------
  |  |   68|  13.6k|#define DWARF2_FLAG_IS_STMT (1 << 0)
  ------------------
   43|  13.6k|      GenDwarfForAssembly(false), GenDwarfFileNumber(0), DwarfVersion(4),
   44|  13.6k|      AllowTemporaryLabels(true), DwarfCompileUnitID(0),
   45|  13.6k|      AutoReset(DoAutoReset), HadError(false), BaseAddress(BaseAddr) {
   46|       |
   47|  13.6k|  std::error_code EC = llvm_ks::sys::fs::current_path(CompilationDir);
   48|  13.6k|  if (EC)
  ------------------
  |  Branch (48:7): [True: 0, False: 13.6k]
  ------------------
   49|      0|    CompilationDir.clear();
   50|       |
   51|  13.6k|  SecureLogFile = getenv("AS_SECURE_LOG_FILE");
   52|  13.6k|  SecureLog = nullptr;
   53|  13.6k|  SecureLogUsed = false;
   54|       |
   55|  13.6k|  if (SrcMgr && SrcMgr->getNumBuffers())
  ------------------
  |  Branch (55:7): [True: 13.6k, False: 0]
  |  Branch (55:17): [True: 0, False: 13.6k]
  ------------------
   56|      0|    MainFileName =
   57|      0|        SrcMgr->getMemoryBuffer(SrcMgr->getMainFileID())->getBufferIdentifier();
   58|  13.6k|}
_ZN7llvm_ks9MCContextD2Ev:
   60|  13.6k|MCContext::~MCContext() {
   61|  13.6k|  if (AutoReset)
  ------------------
  |  Branch (61:7): [True: 13.6k, False: 0]
  ------------------
   62|  13.6k|    reset();
   63|       |
   64|       |  // NOTE: The symbols are all allocated out of a bump pointer allocator,
   65|       |  // we don't need to free them here.
   66|  13.6k|}
_ZN7llvm_ks9MCContext5resetEv:
   72|  13.6k|void MCContext::reset() {
   73|       |  // Call the destructors so the fragments are freed
   74|  13.6k|  COFFAllocator.DestroyAll();
   75|  13.6k|  ELFAllocator.DestroyAll();
   76|  13.6k|  MachOAllocator.DestroyAll();
   77|       |
   78|  13.6k|  MCSubtargetAllocator.DestroyAll();
   79|  13.6k|  UsedNames.clear();
   80|  13.6k|  Symbols.clear();
   81|  13.6k|  SectionSymbols.clear();
   82|  13.6k|  Allocator.Reset();
   83|  13.6k|  Instances.clear();
   84|  13.6k|  CompilationDir.clear();
   85|  13.6k|  MainFileName.clear();
   86|  13.6k|  MCDwarfLineTablesCUMap.clear();
   87|  13.6k|  SectionsForRanges.clear();
   88|  13.6k|  MCGenDwarfLabelEntries.clear();
   89|  13.6k|  DwarfDebugFlags = StringRef();
   90|  13.6k|  DwarfCompileUnitID = 0;
   91|  13.6k|  CurrentDwarfLoc = MCDwarfLoc(0, 0, 0, DWARF2_FLAG_IS_STMT, 0, 0);
  ------------------
  |  |   68|  13.6k|#define DWARF2_FLAG_IS_STMT (1 << 0)
  ------------------
   92|       |
   93|  13.6k|  MachOUniquingMap.clear();
   94|  13.6k|  ELFUniquingMap.clear();
   95|  13.6k|  COFFUniquingMap.clear();
   96|       |
   97|  13.6k|  NextID.clear();
   98|  13.6k|  AllowTemporaryLabels = true;
   99|  13.6k|  DwarfLocSeen = false;
  100|  13.6k|  GenDwarfForAssembly = false;
  101|  13.6k|  GenDwarfFileNumber = 0;
  102|       |
  103|  13.6k|  HadError = false;
  104|  13.6k|}
_ZN7llvm_ks9MCContext17getOrCreateSymbolERKNS_5TwineE:
  110|   120k|MCSymbol *MCContext::getOrCreateSymbol(const Twine &Name) {
  111|   120k|  SmallString<128> NameSV;
  112|   120k|  StringRef NameRef = Name.toStringRef(NameSV);
  113|       |
  114|   120k|  assert(!NameRef.empty() && "Normal symbols cannot be unnamed!");
  ------------------
  |  Branch (114:3): [True: 120k, False: 0]
  |  Branch (114:3): [True: 120k, Folded]
  |  Branch (114:3): [True: 120k, False: 0]
  ------------------
  115|       |
  116|   120k|  MCSymbol *&Sym = Symbols[NameRef];
  117|   120k|  if (!Sym)
  ------------------
  |  Branch (117:7): [True: 13.0k, False: 107k]
  ------------------
  118|  13.0k|    Sym = createSymbol(NameRef, false, false);
  119|       |
  120|   120k|  return Sym;
  121|   120k|}
_ZN7llvm_ks9MCContext24getOrCreateSectionSymbolERKNS_12MCSectionELFE:
  123|  13.9k|MCSymbolELF *MCContext::getOrCreateSectionSymbol(const MCSectionELF &Section) {
  124|  13.9k|  MCSymbolELF *&Sym = SectionSymbols[&Section];
  125|  13.9k|  if (Sym)
  ------------------
  |  Branch (125:7): [True: 0, False: 13.9k]
  ------------------
  126|      0|    return Sym;
  127|       |
  128|  13.9k|  StringRef Name = Section.getSectionName();
  129|       |
  130|  13.9k|  MCSymbol *&OldSym = Symbols[Name];
  131|  13.9k|  if (OldSym && OldSym->isUndefined()) {
  ------------------
  |  Branch (131:7): [True: 127, False: 13.8k]
  |  Branch (131:17): [True: 0, False: 127]
  ------------------
  132|      0|    Sym = cast<MCSymbolELF>(OldSym);
  133|      0|    return Sym;
  134|      0|  }
  135|       |
  136|  13.9k|  auto NameIter = UsedNames.insert(std::make_pair(Name, true)).first;
  137|  13.9k|  Sym = new (&*NameIter, *this) MCSymbolELF(&*NameIter, /*isTemporary*/ false);
  138|       |
  139|  13.9k|  if (!OldSym)
  ------------------
  |  Branch (139:7): [True: 13.8k, False: 127]
  ------------------
  140|  13.8k|    OldSym = Sym;
  141|       |
  142|  13.9k|  return Sym;
  143|  13.9k|}
_ZN7llvm_ks9MCContext16createSymbolImplEPKNS_14StringMapEntryIbEEb:
  162|   204k|                                      bool IsTemporary) {
  163|   204k|  if (MOFI) {
  ------------------
  |  Branch (163:7): [True: 204k, False: 0]
  ------------------
  164|   204k|    switch (MOFI->getObjectFileType()) {
  ------------------
  |  Branch (164:13): [True: 204k, False: 0]
  ------------------
  165|      0|    case MCObjectFileInfo::IsCOFF:
  ------------------
  |  Branch (165:5): [True: 0, False: 204k]
  ------------------
  166|      0|      return new (Name, *this) MCSymbolCOFF(Name, IsTemporary);
  167|   204k|    case MCObjectFileInfo::IsELF:
  ------------------
  |  Branch (167:5): [True: 204k, False: 0]
  ------------------
  168|   204k|      return new (Name, *this) MCSymbolELF(Name, IsTemporary);
  169|      0|    case MCObjectFileInfo::IsMachO:
  ------------------
  |  Branch (169:5): [True: 0, False: 204k]
  ------------------
  170|      0|      return new (Name, *this) MCSymbolMachO(Name, IsTemporary);
  171|   204k|    }
  172|   204k|  }
  173|      0|  return new (Name, *this) MCSymbol(MCSymbol::SymbolKindUnset, Name,
  174|      0|                                    IsTemporary);
  175|   204k|}
_ZN7llvm_ks9MCContext12createSymbolENS_9StringRefEbb:
  178|   204k|                                  bool CanBeUnnamed) {
  179|   204k|  if (CanBeUnnamed && !UseNamesOnTempLabels)
  ------------------
  |  Branch (179:7): [True: 191k, False: 13.0k]
  |  Branch (179:23): [True: 0, False: 191k]
  ------------------
  180|      0|    return createSymbolImpl(nullptr, true);
  181|       |
  182|       |  // Determine whether this is an user writter assembler temporary or normal
  183|       |  // label, if used.
  184|   204k|  bool IsTemporary = CanBeUnnamed;
  185|   204k|  if (AllowTemporaryLabels && !IsTemporary)
  ------------------
  |  Branch (185:7): [True: 204k, False: 0]
  |  Branch (185:31): [True: 13.0k, False: 191k]
  ------------------
  186|  13.0k|    IsTemporary = Name.startswith(MAI->getPrivateGlobalPrefix());
  187|       |
  188|   204k|  SmallString<128> NewName = Name;
  189|   204k|  bool AddSuffix = AlwaysAddSuffix;
  190|   204k|  unsigned &NextUniqueID = NextID[Name];
  191|   204k|  for (;;) {
  192|   204k|    if (AddSuffix) {
  ------------------
  |  Branch (192:9): [True: 55.0k, False: 149k]
  ------------------
  193|  55.0k|      NewName.resize(Name.size());
  194|  55.0k|      raw_svector_ostream(NewName) << NextUniqueID++;
  195|  55.0k|    }
  196|   204k|    auto NameEntry = UsedNames.insert(std::make_pair(NewName, true));
  197|   204k|    if (NameEntry.second) {
  ------------------
  |  Branch (197:9): [True: 204k, False: 0]
  ------------------
  198|       |      // Ok, we found a name. Have the MCSymbol object itself refer to the copy
  199|       |      // of the string that is embedded in the UsedNames entry.
  200|   204k|      return createSymbolImpl(&*NameEntry.first, IsTemporary);
  201|   204k|    }
  202|   204k|    assert(IsTemporary && "Cannot rename non-temporary symbols");
  ------------------
  |  Branch (202:5): [True: 0, False: 0]
  |  Branch (202:5): [True: 0, Folded]
  |  Branch (202:5): [True: 0, False: 0]
  ------------------
  203|      0|    AddSuffix = true;
  204|      0|  }
  205|      0|  llvm_unreachable("Infinite loop");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  206|   204k|}
_ZN7llvm_ks9MCContext16createTempSymbolERKNS_5TwineEbb:
  209|   191k|                                      bool CanBeUnnamed) {
  210|   191k|  SmallString<128> NameSV;
  211|   191k|  raw_svector_ostream(NameSV) << MAI->getPrivateGlobalPrefix() << Name;
  212|   191k|  return createSymbol(NameSV, AlwaysAddSuffix, CanBeUnnamed);
  213|   191k|}
_ZN7llvm_ks9MCContext16createTempSymbolEb:
  221|  55.0k|MCSymbol *MCContext::createTempSymbol(bool CanBeUnnamed) {
  222|  55.0k|  return createTempSymbol("tmp", true, CanBeUnnamed);
  223|  55.0k|}
_ZN7llvm_ks9MCContext12NextInstanceEjRb:
  226|     57|{
  227|     57|  if (LocalLabelVal >= Instances.size()) {
  ------------------
  |  Branch (227:7): [True: 57, False: 0]
  ------------------
  228|     57|      valid = false;
  229|     57|      return 0;
  230|     57|  }
  231|      0|  MCLabel *&Label = Instances[LocalLabelVal];
  232|      0|  if (!Label)
  ------------------
  |  Branch (232:7): [True: 0, False: 0]
  ------------------
  233|      0|    Label = new (*this) MCLabel(0);
  234|      0|  return Label->incInstance();
  235|     57|}
_ZN7llvm_ks9MCContext11GetInstanceEjRb:
  238|    869|{
  239|    869|  if (LocalLabelVal >= Instances.size()) {
  ------------------
  |  Branch (239:7): [True: 869, False: 0]
  ------------------
  240|    869|      valid = false;
  241|    869|      return 0;
  242|    869|  }
  243|      0|  MCLabel *&Label = Instances[LocalLabelVal];
  244|      0|  if (!Label)
  ------------------
  |  Branch (244:7): [True: 0, False: 0]
  ------------------
  245|      0|    Label = new (*this) MCLabel(0);
  246|      0|  return Label->getInstance();
  247|    869|}
_ZN7llvm_ks9MCContext28createDirectionalLocalSymbolEjRb:
  258|     57|{
  259|     57|  valid = true;
  260|     57|  unsigned Instance = NextInstance(LocalLabelVal, valid);
  261|     57|  if (!valid)
  ------------------
  |  Branch (261:7): [True: 57, False: 0]
  ------------------
  262|     57|      return nullptr;
  263|      0|  return getOrCreateDirectionalLocalSymbol(LocalLabelVal, Instance);
  264|     57|}
_ZN7llvm_ks9MCContext25getDirectionalLocalSymbolEjbRb:
  268|    869|{
  269|    869|  valid = true;
  270|    869|  unsigned Instance = GetInstance(LocalLabelVal, valid);
  271|    869|  if (!valid)
  ------------------
  |  Branch (271:7): [True: 869, False: 0]
  ------------------
  272|    869|      return nullptr;
  273|      0|  if (!Before)
  ------------------
  |  Branch (273:7): [True: 0, False: 0]
  ------------------
  274|      0|    ++Instance;
  275|      0|  return getOrCreateDirectionalLocalSymbol(LocalLabelVal, Instance);
  276|    869|}
_ZNK7llvm_ks9MCContext12lookupSymbolERKNS_5TwineE:
  278|  49.5k|MCSymbol *MCContext::lookupSymbol(const Twine &Name) const {
  279|  49.5k|  SmallString<128> NameSV;
  280|  49.5k|  StringRef NameRef = Name.toStringRef(NameSV);
  281|  49.5k|  return Symbols.lookup(NameRef);
  282|  49.5k|}
_ZN7llvm_ks9MCContext15getMachOSectionENS_9StringRefES1_jjNS_11SectionKindEPKc:
  291|  1.72k|                                           const char *BeginSymName) {
  292|       |
  293|       |  // We unique sections by their segment/section pair.  The returned section
  294|       |  // may not have the same flags as the requested section, if so this should be
  295|       |  // diagnosed by the client as an error.
  296|       |
  297|       |  // Form the name to look up.
  298|  1.72k|  SmallString<64> Name;
  299|  1.72k|  Name += Segment;
  300|  1.72k|  Name.push_back(',');
  301|  1.72k|  Name += Section;
  302|       |
  303|       |  // Do the lookup, if we have a hit, return it.
  304|  1.72k|  MCSectionMachO *&Entry = MachOUniquingMap[Name];
  305|  1.72k|  if (Entry)
  ------------------
  |  Branch (305:7): [True: 1.42k, False: 302]
  ------------------
  306|  1.42k|    return Entry;
  307|       |
  308|    302|  MCSymbol *Begin = nullptr;
  309|    302|  if (BeginSymName)
  ------------------
  |  Branch (309:7): [True: 0, False: 302]
  ------------------
  310|      0|    Begin = createTempSymbol(BeginSymName, false);
  311|       |
  312|       |  // Otherwise, return a new section.
  313|    302|  return Entry = new (MachOAllocator.Allocate()) MCSectionMachO(
  314|    302|             Segment, Section, TypeAndAttributes, Reserved2, Kind, Begin);
  315|  1.72k|}
_ZN7llvm_ks9MCContext19createELFRelSectionENS_9StringRefEjjjPKNS_11MCSymbolELFEPKNS_12MCSectionELFE:
  336|    118|                                             const MCSectionELF *Associated) {
  337|    118|  StringMap<bool>::iterator I;
  338|    118|  bool Inserted;
  339|    118|  std::tie(I, Inserted) = ELFRelSecNames.insert(std::make_pair(Name, true));
  340|       |
  341|    118|  return new (ELFAllocator.Allocate())
  342|    118|      MCSectionELF(I->getKey(), Type, Flags, SectionKind::getReadOnly(),
  343|    118|                   EntrySize, Group, true, nullptr, Associated);
  344|    118|}
_ZN7llvm_ks9MCContext13getELFSectionENS_9StringRefEjjjS1_jPKc:
  349|   591k|                                       const char *BeginSymName) {
  350|   591k|  MCSymbolELF *GroupSym = nullptr;
  351|   591k|  if (!Group.empty())
  ------------------
  |  Branch (351:7): [True: 0, False: 591k]
  ------------------
  352|      0|    GroupSym = cast<MCSymbolELF>(getOrCreateSymbol(Group));
  353|       |
  354|   591k|  return getELFSection(Section, Type, Flags, EntrySize, GroupSym, UniqueID,
  355|   591k|                       BeginSymName, nullptr);
  356|   591k|}
_ZN7llvm_ks9MCContext13getELFSectionENS_9StringRefEjjjPKNS_11MCSymbolELFEjPKcPKNS_12MCSectionELFE:
  363|   591k|                                       const MCSectionELF *Associated) {
  364|   591k|  StringRef Group = "";
  365|   591k|  if (GroupSym)
  ------------------
  |  Branch (365:7): [True: 0, False: 591k]
  ------------------
  366|      0|    Group = GroupSym->getName();
  367|       |  // Do the lookup, if we have a hit, return it.
  368|   591k|  auto IterBool = ELFUniquingMap.insert(
  369|   591k|      std::make_pair(ELFSectionKey{Section, Group, UniqueID}, nullptr));
  370|   591k|  auto &Entry = *IterBool.first;
  371|   591k|  if (!IterBool.second)
  ------------------
  |  Branch (371:7): [True: 63, False: 591k]
  ------------------
  372|     63|    return Entry.second;
  373|       |
  374|   591k|  StringRef CachedName = Entry.first.SectionName;
  375|       |
  376|   591k|  SectionKind Kind;
  377|   591k|  if (Flags & ELF::SHF_EXECINSTR)
  ------------------
  |  Branch (377:7): [True: 13.6k, False: 578k]
  ------------------
  378|  13.6k|    Kind = SectionKind::getText();
  379|   578k|  else
  380|   578k|    Kind = SectionKind::getReadOnly();
  381|       |
  382|   591k|  MCSymbol *Begin = nullptr;
  383|   591k|  if (BeginSymName)
  ------------------
  |  Branch (383:7): [True: 136k, False: 455k]
  ------------------
  384|   136k|    Begin = createTempSymbol(BeginSymName, false);
  385|       |
  386|   591k|  MCSectionELF *Result = new (ELFAllocator.Allocate())
  387|   591k|      MCSectionELF(CachedName, Type, Flags, Kind, EntrySize, GroupSym, UniqueID,
  388|   591k|                   Begin, Associated);
  389|   591k|  Entry.second = Result;
  390|   591k|  return Result;
  391|   591k|}
_ZN7llvm_ks9MCContext12getDwarfFileENS_9StringRefES1_jj:
  473|     48|                                 unsigned FileNumber, unsigned CUID) {
  474|     48|  return 0;
  475|     48|}
_ZN7llvm_ks9MCContext22isValidDwarfFileNumberEjj:
  479|     69|bool MCContext::isValidDwarfFileNumber(unsigned FileNumber, unsigned CUID) {
  480|     69|  const SmallVectorImpl<MCDwarfFile> &MCDwarfFiles = getMCDwarfFiles(CUID);
  481|     69|  if (FileNumber == 0 || FileNumber >= MCDwarfFiles.size())
  ------------------
  |  Branch (481:7): [True: 1, False: 68]
  |  Branch (481:26): [True: 68, False: 0]
  ------------------
  482|     69|    return false;
  483|       |
  484|      0|  return !MCDwarfFiles[FileNumber].Name.empty();
  485|     69|}
_ZN7llvm_ks9MCContext11reportErrorENS_5SMLocERKNS_5TwineE:
  506|  1.25k|void MCContext::reportError(SMLoc Loc, const Twine &Msg) {
  507|  1.25k|  HadError = true;
  508|       |
  509|       |  // If we have a source manager use it. Otherwise just use the generic
  510|       |  // report_fatal_error().
  511|  1.25k|  if (!SrcMgr)
  ------------------
  |  Branch (511:7): [True: 0, False: 1.25k]
  ------------------
  512|      0|    report_fatal_error(Msg, false);
  513|       |
  514|       |  // Use the source manager to print the message.
  515|  1.25k|  SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
  516|  1.25k|}

_ZN7llvm_ks23MCELFObjectTargetWriterC2Ebhtbb:
   22|  13.6k|  : OSABI(OSABI_), EMachine(EMachine_),
   23|  13.6k|    HasRelocationAddend(HasRelocationAddend_), Is64Bit(Is64Bit_),
   24|  13.6k|    IsN64(IsN64_){
   25|  13.6k|}

_ZNK7llvm_ks13MCELFStreamer14isBundleLockedEv:
   43|  57.9k|bool MCELFStreamer::isBundleLocked() const {
   44|  57.9k|  return getCurrentSectionOnly()->isBundleLocked();
   45|  57.9k|}
_ZN7llvm_ks13MCELFStreamerD2Ev:
   47|  13.6k|MCELFStreamer::~MCELFStreamer() {
   48|  13.6k|}
_ZN7llvm_ks13MCELFStreamer12InitSectionsEb:
   91|  13.6k|void MCELFStreamer::InitSections(bool NoExecStack) {
   92|  13.6k|  MCContext &Ctx = getContext();
   93|  13.6k|  SwitchSection(Ctx.getObjectFileInfo()->getTextSection());
   94|       |
   95|  13.6k|  if (NoExecStack)
  ------------------
  |  Branch (95:7): [True: 0, False: 13.6k]
  ------------------
   96|      0|    SwitchSection(Ctx.getAsmInfo()->getNonexecutableStackSection(Ctx));
   97|  13.6k|}
_ZN7llvm_ks13MCELFStreamer9EmitLabelEPNS_8MCSymbolE:
   99|  69.2k|void MCELFStreamer::EmitLabel(MCSymbol *S) {
  100|  69.2k|  auto *Symbol = cast<MCSymbolELF>(S);
  101|  69.2k|  assert(Symbol->isUndefined() && "Cannot define a symbol twice!");
  ------------------
  |  Branch (101:3): [True: 69.2k, False: 0]
  |  Branch (101:3): [True: 69.2k, Folded]
  |  Branch (101:3): [True: 69.2k, False: 0]
  ------------------
  102|       |
  103|  69.2k|  MCObjectStreamer::EmitLabel(Symbol);
  104|       |
  105|  69.2k|  const MCSectionELF &Section =
  106|  69.2k|      static_cast<const MCSectionELF &>(*getCurrentSectionOnly());
  107|  69.2k|  if (Section.getFlags() & ELF::SHF_TLS)
  ------------------
  |  Branch (107:7): [True: 331, False: 68.9k]
  ------------------
  108|    331|    Symbol->setType(ELF::STT_TLS);
  109|  69.2k|}
_ZN7llvm_ks13MCELFStreamer13ChangeSectionEPNS_9MCSectionEPKNS_6MCExprE:
  138|  14.5k|                                  const MCExpr *Subsection) {
  139|  14.5k|  MCSection *CurSection = getCurrentSectionOnly();
  140|  14.5k|  if (CurSection && isBundleLocked())
  ------------------
  |  Branch (140:7): [True: 892, False: 13.6k]
  |  Branch (140:21): [True: 0, False: 892]
  ------------------
  141|      0|    report_fatal_error("Unterminated .bundle_lock when changing a section");
  142|       |
  143|  14.5k|  MCAssembler &Asm = getAssembler();
  144|       |  // Ensure the previous section gets aligned if necessary.
  145|  14.5k|  setSectionAlignmentForBundling(Asm, CurSection);
  146|  14.5k|  auto *SectionELF = static_cast<const MCSectionELF *>(Section);
  147|  14.5k|  const MCSymbol *Grp = SectionELF->getGroup();
  148|  14.5k|  if (Grp)
  ------------------
  |  Branch (148:7): [True: 0, False: 14.5k]
  ------------------
  149|      0|    Asm.registerSymbol(*Grp);
  150|       |
  151|  14.5k|  this->MCObjectStreamer::ChangeSection(Section, Subsection);
  152|  14.5k|  MCContext &Ctx = getContext();
  153|  14.5k|  auto *Begin = cast_or_null<MCSymbolELF>(Section->getBeginSymbol());
  154|  14.5k|  if (!Begin) {
  ------------------
  |  Branch (154:7): [True: 13.9k, False: 563]
  ------------------
  155|  13.9k|    Begin = Ctx.getOrCreateSectionSymbol(*SectionELF);
  156|  13.9k|    Section->setBeginSymbol(Begin);
  157|  13.9k|  }
  158|  14.5k|  if (Begin->isUndefined()) {
  ------------------
  |  Branch (158:7): [True: 13.9k, False: 563]
  ------------------
  159|  13.9k|    Asm.registerSymbol(*Begin);
  160|  13.9k|    Begin->setType(ELF::STT_SECTION);
  161|  13.9k|  }
  162|  14.5k|}
_ZN7llvm_ks13MCELFStreamer19EmitSymbolAttributeEPNS_8MCSymbolENS_12MCSymbolAttrE:
  193|    152|bool MCELFStreamer::EmitSymbolAttribute(MCSymbol *S, MCSymbolAttr Attribute) {
  194|    152|  auto *Symbol = cast<MCSymbolELF>(S);
  195|       |  // Indirect symbols are handled differently, to match how 'as' handles
  196|       |  // them. This makes writing matching .o files easier.
  197|    152|  if (Attribute == MCSA_IndirectSymbol) {
  ------------------
  |  Branch (197:7): [True: 0, False: 152]
  ------------------
  198|       |    // Note that we intentionally cannot use the symbol data here; this is
  199|       |    // important for matching the string table that 'as' generates.
  200|      0|    IndirectSymbolData ISD;
  201|      0|    ISD.Symbol = Symbol;
  202|      0|    ISD.Section = getCurrentSectionOnly();
  203|      0|    getAssembler().getIndirectSymbols().push_back(ISD);
  204|      0|    return true;
  205|      0|  }
  206|       |
  207|       |  // Adding a symbol attribute always introduces the symbol, note that an
  208|       |  // important side effect of calling registerSymbol here is to register
  209|       |  // the symbol with the assembler.
  210|    152|  getAssembler().registerSymbol(*Symbol);
  211|       |
  212|       |  // The implementation of symbol attributes is designed to match 'as', but it
  213|       |  // leaves much to desired. It doesn't really make sense to arbitrarily add and
  214|       |  // remove flags, but 'as' allows this (in particular, see .desc).
  215|       |  //
  216|       |  // In the future it might be worth trying to make these operations more well
  217|       |  // defined.
  218|    152|  switch (Attribute) {
  ------------------
  |  Branch (218:11): [True: 152, False: 0]
  ------------------
  219|      0|  case MCSA_LazyReference:
  ------------------
  |  Branch (219:3): [True: 0, False: 152]
  ------------------
  220|      0|  case MCSA_Reference:
  ------------------
  |  Branch (220:3): [True: 0, False: 152]
  ------------------
  221|      0|  case MCSA_SymbolResolver:
  ------------------
  |  Branch (221:3): [True: 0, False: 152]
  ------------------
  222|      0|  case MCSA_PrivateExtern:
  ------------------
  |  Branch (222:3): [True: 0, False: 152]
  ------------------
  223|      0|  case MCSA_WeakDefinition:
  ------------------
  |  Branch (223:3): [True: 0, False: 152]
  ------------------
  224|      0|  case MCSA_WeakDefAutoPrivate:
  ------------------
  |  Branch (224:3): [True: 0, False: 152]
  ------------------
  225|      0|  case MCSA_Invalid:
  ------------------
  |  Branch (225:3): [True: 0, False: 152]
  ------------------
  226|      0|  case MCSA_IndirectSymbol:
  ------------------
  |  Branch (226:3): [True: 0, False: 152]
  ------------------
  227|      0|    return false;
  228|       |
  229|     83|  case MCSA_NoDeadStrip:
  ------------------
  |  Branch (229:3): [True: 83, False: 69]
  ------------------
  230|       |    // Ignore for now.
  231|     83|    break;
  232|       |
  233|      0|  case MCSA_ELF_TypeGnuUniqueObject:
  ------------------
  |  Branch (233:3): [True: 0, False: 152]
  ------------------
  234|      0|    Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_OBJECT));
  235|      0|    Symbol->setBinding(ELF::STB_GNU_UNIQUE);
  236|      0|    Symbol->setExternal(true);
  237|      0|    break;
  238|       |
  239|     69|  case MCSA_Global:
  ------------------
  |  Branch (239:3): [True: 69, False: 83]
  ------------------
  240|     69|    Symbol->setBinding(ELF::STB_GLOBAL);
  241|     69|    Symbol->setExternal(true);
  242|     69|    break;
  243|       |
  244|      0|  case MCSA_WeakReference:
  ------------------
  |  Branch (244:3): [True: 0, False: 152]
  ------------------
  245|      0|  case MCSA_Weak:
  ------------------
  |  Branch (245:3): [True: 0, False: 152]
  ------------------
  246|      0|    Symbol->setBinding(ELF::STB_WEAK);
  247|      0|    Symbol->setExternal(true);
  248|      0|    break;
  249|       |
  250|      0|  case MCSA_Local:
  ------------------
  |  Branch (250:3): [True: 0, False: 152]
  ------------------
  251|      0|    Symbol->setBinding(ELF::STB_LOCAL);
  252|      0|    Symbol->setExternal(false);
  253|      0|    break;
  254|       |
  255|      0|  case MCSA_ELF_TypeFunction:
  ------------------
  |  Branch (255:3): [True: 0, False: 152]
  ------------------
  256|      0|    Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_FUNC));
  257|      0|    break;
  258|       |
  259|      0|  case MCSA_ELF_TypeIndFunction:
  ------------------
  |  Branch (259:3): [True: 0, False: 152]
  ------------------
  260|      0|    Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_GNU_IFUNC));
  261|      0|    break;
  262|       |
  263|      0|  case MCSA_ELF_TypeObject:
  ------------------
  |  Branch (263:3): [True: 0, False: 152]
  ------------------
  264|      0|    Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_OBJECT));
  265|      0|    break;
  266|       |
  267|      0|  case MCSA_ELF_TypeTLS:
  ------------------
  |  Branch (267:3): [True: 0, False: 152]
  ------------------
  268|      0|    Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_TLS));
  269|      0|    break;
  270|       |
  271|      0|  case MCSA_ELF_TypeCommon:
  ------------------
  |  Branch (271:3): [True: 0, False: 152]
  ------------------
  272|       |    // TODO: Emit these as a common symbol.
  273|      0|    Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_OBJECT));
  274|      0|    break;
  275|       |
  276|      0|  case MCSA_ELF_TypeNoType:
  ------------------
  |  Branch (276:3): [True: 0, False: 152]
  ------------------
  277|      0|    Symbol->setType(CombineSymbolTypes(Symbol->getType(), ELF::STT_NOTYPE));
  278|      0|    break;
  279|       |
  280|      0|  case MCSA_Protected:
  ------------------
  |  Branch (280:3): [True: 0, False: 152]
  ------------------
  281|      0|    Symbol->setVisibility(ELF::STV_PROTECTED);
  282|      0|    break;
  283|       |
  284|      0|  case MCSA_Hidden:
  ------------------
  |  Branch (284:3): [True: 0, False: 152]
  ------------------
  285|      0|    Symbol->setVisibility(ELF::STV_HIDDEN);
  286|      0|    break;
  287|       |
  288|      0|  case MCSA_Internal:
  ------------------
  |  Branch (288:3): [True: 0, False: 152]
  ------------------
  289|      0|    Symbol->setVisibility(ELF::STV_INTERNAL);
  290|      0|    break;
  291|    152|  }
  292|       |
  293|    152|  return true;
  294|    152|}
_ZN7llvm_ks13MCELFStreamer16EmitCommonSymbolEPNS_8MCSymbolEmj:
  297|    827|                                     unsigned ByteAlignment) {
  298|    827|  auto *Symbol = cast<MCSymbolELF>(S);
  299|    827|  getAssembler().registerSymbol(*Symbol);
  300|       |
  301|    827|  if (!Symbol->isBindingSet()) {
  ------------------
  |  Branch (301:7): [True: 75, False: 752]
  ------------------
  302|     75|    Symbol->setBinding(ELF::STB_GLOBAL);
  303|     75|    Symbol->setExternal(true);
  304|     75|  }
  305|       |
  306|    827|  Symbol->setType(ELF::STT_OBJECT);
  307|       |
  308|    827|  if (Symbol->getBinding() == ELF::STB_LOCAL) {
  ------------------
  |  Branch (308:7): [True: 63, False: 764]
  ------------------
  309|     63|    MCSection &Section = *getAssembler().getContext().getELFSection(
  310|     63|        ".bss", ELF::SHT_NOBITS, ELF::SHF_WRITE | ELF::SHF_ALLOC);
  311|     63|    MCSectionSubPair P = getCurrentSection();
  312|     63|    SwitchSection(&Section);
  313|       |
  314|     63|    EmitValueToAlignment(ByteAlignment, 0, 1, 0);
  315|     63|    EmitLabel(Symbol);
  316|     63|    EmitZeros(Size);
  317|       |
  318|       |    // Update the maximum alignment of the section if necessary.
  319|     63|    if (ByteAlignment > Section.getAlignment())
  ------------------
  |  Branch (319:9): [True: 0, False: 63]
  ------------------
  320|      0|      Section.setAlignment(ByteAlignment);
  321|       |
  322|     63|    SwitchSection(P.first, P.second);
  323|    764|  } else {
  324|    764|    if(Symbol->declareCommon(Size, ByteAlignment))
  ------------------
  |  Branch (324:8): [True: 0, False: 764]
  ------------------
  325|      0|      report_fatal_error("Symbol: " + Symbol->getName() +
  326|      0|                         " redeclared as different type");
  327|    764|  }
  328|       |
  329|    827|  cast<MCSymbolELF>(Symbol)
  330|    827|      ->setSize(MCConstantExpr::create(Size, getContext()));
  331|    827|}
_ZN7llvm_ks13MCELFStreamer21EmitLocalCommonSymbolEPNS_8MCSymbolEmj:
  338|     63|                                          unsigned ByteAlignment) {
  339|     63|  auto *Symbol = cast<MCSymbolELF>(S);
  340|       |  // FIXME: Should this be caught and done earlier?
  341|     63|  getAssembler().registerSymbol(*Symbol);
  342|     63|  Symbol->setBinding(ELF::STB_LOCAL);
  343|     63|  Symbol->setExternal(false);
  344|     63|  EmitCommonSymbol(Symbol, Size, ByteAlignment);
  345|     63|}
_ZN7llvm_ks13MCELFStreamer13EmitValueImplEPKNS_6MCExprEjNS_5SMLocE:
  348|  49.0k|                                  SMLoc Loc) {
  349|  49.0k|  if (isBundleLocked())
  ------------------
  |  Branch (349:7): [True: 0, False: 49.0k]
  ------------------
  350|      0|    report_fatal_error("Emitting values inside a locked bundle is forbidden");
  351|  49.0k|  fixSymbolsInTLSFixups(Value);
  352|  49.0k|  MCObjectStreamer::EmitValueImpl(Value, Size, Loc);
  353|  49.0k|}
_ZN7llvm_ks13MCELFStreamer20EmitValueToAlignmentEjljj:
  358|  7.96k|                                         unsigned MaxBytesToEmit) {
  359|  7.96k|  if (isBundleLocked())
  ------------------
  |  Branch (359:7): [True: 0, False: 7.96k]
  ------------------
  360|      0|    report_fatal_error("Emitting values inside a locked bundle is forbidden");
  361|  7.96k|  MCObjectStreamer::EmitValueToAlignment(ByteAlignment, Value,
  362|  7.96k|                                         ValueSize, MaxBytesToEmit);
  363|  7.96k|}
_ZN7llvm_ks13MCELFStreamer17EmitFileDirectiveENS_9StringRefE:
  368|  1.19k|void MCELFStreamer::EmitFileDirective(StringRef Filename) {
  369|  1.19k|  getAssembler().addFileName(Filename);
  370|  1.19k|}
_ZN7llvm_ks13MCELFStreamer21fixSymbolsInTLSFixupsEPKNS_6MCExprE:
  387|   214k|void MCELFStreamer::fixSymbolsInTLSFixups(const MCExpr *expr) {
  388|   214k|  switch (expr->getKind()) {
  ------------------
  |  Branch (388:11): [True: 214k, False: 0]
  ------------------
  389|     10|  case MCExpr::Target:
  ------------------
  |  Branch (389:3): [True: 10, False: 214k]
  ------------------
  390|     10|    cast<MCTargetExpr>(expr)->fixELFSymbolsInTLSFixups(getAssembler());
  391|     10|    break;
  392|  30.6k|  case MCExpr::Constant:
  ------------------
  |  Branch (392:3): [True: 30.6k, False: 183k]
  ------------------
  393|  30.6k|    break;
  394|       |
  395|  68.4k|  case MCExpr::Binary: {
  ------------------
  |  Branch (395:3): [True: 68.4k, False: 145k]
  ------------------
  396|  68.4k|    const MCBinaryExpr *be = cast<MCBinaryExpr>(expr);
  397|  68.4k|    fixSymbolsInTLSFixups(be->getLHS());
  398|  68.4k|    fixSymbolsInTLSFixups(be->getRHS());
  399|  68.4k|    break;
  400|      0|  }
  401|       |
  402|  87.2k|  case MCExpr::SymbolRef: {
  ------------------
  |  Branch (402:3): [True: 87.2k, False: 126k]
  ------------------
  403|  87.2k|    const MCSymbolRefExpr &symRef = *cast<MCSymbolRefExpr>(expr);
  404|  87.2k|    switch (symRef.getKind()) {
  405|  82.2k|    default:
  ------------------
  |  Branch (405:5): [True: 82.2k, False: 5.00k]
  ------------------
  406|  82.2k|      return;
  407|  82.2k|    case MCSymbolRefExpr::VK_GOTTPOFF:
  ------------------
  |  Branch (407:5): [True: 39, False: 87.1k]
  ------------------
  408|     77|    case MCSymbolRefExpr::VK_INDNTPOFF:
  ------------------
  |  Branch (408:5): [True: 38, False: 87.1k]
  ------------------
  409|    278|    case MCSymbolRefExpr::VK_NTPOFF:
  ------------------
  |  Branch (409:5): [True: 201, False: 87.0k]
  ------------------
  410|    355|    case MCSymbolRefExpr::VK_GOTNTPOFF:
  ------------------
  |  Branch (410:5): [True: 77, False: 87.1k]
  ------------------
  411|    391|    case MCSymbolRefExpr::VK_TLSGD:
  ------------------
  |  Branch (411:5): [True: 36, False: 87.1k]
  ------------------
  412|    500|    case MCSymbolRefExpr::VK_TLSLD:
  ------------------
  |  Branch (412:5): [True: 109, False: 87.1k]
  ------------------
  413|    534|    case MCSymbolRefExpr::VK_TLSLDM:
  ------------------
  |  Branch (413:5): [True: 34, False: 87.1k]
  ------------------
  414|    577|    case MCSymbolRefExpr::VK_TPOFF:
  ------------------
  |  Branch (414:5): [True: 43, False: 87.1k]
  ------------------
  415|    577|    case MCSymbolRefExpr::VK_TPREL:
  ------------------
  |  Branch (415:5): [True: 0, False: 87.2k]
  ------------------
  416|    621|    case MCSymbolRefExpr::VK_DTPOFF:
  ------------------
  |  Branch (416:5): [True: 44, False: 87.1k]
  ------------------
  417|    621|    case MCSymbolRefExpr::VK_DTPREL:
  ------------------
  |  Branch (417:5): [True: 0, False: 87.2k]
  ------------------
  418|    621|    case MCSymbolRefExpr::VK_Mips_TLSGD:
  ------------------
  |  Branch (418:5): [True: 0, False: 87.2k]
  ------------------
  419|    621|    case MCSymbolRefExpr::VK_Mips_GOTTPREL:
  ------------------
  |  Branch (419:5): [True: 0, False: 87.2k]
  ------------------
  420|    621|    case MCSymbolRefExpr::VK_Mips_TPREL_HI:
  ------------------
  |  Branch (420:5): [True: 0, False: 87.2k]
  ------------------
  421|    621|    case MCSymbolRefExpr::VK_Mips_TPREL_LO:
  ------------------
  |  Branch (421:5): [True: 0, False: 87.2k]
  ------------------
  422|    888|    case MCSymbolRefExpr::VK_PPC_DTPMOD:
  ------------------
  |  Branch (422:5): [True: 267, False: 86.9k]
  ------------------
  423|  1.28k|    case MCSymbolRefExpr::VK_PPC_TPREL_LO:
  ------------------
  |  Branch (423:5): [True: 398, False: 86.8k]
  ------------------
  424|  1.39k|    case MCSymbolRefExpr::VK_PPC_TPREL_HI:
  ------------------
  |  Branch (424:5): [True: 109, False: 87.1k]
  ------------------
  425|  1.45k|    case MCSymbolRefExpr::VK_PPC_TPREL_HA:
  ------------------
  |  Branch (425:5): [True: 62, False: 87.1k]
  ------------------
  426|  1.52k|    case MCSymbolRefExpr::VK_PPC_TPREL_HIGHER:
  ------------------
  |  Branch (426:5): [True: 68, False: 87.1k]
  ------------------
  427|  1.63k|    case MCSymbolRefExpr::VK_PPC_TPREL_HIGHERA:
  ------------------
  |  Branch (427:5): [True: 111, False: 87.1k]
  ------------------
  428|  1.65k|    case MCSymbolRefExpr::VK_PPC_TPREL_HIGHEST:
  ------------------
  |  Branch (428:5): [True: 18, False: 87.2k]
  ------------------
  429|  1.66k|    case MCSymbolRefExpr::VK_PPC_TPREL_HIGHESTA:
  ------------------
  |  Branch (429:5): [True: 6, False: 87.2k]
  ------------------
  430|  2.37k|    case MCSymbolRefExpr::VK_PPC_DTPREL_LO:
  ------------------
  |  Branch (430:5): [True: 710, False: 86.5k]
  ------------------
  431|  2.43k|    case MCSymbolRefExpr::VK_PPC_DTPREL_HI:
  ------------------
  |  Branch (431:5): [True: 67, False: 87.1k]
  ------------------
  432|  2.47k|    case MCSymbolRefExpr::VK_PPC_DTPREL_HA:
  ------------------
  |  Branch (432:5): [True: 37, False: 87.1k]
  ------------------
  433|  2.53k|    case MCSymbolRefExpr::VK_PPC_DTPREL_HIGHER:
  ------------------
  |  Branch (433:5): [True: 60, False: 87.1k]
  ------------------
  434|  2.54k|    case MCSymbolRefExpr::VK_PPC_DTPREL_HIGHERA:
  ------------------
  |  Branch (434:5): [True: 10, False: 87.2k]
  ------------------
  435|  2.55k|    case MCSymbolRefExpr::VK_PPC_DTPREL_HIGHEST:
  ------------------
  |  Branch (435:5): [True: 10, False: 87.2k]
  ------------------
  436|  2.77k|    case MCSymbolRefExpr::VK_PPC_DTPREL_HIGHESTA:
  ------------------
  |  Branch (436:5): [True: 221, False: 87.0k]
  ------------------
  437|  2.85k|    case MCSymbolRefExpr::VK_PPC_GOT_TPREL:
  ------------------
  |  Branch (437:5): [True: 80, False: 87.1k]
  ------------------
  438|  2.90k|    case MCSymbolRefExpr::VK_PPC_GOT_TPREL_LO:
  ------------------
  |  Branch (438:5): [True: 53, False: 87.1k]
  ------------------
  439|  2.98k|    case MCSymbolRefExpr::VK_PPC_GOT_TPREL_HI:
  ------------------
  |  Branch (439:5): [True: 73, False: 87.1k]
  ------------------
  440|  3.06k|    case MCSymbolRefExpr::VK_PPC_GOT_TPREL_HA:
  ------------------
  |  Branch (440:5): [True: 86, False: 87.1k]
  ------------------
  441|  3.13k|    case MCSymbolRefExpr::VK_PPC_GOT_DTPREL:
  ------------------
  |  Branch (441:5): [True: 71, False: 87.1k]
  ------------------
  442|  3.17k|    case MCSymbolRefExpr::VK_PPC_GOT_DTPREL_LO:
  ------------------
  |  Branch (442:5): [True: 39, False: 87.1k]
  ------------------
  443|  3.25k|    case MCSymbolRefExpr::VK_PPC_GOT_DTPREL_HI:
  ------------------
  |  Branch (443:5): [True: 73, False: 87.1k]
  ------------------
  444|  3.33k|    case MCSymbolRefExpr::VK_PPC_GOT_DTPREL_HA:
  ------------------
  |  Branch (444:5): [True: 83, False: 87.1k]
  ------------------
  445|  3.63k|    case MCSymbolRefExpr::VK_PPC_TLS:
  ------------------
  |  Branch (445:5): [True: 301, False: 86.9k]
  ------------------
  446|  3.73k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSGD:
  ------------------
  |  Branch (446:5): [True: 105, False: 87.1k]
  ------------------
  447|  3.78k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSGD_LO:
  ------------------
  |  Branch (447:5): [True: 45, False: 87.1k]
  ------------------
  448|  3.82k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSGD_HI:
  ------------------
  |  Branch (448:5): [True: 39, False: 87.1k]
  ------------------
  449|  4.15k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSGD_HA:
  ------------------
  |  Branch (449:5): [True: 327, False: 86.9k]
  ------------------
  450|  4.15k|    case MCSymbolRefExpr::VK_PPC_TLSGD:
  ------------------
  |  Branch (450:5): [True: 0, False: 87.2k]
  ------------------
  451|  4.72k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSLD:
  ------------------
  |  Branch (451:5): [True: 574, False: 86.6k]
  ------------------
  452|  4.80k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSLD_LO:
  ------------------
  |  Branch (452:5): [True: 76, False: 87.1k]
  ------------------
  453|  4.90k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSLD_HI:
  ------------------
  |  Branch (453:5): [True: 103, False: 87.1k]
  ------------------
  454|  5.00k|    case MCSymbolRefExpr::VK_PPC_GOT_TLSLD_HA:
  ------------------
  |  Branch (454:5): [True: 106, False: 87.1k]
  ------------------
  455|  5.00k|    case MCSymbolRefExpr::VK_PPC_TLSLD:
  ------------------
  |  Branch (455:5): [True: 0, False: 87.2k]
  ------------------
  456|  5.00k|      break;
  457|  87.2k|    }
  458|  5.00k|    getAssembler().registerSymbol(symRef.getSymbol());
  459|  5.00k|    cast<MCSymbolELF>(symRef.getSymbol()).setType(ELF::STT_TLS);
  460|  5.00k|    break;
  461|  87.2k|  }
  462|       |
  463|  27.6k|  case MCExpr::Unary:
  ------------------
  |  Branch (463:3): [True: 27.6k, False: 186k]
  ------------------
  464|  27.6k|    fixSymbolsInTLSFixups(cast<MCUnaryExpr>(expr)->getSubExpr());
  465|  27.6k|    break;
  466|   214k|  }
  467|   214k|}
_ZN7llvm_ks13MCELFStreamer18EmitInstToFragmentERNS_6MCInstERKNS_15MCSubtargetInfoE:
  470|    677|                                       const MCSubtargetInfo &STI) {
  471|    677|  this->MCObjectStreamer::EmitInstToFragment(Inst, STI);
  472|    677|  MCRelaxableFragment &F = *cast<MCRelaxableFragment>(getCurrentFragment());
  473|       |
  474|  1.00k|  for (unsigned i = 0, e = F.getFixups().size(); i != e; ++i)
  ------------------
  |  Branch (474:50): [True: 326, False: 677]
  ------------------
  475|    326|    fixSymbolsInTLSFixups(F.getFixups()[i].getValue());
  476|    677|}
_ZN7llvm_ks13MCELFStreamer14EmitInstToDataERNS_6MCInstERKNS_15MCSubtargetInfoERj:
  481|    541|{
  482|    541|  MCAssembler &Assembler = getAssembler();
  483|    541|  SmallVector<MCFixup, 4> Fixups;
  484|    541|  SmallString<256> Code;
  485|    541|  raw_svector_ostream VecOS(Code);
  486|    541|  Assembler.getEmitter().encodeInstruction(Inst, VecOS, Fixups, STI, KsError);
  487|    541|  if (KsError)
  ------------------
  |  Branch (487:7): [True: 0, False: 541]
  ------------------
  488|      0|      return;
  489|       |
  490|    561|  for (unsigned i = 0, e = Fixups.size(); i != e; ++i)
  ------------------
  |  Branch (490:43): [True: 20, False: 541]
  ------------------
  491|     20|    fixSymbolsInTLSFixups(Fixups[i].getValue());
  492|       |
  493|       |  // There are several possibilities here:
  494|       |  //
  495|       |  // If bundling is disabled, append the encoded instruction to the current data
  496|       |  // fragment (or create a new such fragment if the current fragment is not a
  497|       |  // data fragment).
  498|       |  //
  499|       |  // If bundling is enabled:
  500|       |  // - If we're not in a bundle-locked group, emit the instruction into a
  501|       |  //   fragment of its own. If there are no fixups registered for the
  502|       |  //   instruction, emit a MCCompactEncodedInstFragment. Otherwise, emit a
  503|       |  //   MCDataFragment.
  504|       |  // - If we're in a bundle-locked group, append the instruction to the current
  505|       |  //   data fragment because we want all the instructions in a group to get into
  506|       |  //   the same fragment. Be careful not to do that for the first instruction in
  507|       |  //   the group, though.
  508|    541|  MCDataFragment *DF;
  509|       |
  510|    541|  if (Assembler.isBundlingEnabled()) {
  ------------------
  |  Branch (510:7): [True: 0, False: 541]
  ------------------
  511|      0|    MCSection &Sec = *getCurrentSectionOnly();
  512|      0|    if (Assembler.getRelaxAll() && isBundleLocked())
  ------------------
  |  Branch (512:9): [True: 0, False: 0]
  |  Branch (512:36): [True: 0, False: 0]
  ------------------
  513|       |      // If the -mc-relax-all flag is used and we are bundle-locked, we re-use
  514|       |      // the current bundle group.
  515|      0|      DF = BundleGroups.back();
  516|      0|    else if (Assembler.getRelaxAll() && !isBundleLocked())
  ------------------
  |  Branch (516:14): [True: 0, False: 0]
  |  Branch (516:41): [True: 0, False: 0]
  ------------------
  517|       |      // When not in a bundle-locked group and the -mc-relax-all flag is used,
  518|       |      // we create a new temporary fragment which will be later merged into
  519|       |      // the current fragment.
  520|      0|      DF = new MCDataFragment();
  521|      0|    else if (isBundleLocked() && !Sec.isBundleGroupBeforeFirstInst())
  ------------------
  |  Branch (521:14): [True: 0, False: 0]
  |  Branch (521:34): [True: 0, False: 0]
  ------------------
  522|       |      // If we are bundle-locked, we re-use the current fragment.
  523|       |      // The bundle-locking directive ensures this is a new data fragment.
  524|      0|      DF = cast<MCDataFragment>(getCurrentFragment());
  525|      0|    else if (!isBundleLocked() && Fixups.size() == 0) {
  ------------------
  |  Branch (525:14): [True: 0, False: 0]
  |  Branch (525:35): [True: 0, False: 0]
  ------------------
  526|       |      // Optimize memory usage by emitting the instruction to a
  527|       |      // MCCompactEncodedInstFragment when not in a bundle-locked group and
  528|       |      // there are no fixups registered.
  529|      0|      MCCompactEncodedInstFragment *CEIF = new MCCompactEncodedInstFragment();
  530|      0|      insert(CEIF);
  531|      0|      CEIF->getContents().append(Code.begin(), Code.end());
  532|      0|      return;
  533|      0|    } else {
  534|      0|      DF = new MCDataFragment();
  535|      0|      insert(DF);
  536|      0|    }
  537|      0|    if (Sec.getBundleLockState() == MCSection::BundleLockedAlignToEnd) {
  ------------------
  |  Branch (537:9): [True: 0, False: 0]
  ------------------
  538|       |      // If this fragment is for a group marked "align_to_end", set a flag
  539|       |      // in the fragment. This can happen after the fragment has already been
  540|       |      // created if there are nested bundle_align groups and an inner one
  541|       |      // is the one marked align_to_end.
  542|      0|      DF->setAlignToBundleEnd(true);
  543|      0|    }
  544|       |
  545|       |    // We're now emitting an instruction in a bundle group, so this flag has
  546|       |    // to be turned off.
  547|      0|    Sec.setBundleGroupBeforeFirstInst(false);
  548|    541|  } else {
  549|    541|    DF = getOrCreateDataFragment();
  550|    541|  }
  551|       |
  552|       |  // Add the fixups and data.
  553|    561|  for (unsigned i = 0, e = Fixups.size(); i != e; ++i) {
  ------------------
  |  Branch (553:43): [True: 20, False: 541]
  ------------------
  554|     20|    Fixups[i].setOffset(Fixups[i].getOffset() + DF->getContents().size());
  555|     20|    DF->getFixups().push_back(Fixups[i]);
  556|     20|  }
  557|    541|  DF->setHasInstructions(true);
  558|    541|  DF->getContents().append(Code.begin(), Code.end());
  559|       |
  560|    541|  if (Assembler.isBundlingEnabled() && Assembler.getRelaxAll()) {
  ------------------
  |  Branch (560:7): [True: 0, False: 541]
  |  Branch (560:40): [True: 0, False: 0]
  ------------------
  561|      0|    if (!isBundleLocked()) {
  ------------------
  |  Branch (561:9): [True: 0, False: 0]
  ------------------
  562|      0|      mergeFragment(getOrCreateDataFragment(), DF);
  563|      0|      delete DF;
  564|      0|    }
  565|      0|  }
  566|    541|}
_ZN7llvm_ks13MCELFStreamer10FinishImplEv:
  634|  6.07k|{
  635|       |  // Ensure the last section gets aligned if necessary.
  636|  6.07k|  MCSection *CurSection = getCurrentSectionOnly();
  637|  6.07k|  setSectionAlignmentForBundling(getAssembler(), CurSection);
  638|       |
  639|  6.07k|  EmitFrames(nullptr);
  640|  6.07k|  return this->MCObjectStreamer::FinishImpl();
  641|  6.07k|}
_ZN7llvm_ks17createELFStreamerERNS_9MCContextERNS_12MCAsmBackendERNS_17raw_pwrite_streamEPNS_13MCCodeEmitterEb:
  645|  13.6k|                                    bool RelaxAll) {
  646|  13.6k|  MCELFStreamer *S = new MCELFStreamer(Context, MAB, OS, CE);
  647|  13.6k|  if (RelaxAll)
  ------------------
  |  Branch (647:7): [True: 0, False: 13.6k]
  ------------------
  648|      0|    S->getAssembler().setRelaxAll(true);
  649|  13.6k|  return S;
  650|  13.6k|}
MCELFStreamer.cpp:_ZL30setSectionAlignmentForBundlingRKN7llvm_ks11MCAssemblerEPNS_9MCSectionE:
  131|  20.6k|                                           MCSection *Section) {
  132|  20.6k|  if (Section && Assembler.isBundlingEnabled() && Section->hasInstructions() &&
  ------------------
  |  Branch (132:7): [True: 6.96k, False: 13.6k]
  |  Branch (132:18): [True: 0, False: 6.96k]
  |  Branch (132:51): [True: 0, False: 0]
  ------------------
  133|      0|      Section->getAlignment() < Assembler.getBundleAlignSize())
  ------------------
  |  Branch (133:7): [True: 0, False: 0]
  ------------------
  134|      0|    Section->setAlignment(Assembler.getBundleAlignSize());
  135|  20.6k|}

_ZN7llvm_ks12MCBinaryExpr6createENS0_6OpcodeEPKNS_6MCExprES4_RNS_9MCContextE:
  133|   143k|                                         const MCExpr *RHS, MCContext &Ctx) {
  134|   143k|  return new (Ctx) MCBinaryExpr(Opc, LHS, RHS);
  135|   143k|}
_ZN7llvm_ks11MCUnaryExpr6createENS0_6OpcodeEPKNS_6MCExprERNS_9MCContextE:
  138|   116k|                                       MCContext &Ctx) {
  139|   116k|  return new (Ctx) MCUnaryExpr(Opc, Expr);
  140|   116k|}
_ZN7llvm_ks14MCConstantExpr6createElRNS_9MCContextE:
  142|   357k|const MCConstantExpr *MCConstantExpr::create(int64_t Value, MCContext &Ctx) {
  143|   357k|  return new (Ctx) MCConstantExpr(Value);
  144|   357k|}
_ZN7llvm_ks15MCSymbolRefExprC2EPKNS_8MCSymbolENS0_11VariantKindEPKNS_9MCAsmInfoE:
  150|   175k|    : MCExpr(MCExpr::SymbolRef), Kind(Kind),
  151|   175k|      UseParensForSymbolVariant(MAI->useParensForSymbolVariant()),
  152|   175k|      HasSubsectionsViaSymbols(MAI->hasSubsectionsViaSymbols()),
  153|   175k|      Symbol(Symbol) {
  154|       |  assert(Symbol);
  ------------------
  |  Branch (154:3): [True: 175k, False: 0]
  ------------------
  155|   175k|}
_ZN7llvm_ks15MCSymbolRefExpr6createEPKNS_8MCSymbolENS0_11VariantKindERNS_9MCContextE:
  159|   175k|                                               MCContext &Ctx) {
  160|   175k|  return new (Ctx) MCSymbolRefExpr(Sym, Kind, Ctx.getAsmInfo());
  161|   175k|}
_ZN7llvm_ks15MCSymbolRefExpr21getVariantKindForNameENS_9StringRefE:
  303|  18.8k|MCSymbolRefExpr::getVariantKindForName(StringRef Name) {
  304|  18.8k|  return StringSwitch<VariantKind>(Name.lower())
  305|  18.8k|    .Case("got", VK_GOT)
  306|  18.8k|    .Case("gotoff", VK_GOTOFF)
  307|  18.8k|    .Case("gotpcrel", VK_GOTPCREL)
  308|  18.8k|    .Case("gottpoff", VK_GOTTPOFF)
  309|  18.8k|    .Case("indntpoff", VK_INDNTPOFF)
  310|  18.8k|    .Case("ntpoff", VK_NTPOFF)
  311|  18.8k|    .Case("gotntpoff", VK_GOTNTPOFF)
  312|  18.8k|    .Case("plt", VK_PLT)
  313|  18.8k|    .Case("tlsgd", VK_TLSGD)
  314|  18.8k|    .Case("tlsld", VK_TLSLD)
  315|  18.8k|    .Case("tlsldm", VK_TLSLDM)
  316|  18.8k|    .Case("tpoff", VK_TPOFF)
  317|  18.8k|    .Case("dtpoff", VK_DTPOFF)
  318|  18.8k|    .Case("tlvp", VK_TLVP)
  319|  18.8k|    .Case("tlvppage", VK_TLVPPAGE)
  320|  18.8k|    .Case("tlvppageoff", VK_TLVPPAGEOFF)
  321|  18.8k|    .Case("page", VK_PAGE)
  322|  18.8k|    .Case("pageoff", VK_PAGEOFF)
  323|  18.8k|    .Case("gotpage", VK_GOTPAGE)
  324|  18.8k|    .Case("gotpageoff", VK_GOTPAGEOFF)
  325|  18.8k|    .Case("imgrel", VK_COFF_IMGREL32)
  326|  18.8k|    .Case("secrel32", VK_SECREL)
  327|  18.8k|    .Case("size", VK_SIZE)
  328|  18.8k|    .Case("l", VK_PPC_LO)
  329|  18.8k|    .Case("h", VK_PPC_HI)
  330|  18.8k|    .Case("ha", VK_PPC_HA)
  331|  18.8k|    .Case("higher", VK_PPC_HIGHER)
  332|  18.8k|    .Case("highera", VK_PPC_HIGHERA)
  333|  18.8k|    .Case("highest", VK_PPC_HIGHEST)
  334|  18.8k|    .Case("highesta", VK_PPC_HIGHESTA)
  335|  18.8k|    .Case("got@l", VK_PPC_GOT_LO)
  336|  18.8k|    .Case("got@h", VK_PPC_GOT_HI)
  337|  18.8k|    .Case("got@ha", VK_PPC_GOT_HA)
  338|  18.8k|    .Case("local", VK_PPC_LOCAL)
  339|  18.8k|    .Case("tocbase", VK_PPC_TOCBASE)
  340|  18.8k|    .Case("toc", VK_PPC_TOC)
  341|  18.8k|    .Case("toc@l", VK_PPC_TOC_LO)
  342|  18.8k|    .Case("toc@h", VK_PPC_TOC_HI)
  343|  18.8k|    .Case("toc@ha", VK_PPC_TOC_HA)
  344|  18.8k|    .Case("tls", VK_PPC_TLS)
  345|  18.8k|    .Case("dtpmod", VK_PPC_DTPMOD)
  346|  18.8k|    .Case("tprel", VK_PPC_TPREL)
  347|  18.8k|    .Case("tprel@l", VK_PPC_TPREL_LO)
  348|  18.8k|    .Case("tprel@h", VK_PPC_TPREL_HI)
  349|  18.8k|    .Case("tprel@ha", VK_PPC_TPREL_HA)
  350|  18.8k|    .Case("tprel@higher", VK_PPC_TPREL_HIGHER)
  351|  18.8k|    .Case("tprel@highera", VK_PPC_TPREL_HIGHERA)
  352|  18.8k|    .Case("tprel@highest", VK_PPC_TPREL_HIGHEST)
  353|  18.8k|    .Case("tprel@highesta", VK_PPC_TPREL_HIGHESTA)
  354|  18.8k|    .Case("dtprel", VK_PPC_DTPREL)
  355|  18.8k|    .Case("dtprel@l", VK_PPC_DTPREL_LO)
  356|  18.8k|    .Case("dtprel@h", VK_PPC_DTPREL_HI)
  357|  18.8k|    .Case("dtprel@ha", VK_PPC_DTPREL_HA)
  358|  18.8k|    .Case("dtprel@higher", VK_PPC_DTPREL_HIGHER)
  359|  18.8k|    .Case("dtprel@highera", VK_PPC_DTPREL_HIGHERA)
  360|  18.8k|    .Case("dtprel@highest", VK_PPC_DTPREL_HIGHEST)
  361|  18.8k|    .Case("dtprel@highesta", VK_PPC_DTPREL_HIGHESTA)
  362|  18.8k|    .Case("got@tprel", VK_PPC_GOT_TPREL)
  363|  18.8k|    .Case("got@tprel@l", VK_PPC_GOT_TPREL_LO)
  364|  18.8k|    .Case("got@tprel@h", VK_PPC_GOT_TPREL_HI)
  365|  18.8k|    .Case("got@tprel@ha", VK_PPC_GOT_TPREL_HA)
  366|  18.8k|    .Case("got@dtprel", VK_PPC_GOT_DTPREL)
  367|  18.8k|    .Case("got@dtprel@l", VK_PPC_GOT_DTPREL_LO)
  368|  18.8k|    .Case("got@dtprel@h", VK_PPC_GOT_DTPREL_HI)
  369|  18.8k|    .Case("got@dtprel@ha", VK_PPC_GOT_DTPREL_HA)
  370|  18.8k|    .Case("got@tlsgd", VK_PPC_GOT_TLSGD)
  371|  18.8k|    .Case("got@tlsgd@l", VK_PPC_GOT_TLSGD_LO)
  372|  18.8k|    .Case("got@tlsgd@h", VK_PPC_GOT_TLSGD_HI)
  373|  18.8k|    .Case("got@tlsgd@ha", VK_PPC_GOT_TLSGD_HA)
  374|  18.8k|    .Case("got@tlsld", VK_PPC_GOT_TLSLD)
  375|  18.8k|    .Case("got@tlsld@l", VK_PPC_GOT_TLSLD_LO)
  376|  18.8k|    .Case("got@tlsld@h", VK_PPC_GOT_TLSLD_HI)
  377|  18.8k|    .Case("got@tlsld@ha", VK_PPC_GOT_TLSLD_HA)
  378|  18.8k|    .Case("gdgot", VK_Hexagon_GD_GOT)
  379|  18.8k|    .Case("gdplt", VK_Hexagon_GD_PLT)
  380|  18.8k|    .Case("iegot", VK_Hexagon_IE_GOT)
  381|  18.8k|    .Case("ie", VK_Hexagon_IE)
  382|  18.8k|    .Case("ldgot", VK_Hexagon_LD_GOT)
  383|  18.8k|    .Case("ldplt", VK_Hexagon_LD_PLT)
  384|  18.8k|    .Case("pcrel", VK_Hexagon_PCREL)
  385|  18.8k|    .Case("none", VK_ARM_NONE)
  386|  18.8k|    .Case("got_prel", VK_ARM_GOT_PREL)
  387|  18.8k|    .Case("target1", VK_ARM_TARGET1)
  388|  18.8k|    .Case("target2", VK_ARM_TARGET2)
  389|  18.8k|    .Case("prel31", VK_ARM_PREL31)
  390|  18.8k|    .Case("sbrel", VK_ARM_SBREL)
  391|  18.8k|    .Case("tlsldo", VK_ARM_TLSLDO)
  392|  18.8k|    .Case("tlscall", VK_ARM_TLSCALL)
  393|  18.8k|    .Case("tlsdesc", VK_ARM_TLSDESC)
  394|  18.8k|    .Default(VK_Invalid);
  395|  18.8k|}
_ZNK7llvm_ks6MCExpr18evaluateAsAbsoluteERl:
  406|   349k|bool MCExpr::evaluateAsAbsolute(int64_t &Res) const {
  407|   349k|  return evaluateAsAbsolute(Res, nullptr, nullptr, nullptr);
  408|   349k|}
_ZNK7llvm_ks6MCExpr18evaluateAsAbsoluteERlRKNS_11MCAssemblerE:
  421|  49.0k|bool MCExpr::evaluateAsAbsolute(int64_t &Res, const MCAssembler &Asm) const {
  422|  49.0k|  return evaluateAsAbsolute(Res, &Asm, nullptr, nullptr);
  423|  49.0k|}
_ZNK7llvm_ks6MCExpr18evaluateAsAbsoluteERlPKNS_11MCAssemblerEPKNS_11MCAsmLayoutEPKNS_8DenseMapIPKNS_9MCSectionEmNS_12DenseMapInfoISB_EENS_6detail12DenseMapPairISB_mEEEE:
  433|   398k|                                const SectionAddrMap *Addrs) const {
  434|       |  // FIXME: The use if InSet = Addrs is a hack. Setting InSet causes us
  435|       |  // absolutize differences across sections and that is what the MachO writer
  436|       |  // uses Addrs for.
  437|   398k|  return evaluateAsAbsolute(Res, Asm, Layout, Addrs, Addrs);
  438|   398k|}
_ZNK7llvm_ks6MCExpr18evaluateAsAbsoluteERlPKNS_11MCAssemblerEPKNS_11MCAsmLayoutEPKNS_8DenseMapIPKNS_9MCSectionEmNS_12DenseMapInfoISB_EENS_6detail12DenseMapPairISB_mEEEEb:
  443|   398k|{
  444|   398k|  MCValue Value;
  445|       |
  446|       |  // Fast path constants.
  447|   398k|  if (const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(this)) {
  ------------------
  |  Branch (447:29): [True: 173k, False: 224k]
  ------------------
  448|   173k|    Res = CE->getValue();
  449|   173k|    return true;
  450|   173k|  }
  451|       |
  452|   224k|  bool valid;
  453|   224k|  bool IsRelocatable =
  454|   224k|      evaluateAsRelocatableImpl(Value, Asm, Layout, nullptr, Addrs, InSet, valid);
  455|       |
  456|       |  // Record the current value.
  457|   224k|  Res = Value.getConstant();
  458|       |
  459|   224k|  return IsRelocatable && Value.isAbsolute();
  ------------------
  |  Branch (459:10): [True: 175k, False: 49.7k]
  |  Branch (459:27): [True: 68.1k, False: 106k]
  ------------------
  460|   398k|}
_ZNK7llvm_ks6MCExpr21evaluateAsRelocatableERNS_7MCValueEPKNS_11MCAsmLayoutEPKNS_7MCFixupE:
  606|  8.41k|{
  607|  8.41k|  MCAssembler *Assembler = Layout ? &Layout->getAssembler() : nullptr;
  ------------------
  |  Branch (607:28): [True: 7.59k, False: 815]
  ------------------
  608|  8.41k|  bool valid;
  609|  8.41k|  return evaluateAsRelocatableImpl(Res, Assembler, Layout, Fixup, nullptr,
  610|  8.41k|                                   false, valid);
  611|  8.41k|}
_ZNK7llvm_ks6MCExpr15evaluateAsValueERNS_7MCValueERKNS_11MCAsmLayoutE:
  614|  40.2k|{
  615|  40.2k|  MCAssembler *Assembler = &Layout.getAssembler();
  616|  40.2k|  bool valid;
  617|  40.2k|  return evaluateAsRelocatableImpl(Res, Assembler, &Layout, nullptr, nullptr,
  618|  40.2k|                                   true, valid);
  619|  40.2k|}
_ZNK7llvm_ks6MCExpr25evaluateAsRelocatableImplERNS_7MCValueEPKNS_11MCAssemblerEPKNS_11MCAsmLayoutEPKNS_7MCFixupEPKNS_8DenseMapIPKNS_9MCSectionEmNS_12DenseMapInfoISF_EENS_6detail12DenseMapPairISF_mEEEEbRb:
  639|   804k|{
  640|   804k|  switch (getKind()) {
  ------------------
  |  Branch (640:11): [True: 804k, False: 0]
  ------------------
  641|      3|  case Target:
  ------------------
  |  Branch (641:3): [True: 3, False: 804k]
  ------------------
  642|      3|    return cast<MCTargetExpr>(this)->evaluateAsRelocatableImpl(Res, Layout,
  643|      3|                                                               Fixup);
  644|       |
  645|   197k|  case Constant:
  ------------------
  |  Branch (645:3): [True: 197k, False: 607k]
  ------------------
  646|   197k|    Res = MCValue::get(cast<MCConstantExpr>(this)->getValue());
  647|   197k|    return true;
  648|       |
  649|   248k|  case SymbolRef: {
  ------------------
  |  Branch (649:3): [True: 248k, False: 555k]
  ------------------
  650|   248k|    const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(this);
  651|   248k|    const MCSymbol &Sym = SRE->getSymbol();
  652|       |
  653|       |    // Evaluate recursively if this is a variable.
  654|   248k|    if (Sym.isVariable() && SRE->getKind() == MCSymbolRefExpr::VK_None &&
  ------------------
  |  Branch (654:9): [True: 11.1k, False: 237k]
  |  Branch (654:29): [True: 11.0k, False: 86]
  ------------------
  655|  11.0k|        canExpand(Sym, InSet)) {
  ------------------
  |  Branch (655:9): [True: 2.18k, False: 8.84k]
  ------------------
  656|  2.18k|      bool IsMachO = SRE->hasSubsectionsViaSymbols();
  657|  2.18k|      bool valid;
  658|  2.18k|      if (Sym.getVariableValue()->evaluateAsRelocatableImpl(
  ------------------
  |  Branch (658:11): [True: 539, False: 1.65k]
  ------------------
  659|  2.18k|              Res, Asm, Layout, Fixup, Addrs, InSet || IsMachO, valid)) {
  ------------------
  |  Branch (659:47): [True: 513, False: 1.67k]
  |  Branch (659:56): [True: 0, False: 1.67k]
  ------------------
  660|    539|        if (!IsMachO)
  ------------------
  |  Branch (660:13): [True: 539, False: 0]
  ------------------
  661|    539|          return true;
  662|       |
  663|      0|        const MCSymbolRefExpr *A = Res.getSymA();
  664|      0|        const MCSymbolRefExpr *B = Res.getSymB();
  665|       |        // FIXME: This is small hack. Given
  666|       |        // a = b + 4
  667|       |        // .long a
  668|       |        // the OS X assembler will completely drop the 4. We should probably
  669|       |        // include it in the relocation or produce an error if that is not
  670|       |        // possible.
  671|      0|        if (!A && !B)
  ------------------
  |  Branch (671:13): [True: 0, False: 0]
  |  Branch (671:19): [True: 0, False: 0]
  ------------------
  672|      0|          return true;
  673|      0|      }
  674|  2.18k|    }
  675|       |
  676|   247k|    Res = MCValue::get(SRE, nullptr, 0);
  677|   247k|    return true;
  678|   248k|  }
  679|       |
  680|   134k|  case Unary: {
  ------------------
  |  Branch (680:3): [True: 134k, False: 669k]
  ------------------
  681|   134k|    const MCUnaryExpr *AUE = cast<MCUnaryExpr>(this);
  682|   134k|    MCValue Value;
  683|       |
  684|   134k|    bool valid;
  685|   134k|    if (!AUE->getSubExpr()->evaluateAsRelocatableImpl(Value, Asm, Layout, Fixup,
  ------------------
  |  Branch (685:9): [True: 8.44k, False: 126k]
  ------------------
  686|   134k|                                                      Addrs, InSet, valid))
  687|  8.44k|      return false;
  688|       |
  689|   126k|    switch (AUE->getOpcode()) {
  ------------------
  |  Branch (689:13): [True: 126k, False: 0]
  ------------------
  690|  2.34k|    case MCUnaryExpr::LNot:
  ------------------
  |  Branch (690:5): [True: 2.34k, False: 123k]
  ------------------
  691|  2.34k|      if (!Value.isAbsolute())
  ------------------
  |  Branch (691:11): [True: 861, False: 1.48k]
  ------------------
  692|    861|        return false;
  693|  1.48k|      Res = MCValue::get(!Value.getConstant());
  694|  1.48k|      break;
  695|  67.2k|    case MCUnaryExpr::Minus:
  ------------------
  |  Branch (695:5): [True: 67.2k, False: 58.9k]
  ------------------
  696|       |      /// -(a - b + const) ==> (b - a - const)
  697|  67.2k|      if (Value.getSymA() && !Value.getSymB())
  ------------------
  |  Branch (697:11): [True: 27.6k, False: 39.6k]
  |  Branch (697:30): [True: 27.3k, False: 218]
  ------------------
  698|  27.3k|        return false;
  699|  39.8k|      Res = MCValue::get(Value.getSymB(), Value.getSymA(),
  700|  39.8k|                         -Value.getConstant());
  701|  39.8k|      break;
  702|  40.2k|    case MCUnaryExpr::Not:
  ------------------
  |  Branch (702:5): [True: 40.2k, False: 85.9k]
  ------------------
  703|  40.2k|      if (!Value.isAbsolute())
  ------------------
  |  Branch (703:11): [True: 556, False: 39.7k]
  ------------------
  704|    556|        return false;
  705|  39.7k|      Res = MCValue::get(~Value.getConstant());
  706|  39.7k|      break;
  707|  16.3k|    case MCUnaryExpr::Plus:
  ------------------
  |  Branch (707:5): [True: 16.3k, False: 109k]
  ------------------
  708|  16.3k|      Res = Value;
  709|  16.3k|      break;
  710|   126k|    }
  711|       |
  712|  97.4k|    return true;
  713|   126k|  }
  714|       |
  715|   223k|  case Binary: {
  ------------------
  |  Branch (715:3): [True: 223k, False: 580k]
  ------------------
  716|   223k|    const MCBinaryExpr *ABE = cast<MCBinaryExpr>(this);
  717|   223k|    MCValue LHSValue, RHSValue;
  718|   223k|    bool valid;
  719|       |
  720|   223k|    if (!ABE->getLHS()->evaluateAsRelocatableImpl(LHSValue, Asm, Layout, Fixup,
  ------------------
  |  Branch (720:9): [True: 53.9k, False: 170k]
  ------------------
  721|   223k|                                                  Addrs, InSet, valid) ||
  722|   170k|        !ABE->getRHS()->evaluateAsRelocatableImpl(RHSValue, Asm, Layout, Fixup,
  ------------------
  |  Branch (722:9): [True: 3.83k, False: 166k]
  ------------------
  723|   170k|                                                  Addrs, InSet, valid))
  724|  57.7k|      return false;
  725|       |
  726|       |    // We only support a few operations on non-constant expressions, handle
  727|       |    // those first.
  728|   166k|    if (!LHSValue.isAbsolute() || !RHSValue.isAbsolute()) {
  ------------------
  |  Branch (728:9): [True: 112k, False: 53.7k]
  |  Branch (728:35): [True: 20.5k, False: 33.1k]
  ------------------
  729|   133k|      switch (ABE->getOpcode()) {
  730|  9.45k|      default:
  ------------------
  |  Branch (730:7): [True: 9.45k, False: 123k]
  ------------------
  731|  9.45k|        return false;
  732|   107k|      case MCBinaryExpr::Sub:
  ------------------
  |  Branch (732:7): [True: 107k, False: 25.4k]
  ------------------
  733|       |        // Negate RHS and add.
  734|   107k|        return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue,
  735|   107k|                                   RHSValue.getSymB(), RHSValue.getSymA(),
  736|   107k|                                   -RHSValue.getConstant(), Res, valid);
  737|       |
  738|  15.9k|      case MCBinaryExpr::Add:
  ------------------
  |  Branch (738:7): [True: 15.9k, False: 117k]
  ------------------
  739|  15.9k|        return EvaluateSymbolicAdd(Asm, Layout, Addrs, InSet, LHSValue,
  740|  15.9k|                                   RHSValue.getSymA(), RHSValue.getSymB(),
  741|  15.9k|                                   RHSValue.getConstant(), Res, valid);
  742|   133k|      }
  743|   133k|    }
  744|       |
  745|       |    // FIXME: We need target hooks for the evaluation. It may be limited in
  746|       |    // width, and gas defines the result of comparisons differently from
  747|       |    // Apple as.
  748|  33.1k|    int64_t LHS = LHSValue.getConstant(), RHS = RHSValue.getConstant();
  749|  33.1k|    int64_t Result = 0;
  750|  33.1k|    switch (ABE->getOpcode()) {
  ------------------
  |  Branch (750:13): [True: 33.1k, False: 0]
  ------------------
  751|      0|    case MCBinaryExpr::AShr: Result = LHS >> RHS; break;
  ------------------
  |  Branch (751:5): [True: 0, False: 33.1k]
  ------------------
  752|  4.72k|    case MCBinaryExpr::Add:  Result = LHS + RHS; break;
  ------------------
  |  Branch (752:5): [True: 4.72k, False: 28.3k]
  ------------------
  753|  1.23k|    case MCBinaryExpr::And:  Result = LHS & RHS; break;
  ------------------
  |  Branch (753:5): [True: 1.23k, False: 31.8k]
  ------------------
  754|  1.84k|    case MCBinaryExpr::Div:
  ------------------
  |  Branch (754:5): [True: 1.84k, False: 31.2k]
  ------------------
  755|       |      // Handle division by zero. gas just emits a warning and keeps going,
  756|       |      // we try to be stricter.
  757|       |      // FIXME: Currently the caller of this function has no way to understand
  758|       |      // we're bailing out because of 'division by zero'. Therefore, it will
  759|       |      // emit a 'expected relocatable expression' error. It would be nice to
  760|       |      // change this code to emit a better diagnostic.
  761|  1.84k|      if (RHS == 0)
  ------------------
  |  Branch (761:11): [True: 207, False: 1.64k]
  ------------------
  762|    207|        return false;
  763|  1.64k|      Result = LHS / RHS;
  764|  1.64k|      break;
  765|    712|    case MCBinaryExpr::EQ:   Result = LHS == RHS; break;
  ------------------
  |  Branch (765:5): [True: 712, False: 32.4k]
  ------------------
  766|  3.13k|    case MCBinaryExpr::GT:   Result = LHS > RHS; break;
  ------------------
  |  Branch (766:5): [True: 3.13k, False: 29.9k]
  ------------------
  767|    745|    case MCBinaryExpr::GTE:  Result = LHS >= RHS; break;
  ------------------
  |  Branch (767:5): [True: 745, False: 32.3k]
  ------------------
  768|    623|    case MCBinaryExpr::LAnd: Result = LHS && RHS; break;
  ------------------
  |  Branch (768:5): [True: 623, False: 32.4k]
  |  Branch (768:39): [True: 360, False: 263]
  |  Branch (768:46): [True: 341, False: 19]
  ------------------
  769|    625|    case MCBinaryExpr::LOr:  Result = LHS || RHS; break;
  ------------------
  |  Branch (769:5): [True: 625, False: 32.4k]
  |  Branch (769:39): [True: 497, False: 128]
  |  Branch (769:46): [True: 41, False: 87]
  ------------------
  770|    219|    case MCBinaryExpr::LShr: Result = uint64_t(LHS) >> uint64_t(RHS); break;
  ------------------
  |  Branch (770:5): [True: 219, False: 32.9k]
  ------------------
  771|    562|    case MCBinaryExpr::LT:   Result = LHS < RHS; break;
  ------------------
  |  Branch (771:5): [True: 562, False: 32.5k]
  ------------------
  772|    472|    case MCBinaryExpr::LTE:  Result = LHS <= RHS; break;
  ------------------
  |  Branch (772:5): [True: 472, False: 32.6k]
  ------------------
  773|    995|    case MCBinaryExpr::Mod:
  ------------------
  |  Branch (773:5): [True: 995, False: 32.1k]
  ------------------
  774|       |      // Handle division by zero. gas just emits a warning and keeps going,
  775|       |      // we try to be stricter.
  776|       |      // FIXME: Currently the caller of this function has no way to understand
  777|       |      // we're bailing out because of 'division by zero'. Therefore, it will
  778|       |      // emit a 'expected relocatable expression' error. It would be nice to
  779|       |      // change this code to emit a better diagnostic.
  780|    995|      if (RHS == 0)
  ------------------
  |  Branch (780:11): [True: 299, False: 696]
  ------------------
  781|    299|        return false;
  782|    696|      Result = LHS % RHS;
  783|    696|      break;
  784|  9.29k|    case MCBinaryExpr::Mul:  Result = LHS * RHS; break;
  ------------------
  |  Branch (784:5): [True: 9.29k, False: 23.8k]
  ------------------
  785|    291|    case MCBinaryExpr::NE:   Result = LHS != RHS; break;
  ------------------
  |  Branch (785:5): [True: 291, False: 32.8k]
  ------------------
  786|    163|    case MCBinaryExpr::Or:   Result = LHS | RHS; break;
  ------------------
  |  Branch (786:5): [True: 163, False: 32.9k]
  ------------------
  787|    465|    case MCBinaryExpr::Shl:  Result = uint64_t(LHS) << uint64_t(RHS); break;
  ------------------
  |  Branch (787:5): [True: 465, False: 32.6k]
  ------------------
  788|  6.32k|    case MCBinaryExpr::Sub:  Result = LHS - RHS; break;
  ------------------
  |  Branch (788:5): [True: 6.32k, False: 26.7k]
  ------------------
  789|    686|    case MCBinaryExpr::Xor:  Result = LHS ^ RHS; break;
  ------------------
  |  Branch (789:5): [True: 686, False: 32.4k]
  ------------------
  790|  33.1k|    }
  791|       |
  792|  32.6k|    Res = MCValue::get(Result);
  793|  32.6k|    return true;
  794|  33.1k|  }
  795|   804k|  }
  796|       |
  797|      0|  llvm_unreachable("Invalid assembly expression kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  798|   804k|}
_ZNK7llvm_ks6MCExpr22findAssociatedFragmentEv:
  800|  51.7k|MCFragment *MCExpr::findAssociatedFragment() const {
  801|  51.7k|  switch (getKind()) {
  ------------------
  |  Branch (801:11): [True: 51.7k, False: 0]
  ------------------
  802|      0|  case Target:
  ------------------
  |  Branch (802:3): [True: 0, False: 51.7k]
  ------------------
  803|       |    // We never look through target specific expressions.
  804|      0|    return cast<MCTargetExpr>(this)->findAssociatedFragment();
  805|       |
  806|  5.35k|  case Constant:
  ------------------
  |  Branch (806:3): [True: 5.35k, False: 46.4k]
  ------------------
  807|  5.35k|    return MCSymbol::AbsolutePseudoFragment;
  808|       |
  809|  22.9k|  case SymbolRef: {
  ------------------
  |  Branch (809:3): [True: 22.9k, False: 28.7k]
  ------------------
  810|  22.9k|    const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(this);
  811|  22.9k|    const MCSymbol &Sym = SRE->getSymbol();
  812|  22.9k|    return Sym.getFragment();
  813|      0|  }
  814|       |
  815|  15.8k|  case Unary:
  ------------------
  |  Branch (815:3): [True: 15.8k, False: 35.9k]
  ------------------
  816|  15.8k|    return cast<MCUnaryExpr>(this)->getSubExpr()->findAssociatedFragment();
  817|       |
  818|  7.61k|  case Binary: {
  ------------------
  |  Branch (818:3): [True: 7.61k, False: 44.1k]
  ------------------
  819|  7.61k|    const MCBinaryExpr *BE = cast<MCBinaryExpr>(this);
  820|  7.61k|    MCFragment *LHS_F = BE->getLHS()->findAssociatedFragment();
  821|  7.61k|    MCFragment *RHS_F = BE->getRHS()->findAssociatedFragment();
  822|       |
  823|       |    // If either is absolute, return the other.
  824|  7.61k|    if (LHS_F == MCSymbol::AbsolutePseudoFragment)
  ------------------
  |  Branch (824:9): [True: 2.67k, False: 4.93k]
  ------------------
  825|  2.67k|      return RHS_F;
  826|  4.93k|    if (RHS_F == MCSymbol::AbsolutePseudoFragment)
  ------------------
  |  Branch (826:9): [True: 2.66k, False: 2.27k]
  ------------------
  827|  2.66k|      return LHS_F;
  828|       |
  829|       |    // Not always correct, but probably the best we can do without more context.
  830|  2.27k|    if (BE->getOpcode() == MCBinaryExpr::Sub)
  ------------------
  |  Branch (830:9): [True: 966, False: 1.30k]
  ------------------
  831|    966|      return MCSymbol::AbsolutePseudoFragment;
  832|       |
  833|       |    // Otherwise, return the first non-null fragment.
  834|  1.30k|    return LHS_F ? LHS_F : RHS_F;
  ------------------
  |  Branch (834:12): [True: 228, False: 1.07k]
  ------------------
  835|  2.27k|  }
  836|  51.7k|  }
  837|       |
  838|      0|  llvm_unreachable("Invalid assembly expression kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  839|  51.7k|}
MCExpr.cpp:_ZL9canExpandRKN7llvm_ks8MCSymbolEb:
  621|  11.0k|static bool canExpand(const MCSymbol &Sym, bool InSet) {
  622|  11.0k|  const MCExpr *Expr = Sym.getVariableValue();
  623|  11.0k|  const auto *Inner = dyn_cast<MCSymbolRefExpr>(Expr);
  624|  11.0k|  if (Inner) {
  ------------------
  |  Branch (624:7): [True: 8.01k, False: 3.02k]
  ------------------
  625|  8.01k|    if (Inner->getKind() == MCSymbolRefExpr::VK_WEAKREF)
  ------------------
  |  Branch (625:9): [True: 0, False: 8.01k]
  ------------------
  626|      0|      return false;
  627|  8.01k|  }
  628|       |
  629|  11.0k|  if (InSet)
  ------------------
  |  Branch (629:7): [True: 513, False: 10.5k]
  ------------------
  630|    513|    return true;
  631|  10.5k|  return !Sym.isInSection();
  632|  11.0k|}
MCExpr.cpp:_ZL19EvaluateSymbolicAddPKN7llvm_ks11MCAssemblerEPKNS_11MCAsmLayoutEPKNS_8DenseMapIPKNS_9MCSectionEmNS_12DenseMapInfoIS9_EENS_6detail12DenseMapPairIS9_mEEEEbRKNS_7MCValueEPKNS_15MCSymbolRefExprESN_lRSI_Rb:
  547|   123k|{
  548|       |  // FIXME: This routine (and other evaluation parts) are *incredibly* sloppy
  549|       |  // about dealing with modifiers. This will ultimately bite us, one day.
  550|   123k|  const MCSymbolRefExpr *LHS_A = LHS.getSymA();
  551|   123k|  const MCSymbolRefExpr *LHS_B = LHS.getSymB();
  552|   123k|  int64_t LHS_Cst = LHS.getConstant();
  553|       |
  554|       |  // Fold the result constant immediately.
  555|   123k|  int64_t Result_Cst = LHS_Cst + RHS_Cst;
  556|       |
  557|   123k|  assert((!Layout || Asm) &&
  ------------------
  |  Branch (557:3): [True: 107k, False: 15.7k]
  |  Branch (557:3): [True: 15.7k, False: 0]
  |  Branch (557:3): [True: 123k, Folded]
  |  Branch (557:3): [True: 123k, False: 0]
  ------------------
  558|   123k|         "Must have an assembler object if layout is given!");
  559|       |
  560|       |  // If we have a layout, we can fold resolved differences.
  561|   123k|  if (Asm) {
  ------------------
  |  Branch (561:7): [True: 62.1k, False: 61.4k]
  ------------------
  562|       |    // First, fold out any differences which are fully resolved. By
  563|       |    // reassociating terms in
  564|       |    //   Result = (LHS_A - LHS_B + LHS_Cst) + (RHS_A - RHS_B + RHS_Cst).
  565|       |    // we have the four possible differences:
  566|       |    //   (LHS_A - LHS_B),
  567|       |    //   (LHS_A - RHS_B),
  568|       |    //   (RHS_A - LHS_B),
  569|       |    //   (RHS_A - RHS_B).
  570|       |    // Since we are attempting to be as aggressive as possible about folding, we
  571|       |    // attempt to evaluate each possible alternative.
  572|  62.1k|    AttemptToFoldSymbolOffsetDifference(Asm, Layout, Addrs, InSet, LHS_A, LHS_B,
  573|  62.1k|                                        Result_Cst, valid);
  574|  62.1k|    if (!valid)
  ------------------
  |  Branch (574:9): [True: 0, False: 62.1k]
  ------------------
  575|      0|        return false;
  576|  62.1k|    AttemptToFoldSymbolOffsetDifference(Asm, Layout, Addrs, InSet, LHS_A, RHS_B,
  577|  62.1k|                                        Result_Cst, valid);
  578|  62.1k|    if (!valid)
  ------------------
  |  Branch (578:9): [True: 40, False: 62.1k]
  ------------------
  579|     40|        return false;
  580|  62.1k|    AttemptToFoldSymbolOffsetDifference(Asm, Layout, Addrs, InSet, RHS_A, LHS_B,
  581|  62.1k|                                        Result_Cst, valid);
  582|  62.1k|    if (!valid)
  ------------------
  |  Branch (582:9): [True: 30, False: 62.0k]
  ------------------
  583|     30|        return false;
  584|  62.0k|    AttemptToFoldSymbolOffsetDifference(Asm, Layout, Addrs, InSet, RHS_A, RHS_B,
  585|  62.0k|                                        Result_Cst, valid);
  586|  62.0k|    if (!valid)
  ------------------
  |  Branch (586:9): [True: 0, False: 62.0k]
  ------------------
  587|      0|        return false;
  588|  62.0k|  }
  589|       |
  590|       |  // We can't represent the addition or subtraction of two symbols.
  591|   123k|  if ((LHS_A && RHS_A) || (LHS_B && RHS_B))
  ------------------
  |  Branch (591:8): [True: 99.2k, False: 24.2k]
  |  Branch (591:17): [True: 2.76k, False: 96.5k]
  |  Branch (591:28): [True: 14.5k, False: 106k]
  |  Branch (591:37): [True: 11.9k, False: 2.57k]
  ------------------
  592|  14.7k|    return false;
  593|       |
  594|       |  // At this point, we have at most one additive symbol and one subtractive
  595|       |  // symbol -- find them.
  596|   108k|  const MCSymbolRefExpr *A = LHS_A ? LHS_A : RHS_A;
  ------------------
  |  Branch (596:30): [True: 84.7k, False: 24.1k]
  ------------------
  597|   108k|  const MCSymbolRefExpr *B = LHS_B ? LHS_B : RHS_B;
  ------------------
  |  Branch (597:30): [True: 2.57k, False: 106k]
  ------------------
  598|       |
  599|   108k|  Res = MCValue::get(A, B, Result_Cst);
  600|   108k|  return true;
  601|   123k|}
MCExpr.cpp:_ZL35AttemptToFoldSymbolOffsetDifferencePKN7llvm_ks11MCAssemblerEPKNS_11MCAsmLayoutEPKNS_8DenseMapIPKNS_9MCSectionEmNS_12DenseMapInfoIS9_EENS_6detail12DenseMapPairIS9_mEEEEbRPKNS_15MCSymbolRefExprESL_RlRb:
  466|   248k|    const MCSymbolRefExpr *&B, int64_t &Addend, bool &valid) {
  467|   248k|  valid = true;
  468|   248k|  if (!A || !B)
  ------------------
  |  Branch (468:7): [True: 130k, False: 118k]
  |  Branch (468:13): [True: 85.7k, False: 32.4k]
  ------------------
  469|   216k|    return;
  470|       |
  471|  32.4k|  const MCSymbol &SA = A->getSymbol();
  472|  32.4k|  const MCSymbol &SB = B->getSymbol();
  473|       |
  474|  32.4k|  if (SA.isUndefined() || SB.isUndefined())
  ------------------
  |  Branch (474:7): [True: 13.5k, False: 18.8k]
  |  Branch (474:27): [True: 8.34k, False: 10.5k]
  ------------------
  475|  21.9k|    return;
  476|       |
  477|  10.5k|  if (!Asm->getWriter().isSymbolRefDifferenceFullyResolved(*Asm, A, B, InSet, valid))
  ------------------
  |  Branch (477:7): [True: 271, False: 10.2k]
  ------------------
  478|    271|    return;
  479|  10.2k|  if (!valid)
  ------------------
  |  Branch (479:7): [True: 0, False: 10.2k]
  ------------------
  480|      0|      return;
  481|       |
  482|  10.2k|  if (SA.getFragment() == SB.getFragment() && !SA.isVariable() &&
  ------------------
  |  Branch (482:7): [True: 9.12k, False: 1.14k]
  |  Branch (482:47): [True: 6.29k, False: 2.83k]
  ------------------
  483|  6.29k|      !SB.isVariable()) {
  ------------------
  |  Branch (483:7): [True: 5.99k, False: 293]
  ------------------
  484|  5.99k|    Addend += (SA.getOffset() - SB.getOffset());
  485|       |
  486|       |    // Pointers to Thumb symbols need to have their low-bit set to allow
  487|       |    // for interworking.
  488|  5.99k|    if (Asm->isThumbFunc(&SA))
  ------------------
  |  Branch (488:9): [True: 0, False: 5.99k]
  ------------------
  489|      0|      Addend |= 1;
  490|       |
  491|       |    // Clear the symbol expr pointers to indicate we have folded these
  492|       |    // operands.
  493|  5.99k|    A = B = nullptr;
  494|  5.99k|    return;
  495|  5.99k|  }
  496|       |
  497|  4.27k|  if (!Layout)
  ------------------
  |  Branch (497:7): [True: 2.76k, False: 1.50k]
  ------------------
  498|  2.76k|    return;
  499|       |
  500|  1.50k|  const MCSection &SecA = *SA.getFragment()->getParent();
  501|  1.50k|  const MCSection &SecB = *SB.getFragment()->getParent();
  502|       |
  503|  1.50k|  if ((&SecA != &SecB) && !Addrs)
  ------------------
  |  Branch (503:7): [True: 0, False: 1.50k]
  |  Branch (503:27): [True: 0, False: 0]
  ------------------
  504|      0|    return;
  505|       |
  506|       |  // Eagerly evaluate.
  507|  1.50k|  bool valid1, valid2;
  508|  1.50k|  Addend += Layout->getSymbolOffset(A->getSymbol(), valid1) -
  509|  1.50k|            Layout->getSymbolOffset(B->getSymbol(), valid2);
  510|  1.50k|  if (Addrs && (&SecA != &SecB))
  ------------------
  |  Branch (510:7): [True: 0, False: 1.50k]
  |  Branch (510:16): [True: 0, False: 0]
  ------------------
  511|      0|    Addend += (Addrs->lookup(&SecA) - Addrs->lookup(&SecB));
  512|       |
  513|       |  // Pointers to Thumb symbols need to have their low-bit set to allow
  514|       |  // for interworking.
  515|  1.50k|  if (Asm->isThumbFunc(&SA))
  ------------------
  |  Branch (515:7): [True: 0, False: 1.50k]
  ------------------
  516|      0|    Addend |= 1;
  517|       |
  518|       |  // Clear the symbol expr pointers to indicate we have folded these
  519|       |  // operands.
  520|  1.50k|  A = B = nullptr;
  521|  1.50k|}

_ZN7llvm_ks11MCAsmLayoutC2ERNS_11MCAssemblerE:
   32|  6.07k|  : Assembler(Asm), LastValidFragment()
   33|  6.07k| {
   34|       |  // Compute the section layout order. Virtual sections must go last.
   35|  6.07k|  for (MCSection &Sec : Asm)
  ------------------
  |  Branch (35:23): [True: 6.29k, False: 6.07k]
  ------------------
   36|  6.29k|    if (!Sec.isVirtualSection())
  ------------------
  |  Branch (36:9): [True: 6.26k, False: 21]
  ------------------
   37|  6.26k|      SectionOrder.push_back(&Sec);
   38|  6.07k|  for (MCSection &Sec : Asm)
  ------------------
  |  Branch (38:23): [True: 6.29k, False: 6.07k]
  ------------------
   39|  6.29k|    if (Sec.isVirtualSection())
  ------------------
  |  Branch (39:9): [True: 21, False: 6.26k]
  ------------------
   40|     21|      SectionOrder.push_back(&Sec);
   41|  6.07k|}
_ZNK7llvm_ks11MCAsmLayout15isFragmentValidEPKNS_10MCFragmentE:
   43|   212k|bool MCAsmLayout::isFragmentValid(const MCFragment *F) const {
   44|   212k|  const MCSection *Sec = F->getParent();
   45|   212k|  const MCFragment *LastValid = LastValidFragment.lookup(Sec);
   46|   212k|  if (!LastValid)
  ------------------
  |  Branch (46:7): [True: 12.5k, False: 199k]
  ------------------
   47|  12.5k|    return false;
   48|   212k|  assert(LastValid->getParent() == Sec);
  ------------------
  |  Branch (48:3): [True: 199k, False: 0]
  ------------------
   49|   199k|  return F->getLayoutOrder() <= LastValid->getLayoutOrder();
   50|   199k|}
_ZNK7llvm_ks11MCAsmLayout11ensureValidEPKNS_10MCFragmentE:
   63|  71.5k|{
   64|  71.5k|  MCSection *Sec = F->getParent();
   65|  71.5k|  MCSection::iterator I;
   66|  71.5k|  if (MCFragment *Cur = LastValidFragment[Sec])
  ------------------
  |  Branch (66:19): [True: 65.3k, False: 6.29k]
  ------------------
   67|  65.3k|    I = ++MCSection::iterator(Cur);
   68|  6.29k|  else
   69|  6.29k|    I = Sec->begin();
   70|       |
   71|       |  // Advance the layout position until the fragment is valid.
   72|   117k|  while (!isFragmentValid(F)) {
  ------------------
  |  Branch (72:10): [True: 50.9k, False: 66.7k]
  ------------------
   73|       |    //assert(I != Sec->end() && "Layout bookkeeping error");
   74|  50.9k|    if (I == Sec->end())
  ------------------
  |  Branch (74:9): [True: 628, False: 50.3k]
  ------------------
   75|    628|        return false;
   76|  50.3k|    if (const_cast<MCAsmLayout *>(this)->layoutFragment(&*I))
  ------------------
  |  Branch (76:9): [True: 4.20k, False: 46.1k]
  ------------------
   77|  4.20k|        return false;
   78|  46.1k|    ++I;
   79|  46.1k|  }
   80|       |
   81|  66.7k|  return true;
   82|  71.5k|}
_ZNK7llvm_ks11MCAsmLayout17getFragmentOffsetEPKNS_10MCFragmentERb:
   85|  71.5k|{
   86|  71.5k|  valid = true;
   87|  71.5k|  if (!ensureValid(F)) {
  ------------------
  |  Branch (87:7): [True: 4.83k, False: 66.7k]
  ------------------
   88|  4.83k|      valid = false;
   89|  4.83k|      return 0;
   90|  4.83k|  }
   91|       |  //assert(F->Offset != ~UINT64_C(0) && "Address not set!");
   92|  66.7k|  if (F->Offset == ~UINT64_C(0)) {
  ------------------
  |  Branch (92:7): [True: 88, False: 66.6k]
  ------------------
   93|     88|      valid = false;
   94|     88|      return 0;
   95|     88|  }
   96|       |
   97|  66.6k|  return F->Offset;
   98|  66.7k|}
_ZNK7llvm_ks11MCAsmLayout15getSymbolOffsetERKNS_8MCSymbolERmRb:
  156|    938|{
  157|    938|  return getSymbolOffsetImpl(*this, S, false, Val, valid);
  158|    938|}
_ZNK7llvm_ks11MCAsmLayout15getSymbolOffsetERKNS_8MCSymbolERb:
  161|  10.5k|{
  162|  10.5k|  uint64_t Val;
  163|  10.5k|  getSymbolOffsetImpl(*this, S, true, Val, valid);
  164|  10.5k|  return Val;
  165|  10.5k|}
_ZNK7llvm_ks11MCAsmLayout18getSectionFileSizeEPKNS_9MCSectionE:
  212|     21|uint64_t MCAsmLayout::getSectionFileSize(const MCSection *Sec) const {
  213|       |  // Virtual sections have no file size.
  214|     21|  if (Sec->isVirtualSection())
  ------------------
  |  Branch (214:7): [True: 21, False: 0]
  ------------------
  215|     21|    return 0;
  216|       |
  217|       |  // Otherwise, the file size is the same as the address space size.
  218|      0|  return getSectionAddressSize(Sec);
  219|     21|}
_ZN7llvm_ks17ilist_node_traitsINS_10MCFragmentEE10deleteNodeEPS1_:
  264|  55.0k|void ilist_node_traits<MCFragment>::deleteNode(MCFragment *V) {
  265|  55.0k|  V->destroy();
  266|  55.0k|}
_ZN7llvm_ks10MCFragmentC2Ev:
  268|  13.9k|MCFragment::MCFragment() : Kind(FragmentType(~0)), HasInstructions(false),
  269|  13.9k|                           AlignToBundleEnd(false), BundlePadding(0) {
  270|  13.9k|}
_ZN7llvm_ks10MCFragmentD2Ev:
  272|   661k|MCFragment::~MCFragment() { }
_ZN7llvm_ks10MCFragmentC2ENS0_12FragmentTypeEbhPNS_9MCSectionE:
  276|   647k|    : Kind(Kind), HasInstructions(HasInstructions), AlignToBundleEnd(false),
  277|   647k|      BundlePadding(BundlePadding), Parent(Parent), Atom(nullptr),
  278|   647k|      Offset(~UINT64_C(0)) {
  279|   647k|  if (Parent && !isDummy())
  ------------------
  |  Branch (279:7): [True: 592k, False: 55.0k]
  |  Branch (279:17): [True: 0, False: 592k]
  ------------------
  280|      0|    Parent->getFragmentList().push_back(this);
  281|   647k|}
_ZN7llvm_ks10MCFragment7destroyEv:
  283|  55.0k|void MCFragment::destroy() {
  284|       |  // First check if we are the sentinal.
  285|  55.0k|  if (Kind == FragmentType(~0)) {
  ------------------
  |  Branch (285:7): [True: 0, False: 55.0k]
  ------------------
  286|      0|    delete this;
  287|      0|    return;
  288|      0|  }
  289|       |
  290|  55.0k|  switch (Kind) {
  ------------------
  |  Branch (290:11): [True: 55.0k, False: 0]
  ------------------
  291|  7.96k|    case FT_Align:
  ------------------
  |  Branch (291:5): [True: 7.96k, False: 47.0k]
  ------------------
  292|  7.96k|      delete cast<MCAlignFragment>(this);
  293|  7.96k|      return;
  294|  8.05k|    case FT_Data:
  ------------------
  |  Branch (294:5): [True: 8.05k, False: 46.9k]
  ------------------
  295|  8.05k|      delete cast<MCDataFragment>(this);
  296|  8.05k|      return;
  297|      0|    case FT_CompactEncodedInst:
  ------------------
  |  Branch (297:5): [True: 0, False: 55.0k]
  ------------------
  298|      0|      delete cast<MCCompactEncodedInstFragment>(this);
  299|      0|      return;
  300|  12.5k|    case FT_Fill:
  ------------------
  |  Branch (300:5): [True: 12.5k, False: 42.4k]
  ------------------
  301|  12.5k|      delete cast<MCFillFragment>(this);
  302|  12.5k|      return;
  303|    677|    case FT_Relaxable:
  ------------------
  |  Branch (303:5): [True: 677, False: 54.3k]
  ------------------
  304|    677|      delete cast<MCRelaxableFragment>(this);
  305|    677|      return;
  306|  25.8k|    case FT_Org:
  ------------------
  |  Branch (306:5): [True: 25.8k, False: 29.2k]
  ------------------
  307|  25.8k|      delete cast<MCOrgFragment>(this);
  308|  25.8k|      return;
  309|      0|    case FT_Dwarf:
  ------------------
  |  Branch (309:5): [True: 0, False: 55.0k]
  ------------------
  310|      0|      delete cast<MCDwarfLineAddrFragment>(this);
  311|      0|      return;
  312|      0|    case FT_DwarfFrame:
  ------------------
  |  Branch (312:5): [True: 0, False: 55.0k]
  ------------------
  313|      0|      delete cast<MCDwarfCallFrameFragment>(this);
  314|      0|      return;
  315|      0|    case FT_LEB:
  ------------------
  |  Branch (315:5): [True: 0, False: 55.0k]
  ------------------
  316|      0|      delete cast<MCLEBFragment>(this);
  317|      0|      return;
  318|      0|    case FT_SafeSEH:
  ------------------
  |  Branch (318:5): [True: 0, False: 55.0k]
  ------------------
  319|      0|      delete cast<MCSafeSEHFragment>(this);
  320|      0|      return;
  321|      0|    case FT_Dummy:
  ------------------
  |  Branch (321:5): [True: 0, False: 55.0k]
  ------------------
  322|      0|      delete cast<MCDummyFragment>(this);
  323|      0|      return;
  324|  55.0k|  }
  325|  55.0k|}
MCFragment.cpp:_ZL19getSymbolOffsetImplRKN7llvm_ks11MCAsmLayoutERKNS_8MCSymbolEbRmRb:
  119|  11.4k|{
  120|  11.4k|  valid = true;
  121|  11.4k|  if (!S.isVariable())
  ------------------
  |  Branch (121:7): [True: 8.55k, False: 2.92k]
  ------------------
  122|  8.55k|    return getLabelOffset(Layout, S, ReportError, Val);
  123|       |
  124|       |  // If SD is a variable, evaluate it.
  125|  2.92k|  MCValue Target;
  126|  2.92k|  if (!S.getVariableValue()->evaluateAsValue(Target, Layout)) {
  ------------------
  |  Branch (126:7): [True: 320, False: 2.60k]
  ------------------
  127|       |    //report_fatal_error("unable to evaluate offset for variable '" +
  128|       |    //                   S.getName() + "'");
  129|    320|    valid = false;
  130|    320|    return false;
  131|    320|  }
  132|       |
  133|  2.60k|  uint64_t Offset = Target.getConstant();
  134|       |
  135|  2.60k|  const MCSymbolRefExpr *A = Target.getSymA();
  136|  2.60k|  if (A) {
  ------------------
  |  Branch (136:7): [True: 2.34k, False: 257]
  ------------------
  137|  2.34k|    uint64_t ValA;
  138|  2.34k|    if (!getLabelOffset(Layout, A->getSymbol(), ReportError, ValA))
  ------------------
  |  Branch (138:9): [True: 349, False: 1.99k]
  ------------------
  139|    349|      return false;
  140|  1.99k|    Offset += ValA;
  141|  1.99k|  }
  142|       |
  143|  2.25k|  const MCSymbolRefExpr *B = Target.getSymB();
  144|  2.25k|  if (B) {
  ------------------
  |  Branch (144:7): [True: 257, False: 1.99k]
  ------------------
  145|    257|    uint64_t ValB;
  146|    257|    if (!getLabelOffset(Layout, B->getSymbol(), ReportError, ValB))
  ------------------
  |  Branch (146:9): [True: 42, False: 215]
  ------------------
  147|     42|      return false;
  148|    215|    Offset -= ValB;
  149|    215|  }
  150|       |
  151|  2.21k|  Val = Offset;
  152|  2.21k|  return true;
  153|  2.25k|}
MCFragment.cpp:_ZL14getLabelOffsetRKN7llvm_ks11MCAsmLayoutERKNS_8MCSymbolEbRm:
  103|  11.1k|{
  104|  11.1k|  if (!S.getFragment()) {
  ------------------
  |  Branch (104:7): [True: 216, False: 10.9k]
  ------------------
  105|    216|    if (ReportError)
  ------------------
  |  Branch (105:9): [True: 0, False: 216]
  ------------------
  106|      0|      report_fatal_error("unable to evaluate offset to undefined symbol '" +
  107|      0|                         S.getName() + "'");
  108|    216|    return false;
  109|    216|  }
  110|       |
  111|  10.9k|  bool valid;
  112|  10.9k|  Val = Layout.getFragmentOffset(S.getFragment(), valid) + S.getOffset();
  113|       |
  114|  10.9k|  return valid;
  115|  11.1k|}

_ZNK7llvm_ks9MCOperand21evaluateAsConstantImmERl:
   36|    873|bool MCOperand::evaluateAsConstantImm(int64_t &Imm) const {
   37|    873|  if (isImm()) {
  ------------------
  |  Branch (37:7): [True: 547, False: 326]
  ------------------
   38|    547|    Imm = getImm();
   39|    547|    return true;
   40|    547|  }
   41|    326|  return false;
   42|    873|}
_ZNK7llvm_ks9MCOperand15isBareSymbolRefEv:
   44|    326|bool MCOperand::isBareSymbolRef() const {
   45|    326|  assert(isExpr() &&
  ------------------
  |  Branch (45:3): [True: 326, False: 0]
  |  Branch (45:3): [True: 326, Folded]
  |  Branch (45:3): [True: 326, False: 0]
  ------------------
   46|    326|         "isBareSymbolRef expects only expressions");
   47|    326|  const MCExpr *Expr = getExpr();
   48|    326|  MCExpr::ExprKind Kind = getExpr()->getKind();
   49|    326|  return Kind == MCExpr::SymbolRef &&
  ------------------
  |  Branch (49:10): [True: 326, False: 0]
  ------------------
   50|    326|    cast<MCSymbolRefExpr>(Expr)->getKind() == MCSymbolRefExpr::VK_None;
  ------------------
  |  Branch (50:5): [True: 326, False: 0]
  ------------------
   51|    326|}

_ZN7llvm_ks16MCObjectFileInfo23initELFMCObjectFileInfoENS_6TripleE:
  267|  13.6k|void MCObjectFileInfo::initELFMCObjectFileInfo(Triple T) {
  268|  13.6k|  switch (T.getArch()) {
  269|      0|  case Triple::mips:
  ------------------
  |  Branch (269:3): [True: 0, False: 13.6k]
  ------------------
  270|      0|  case Triple::mipsel:
  ------------------
  |  Branch (270:3): [True: 0, False: 13.6k]
  ------------------
  271|      0|    FDECFIEncoding = dwarf::DW_EH_PE_sdata4;
  272|      0|    break;
  273|      0|  case Triple::mips64:
  ------------------
  |  Branch (273:3): [True: 0, False: 13.6k]
  ------------------
  274|      0|  case Triple::mips64el:
  ------------------
  |  Branch (274:3): [True: 0, False: 13.6k]
  ------------------
  275|      0|    FDECFIEncoding = dwarf::DW_EH_PE_sdata8;
  276|      0|    break;
  277|      0|  case Triple::x86_64:
  ------------------
  |  Branch (277:3): [True: 0, False: 13.6k]
  ------------------
  278|      0|    break;
  279|  13.6k|  default:
  ------------------
  |  Branch (279:3): [True: 13.6k, False: 0]
  ------------------
  280|  13.6k|    FDECFIEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
  281|  13.6k|    break;
  282|  13.6k|  }
  283|       |
  284|  13.6k|  switch (T.getArch()) {
  285|      0|  case Triple::arm:
  ------------------
  |  Branch (285:3): [True: 0, False: 13.6k]
  ------------------
  286|      0|  case Triple::armeb:
  ------------------
  |  Branch (286:3): [True: 0, False: 13.6k]
  ------------------
  287|      0|  case Triple::thumb:
  ------------------
  |  Branch (287:3): [True: 0, False: 13.6k]
  ------------------
  288|      0|  case Triple::thumbeb:
  ------------------
  |  Branch (288:3): [True: 0, False: 13.6k]
  ------------------
  289|      0|    if (Ctx->getAsmInfo()->getExceptionHandlingType() == ExceptionHandling::ARM)
  ------------------
  |  Branch (289:9): [True: 0, False: 0]
  ------------------
  290|      0|      break;
  291|       |    // Fallthrough if not using EHABI
  292|      0|  case Triple::ppc:
  ------------------
  |  Branch (292:3): [True: 0, False: 13.6k]
  ------------------
  293|      0|  case Triple::x86:
  ------------------
  |  Branch (293:3): [True: 0, False: 13.6k]
  ------------------
  294|      0|    break;
  295|      0|  case Triple::x86_64:
  ------------------
  |  Branch (295:3): [True: 0, False: 13.6k]
  ------------------
  296|      0|    break;
  297|      0|  case Triple::aarch64:
  ------------------
  |  Branch (297:3): [True: 0, False: 13.6k]
  ------------------
  298|      0|  case Triple::aarch64_be:
  ------------------
  |  Branch (298:3): [True: 0, False: 13.6k]
  ------------------
  299|       |    // The small model guarantees static code/data size < 4GB, but not where it
  300|       |    // will be in memory. Most of these could end up >2GB away so even a signed
  301|       |    // pc-relative 32-bit address is insufficient, theoretically.
  302|      0|    break;
  303|      0|  case Triple::mips:
  ------------------
  |  Branch (303:3): [True: 0, False: 13.6k]
  ------------------
  304|      0|  case Triple::mipsel:
  ------------------
  |  Branch (304:3): [True: 0, False: 13.6k]
  ------------------
  305|      0|  case Triple::mips64:
  ------------------
  |  Branch (305:3): [True: 0, False: 13.6k]
  ------------------
  306|      0|  case Triple::mips64el:
  ------------------
  |  Branch (306:3): [True: 0, False: 13.6k]
  ------------------
  307|       |    // MIPS uses indirect pointer to refer personality functions and types, so
  308|       |    // that the eh_frame section can be read-only. DW.ref.personality will be
  309|       |    // generated for relocation.
  310|      0|    PersonalityEncoding = dwarf::DW_EH_PE_indirect;
  311|       |    // FIXME: The N64 ABI probably ought to use DW_EH_PE_sdata8 but we can't
  312|       |    //        identify N64 from just a triple.
  313|      0|    TTypeEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel |
  314|      0|                    dwarf::DW_EH_PE_sdata4;
  315|       |    // We don't support PC-relative LSDA references in GAS so we use the default
  316|       |    // DW_EH_PE_absptr for those.
  317|      0|    break;
  318|      0|  case Triple::ppc64:
  ------------------
  |  Branch (318:3): [True: 0, False: 13.6k]
  ------------------
  319|      0|  case Triple::ppc64le:
  ------------------
  |  Branch (319:3): [True: 0, False: 13.6k]
  ------------------
  320|      0|    PersonalityEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel |
  321|      0|      dwarf::DW_EH_PE_udata8;
  322|      0|    LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_udata8;
  323|      0|    TTypeEncoding = dwarf::DW_EH_PE_indirect | dwarf::DW_EH_PE_pcrel |
  324|      0|      dwarf::DW_EH_PE_udata8;
  325|      0|    break;
  326|      0|  case Triple::sparcel:
  ------------------
  |  Branch (326:3): [True: 0, False: 13.6k]
  ------------------
  327|      0|  case Triple::sparc:
  ------------------
  |  Branch (327:3): [True: 0, False: 13.6k]
  ------------------
  328|      0|    break;
  329|      0|  case Triple::sparcv9:
  ------------------
  |  Branch (329:3): [True: 0, False: 13.6k]
  ------------------
  330|      0|    LSDAEncoding = dwarf::DW_EH_PE_pcrel | dwarf::DW_EH_PE_sdata4;
  331|      0|    break;
  332|      0|  case Triple::systemz:
  ------------------
  |  Branch (332:3): [True: 0, False: 13.6k]
  ------------------
  333|       |    // All currently-defined code models guarantee that 4-byte PC-relative
  334|       |    // values will be in range.
  335|      0|    break;
  336|  13.6k|  default:
  ------------------
  |  Branch (336:3): [True: 13.6k, False: 0]
  ------------------
  337|  13.6k|    break;
  338|  13.6k|  }
  339|       |
  340|  13.6k|  unsigned EHSectionType = T.getArch() == Triple::x86_64
  ------------------
  |  Branch (340:28): [True: 0, False: 13.6k]
  ------------------
  341|  13.6k|                               ? ELF::SHT_X86_64_UNWIND
  342|  13.6k|                               : ELF::SHT_PROGBITS;
  343|       |
  344|       |  // Solaris requires different flags for .eh_frame to seemingly every other
  345|       |  // platform.
  346|  13.6k|  unsigned EHSectionFlags = ELF::SHF_ALLOC;
  347|  13.6k|  if (T.isOSSolaris() && T.getArch() != Triple::x86_64)
  ------------------
  |  Branch (347:7): [True: 0, False: 13.6k]
  |  Branch (347:26): [True: 0, False: 0]
  ------------------
  348|      0|    EHSectionFlags |= ELF::SHF_WRITE;
  349|       |
  350|       |  // ELF
  351|  13.6k|  BSSSection = Ctx->getELFSection(".bss", ELF::SHT_NOBITS,
  352|  13.6k|                                  ELF::SHF_WRITE | ELF::SHF_ALLOC);
  353|       |
  354|  13.6k|  TextSection = Ctx->getELFSection(".text", ELF::SHT_PROGBITS,
  355|  13.6k|                                   ELF::SHF_EXECINSTR | ELF::SHF_ALLOC);
  356|       |
  357|  13.6k|  DataSection = Ctx->getELFSection(".data", ELF::SHT_PROGBITS,
  358|  13.6k|                                   ELF::SHF_WRITE | ELF::SHF_ALLOC);
  359|       |
  360|  13.6k|  ReadOnlySection =
  361|  13.6k|      Ctx->getELFSection(".rodata", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
  362|       |
  363|  13.6k|  TLSDataSection =
  364|  13.6k|      Ctx->getELFSection(".tdata", ELF::SHT_PROGBITS,
  365|  13.6k|                         ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE);
  366|       |
  367|  13.6k|  TLSBSSSection = Ctx->getELFSection(
  368|  13.6k|      ".tbss", ELF::SHT_NOBITS, ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE);
  369|       |
  370|  13.6k|  DataRelROSection = Ctx->getELFSection(".data.rel.ro", ELF::SHT_PROGBITS,
  371|  13.6k|                                        ELF::SHF_ALLOC | ELF::SHF_WRITE);
  372|       |
  373|  13.6k|  MergeableConst4Section =
  374|  13.6k|      Ctx->getELFSection(".rodata.cst4", ELF::SHT_PROGBITS,
  375|  13.6k|                         ELF::SHF_ALLOC | ELF::SHF_MERGE, 4, "");
  376|       |
  377|  13.6k|  MergeableConst8Section =
  378|  13.6k|      Ctx->getELFSection(".rodata.cst8", ELF::SHT_PROGBITS,
  379|  13.6k|                         ELF::SHF_ALLOC | ELF::SHF_MERGE, 8, "");
  380|       |
  381|  13.6k|  MergeableConst16Section =
  382|  13.6k|      Ctx->getELFSection(".rodata.cst16", ELF::SHT_PROGBITS,
  383|  13.6k|                         ELF::SHF_ALLOC | ELF::SHF_MERGE, 16, "");
  384|       |
  385|  13.6k|  StaticCtorSection = Ctx->getELFSection(".ctors", ELF::SHT_PROGBITS,
  386|  13.6k|                                         ELF::SHF_ALLOC | ELF::SHF_WRITE);
  387|       |
  388|  13.6k|  StaticDtorSection = Ctx->getELFSection(".dtors", ELF::SHT_PROGBITS,
  389|  13.6k|                                         ELF::SHF_ALLOC | ELF::SHF_WRITE);
  390|       |
  391|       |  // Exception Handling Sections.
  392|       |
  393|       |  // FIXME: We're emitting LSDA info into a readonly section on ELF, even though
  394|       |  // it contains relocatable pointers.  In PIC mode, this is probably a big
  395|       |  // runtime hit for C++ apps.  Either the contents of the LSDA need to be
  396|       |  // adjusted or this should be a data section.
  397|  13.6k|  LSDASection = Ctx->getELFSection(".gcc_except_table", ELF::SHT_PROGBITS,
  398|  13.6k|                                   ELF::SHF_ALLOC);
  399|       |
  400|  13.6k|  COFFDebugSymbolsSection = nullptr;
  401|  13.6k|  COFFDebugTypesSection = nullptr;
  402|       |
  403|       |  // Debug Info Sections.
  404|  13.6k|  DwarfAbbrevSection = Ctx->getELFSection(".debug_abbrev", ELF::SHT_PROGBITS, 0,
  405|  13.6k|                                          "section_abbrev");
  406|  13.6k|  DwarfInfoSection =
  407|  13.6k|      Ctx->getELFSection(".debug_info", ELF::SHT_PROGBITS, 0, "section_info");
  408|  13.6k|  DwarfLineSection = Ctx->getELFSection(".debug_line", ELF::SHT_PROGBITS, 0);
  409|  13.6k|  DwarfFrameSection = Ctx->getELFSection(".debug_frame", ELF::SHT_PROGBITS, 0);
  410|  13.6k|  DwarfPubNamesSection =
  411|  13.6k|      Ctx->getELFSection(".debug_pubnames", ELF::SHT_PROGBITS, 0);
  412|  13.6k|  DwarfPubTypesSection =
  413|  13.6k|      Ctx->getELFSection(".debug_pubtypes", ELF::SHT_PROGBITS, 0);
  414|  13.6k|  DwarfGnuPubNamesSection =
  415|  13.6k|      Ctx->getELFSection(".debug_gnu_pubnames", ELF::SHT_PROGBITS, 0);
  416|  13.6k|  DwarfGnuPubTypesSection =
  417|  13.6k|      Ctx->getELFSection(".debug_gnu_pubtypes", ELF::SHT_PROGBITS, 0);
  418|  13.6k|  DwarfStrSection =
  419|  13.6k|      Ctx->getELFSection(".debug_str", ELF::SHT_PROGBITS,
  420|  13.6k|                         ELF::SHF_MERGE | ELF::SHF_STRINGS, 1, "");
  421|  13.6k|  DwarfLocSection = Ctx->getELFSection(".debug_loc", ELF::SHT_PROGBITS, 0);
  422|  13.6k|  DwarfARangesSection =
  423|  13.6k|      Ctx->getELFSection(".debug_aranges", ELF::SHT_PROGBITS, 0);
  424|  13.6k|  DwarfRangesSection =
  425|  13.6k|      Ctx->getELFSection(".debug_ranges", ELF::SHT_PROGBITS, 0, "debug_range");
  426|  13.6k|  DwarfMacinfoSection = Ctx->getELFSection(".debug_macinfo", ELF::SHT_PROGBITS,
  427|  13.6k|                                           0, "debug_macinfo");
  428|       |
  429|       |  // DWARF5 Experimental Debug Info
  430|       |
  431|       |  // Accelerator Tables
  432|  13.6k|  DwarfAccelNamesSection =
  433|  13.6k|      Ctx->getELFSection(".apple_names", ELF::SHT_PROGBITS, 0, "names_begin");
  434|  13.6k|  DwarfAccelObjCSection =
  435|  13.6k|      Ctx->getELFSection(".apple_objc", ELF::SHT_PROGBITS, 0, "objc_begin");
  436|  13.6k|  DwarfAccelNamespaceSection = Ctx->getELFSection(
  437|  13.6k|      ".apple_namespaces", ELF::SHT_PROGBITS, 0, "namespac_begin");
  438|  13.6k|  DwarfAccelTypesSection =
  439|  13.6k|      Ctx->getELFSection(".apple_types", ELF::SHT_PROGBITS, 0, "types_begin");
  440|       |
  441|       |  // Fission Sections
  442|  13.6k|  DwarfInfoDWOSection =
  443|  13.6k|      Ctx->getELFSection(".debug_info.dwo", ELF::SHT_PROGBITS, 0);
  444|  13.6k|  DwarfTypesDWOSection =
  445|  13.6k|      Ctx->getELFSection(".debug_types.dwo", ELF::SHT_PROGBITS, 0);
  446|  13.6k|  DwarfAbbrevDWOSection =
  447|  13.6k|      Ctx->getELFSection(".debug_abbrev.dwo", ELF::SHT_PROGBITS, 0);
  448|  13.6k|  DwarfStrDWOSection =
  449|  13.6k|      Ctx->getELFSection(".debug_str.dwo", ELF::SHT_PROGBITS,
  450|  13.6k|                         ELF::SHF_MERGE | ELF::SHF_STRINGS, 1, "");
  451|  13.6k|  DwarfLineDWOSection =
  452|  13.6k|      Ctx->getELFSection(".debug_line.dwo", ELF::SHT_PROGBITS, 0);
  453|  13.6k|  DwarfLocDWOSection =
  454|  13.6k|      Ctx->getELFSection(".debug_loc.dwo", ELF::SHT_PROGBITS, 0, "skel_loc");
  455|  13.6k|  DwarfStrOffDWOSection =
  456|  13.6k|      Ctx->getELFSection(".debug_str_offsets.dwo", ELF::SHT_PROGBITS, 0);
  457|  13.6k|  DwarfAddrSection =
  458|  13.6k|      Ctx->getELFSection(".debug_addr", ELF::SHT_PROGBITS, 0, "addr_sec");
  459|       |
  460|       |  // DWP Sections
  461|  13.6k|  DwarfCUIndexSection =
  462|  13.6k|      Ctx->getELFSection(".debug_cu_index", ELF::SHT_PROGBITS, 0);
  463|  13.6k|  DwarfTUIndexSection =
  464|  13.6k|      Ctx->getELFSection(".debug_tu_index", ELF::SHT_PROGBITS, 0);
  465|       |
  466|  13.6k|  StackMapSection =
  467|  13.6k|      Ctx->getELFSection(".llvm_stackmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
  468|       |
  469|  13.6k|  FaultMapSection =
  470|  13.6k|      Ctx->getELFSection(".llvm_faultmaps", ELF::SHT_PROGBITS, ELF::SHF_ALLOC);
  471|       |
  472|  13.6k|  EHFrameSection =
  473|  13.6k|      Ctx->getELFSection(".eh_frame", EHSectionType, EHSectionFlags);
  474|  13.6k|}
_ZN7llvm_ks16MCObjectFileInfo20InitMCObjectFileInfoERKNS_6TripleERNS_9MCContextE:
  715|  13.6k|                                            MCContext &ctx) {
  716|  13.6k|  Ctx = &ctx;
  717|       |
  718|       |  // Common.
  719|  13.6k|  CommDirectiveSupportsAlignment = true;
  720|  13.6k|  SupportsWeakOmittedEHFrame = true;
  721|  13.6k|  SupportsCompactUnwindWithoutEHFrame = false;
  722|  13.6k|  OmitDwarfIfHaveCompactUnwind = false;
  723|       |
  724|  13.6k|  PersonalityEncoding = LSDAEncoding = FDECFIEncoding = TTypeEncoding =
  725|  13.6k|      dwarf::DW_EH_PE_absptr;
  726|       |
  727|  13.6k|  CompactUnwindDwarfEHFrameOnly = 0;
  728|       |
  729|  13.6k|  EHFrameSection = nullptr;             // Created on demand.
  730|  13.6k|  CompactUnwindSection = nullptr;       // Used only by selected targets.
  731|  13.6k|  DwarfAccelNamesSection = nullptr;     // Used only by selected targets.
  732|  13.6k|  DwarfAccelObjCSection = nullptr;      // Used only by selected targets.
  733|  13.6k|  DwarfAccelNamespaceSection = nullptr; // Used only by selected targets.
  734|  13.6k|  DwarfAccelTypesSection = nullptr;     // Used only by selected targets.
  735|       |
  736|  13.6k|  TT = TheTriple;
  737|       |
  738|  13.6k|  switch (TT.getObjectFormat()) {
  ------------------
  |  Branch (738:11): [True: 13.6k, False: 0]
  ------------------
  739|      0|  case Triple::MachO:
  ------------------
  |  Branch (739:3): [True: 0, False: 13.6k]
  ------------------
  740|      0|    Env = IsMachO;
  741|      0|    initMachOMCObjectFileInfo(TT);
  742|      0|    break;
  743|      0|  case Triple::COFF:
  ------------------
  |  Branch (743:3): [True: 0, False: 13.6k]
  ------------------
  744|      0|    if (!TT.isOSWindows())
  ------------------
  |  Branch (744:9): [True: 0, False: 0]
  ------------------
  745|      0|      report_fatal_error(
  746|      0|          "Cannot initialize MC for non-Windows COFF object files.");
  747|       |
  748|      0|    Env = IsCOFF;
  749|      0|    initCOFFMCObjectFileInfo(TT);
  750|      0|    break;
  751|  13.6k|  case Triple::ELF:
  ------------------
  |  Branch (751:3): [True: 13.6k, False: 0]
  ------------------
  752|  13.6k|    Env = IsELF;
  753|  13.6k|    initELFMCObjectFileInfo(TT);
  754|  13.6k|    break;
  755|      0|  case Triple::UnknownObjectFormat:
  ------------------
  |  Branch (755:3): [True: 0, False: 13.6k]
  ------------------
  756|      0|    report_fatal_error("Cannot initialize MC for unknown object file format.");
  757|      0|    break;
  758|  13.6k|  }
  759|  13.6k|}

_ZN7llvm_ks16MCObjectStreamerC2ERNS_9MCContextERNS_12MCAsmBackendERNS_17raw_pwrite_streamEPNS_13MCCodeEmitterE:
   32|  13.6k|    : MCStreamer(Context),
   33|  13.6k|      Assembler(new MCAssembler(Context, TAB, *Emitter_,
   34|  13.6k|                                *TAB.createObjectWriter(OS))),
   35|  13.6k|      EmitEHFrame(true), EmitDebugFrame(false) {}
_ZN7llvm_ks16MCObjectStreamerD2Ev:
   37|  13.6k|MCObjectStreamer::~MCObjectStreamer() {
   38|  13.6k|  delete &Assembler->getWriter();
   39|  13.6k|  delete Assembler;
   40|  13.6k|}
_ZN7llvm_ks16MCObjectStreamer18flushPendingLabelsEPNS_10MCFragmentEm:
   42|  32.9M|void MCObjectStreamer::flushPendingLabels(MCFragment *F, uint64_t FOffset) {
   43|  32.9M|  if (PendingLabels.empty())
  ------------------
  |  Branch (43:7): [True: 32.9M, False: 11.4k]
  ------------------
   44|  32.9M|    return;
   45|  11.4k|  if (!F) {
  ------------------
  |  Branch (45:7): [True: 4.37k, False: 7.04k]
  ------------------
   46|  4.37k|    F = new MCDataFragment();
   47|  4.37k|    MCSection *CurSection = getCurrentSectionOnly();
   48|  4.37k|    CurSection->getFragmentList().insert(CurInsertionPoint, F);
   49|  4.37k|    F->setParent(CurSection);
   50|  4.37k|  }
   51|  25.7k|  for (MCSymbol *Sym : PendingLabels) {
  ------------------
  |  Branch (51:22): [True: 25.7k, False: 11.4k]
  ------------------
   52|  25.7k|    Sym->setFragment(F);
   53|  25.7k|    Sym->setOffset(FOffset);
   54|  25.7k|  }
   55|  11.4k|  PendingLabels.clear();
   56|  11.4k|}
_ZN7llvm_ks16MCObjectStreamer10EmitFramesEPNS_12MCAsmBackendE:
   83|  6.07k|void MCObjectStreamer::EmitFrames(MCAsmBackend *MAB) {
   84|       |#if 0
   85|       |  if (!getNumFrameInfos())
   86|       |    return;
   87|       |
   88|       |  if (EmitEHFrame)
   89|       |    MCDwarfFrameEmitter::Emit(*this, MAB, true);
   90|       |
   91|       |  if (EmitDebugFrame)
   92|       |    MCDwarfFrameEmitter::Emit(*this, MAB, false);
   93|       |#endif
   94|  6.07k|}
_ZNK7llvm_ks16MCObjectStreamer18getCurrentFragmentEv:
   96|  33.4M|MCFragment *MCObjectStreamer::getCurrentFragment() const {
   97|  33.4M|  assert(getCurrentSectionOnly() && "No current section!");
  ------------------
  |  Branch (97:3): [True: 33.4M, False: 0]
  |  Branch (97:3): [True: 33.4M, Folded]
  |  Branch (97:3): [True: 33.4M, False: 0]
  ------------------
   98|       |
   99|  33.4M|  if (CurInsertionPoint != getCurrentSectionOnly()->getFragmentList().begin())
  ------------------
  |  Branch (99:7): [True: 32.9M, False: 493k]
  ------------------
  100|  32.9M|    return &*std::prev(CurInsertionPoint);
  101|       |
  102|   493k|  return nullptr;
  103|  33.4M|}
_ZN7llvm_ks16MCObjectStreamer23getOrCreateDataFragmentEv:
  105|  32.8M|MCDataFragment *MCObjectStreamer::getOrCreateDataFragment() {
  106|  32.8M|  MCDataFragment *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
  107|       |  // When bundling is enabled, we don't want to add data to a fragment that
  108|       |  // already has instructions (see MCELFStreamer::EmitInstToData for details)
  109|  32.8M|  if (!F || (Assembler->isBundlingEnabled() && !Assembler->getRelaxAll() &&
  ------------------
  |  Branch (109:7): [True: 3.68k, False: 32.8M]
  |  Branch (109:14): [True: 0, False: 32.8M]
  |  Branch (109:48): [True: 0, False: 0]
  ------------------
  110|  3.68k|             F->hasInstructions())) {
  ------------------
  |  Branch (110:14): [True: 0, False: 0]
  ------------------
  111|  3.68k|    F = new MCDataFragment();
  112|  3.68k|    insert(F);
  113|  3.68k|  }
  114|  32.8M|  return F;
  115|  32.8M|}
_ZN7llvm_ks16MCObjectStreamer15visitUsedSymbolERKNS_8MCSymbolE:
  117|   105k|void MCObjectStreamer::visitUsedSymbol(const MCSymbol &Sym) {
  118|   105k|  Assembler->registerSymbol(Sym);
  119|   105k|}
_ZN7llvm_ks16MCObjectStreamer13EmitValueImplEPKNS_6MCExprEjNS_5SMLocE:
  129|  49.0k|{
  130|  49.0k|  MCStreamer::EmitValueImpl(Value, Size, Loc);
  131|  49.0k|  MCDataFragment *DF = getOrCreateDataFragment();
  132|  49.0k|  flushPendingLabels(DF, DF->getContents().size());
  133|       |
  134|       |  // This makes the symbol's name (label) end up literally in the output stream
  135|       |  //if (Value->getKind() == MCExpr::SymbolRef) {
  136|       |  //    // Keystone: record data in the same section
  137|       |  //    const MCSymbolRefExpr &SRE = cast<MCSymbolRefExpr>(*Value);
  138|       |  //    const StringRef Sym = SRE.getSymbol().getName();
  139|       |  //    DF->getContents().append(Sym.begin(), Sym.end());
  140|       |  //
  141|       |  //    return;
  142|       |  //}
  143|       |
  144|       |  //MCCVLineEntry::Make(this);
  145|       |  //MCDwarfLineEntry::Make(this, getCurrentSection().first);
  146|       |
  147|       |  // Avoid fixups when possible.
  148|  49.0k|  int64_t AbsValue;
  149|  49.0k|  bool Error;
  150|  49.0k|  if (Value->evaluateAsAbsolute(AbsValue, getAssembler())) {
  ------------------
  |  Branch (150:7): [True: 4.77k, False: 44.2k]
  ------------------
  151|       |    // TODO: hande Error?
  152|  4.77k|    EmitIntValue(AbsValue, Size, Error);
  153|  4.77k|    return;
  154|  4.77k|  }
  155|  44.2k|  DF->getFixups().push_back(
  156|  44.2k|      MCFixup::create(DF->getContents().size(), Value,
  157|  44.2k|                      MCFixup::getKindForSize(Size, false), Loc));
  158|  44.2k|  DF->getContents().resize(DF->getContents().size() + Size, 0);
  159|  44.2k|}
_ZN7llvm_ks16MCObjectStreamer9EmitLabelEPNS_8MCSymbolE:
  172|  69.2k|void MCObjectStreamer::EmitLabel(MCSymbol *Symbol) {
  173|  69.2k|  MCStreamer::EmitLabel(Symbol);
  174|       |
  175|  69.2k|  getAssembler().registerSymbol(*Symbol);
  176|       |
  177|       |  // If there is a current fragment, mark the symbol as pointing into it.
  178|       |  // Otherwise queue the label and set its fragment pointer when we emit the
  179|       |  // next fragment.
  180|  69.2k|  auto *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
  181|  69.2k|  if (F && !(getAssembler().isBundlingEnabled() &&
  ------------------
  |  Branch (181:7): [True: 34.7k, False: 34.5k]
  |  Branch (181:14): [True: 0, False: 34.7k]
  ------------------
  182|  34.7k|             getAssembler().getRelaxAll())) {
  ------------------
  |  Branch (182:14): [True: 0, False: 0]
  ------------------
  183|  34.7k|    Symbol->setFragment(F);
  184|  34.7k|    Symbol->setOffset(F->getContents().size());
  185|  34.7k|  } else {
  186|  34.5k|    PendingLabels.push_back(Symbol);
  187|  34.5k|  }
  188|  69.2k|}
_ZN7llvm_ks16MCObjectStreamer13ChangeSectionEPNS_9MCSectionEPKNS_6MCExprE:
  214|  14.5k|                                     const MCExpr *Subsection) {
  215|  14.5k|  changeSectionImpl(Section, Subsection);
  216|  14.5k|}
_ZN7llvm_ks16MCObjectStreamer17changeSectionImplEPNS_9MCSectionEPKNS_6MCExprE:
  219|  14.5k|                                         const MCExpr *Subsection) {
  220|  14.5k|  assert(Section && "Cannot switch to a null section!");
  ------------------
  |  Branch (220:3): [True: 14.5k, False: 0]
  |  Branch (220:3): [True: 14.5k, Folded]
  |  Branch (220:3): [True: 14.5k, False: 0]
  ------------------
  221|  14.5k|  flushPendingLabels(nullptr);
  222|       |
  223|  14.5k|  bool Created = getAssembler().registerSection(*Section);
  224|       |
  225|  14.5k|  int64_t IntSubsection = 0;
  226|  14.5k|  if (Subsection &&
  ------------------
  |  Branch (226:7): [True: 0, False: 14.5k]
  ------------------
  227|      0|      !Subsection->evaluateAsAbsolute(IntSubsection, getAssembler()))
  ------------------
  |  Branch (227:7): [True: 0, False: 0]
  ------------------
  228|      0|    report_fatal_error("Cannot evaluate subsection number");
  229|  14.5k|  if (IntSubsection < 0 || IntSubsection > 8192)
  ------------------
  |  Branch (229:7): [True: 0, False: 14.5k]
  |  Branch (229:28): [True: 0, False: 14.5k]
  ------------------
  230|      0|    report_fatal_error("Subsection number out of range");
  231|  14.5k|  CurInsertionPoint =
  232|  14.5k|      Section->getSubsectionInsertionPoint(unsigned(IntSubsection));
  233|  14.5k|  return Created;
  234|  14.5k|}
_ZN7llvm_ks16MCObjectStreamer14EmitAssignmentEPNS_8MCSymbolEPKNS_6MCExprE:
  236|  21.3k|bool MCObjectStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
  237|  21.3k|  getAssembler().registerSymbol(*Symbol);
  238|  21.3k|  return MCStreamer::EmitAssignment(Symbol, Value);
  239|  21.3k|}
_ZN7llvm_ks16MCObjectStreamer15EmitInstructionERNS_6MCInstERKNS_15MCSubtargetInfoERj:
  248|  1.21k|{
  249|  1.21k|  MCStreamer::EmitInstruction(Inst, STI, KsError);
  250|       |
  251|  1.21k|  MCSection *Sec = getCurrentSectionOnly();
  252|  1.21k|  Sec->setHasInstructions(true);
  253|       |
  254|       |  // Now that a machine instruction has been assembled into this section, make
  255|       |  // a line entry for any .loc directive that has been seen.
  256|       |  //MCCVLineEntry::Make(this);
  257|       |  //MCDwarfLineEntry::Make(this, getCurrentSection().first);
  258|       |
  259|       |  // If this instruction doesn't need relaxation, just emit it as data.
  260|  1.21k|  MCAssembler &Assembler = getAssembler();
  261|  1.21k|  if (!Assembler.getBackend().mayNeedRelaxation(Inst)) {
  ------------------
  |  Branch (261:7): [True: 541, False: 677]
  ------------------
  262|    541|    EmitInstToData(Inst, STI, KsError);
  263|    541|    return;
  264|    541|  }
  265|       |
  266|       |  // Otherwise, relax and emit it as data if either:
  267|       |  // - The RelaxAll flag was passed
  268|       |  // - Bundling is enabled and this instruction is inside a bundle-locked
  269|       |  //   group. We want to emit all such instructions into the same data
  270|       |  //   fragment.
  271|    677|  if (Assembler.getRelaxAll() ||
  ------------------
  |  Branch (271:7): [True: 0, False: 677]
  ------------------
  272|    677|      (Assembler.isBundlingEnabled() && Sec->isBundleLocked())) {
  ------------------
  |  Branch (272:8): [True: 0, False: 677]
  |  Branch (272:41): [True: 0, False: 0]
  ------------------
  273|      0|    MCInst Relaxed(Inst.getAddress());
  274|      0|    getAssembler().getBackend().relaxInstruction(Inst, Relaxed);
  275|      0|    while (getAssembler().getBackend().mayNeedRelaxation(Relaxed))
  ------------------
  |  Branch (275:12): [True: 0, False: 0]
  ------------------
  276|      0|      getAssembler().getBackend().relaxInstruction(Relaxed, Relaxed);
  277|      0|    EmitInstToData(Relaxed, STI, KsError);
  278|      0|    return;
  279|      0|  }
  280|       |
  281|       |  // Otherwise emit to a separate fragment.
  282|    677|  EmitInstToFragment(Inst, STI);
  283|    677|}
_ZN7llvm_ks16MCObjectStreamer18EmitInstToFragmentERNS_6MCInstERKNS_15MCSubtargetInfoE:
  287|    677|{
  288|    677|  if (getAssembler().getRelaxAll() && getAssembler().isBundlingEnabled())
  ------------------
  |  Branch (288:7): [True: 0, False: 677]
  |  Branch (288:39): [True: 0, False: 0]
  ------------------
  289|      0|    llvm_unreachable("All instructions should have already been relaxed");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  290|       |
  291|       |  // Always create a new, separate fragment here, because its size can change
  292|       |  // during relaxation.
  293|    677|  MCRelaxableFragment *IF = new MCRelaxableFragment(Inst, STI);
  294|    677|  insert(IF);
  295|       |
  296|    677|  SmallString<128> Code;
  297|    677|  raw_svector_ostream VecOS(Code);
  298|    677|  unsigned int KsError;
  299|    677|  getAssembler().getEmitter().encodeInstruction(Inst, VecOS, IF->getFixups(),
  300|    677|                                                STI, KsError);
  301|    677|  IF->getContents().append(Code.begin(), Code.end());
  302|    677|}
_ZN7llvm_ks16MCObjectStreamer9EmitBytesENS_9StringRefE:
  428|  32.7M|void MCObjectStreamer::EmitBytes(StringRef Data) {
  429|       |  //MCCVLineEntry::Make(this);
  430|       |  //MCDwarfLineEntry::Make(this, getCurrentSection().first);
  431|  32.7M|  MCDataFragment *DF = getOrCreateDataFragment();
  432|  32.7M|  flushPendingLabels(DF, DF->getContents().size());
  433|  32.7M|  DF->getContents().append(Data.begin(), Data.end());
  434|  32.7M|}
_ZN7llvm_ks16MCObjectStreamer20EmitValueToAlignmentEjljj:
  439|  7.96k|                                            unsigned MaxBytesToEmit) {
  440|  7.96k|  if (MaxBytesToEmit == 0)
  ------------------
  |  Branch (440:7): [True: 7.64k, False: 315]
  ------------------
  441|  7.64k|    MaxBytesToEmit = ByteAlignment;
  442|  7.96k|  insert(new MCAlignFragment(ByteAlignment, Value, ValueSize, MaxBytesToEmit));
  443|       |
  444|       |  // Update the maximum alignment on the current section if necessary.
  445|  7.96k|  MCSection *CurSec = getCurrentSection().first;
  446|  7.96k|  if (ByteAlignment > CurSec->getAlignment())
  ------------------
  |  Branch (446:7): [True: 381, False: 7.58k]
  ------------------
  447|    381|    CurSec->setAlignment(ByteAlignment);
  448|  7.96k|}
_ZN7llvm_ks16MCObjectStreamer17EmitCodeAlignmentEjj:
  451|  3.49k|                                         unsigned MaxBytesToEmit) {
  452|  3.49k|  EmitValueToAlignment(ByteAlignment, 0, 1, MaxBytesToEmit);
  453|  3.49k|  cast<MCAlignFragment>(getCurrentFragment())->setEmitNops(true);
  454|  3.49k|}
_ZN7llvm_ks16MCObjectStreamer17emitValueToOffsetEPKNS_6MCExprEh:
  457|  25.8k|                                         unsigned char Value) {
  458|  25.8k|  insert(new MCOrgFragment(*Offset, Value));
  459|  25.8k|}
_ZN7llvm_ks16MCObjectStreamer18EmitRelocDirectiveERKNS_6MCExprENS_9StringRefEPS2_NS_5SMLocE:
  482|    730|                                          const MCExpr *Expr, SMLoc Loc) {
  483|    730|  int64_t OffsetValue;
  484|    730|  if (!Offset.evaluateAsAbsolute(OffsetValue))
  ------------------
  |  Branch (484:7): [True: 0, False: 730]
  ------------------
  485|      0|    llvm_unreachable("Offset is not absolute");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  486|       |
  487|    730|  if (OffsetValue < 0)
  ------------------
  |  Branch (487:7): [True: 0, False: 730]
  ------------------
  488|      0|    llvm_unreachable("Offset is negative");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  489|       |
  490|    730|  MCDataFragment *DF = getOrCreateDataFragment();
  491|    730|  flushPendingLabels(DF, DF->getContents().size());
  492|       |
  493|    730|  Optional<MCFixupKind> MaybeKind = Assembler->getBackend().getFixupKind(Name);
  494|    730|  if (!MaybeKind.hasValue())
  ------------------
  |  Branch (494:7): [True: 730, False: 0]
  ------------------
  495|    730|    return true;
  496|       |
  497|      0|  MCFixupKind Kind = *MaybeKind;
  498|       |
  499|      0|  if (Expr == nullptr)
  ------------------
  |  Branch (499:7): [True: 0, False: 0]
  ------------------
  500|      0|    Expr =
  501|      0|        MCSymbolRefExpr::create(getContext().createTempSymbol(), getContext());
  502|      0|  DF->getFixups().push_back(MCFixup::create(OffsetValue, Expr, Kind, Loc));
  503|      0|  return false;
  504|    730|}
_ZN7llvm_ks16MCObjectStreamer8EmitFillEmh:
  506|  12.5k|void MCObjectStreamer::EmitFill(uint64_t NumBytes, uint8_t FillValue) {
  507|  12.5k|  const MCSection *Sec = getCurrentSection().first;
  508|  12.5k|  (void)Sec;
  509|  12.5k|  assert(Sec && "need a section");
  ------------------
  |  Branch (509:3): [True: 12.5k, False: 0]
  |  Branch (509:3): [True: 12.5k, Folded]
  |  Branch (509:3): [True: 12.5k, False: 0]
  ------------------
  510|  12.5k|  insert(new MCFillFragment(FillValue, NumBytes));
  511|  12.5k|}
_ZN7llvm_ks16MCObjectStreamer10FinishImplEv:
  514|  6.07k|{
  515|  6.07k|  unsigned int KsError = 0;
  516|       |  // If we are generating dwarf for assembly source files dump out the sections.
  517|       |  //if (getContext().getGenDwarfForAssembly())
  518|       |  //  MCGenDwarfInfo::Emit(this);
  519|       |
  520|       |  // Dump out the dwarf file & directory tables and line tables.
  521|       |  //MCDwarfLineTable::Emit(this, getAssembler().getDWARFLinetableParams());
  522|       |
  523|  6.07k|  flushPendingLabels(nullptr);
  524|  6.07k|  getAssembler().setSymResolver(getSymResolver());
  525|  6.07k|  getAssembler().Finish(KsError);
  526|       |
  527|  6.07k|  return KsError;
  528|  6.07k|}
_ZN7llvm_ks16MCObjectStreamer22getCurrentFragmentSizeEv:
  530|   521k|uint64_t MCObjectStreamer::getCurrentFragmentSize() {
  531|   521k|  auto *F = dyn_cast_or_null<MCDataFragment>(getCurrentFragment());
  532|   521k|  if (nullptr != F)
  ------------------
  |  Branch (532:7): [True: 23.8k, False: 497k]
  ------------------
  533|  23.8k|      return F->getContents().size();
  534|   497k|  return 0;
  535|   521k|}

_ZN7llvm_ks14MCObjectWriterD2Ev:
   17|  13.6k|MCObjectWriter::~MCObjectWriter() {
   18|  13.6k|}
_ZNK7llvm_ks14MCObjectWriter34isSymbolRefDifferenceFullyResolvedERKNS_11MCAssemblerEPKNS_15MCSymbolRefExprES6_bRb:
   23|  10.5k|{
   24|  10.5k|  valid = true;
   25|       |  // Modified symbol references cannot be resolved.
   26|  10.5k|  if (A->getKind() != MCSymbolRefExpr::VK_None ||
  ------------------
  |  Branch (26:7): [True: 29, False: 10.5k]
  ------------------
   27|  10.5k|      B->getKind() != MCSymbolRefExpr::VK_None)
  ------------------
  |  Branch (27:7): [True: 50, False: 10.4k]
  ------------------
   28|     79|    return false;
   29|       |
   30|  10.4k|  const MCSymbol &SA = A->getSymbol();
   31|  10.4k|  const MCSymbol &SB = B->getSymbol();
   32|  10.4k|  if (SA.isUndefined() || SB.isUndefined())
  ------------------
  |  Branch (32:7): [True: 0, False: 10.4k]
  |  Branch (32:27): [True: 0, False: 10.4k]
  ------------------
   33|      0|    return false;
   34|       |
   35|  10.4k|  if (!SA.getFragment() || !SB.getFragment())
  ------------------
  |  Branch (35:7): [True: 0, False: 10.4k]
  |  Branch (35:28): [True: 0, False: 10.4k]
  ------------------
   36|      0|    return false;
   37|       |
   38|  10.4k|  if (!SA.isInSection()) {
  ------------------
  |  Branch (38:7): [True: 70, False: 10.3k]
  ------------------
   39|     70|      valid = false;
   40|     70|      return false;
   41|     70|  }
   42|  10.3k|  return isSymbolRefDifferenceFullyResolvedImpl(Asm, SA, SB, InSet);
   43|  10.4k|}
_ZNK7llvm_ks14MCObjectWriter38isSymbolRefDifferenceFullyResolvedImplERKNS_11MCAssemblerERKNS_8MCSymbolES6_b:
   47|  10.3k|    bool InSet) const {
   48|  10.3k|  return isSymbolRefDifferenceFullyResolvedImpl(Asm, A, *B.getFragment(), InSet,
   49|  10.3k|                                                false);
   50|  10.3k|}
_ZNK7llvm_ks14MCObjectWriter38isSymbolRefDifferenceFullyResolvedImplERKNS_11MCAssemblerERKNS_8MCSymbolERKNS_10MCFragmentEbb:
   54|  10.5k|    bool InSet, bool IsPCRel) const {
   55|  10.5k|  const MCSection &SecA = SymA.getSection();
   56|  10.5k|  const MCSection &SecB = *FB.getParent();
   57|       |  // On ELF and COFF  A - B is absolute if A and B are in the same section.
   58|  10.5k|  return &SecA == &SecB;
   59|  10.5k|}

_ZN7llvm_ks8AsmLexerC2ERKNS_9MCAsmInfoE:
   24|  13.6k|AsmLexer::AsmLexer(const MCAsmInfo &MAI) : MAI(MAI) {
   25|  13.6k|  CurPtr = nullptr;
   26|  13.6k|  isAtStartOfLine = true;
   27|  13.6k|  AllowAtInIdentifier = !StringRef(MAI.getCommentString()).startswith("@");
   28|  13.6k|  defaultRadix = MAI.getRadix();
   29|  13.6k|}
_ZN7llvm_ks8AsmLexerD2Ev:
   31|  13.6k|AsmLexer::~AsmLexer() {
   32|  13.6k|}
_ZN7llvm_ks8AsmLexer9setBufferENS_9StringRefEPKc:
   34|  77.7k|void AsmLexer::setBuffer(StringRef Buf, const char *ptr) {
   35|  77.7k|  CurBuf = Buf;
   36|       |
   37|  77.7k|  if (ptr)
  ------------------
  |  Branch (37:7): [True: 31.9k, False: 45.8k]
  ------------------
   38|  31.9k|    CurPtr = ptr;
   39|  45.8k|  else
   40|  45.8k|    CurPtr = CurBuf.begin();
   41|       |
   42|  77.7k|  TokStart = nullptr;
   43|  77.7k|}
_ZN7llvm_ks8AsmLexer11ReturnErrorEPKcRKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
   48|  1.07M|{
   49|       |  //SetError(SMLoc::getFromPointer(Loc), Msg);
   50|       |
   51|  1.07M|  return AsmToken(AsmToken::Error, StringRef(Loc, 0));
   52|  1.07M|}
_ZN7llvm_ks8AsmLexer11getNextCharEv:
   54|  21.2M|int AsmLexer::getNextChar() {
   55|  21.2M|  char CurChar = *CurPtr++;
   56|  21.2M|  switch (CurChar) {
   57|  21.2M|  default:
  ------------------
  |  Branch (57:3): [True: 21.2M, False: 21.7k]
  ------------------
   58|  21.2M|    return (unsigned char)CurChar;
   59|  21.7k|  case 0:
  ------------------
  |  Branch (59:3): [True: 21.7k, False: 21.2M]
  ------------------
   60|       |    // A nul character in the stream is either the end of the current buffer or
   61|       |    // a random nul in the file.  Disambiguate that here.
   62|  21.7k|    if (CurPtr - 1 != CurBuf.end())
  ------------------
  |  Branch (62:9): [True: 0, False: 21.7k]
  ------------------
   63|      0|      return 0;  // Just whitespace.
   64|       |
   65|       |    // Otherwise, return end of file.
   66|  21.7k|    --CurPtr;  // Another call to lex will return EOF again.
   67|       |    return EOF;
   68|  21.2M|  }
   69|  21.2M|}
_ZN7llvm_ks8AsmLexer15LexFloatLiteralEv:
   76|  27.3k|AsmToken AsmLexer::LexFloatLiteral() {
   77|       |  // Skip the fractional digit sequence.
   78|  27.3k|  while (isdigit(*CurPtr))
  ------------------
  |  Branch (78:10): [True: 0, False: 27.3k]
  ------------------
   79|      0|    ++CurPtr;
   80|       |
   81|       |  // Check for exponent; we intentionally accept a slighlty wider set of
   82|       |  // literals here and rely on the upstream client to reject invalid ones (e.g.,
   83|       |  // "1e+").
   84|  27.3k|  if (*CurPtr == 'e' || *CurPtr == 'E') {
  ------------------
  |  Branch (84:7): [True: 2.15k, False: 25.1k]
  |  Branch (84:25): [True: 4.57k, False: 20.6k]
  ------------------
   85|  6.72k|    ++CurPtr;
   86|  6.72k|    if (*CurPtr == '-' || *CurPtr == '+')
  ------------------
  |  Branch (86:9): [True: 1.57k, False: 5.15k]
  |  Branch (86:27): [True: 786, False: 4.36k]
  ------------------
   87|  2.36k|      ++CurPtr;
   88|  23.8k|    while (isdigit(*CurPtr))
  ------------------
  |  Branch (88:12): [True: 17.0k, False: 6.72k]
  ------------------
   89|  17.0k|      ++CurPtr;
   90|  6.72k|  }
   91|       |
   92|  27.3k|  return AsmToken(AsmToken::Real,
   93|  27.3k|                  StringRef(TokStart, CurPtr - TokStart));
   94|  27.3k|}
_ZN7llvm_ks8AsmLexer18LexHexFloatLiteralEb:
  103|  6.97k|{
  104|  6.97k|  assert((*CurPtr == 'p' || *CurPtr == 'P' || *CurPtr == '.') &&
  ------------------
  |  Branch (104:3): [True: 3.56k, False: 3.40k]
  |  Branch (104:3): [True: 2.51k, False: 885]
  |  Branch (104:3): [True: 885, False: 0]
  |  Branch (104:3): [True: 6.97k, Folded]
  |  Branch (104:3): [True: 6.97k, False: 0]
  ------------------
  105|  6.97k|         "unexpected parse state in floating hex");
  106|  6.97k|  bool NoFracDigits = true;
  107|       |
  108|       |  // Skip the fractional part if there is one
  109|  6.97k|  if (*CurPtr == '.') {
  ------------------
  |  Branch (109:7): [True: 885, False: 6.08k]
  ------------------
  110|    885|    ++CurPtr;
  111|       |
  112|    885|    const char *FracStart = CurPtr;
  113|  20.2k|    while (isxdigit(*CurPtr))
  ------------------
  |  Branch (113:12): [True: 19.3k, False: 885]
  ------------------
  114|  19.3k|      ++CurPtr;
  115|       |
  116|    885|    NoFracDigits = CurPtr == FracStart;
  117|    885|  }
  118|       |
  119|  6.97k|  if (NoIntDigits && NoFracDigits)
  ------------------
  |  Branch (119:7): [True: 1.30k, False: 5.66k]
  |  Branch (119:22): [True: 717, False: 591]
  ------------------
  120|    717|    return ReturnError(TokStart, "invalid hexadecimal floating-point constant: "
  121|    717|                                 "expected at least one significand digit");
  122|       |
  123|       |  // Make sure we do have some kind of proper exponent part
  124|  6.25k|  if (*CurPtr != 'p' && *CurPtr != 'P')
  ------------------
  |  Branch (124:7): [True: 2.51k, False: 3.73k]
  |  Branch (124:25): [True: 260, False: 2.25k]
  ------------------
  125|    260|    return ReturnError(TokStart, "invalid hexadecimal floating-point constant: "
  126|    260|                                 "expected exponent part 'p'");
  127|  5.99k|  ++CurPtr;
  128|       |
  129|  5.99k|  if (*CurPtr == '+' || *CurPtr == '-')
  ------------------
  |  Branch (129:7): [True: 1.17k, False: 4.82k]
  |  Branch (129:25): [True: 2.38k, False: 2.43k]
  ------------------
  130|  3.56k|    ++CurPtr;
  131|       |
  132|       |  // N.b. exponent digits are *not* hex
  133|  5.99k|  const char *ExpStart = CurPtr;
  134|  30.2k|  while (isdigit(*CurPtr))
  ------------------
  |  Branch (134:10): [True: 24.3k, False: 5.99k]
  ------------------
  135|  24.3k|    ++CurPtr;
  136|       |
  137|  5.99k|  if (CurPtr == ExpStart)
  ------------------
  |  Branch (137:7): [True: 632, False: 5.36k]
  ------------------
  138|    632|    return ReturnError(TokStart, "invalid hexadecimal floating-point constant: "
  139|    632|                                 "expected at least one exponent digit");
  140|       |
  141|  5.36k|  return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart));
  142|  5.99k|}
_ZN7llvm_ks8AsmLexer13LexIdentifierEv:
  149|  3.07M|AsmToken AsmLexer::LexIdentifier() {
  150|       |  // Check for floating point literals.
  151|  3.07M|  if (CurPtr[-1] == '.' && isdigit(*CurPtr)) {
  ------------------
  |  Branch (151:7): [True: 1.56M, False: 1.50M]
  |  Branch (151:28): [True: 40.3k, False: 1.52M]
  ------------------
  152|       |    // Disambiguate a .1243foo identifier from a floating literal.
  153|   299k|    while (isdigit(*CurPtr))
  ------------------
  |  Branch (153:12): [True: 259k, False: 40.3k]
  ------------------
  154|   259k|      ++CurPtr;
  155|  40.3k|    if (*CurPtr == 'e' || *CurPtr == 'E' ||
  ------------------
  |  Branch (155:9): [True: 2.15k, False: 38.1k]
  |  Branch (155:27): [True: 4.57k, False: 33.6k]
  ------------------
  156|  33.6k|        !IsIdentifierChar(*CurPtr, AllowAtInIdentifier))
  ------------------
  |  Branch (156:9): [True: 20.6k, False: 12.9k]
  ------------------
  157|  27.3k|      return LexFloatLiteral();
  158|  40.3k|  }
  159|       |
  160|  18.6M|  while (IsIdentifierChar(*CurPtr, AllowAtInIdentifier))
  ------------------
  |  Branch (160:10): [True: 15.5M, False: 3.04M]
  ------------------
  161|  15.5M|    ++CurPtr;
  162|       |
  163|       |  // Handle . as a special case.
  164|  3.04M|  if (CurPtr == TokStart+1 && TokStart[0] == '.')
  ------------------
  |  Branch (164:7): [True: 1.41M, False: 1.63M]
  |  Branch (164:31): [True: 576k, False: 838k]
  ------------------
  165|   576k|    return AsmToken(AsmToken::Dot, StringRef(TokStart, 1));
  166|       |
  167|  2.47M|  return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart));
  168|  3.04M|}
_ZN7llvm_ks8AsmLexer8LexSlashEv:
  173|  14.2k|{
  174|  14.2k|  switch (*CurPtr) {
  175|    288|  case '*': break; // C style comment.
  ------------------
  |  Branch (175:3): [True: 288, False: 13.9k]
  ------------------
  176|  5.63k|  case '/': return ++CurPtr, LexLineComment();
  ------------------
  |  Branch (176:3): [True: 5.63k, False: 8.58k]
  ------------------
  177|  8.29k|  default:  return AsmToken(AsmToken::Slash, StringRef(CurPtr-1, 1));
  ------------------
  |  Branch (177:3): [True: 8.29k, False: 5.91k]
  ------------------
  178|  14.2k|  }
  179|       |
  180|       |  // C Style comment.
  181|    288|  ++CurPtr;  // skip the star.
  182|  1.85k|  while (1) {
  ------------------
  |  Branch (182:10): [True: 1.85k, Folded]
  ------------------
  183|  1.85k|    int CurChar = getNextChar();
  184|  1.85k|    switch (CurChar) {
  ------------------
  |  Branch (184:13): [True: 665, False: 1.18k]
  ------------------
  185|     52|    case EOF:
  ------------------
  |  Branch (185:5): [True: 52, False: 1.79k]
  ------------------
  186|     52|      return ReturnError(TokStart, "unterminated comment");
  187|    613|    case '*':
  ------------------
  |  Branch (187:5): [True: 613, False: 1.23k]
  ------------------
  188|       |      // End of the comment?
  189|    613|      if (CurPtr[0] != '/') break;
  ------------------
  |  Branch (189:11): [True: 377, False: 236]
  ------------------
  190|       |
  191|    236|      ++CurPtr;   // End the */.
  192|    236|      return LexToken();
  193|  1.85k|    }
  194|  1.85k|  }
  195|    288|}
_ZN7llvm_ks8AsmLexer14LexLineCommentEv:
  199|  28.8k|AsmToken AsmLexer::LexLineComment() {
  200|       |  // FIXME: This is broken if we happen to a comment at the end of a file, which
  201|       |  // was .included, and which doesn't end with a newline.
  202|  28.8k|  int CurChar = getNextChar();
  203|   554k|  while (CurChar != '\n' && CurChar != '\r' && CurChar != EOF)
  ------------------
  |  Branch (203:10): [True: 537k, False: 17.6k]
  |  Branch (203:29): [True: 526k, False: 10.9k]
  |  Branch (203:48): [True: 526k, False: 186]
  ------------------
  204|   526k|    CurChar = getNextChar();
  205|       |
  206|  28.8k|  if (CurChar == EOF)
  ------------------
  |  Branch (206:7): [True: 186, False: 28.6k]
  ------------------
  207|    186|    return AsmToken(AsmToken::Eof, StringRef(TokStart, 0));
  208|  28.6k|  return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 0));
  209|  28.8k|}
_ZN7llvm_ks8AsmLexer8LexDigitEv:
  259|   606k|{
  260|       |  // Decimal integer: [1-9][0-9]*
  261|   606k|  if (CurPtr[-1] != '0' || CurPtr[0] == '.') {
  ------------------
  |  Branch (261:7): [True: 368k, False: 238k]
  |  Branch (261:28): [True: 2.71k, False: 235k]
  ------------------
  262|   370k|    unsigned Radix = doLookAhead(CurPtr, 10);
  263|       |
  264|   370k|    if (defaultRadix == 16)
  ------------------
  |  Branch (264:9): [True: 370k, False: 0]
  ------------------
  265|   370k|      Radix = 16;
  266|       |
  267|   370k|    bool isHex = Radix == 16;
  268|       |    // Check for floating point literals.
  269|   370k|    if (!isHex && (*CurPtr == '.' || *CurPtr == 'e')) {
  ------------------
  |  Branch (269:9): [True: 0, False: 370k]
  |  Branch (269:20): [True: 0, False: 0]
  |  Branch (269:38): [True: 0, False: 0]
  ------------------
  270|      0|      ++CurPtr;
  271|      0|      return LexFloatLiteral();
  272|      0|    }
  273|       |
  274|   370k|    StringRef Result(TokStart, CurPtr - TokStart);
  275|       |
  276|   370k|    APInt Value(128, 0, true);
  277|   370k|    if (Result.getAsInteger(Radix, Value))
  ------------------
  |  Branch (277:9): [True: 0, False: 370k]
  ------------------
  278|      0|      return ReturnError(TokStart, !isHex ? "invalid decimal number" :
  ------------------
  |  Branch (278:36): [True: 0, False: 0]
  ------------------
  279|      0|                           "invalid hexdecimal number");
  280|       |
  281|       |    // Consume the [bB][hH].
  282|   370k|    if (defaultRadix != 16) {
  ------------------
  |  Branch (282:9): [True: 0, False: 370k]
  ------------------
  283|      0|      if (Radix == 2 || Radix == 16)
  ------------------
  |  Branch (283:11): [True: 0, False: 0]
  |  Branch (283:25): [True: 0, False: 0]
  ------------------
  284|      0|        ++CurPtr;
  285|      0|    }
  286|       |
  287|       |    // The darwin/x86 (and x86-64) assembler accepts and ignores type
  288|       |    // suffices on integer literals.
  289|   370k|    SkipIgnoredIntegerSuffix(CurPtr);
  290|       |
  291|   370k|    return intToken(Result, Value);
  292|   370k|  }
  293|       |
  294|   235k|  if (*CurPtr == 'b') {
  ------------------
  |  Branch (294:7): [True: 31.3k, False: 204k]
  ------------------
  295|  31.3k|    ++CurPtr;
  296|       |    // See if we actually have "0b" as part of something like "jmp 0b\n"
  297|  31.3k|    if (!isdigit(CurPtr[0])) {
  ------------------
  |  Branch (297:9): [True: 18.8k, False: 12.4k]
  ------------------
  298|  18.8k|      --CurPtr;
  299|  18.8k|      StringRef Result(TokStart, CurPtr - TokStart);
  300|  18.8k|      return AsmToken(AsmToken::Integer, Result, 0);
  301|  18.8k|    }
  302|  12.4k|    const char *NumStart = CurPtr;
  303|  44.9k|    while (CurPtr[0] == '0' || CurPtr[0] == '1')
  ------------------
  |  Branch (303:12): [True: 17.5k, False: 27.4k]
  |  Branch (303:32): [True: 14.9k, False: 12.4k]
  ------------------
  304|  32.5k|      ++CurPtr;
  305|       |
  306|       |    // Requires at least one binary digit.
  307|  12.4k|    if (CurPtr == NumStart)
  ------------------
  |  Branch (307:9): [True: 758, False: 11.7k]
  ------------------
  308|    758|      return ReturnError(TokStart, "invalid binary number");
  309|       |
  310|  11.7k|    StringRef Result(TokStart, CurPtr - TokStart);
  311|       |
  312|  11.7k|    APInt Value(128, 0, true);
  313|  11.7k|    if (Result.substr(2).getAsInteger(2, Value))
  ------------------
  |  Branch (313:9): [True: 0, False: 11.7k]
  ------------------
  314|      0|      return ReturnError(TokStart, "invalid binary number");
  315|       |
  316|       |    // The darwin/x86 (and x86-64) assembler accepts and ignores ULL and LL
  317|       |    // suffixes on integer literals.
  318|  11.7k|    SkipIgnoredIntegerSuffix(CurPtr);
  319|       |
  320|  11.7k|    return intToken(Result, Value);
  321|  11.7k|  }
  322|       |
  323|   204k|  if (*CurPtr == 'x' || *CurPtr == 'X') {
  ------------------
  |  Branch (323:7): [True: 10.2k, False: 193k]
  |  Branch (323:25): [True: 2.47k, False: 191k]
  ------------------
  324|  12.6k|    ++CurPtr;
  325|  12.6k|    const char *NumStart = CurPtr;
  326|   102k|    while (isxdigit(CurPtr[0]))
  ------------------
  |  Branch (326:12): [True: 90.2k, False: 12.6k]
  ------------------
  327|  90.2k|      ++CurPtr;
  328|       |
  329|       |    // "0x.0p0" is valid, and "0x0p0" (but not "0xp0" for example, which will be
  330|       |    // diagnosed by LexHexFloatLiteral).
  331|  12.6k|    if (CurPtr[0] == '.' || CurPtr[0] == 'p' || CurPtr[0] == 'P')
  ------------------
  |  Branch (331:9): [True: 885, False: 11.8k]
  |  Branch (331:29): [True: 3.56k, False: 8.24k]
  |  Branch (331:49): [True: 2.51k, False: 5.72k]
  ------------------
  332|  6.97k|      return LexHexFloatLiteral(NumStart == CurPtr);
  333|       |
  334|       |    // Otherwise requires at least one hex digit.
  335|  5.72k|    if (CurPtr == NumStart)
  ------------------
  |  Branch (335:9): [True: 824, False: 4.89k]
  ------------------
  336|    824|      return ReturnError(CurPtr-2, "invalid hexadecimal number");
  337|       |
  338|  4.89k|    APInt Result(128, 0);
  339|  4.89k|    if (StringRef(TokStart, CurPtr - TokStart).getAsInteger(0, Result))
  ------------------
  |  Branch (339:9): [True: 0, False: 4.89k]
  ------------------
  340|      0|      return ReturnError(TokStart, "invalid hexadecimal number");
  341|       |
  342|       |    // Consume the optional [hH].
  343|  4.89k|    if (*CurPtr == 'h' || *CurPtr == 'H')
  ------------------
  |  Branch (343:9): [True: 202, False: 4.69k]
  |  Branch (343:27): [True: 68, False: 4.62k]
  ------------------
  344|    270|      ++CurPtr;
  345|       |
  346|       |    // The darwin/x86 (and x86-64) assembler accepts and ignores ULL and LL
  347|       |    // suffixes on integer literals.
  348|  4.89k|    SkipIgnoredIntegerSuffix(CurPtr);
  349|       |
  350|  4.89k|    return intToken(StringRef(TokStart, CurPtr - TokStart), Result);
  351|  4.89k|  }
  352|       |
  353|       |  // Either octal or hexadecimal.
  354|   191k|  APInt Value(128, 0, true);
  355|   191k|  unsigned Radix = doLookAhead(CurPtr, 8);
  356|   191k|  bool isHex = Radix == 16;
  357|   191k|  StringRef Result(TokStart, CurPtr - TokStart);
  358|   191k|  if (Result.getAsInteger(Radix, Value))
  ------------------
  |  Branch (358:7): [True: 1.89k, False: 189k]
  ------------------
  359|  1.89k|    return ReturnError(TokStart, !isHex ? "invalid octal number" :
  ------------------
  |  Branch (359:34): [True: 1.89k, False: 0]
  ------------------
  360|  1.89k|                       "invalid hexdecimal number");
  361|       |
  362|       |  // Consume the [hH].
  363|   189k|  if (Radix == 16)
  ------------------
  |  Branch (363:7): [True: 295, False: 189k]
  ------------------
  364|    295|    ++CurPtr;
  365|       |
  366|       |  // The darwin/x86 (and x86-64) assembler accepts and ignores ULL and LL
  367|       |  // suffixes on integer literals.
  368|   189k|  SkipIgnoredIntegerSuffix(CurPtr);
  369|       |
  370|   189k|  return intToken(Result, Value);
  371|   191k|}
_ZN7llvm_ks8AsmLexer14LexSingleQuoteEv:
  375|  15.7k|{
  376|  15.7k|  int CurChar = getNextChar();
  377|       |
  378|  15.7k|  if (CurChar == '\\')
  ------------------
  |  Branch (378:7): [True: 1.80k, False: 13.9k]
  ------------------
  379|  1.80k|    CurChar = getNextChar();
  380|       |
  381|  15.7k|  if (CurChar == EOF)
  ------------------
  |  Branch (381:7): [True: 36, False: 15.6k]
  ------------------
  382|     36|    return ReturnError(TokStart, "unterminated single quote");
  383|       |
  384|  15.6k|  CurChar = getNextChar();
  385|       |
  386|  15.6k|  if (CurChar != '\'')
  ------------------
  |  Branch (386:7): [True: 12.6k, False: 2.97k]
  ------------------
  387|  12.6k|    return ReturnError(TokStart, "single quote way too long");
  388|       |
  389|       |  // The idea here being that 'c' is basically just an integral
  390|       |  // constant.
  391|  2.97k|  StringRef Res = StringRef(TokStart,CurPtr - TokStart);
  392|  2.97k|  long long Value;
  393|       |
  394|  2.97k|  if (Res.startswith("\'\\")) {
  ------------------
  |  Branch (394:7): [True: 1.67k, False: 1.30k]
  ------------------
  395|  1.67k|    char theChar = Res[2];
  396|  1.67k|    switch (theChar) {
  397|    303|      default: Value = theChar; break;
  ------------------
  |  Branch (397:7): [True: 303, False: 1.36k]
  ------------------
  398|    347|      case '\'': Value = '\''; break;
  ------------------
  |  Branch (398:7): [True: 347, False: 1.32k]
  ------------------
  399|    389|      case 't': Value = '\t'; break;
  ------------------
  |  Branch (399:7): [True: 389, False: 1.28k]
  ------------------
  400|     73|      case 'n': Value = '\n'; break;
  ------------------
  |  Branch (400:7): [True: 73, False: 1.59k]
  ------------------
  401|    560|      case 'b': Value = '\b'; break;
  ------------------
  |  Branch (401:7): [True: 560, False: 1.11k]
  ------------------
  402|  1.67k|    }
  403|  1.67k|  } else
  404|  1.30k|    Value = TokStart[1];
  405|       |
  406|  2.97k|  return AsmToken(AsmToken::Integer, Res, Value);
  407|  2.97k|}
_ZN7llvm_ks8AsmLexer8LexQuoteEv:
  412|   207k|{
  413|   207k|  int CurChar = getNextChar();
  414|       |  // TODO: does gas allow multiline string constants?
  415|  1.00M|  while (CurChar != '"') {
  ------------------
  |  Branch (415:10): [True: 797k, False: 207k]
  ------------------
  416|   797k|    if (CurChar == '\\') {
  ------------------
  |  Branch (416:9): [True: 38.5k, False: 759k]
  ------------------
  417|       |      // Allow \", etc.
  418|  38.5k|      CurChar = getNextChar();
  419|  38.5k|    }
  420|       |
  421|   797k|    if (CurChar == EOF)
  ------------------
  |  Branch (421:9): [True: 172, False: 797k]
  ------------------
  422|    172|      return ReturnError(TokStart, "unterminated string constant");
  423|       |
  424|   797k|    CurChar = getNextChar();
  425|   797k|  }
  426|       |
  427|   207k|  return AsmToken(AsmToken::String, StringRef(TokStart, CurPtr - TokStart));
  428|   207k|}
_ZN7llvm_ks8AsmLexer22LexUntilEndOfStatementEv:
  430|    661|StringRef AsmLexer::LexUntilEndOfStatement() {
  431|    661|  TokStart = CurPtr;
  432|       |
  433|  53.0k|  while (!isAtStartOfComment(CurPtr) &&     // Start of line comment.
  ------------------
  |  Branch (433:10): [True: 53.0k, False: 36]
  ------------------
  434|  53.0k|         !isAtStatementSeparator(CurPtr) && // End of statement marker.
  ------------------
  |  Branch (434:10): [True: 52.8k, False: 143]
  ------------------
  435|  52.8k|         *CurPtr != '\n' && *CurPtr != '\r' &&
  ------------------
  |  Branch (435:10): [True: 52.6k, False: 237]
  |  Branch (435:29): [True: 52.5k, False: 82]
  ------------------
  436|  52.5k|         (*CurPtr != 0 || CurPtr != CurBuf.end())) {
  ------------------
  |  Branch (436:11): [True: 52.4k, False: 163]
  |  Branch (436:27): [True: 0, False: 163]
  ------------------
  437|  52.4k|    ++CurPtr;
  438|  52.4k|  }
  439|    661|  return StringRef(TokStart, CurPtr-TokStart);
  440|    661|}
_ZN7llvm_ks8AsmLexer17LexUntilEndOfLineEv:
  442|  33.0k|StringRef AsmLexer::LexUntilEndOfLine() {
  443|  33.0k|  TokStart = CurPtr;
  444|       |
  445|   247k|  while (*CurPtr != '\n' && *CurPtr != '\r' &&
  ------------------
  |  Branch (445:10): [True: 239k, False: 7.94k]
  |  Branch (445:29): [True: 214k, False: 24.9k]
  ------------------
  446|   214k|         (*CurPtr != 0 || CurPtr != CurBuf.end())) {
  ------------------
  |  Branch (446:11): [True: 214k, False: 91]
  |  Branch (446:27): [True: 0, False: 91]
  ------------------
  447|   214k|    ++CurPtr;
  448|   214k|  }
  449|  33.0k|  return StringRef(TokStart, CurPtr-TokStart);
  450|  33.0k|}
_ZN7llvm_ks8AsmLexer10peekTokensENS_15MutableArrayRefINS_8AsmTokenEEEb:
  454|  21.2k|{
  455|  21.2k|  const char *SavedTokStart = TokStart;
  456|  21.2k|  const char *SavedCurPtr = CurPtr;
  457|  21.2k|  bool SavedAtStartOfLine = isAtStartOfLine;
  458|  21.2k|  bool SavedSkipSpace = SkipSpace;
  459|       |
  460|  21.2k|  std::string SavedErr = getErr();
  461|  21.2k|  SMLoc SavedErrLoc = getErrLoc();
  462|       |
  463|  21.2k|  SkipSpace = ShouldSkipSpace;
  464|       |
  465|  21.2k|  size_t ReadCount;
  466|  43.6k|  for (ReadCount = 0; ReadCount < Buf.size(); ++ReadCount) {
  ------------------
  |  Branch (466:23): [True: 22.4k, False: 21.1k]
  ------------------
  467|  22.4k|    AsmToken Token = LexToken();
  468|       |
  469|  22.4k|    Buf[ReadCount] = Token;
  470|       |
  471|  22.4k|    if (Token.is(AsmToken::Eof))
  ------------------
  |  Branch (471:9): [True: 32, False: 22.3k]
  ------------------
  472|     32|      break;
  473|  22.4k|  }
  474|       |
  475|  21.2k|  SetError(SavedErrLoc, SavedErr);
  476|       |
  477|  21.2k|  SkipSpace = SavedSkipSpace;
  478|  21.2k|  isAtStartOfLine = SavedAtStartOfLine;
  479|  21.2k|  CurPtr = SavedCurPtr;
  480|  21.2k|  TokStart = SavedTokStart;
  481|       |
  482|  21.2k|  return ReadCount;
  483|  21.2k|}
_ZN7llvm_ks8AsmLexer18isAtStartOfCommentEPKc:
  485|  19.6M|bool AsmLexer::isAtStartOfComment(const char *Ptr) {
  486|  19.6M|  const char *CommentString = MAI.getCommentString();
  487|       |
  488|  19.6M|  if (CommentString[1] == '\0')
  ------------------
  |  Branch (488:7): [True: 19.6M, False: 0]
  ------------------
  489|  19.6M|    return CommentString[0] == Ptr[0];
  490|       |
  491|       |  // FIXME: special case for the bogus "##" comment string in X86MCAsmInfoDarwin
  492|      0|  if (CommentString[1] == '#')
  ------------------
  |  Branch (492:7): [True: 0, False: 0]
  ------------------
  493|      0|    return CommentString[0] == Ptr[0];
  494|       |
  495|      0|  return strncmp(Ptr, CommentString, strlen(CommentString)) == 0;
  496|      0|}
_ZN7llvm_ks8AsmLexer22isAtStatementSeparatorEPKc:
  498|  19.6M|bool AsmLexer::isAtStatementSeparator(const char *Ptr) {
  499|  19.6M|  return strncmp(Ptr, MAI.getSeparatorString(),
  500|  19.6M|                 strlen(MAI.getSeparatorString())) == 0;
  501|  19.6M|}
_ZN7llvm_ks8AsmLexer8LexTokenEv:
  504|  19.6M|{
  505|  19.6M|  TokStart = CurPtr;
  506|       |  // This always consumes at least one character.
  507|  19.6M|  int CurChar = getNextChar();
  508|       |
  509|  19.6M|  if (isAtStartOfComment(TokStart)) {
  ------------------
  |  Branch (509:7): [True: 60.3k, False: 19.5M]
  ------------------
  510|       |    // If this comment starts with a '#', then return the Hash token and let
  511|       |    // the assembler parser see if it can be parsed as a cpp line filename
  512|       |    // comment. We do this only if we are at the start of a line.
  513|  60.3k|    if (CurChar == '#' && isAtStartOfLine)
  ------------------
  |  Branch (513:9): [True: 60.3k, False: 0]
  |  Branch (513:27): [True: 37.1k, False: 23.1k]
  ------------------
  514|  37.1k|      return AsmToken(AsmToken::Hash, StringRef(TokStart, 1));
  515|  23.1k|    isAtStartOfLine = true;
  516|  23.1k|    return LexLineComment();
  517|  60.3k|  }
  518|  19.5M|  if (isAtStatementSeparator(TokStart)) {
  ------------------
  |  Branch (518:7): [True: 9.05M, False: 10.4M]
  ------------------
  519|  9.05M|    CurPtr += strlen(MAI.getSeparatorString()) - 1;
  520|  9.05M|    return AsmToken(AsmToken::EndOfStatement,
  521|  9.05M|                    StringRef(TokStart, strlen(MAI.getSeparatorString())));
  522|  9.05M|  }
  523|       |
  524|       |  // If we're missing a newline at EOF, make sure we still get an
  525|       |  // EndOfStatement token before the Eof token.
  526|  10.4M|  if (CurChar == EOF && !isAtStartOfLine) {
  ------------------
  |  Branch (526:7): [True: 21.2k, False: 10.4M]
  |  Branch (526:25): [True: 11.3k, False: 9.92k]
  ------------------
  527|  11.3k|    isAtStartOfLine = true;
  528|  11.3k|    return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1));
  529|  11.3k|  }
  530|       |
  531|  10.4M|  isAtStartOfLine = false;
  532|  10.4M|  switch (CurChar) {
  533|  4.13M|  default:
  ------------------
  |  Branch (533:3): [True: 4.13M, False: 6.35M]
  ------------------
  534|       |    // Handle identifier: [a-zA-Z_.][a-zA-Z0-9_$.@]*
  535|  4.13M|    if (isalpha(CurChar) || CurChar == '_' || CurChar == '.')
  ------------------
  |  Branch (535:9): [True: 1.47M, False: 2.66M]
  |  Branch (535:29): [True: 34.8k, False: 2.63M]
  |  Branch (535:47): [True: 1.56M, False: 1.06M]
  ------------------
  536|  3.07M|      return LexIdentifier();
  537|       |
  538|       |    // Unknown character, emit an error.
  539|  1.06M|    return ReturnError(TokStart, "invalid character in input");
  540|  9.92k|  case EOF: return AsmToken(AsmToken::Eof, StringRef(TokStart, 0));
  ------------------
  |  Branch (540:3): [True: 9.92k, False: 10.4M]
  ------------------
  541|      0|  case 0:
  ------------------
  |  Branch (541:3): [True: 0, False: 10.4M]
  ------------------
  542|   232k|  case ' ':
  ------------------
  |  Branch (542:3): [True: 232k, False: 10.2M]
  ------------------
  543|   257k|  case '\t':
  ------------------
  |  Branch (543:3): [True: 25.2k, False: 10.4M]
  ------------------
  544|   257k|    if (SkipSpace) {
  ------------------
  |  Branch (544:9): [True: 257k, False: 0]
  ------------------
  545|       |      // Ignore whitespace.
  546|   257k|      return LexToken();
  547|   257k|    } else {
  548|      0|      int len = 1;
  549|      0|      while (*CurPtr==' ' || *CurPtr=='\t') {
  ------------------
  |  Branch (549:14): [True: 0, False: 0]
  |  Branch (549:30): [True: 0, False: 0]
  ------------------
  550|      0|        CurPtr++;
  551|      0|        len++;
  552|      0|      }
  553|      0|      return AsmToken(AsmToken::Space, StringRef(TokStart, len));
  554|      0|    }
  555|   390k|  case '\n': // FALL THROUGH.
  ------------------
  |  Branch (555:3): [True: 390k, False: 10.0M]
  ------------------
  556|   625k|  case '\r':
  ------------------
  |  Branch (556:3): [True: 234k, False: 10.2M]
  ------------------
  557|   625k|    isAtStartOfLine = true;
  558|   625k|    return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 1));
  559|  6.43k|  case ':': return AsmToken(AsmToken::Colon, StringRef(TokStart, 1));
  ------------------
  |  Branch (559:3): [True: 6.43k, False: 10.4M]
  ------------------
  560|   351k|  case '+': return AsmToken(AsmToken::Plus, StringRef(TokStart, 1));
  ------------------
  |  Branch (560:3): [True: 351k, False: 10.1M]
  ------------------
  561|   892k|  case '-': return AsmToken(AsmToken::Minus, StringRef(TokStart, 1));
  ------------------
  |  Branch (561:3): [True: 892k, False: 9.59M]
  ------------------
  562|  78.6k|  case '~': return AsmToken(AsmToken::Tilde, StringRef(TokStart, 1));
  ------------------
  |  Branch (562:3): [True: 78.6k, False: 10.4M]
  ------------------
  563|  89.0k|  case '(': return AsmToken(AsmToken::LParen, StringRef(TokStart, 1));
  ------------------
  |  Branch (563:3): [True: 89.0k, False: 10.3M]
  ------------------
  564|  75.2k|  case ')': return AsmToken(AsmToken::RParen, StringRef(TokStart, 1));
  ------------------
  |  Branch (564:3): [True: 75.2k, False: 10.4M]
  ------------------
  565|  7.19k|  case '[': return AsmToken(AsmToken::LBrac, StringRef(TokStart, 1));
  ------------------
  |  Branch (565:3): [True: 7.19k, False: 10.4M]
  ------------------
  566|  3.20k|  case ']': return AsmToken(AsmToken::RBrac, StringRef(TokStart, 1));
  ------------------
  |  Branch (566:3): [True: 3.20k, False: 10.4M]
  ------------------
  567|  18.0k|  case '{': return AsmToken(AsmToken::LCurly, StringRef(TokStart, 1));
  ------------------
  |  Branch (567:3): [True: 18.0k, False: 10.4M]
  ------------------
  568|  4.63k|  case '}': return AsmToken(AsmToken::RCurly, StringRef(TokStart, 1));
  ------------------
  |  Branch (568:3): [True: 4.63k, False: 10.4M]
  ------------------
  569|  36.5k|  case '*': return AsmToken(AsmToken::Star, StringRef(TokStart, 1));
  ------------------
  |  Branch (569:3): [True: 36.5k, False: 10.4M]
  ------------------
  570|  2.21M|  case ',': return AsmToken(AsmToken::Comma, StringRef(TokStart, 1));
  ------------------
  |  Branch (570:3): [True: 2.21M, False: 8.27M]
  ------------------
  571|   194k|  case '$': return AsmToken(AsmToken::Dollar, StringRef(TokStart, 1));
  ------------------
  |  Branch (571:3): [True: 194k, False: 10.2M]
  ------------------
  572|  67.3k|  case '@': return AsmToken(AsmToken::At, StringRef(TokStart, 1));
  ------------------
  |  Branch (572:3): [True: 67.3k, False: 10.4M]
  ------------------
  573|  87.2k|  case '\\': return AsmToken(AsmToken::BackSlash, StringRef(TokStart, 1));
  ------------------
  |  Branch (573:3): [True: 87.2k, False: 10.3M]
  ------------------
  574|   188k|  case '=':
  ------------------
  |  Branch (574:3): [True: 188k, False: 10.2M]
  ------------------
  575|   188k|    if (*CurPtr == '=')
  ------------------
  |  Branch (575:9): [True: 905, False: 187k]
  ------------------
  576|    905|      return ++CurPtr, AsmToken(AsmToken::EqualEqual, StringRef(TokStart, 2));
  577|   187k|    return AsmToken(AsmToken::Equal, StringRef(TokStart, 1));
  578|   132k|  case '|':
  ------------------
  |  Branch (578:3): [True: 132k, False: 10.3M]
  ------------------
  579|   132k|    if (*CurPtr == '|')
  ------------------
  |  Branch (579:9): [True: 72.5k, False: 59.6k]
  ------------------
  580|  72.5k|      return ++CurPtr, AsmToken(AsmToken::PipePipe, StringRef(TokStart, 2));
  581|  59.6k|    return AsmToken(AsmToken::Pipe, StringRef(TokStart, 1));
  582|  21.9k|  case '^': return AsmToken(AsmToken::Caret, StringRef(TokStart, 1));
  ------------------
  |  Branch (582:3): [True: 21.9k, False: 10.4M]
  ------------------
  583|  91.7k|  case '&':
  ------------------
  |  Branch (583:3): [True: 91.7k, False: 10.3M]
  ------------------
  584|  91.7k|    if (*CurPtr == '&')
  ------------------
  |  Branch (584:9): [True: 2.09k, False: 89.6k]
  ------------------
  585|  2.09k|      return ++CurPtr, AsmToken(AsmToken::AmpAmp, StringRef(TokStart, 2));
  586|  89.6k|    return AsmToken(AsmToken::Amp, StringRef(TokStart, 1));
  587|  8.64k|  case '!':
  ------------------
  |  Branch (587:3): [True: 8.64k, False: 10.4M]
  ------------------
  588|  8.64k|    if (*CurPtr == '=')
  ------------------
  |  Branch (588:9): [True: 330, False: 8.31k]
  ------------------
  589|    330|      return ++CurPtr, AsmToken(AsmToken::ExclaimEqual, StringRef(TokStart, 2));
  590|  8.31k|    return AsmToken(AsmToken::Exclaim, StringRef(TokStart, 1));
  591|  7.78k|  case '%': return AsmToken(AsmToken::Percent, StringRef(TokStart, 1));
  ------------------
  |  Branch (591:3): [True: 7.78k, False: 10.4M]
  ------------------
  592|  14.2k|  case '/': return LexSlash();
  ------------------
  |  Branch (592:3): [True: 14.2k, False: 10.4M]
  ------------------
  593|      0|  case '#': return AsmToken(AsmToken::Hash, StringRef(TokStart, 1));
  ------------------
  |  Branch (593:3): [True: 0, False: 10.4M]
  ------------------
  594|  15.7k|  case '\'': return LexSingleQuote();
  ------------------
  |  Branch (594:3): [True: 15.7k, False: 10.4M]
  ------------------
  595|   207k|  case '"': return LexQuote();
  ------------------
  |  Branch (595:3): [True: 207k, False: 10.2M]
  ------------------
  596|   408k|  case '0': case '1': case '2': case '3': case '4':
  ------------------
  |  Branch (596:3): [True: 238k, False: 10.2M]
  |  Branch (596:13): [True: 52.6k, False: 10.4M]
  |  Branch (596:23): [True: 38.5k, False: 10.4M]
  |  Branch (596:33): [True: 37.3k, False: 10.4M]
  |  Branch (596:43): [True: 41.4k, False: 10.4M]
  ------------------
  597|   606k|  case '5': case '6': case '7': case '8': case '9':
  ------------------
  |  Branch (597:3): [True: 25.9k, False: 10.4M]
  |  Branch (597:13): [True: 121k, False: 10.3M]
  |  Branch (597:23): [True: 6.80k, False: 10.4M]
  |  Branch (597:33): [True: 32.8k, False: 10.4M]
  |  Branch (597:43): [True: 11.3k, False: 10.4M]
  ------------------
  598|   606k|    return LexDigit();
  599|  18.0k|  case '<':
  ------------------
  |  Branch (599:3): [True: 18.0k, False: 10.4M]
  ------------------
  600|  18.0k|    switch (*CurPtr) {
  601|  1.36k|    case '<': return ++CurPtr, AsmToken(AsmToken::LessLess,
  ------------------
  |  Branch (601:5): [True: 1.36k, False: 16.7k]
  ------------------
  602|  1.36k|                                        StringRef(TokStart, 2));
  603|  1.09k|    case '=': return ++CurPtr, AsmToken(AsmToken::LessEqual,
  ------------------
  |  Branch (603:5): [True: 1.09k, False: 16.9k]
  ------------------
  604|  1.09k|                                        StringRef(TokStart, 2));
  605|    408|    case '>': return ++CurPtr, AsmToken(AsmToken::LessGreater,
  ------------------
  |  Branch (605:5): [True: 408, False: 17.6k]
  ------------------
  606|    408|                                        StringRef(TokStart, 2));
  607|  15.2k|    default: return AsmToken(AsmToken::Less, StringRef(TokStart, 1));
  ------------------
  |  Branch (607:5): [True: 15.2k, False: 2.86k]
  ------------------
  608|  18.0k|    }
  609|  15.9k|  case '>':
  ------------------
  |  Branch (609:3): [True: 15.9k, False: 10.4M]
  ------------------
  610|  15.9k|    switch (*CurPtr) {
  611|  4.22k|    case '>': return ++CurPtr, AsmToken(AsmToken::GreaterGreater,
  ------------------
  |  Branch (611:5): [True: 4.22k, False: 11.7k]
  ------------------
  612|  4.22k|                                        StringRef(TokStart, 2));
  613|  1.22k|    case '=': return ++CurPtr, AsmToken(AsmToken::GreaterEqual,
  ------------------
  |  Branch (613:5): [True: 1.22k, False: 14.7k]
  ------------------
  614|  1.22k|                                        StringRef(TokStart, 2));
  615|  10.4k|    default: return AsmToken(AsmToken::Greater, StringRef(TokStart, 1));
  ------------------
  |  Branch (615:5): [True: 10.4k, False: 5.45k]
  ------------------
  616|  15.9k|    }
  617|       |
  618|       |  // TODO: Quoted identifiers (objc methods etc)
  619|       |  // local labels: [0-9][:]
  620|       |  // Forward/backward labels: [0-9][fb]
  621|       |  // Integers, fp constants, character constants.
  622|  10.4M|  }
  623|  10.4M|}
AsmLexer.cpp:_ZL16IsIdentifierCharcb:
  145|  18.6M|static bool IsIdentifierChar(char c, bool AllowAt) {
  146|  18.6M|  return isalnum(c) || c == '_' || c == '$' || c == '.' ||
  ------------------
  |  Branch (146:10): [True: 15.1M, False: 3.49M]
  |  Branch (146:24): [True: 49.4k, False: 3.44M]
  |  Branch (146:36): [True: 52.0k, False: 3.38M]
  |  Branch (146:48): [True: 172k, False: 3.21M]
  ------------------
  147|  3.21M|         (c == '@' && AllowAt) || c == '?';
  ------------------
  |  Branch (147:11): [True: 132k, False: 3.08M]
  |  Branch (147:23): [True: 132k, False: 0]
  |  Branch (147:35): [True: 15.5k, False: 3.06M]
  ------------------
  148|  18.6M|}
AsmLexer.cpp:_ZL11doLookAheadRPKcj:
  223|   562k|static unsigned doLookAhead(const char *&CurPtr, unsigned DefaultRadix) {
  224|   562k|  const char *FirstHex = nullptr;
  225|   562k|  const char *LookAhead = CurPtr;
  226|  1.52M|  while (1) {
  ------------------
  |  Branch (226:10): [True: 1.52M, Folded]
  ------------------
  227|  1.52M|    if (isdigit(*LookAhead)) {
  ------------------
  |  Branch (227:9): [True: 931k, False: 592k]
  ------------------
  228|   931k|      ++LookAhead;
  229|   931k|    } else if (isxdigit(*LookAhead)) {
  ------------------
  |  Branch (229:16): [True: 30.1k, False: 562k]
  ------------------
  230|  30.1k|      if (!FirstHex)
  ------------------
  |  Branch (230:11): [True: 21.6k, False: 8.44k]
  ------------------
  231|  21.6k|        FirstHex = LookAhead;
  232|  30.1k|      ++LookAhead;
  233|   562k|    } else {
  234|   562k|      break;
  235|   562k|    }
  236|  1.52M|  }
  237|   562k|  bool isHex = *LookAhead == 'h' || *LookAhead == 'H';
  ------------------
  |  Branch (237:16): [True: 1.46k, False: 560k]
  |  Branch (237:37): [True: 722, False: 560k]
  ------------------
  238|   562k|  CurPtr = isHex || !FirstHex ? LookAhead : FirstHex;
  ------------------
  |  Branch (238:12): [True: 2.18k, False: 560k]
  |  Branch (238:21): [True: 539k, False: 20.7k]
  ------------------
  239|   562k|  if (isHex)
  ------------------
  |  Branch (239:7): [True: 2.18k, False: 560k]
  ------------------
  240|  2.18k|    return 16;
  241|   560k|  return DefaultRadix;
  242|   562k|}
AsmLexer.cpp:_ZL24SkipIgnoredIntegerSuffixRPKc:
  211|   576k|static void SkipIgnoredIntegerSuffix(const char *&CurPtr) {
  212|       |  // Skip ULL, UL, U, L and LL suffices.
  213|   576k|  if (CurPtr[0] == 'U')
  ------------------
  |  Branch (213:7): [True: 812, False: 576k]
  ------------------
  214|    812|    ++CurPtr;
  215|   576k|  if (CurPtr[0] == 'L')
  ------------------
  |  Branch (215:7): [True: 40.4k, False: 536k]
  ------------------
  216|  40.4k|    ++CurPtr;
  217|   576k|  if (CurPtr[0] == 'L')
  ------------------
  |  Branch (217:7): [True: 32.0k, False: 544k]
  ------------------
  218|  32.0k|    ++CurPtr;
  219|   576k|}
AsmLexer.cpp:_ZL8intTokenN7llvm_ks9StringRefERNS_5APIntE:
  245|   576k|{
  246|   576k|  if (Value.isIntN(64))
  ------------------
  |  Branch (246:7): [True: 566k, False: 10.8k]
  ------------------
  247|   566k|    return AsmToken(AsmToken::Integer, Ref, Value);
  248|  10.8k|  return AsmToken(AsmToken::BigNum, Ref, Value);
  249|   576k|}

_ZN7llvm_ks13MCParserUtils25parseAssignmentExpressionENS_9StringRefEbRNS_11MCAsmParserERPNS_8MCSymbolERPKNS_6MCExprE:
 6074|   175k|{
 6075|   175k|  MCAsmLexer &Lexer = Parser.getLexer();
 6076|       |
 6077|       |  // FIXME: Use better location, we should use proper tokens.
 6078|       |  //SMLoc EqualLoc = Lexer.getLoc();
 6079|       |
 6080|   175k|  if (Parser.parseExpression(Value)) {
  ------------------
  |  Branch (6080:7): [True: 121k, False: 54.0k]
  ------------------
 6081|       |    //Parser.TokError("missing expression");
 6082|   121k|    Parser.eatToEndOfStatement();
 6083|   121k|    return true;
 6084|   121k|  }
 6085|       |
 6086|       |  // Note: we don't count b as used in "a = b". This is to allow
 6087|       |  // a = b
 6088|       |  // b = c
 6089|       |
 6090|  54.0k|  if (Lexer.isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (6090:7): [True: 4.89k, False: 49.1k]
  ------------------
 6091|       |    //return Parser.TokError("unexpected token in assignment");
 6092|  4.89k|    return true;
 6093|       |
 6094|       |  // Eat the end of statement marker.
 6095|  49.1k|  Parser.Lex();
 6096|       |
 6097|       |  // Validate that the LHS is allowed to be a variable (either it has not been
 6098|       |  // used as a symbol, or it is an absolute symbol).
 6099|  49.1k|  Sym = Parser.getContext().lookupSymbol(Name);
 6100|  49.1k|  if (Sym) {
  ------------------
  |  Branch (6100:7): [True: 21.9k, False: 27.1k]
  ------------------
 6101|       |    // Diagnose assignment to a label.
 6102|       |    //
 6103|       |    // FIXME: Diagnostics. Note the location of the definition as a label.
 6104|       |    // FIXME: Diagnose assignment to protected identifier (e.g., register name).
 6105|  21.9k|    if (isSymbolUsedInExpression(Sym, Value))
  ------------------
  |  Branch (6105:9): [True: 254, False: 21.6k]
  ------------------
 6106|       |      //return Parser.Error(EqualLoc, "Recursive use of '" + Name + "'");
 6107|    254|      return true;
 6108|  21.6k|    else if (Sym->isUndefined(/*SetUsed*/ false) && !Sym->isUsed() &&
  ------------------
  |  Branch (6108:14): [True: 9.86k, False: 11.8k]
  |  Branch (6108:53): [True: 9.22k, False: 635]
  ------------------
 6109|  9.22k|             !Sym->isVariable())
  ------------------
  |  Branch (6109:14): [True: 166, False: 9.06k]
  ------------------
 6110|    166|      ; // Allow redefinitions of undefined symbols only used in directives.
 6111|  21.5k|    else if (Sym->isVariable() && !Sym->isUsed() && allow_redef)
  ------------------
  |  Branch (6111:14): [True: 21.3k, False: 218]
  |  Branch (6111:35): [True: 17.2k, False: 4.03k]
  |  Branch (6111:53): [True: 17.2k, False: 0]
  ------------------
 6112|  17.2k|      ; // Allow redefinitions of variables that haven't yet been used.
 6113|  4.25k|    else if (!Sym->isUndefined() && (!Sym->isVariable() || !allow_redef))
  ------------------
  |  Branch (6113:14): [True: 3.61k, False: 635]
  |  Branch (6113:38): [True: 218, False: 3.40k]
  |  Branch (6113:60): [True: 0, False: 3.40k]
  ------------------
 6114|       |      //return Parser.Error(EqualLoc, "redefinition of '" + Name + "'");
 6115|    218|      return true;
 6116|  4.03k|    else if (!Sym->isVariable())
  ------------------
  |  Branch (6116:14): [True: 0, False: 4.03k]
  ------------------
 6117|       |      //return Parser.Error(EqualLoc, "invalid assignment to '" + Name + "'");
 6118|      0|      return true;
 6119|  4.03k|    else if (!isa<MCConstantExpr>(Sym->getVariableValue()))
  ------------------
  |  Branch (6119:14): [True: 1.84k, False: 2.19k]
  ------------------
 6120|       |      //return Parser.Error(EqualLoc,
 6121|       |      //                    "invalid reassignment of non-absolute variable '" +
 6122|       |      //                        Name + "'");
 6123|  1.84k|      return true;
 6124|  27.1k|  } else if (Name == ".") {
  ------------------
  |  Branch (6124:14): [True: 25.4k, False: 1.76k]
  ------------------
 6125|  25.4k|    Parser.getStreamer().emitValueToOffset(Value, 0);
 6126|  25.4k|    return false;
 6127|  25.4k|  } else {
 6128|  1.76k|    if (Name.empty()) {
  ------------------
  |  Branch (6128:9): [True: 43, False: 1.72k]
  ------------------
 6129|     43|        return true;
 6130|     43|    }
 6131|  1.72k|    Sym = Parser.getContext().getOrCreateSymbol(Name);
 6132|  1.72k|  }
 6133|       |
 6134|  21.3k|  Sym->setRedefinable(allow_redef);
 6135|       |
 6136|  21.3k|  return false;
 6137|  49.1k|}
_ZN7llvm_ks17createMCAsmParserERNS_9SourceMgrERNS_9MCContextERNS_10MCStreamerERKNS_9MCAsmInfoE:
 6144|  13.6k|                                     MCStreamer &Out, const MCAsmInfo &MAI) {
 6145|  13.6k|  return new AsmParser(SM, C, Out, MAI);
 6146|  13.6k|}
AsmParser.cpp:_ZN7llvm_ks13MCParserUtilsL24isSymbolUsedInExpressionEPKNS_8MCSymbolEPKNS_6MCExprE:
 6046|  43.7k|static bool isSymbolUsedInExpression(const MCSymbol *Sym, const MCExpr *Value) {
 6047|  43.7k|  switch (Value->getKind()) {
  ------------------
  |  Branch (6047:11): [True: 43.7k, False: 0]
  ------------------
 6048|  5.18k|  case MCExpr::Binary: {
  ------------------
  |  Branch (6048:3): [True: 5.18k, False: 38.6k]
  ------------------
 6049|  5.18k|    const MCBinaryExpr *BE = static_cast<const MCBinaryExpr *>(Value);
 6050|  5.18k|    return isSymbolUsedInExpression(Sym, BE->getLHS()) ||
  ------------------
  |  Branch (6050:12): [True: 248, False: 4.93k]
  ------------------
 6051|  4.93k|           isSymbolUsedInExpression(Sym, BE->getRHS());
  ------------------
  |  Branch (6051:12): [True: 19, False: 4.91k]
  ------------------
 6052|      0|  }
 6053|      0|  case MCExpr::Target:
  ------------------
  |  Branch (6053:3): [True: 0, False: 43.7k]
  ------------------
 6054|  6.70k|  case MCExpr::Constant:
  ------------------
  |  Branch (6054:3): [True: 6.70k, False: 37.0k]
  ------------------
 6055|  6.70k|    return false;
 6056|  20.9k|  case MCExpr::SymbolRef: {
  ------------------
  |  Branch (6056:3): [True: 20.9k, False: 22.8k]
  ------------------
 6057|  20.9k|    const MCSymbol &S =
 6058|  20.9k|        static_cast<const MCSymbolRefExpr *>(Value)->getSymbol();
 6059|  20.9k|    if (S.isVariable())
  ------------------
  |  Branch (6059:9): [True: 787, False: 20.1k]
  ------------------
 6060|    787|      return isSymbolUsedInExpression(Sym, S.getVariableValue());
 6061|  20.1k|    return &S == Sym;
 6062|  20.9k|  }
 6063|  10.9k|  case MCExpr::Unary:
  ------------------
  |  Branch (6063:3): [True: 10.9k, False: 32.8k]
  ------------------
 6064|  10.9k|    return isSymbolUsedInExpression(
 6065|  10.9k|        Sym, static_cast<const MCUnaryExpr *>(Value)->getSubExpr());
 6066|  43.7k|  }
 6067|       |
 6068|      0|  llvm_unreachable("Unknown expr kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 6069|  43.7k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParserC2ERN7llvm_ks9SourceMgrERNS1_9MCContextERNS1_10MCStreamerERKNS1_9MCAsmInfoE:
  545|  13.6k|    : Lexer(MAI), Ctx(Ctx), Out(Out), MAI(MAI), SrcMgr(SM),
  546|  13.6k|      PlatformParser(nullptr), CurBuffer(SM.getMainFileID()),
  547|  13.6k|      MacrosEnabledFlag(true), HadError(false), CppHashLineNumber(0),
  548|  13.6k|      AssemblerDialect(~0U), IsDarwin(false), ParsingInlineAsm(false),
  549|  13.6k|      NasmDefaultRel(false) {
  550|       |  // Save the old handler.
  551|  13.6k|  SavedDiagHandler = SrcMgr.getDiagHandler();
  552|  13.6k|  SavedDiagContext = SrcMgr.getDiagContext();
  553|       |  // Set our own handler which calls the saved handler.
  554|  13.6k|  SrcMgr.setDiagHandler(DiagHandler, this);
  555|  13.6k|  Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
  556|       |
  557|       |  // Initialize the platform / file format parser.
  558|  13.6k|  PlatformParser.reset(createDarwinAsmParser());
  559|  13.6k|  IsDarwin = true;
  560|       |#if 0
  561|       |  switch (Ctx.getObjectFileInfo()->getObjectFileType()) {
  562|       |  case MCObjectFileInfo::IsCOFF:
  563|       |    PlatformParser.reset(createCOFFAsmParser());
  564|       |    break;
  565|       |  case MCObjectFileInfo::IsMachO:
  566|       |    PlatformParser.reset(createDarwinAsmParser());
  567|       |    IsDarwin = true;
  568|       |    break;
  569|       |  case MCObjectFileInfo::IsELF:
  570|       |    PlatformParser.reset(createELFAsmParser());
  571|       |    break;
  572|       |  }
  573|       |#endif
  574|       |
  575|  13.6k|  PlatformParser->Initialize(*this);
  576|  13.6k|  initializeDirectiveKindMap(0);
  577|       |
  578|  13.6k|  NumOfMacroInstantiations = 0;
  579|  13.6k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser11DiagHandlerERKN7llvm_ks12SMDiagnosticEPv:
 2025|  21.7k|void AsmParser::DiagHandler(const SMDiagnostic &Diag, void *Context) {
 2026|  21.7k|  const AsmParser *Parser = static_cast<const AsmParser *>(Context);
 2027|  21.7k|  raw_ostream &OS = errs();
 2028|       |
 2029|  21.7k|  const SourceMgr &DiagSrcMgr = *Diag.getSourceMgr();
 2030|  21.7k|  SMLoc DiagLoc = Diag.getLoc();
 2031|  21.7k|  unsigned DiagBuf = DiagSrcMgr.FindBufferContainingLoc(DiagLoc);
 2032|  21.7k|  unsigned CppHashBuf =
 2033|  21.7k|      Parser->SrcMgr.FindBufferContainingLoc(Parser->CppHashLoc);
 2034|       |
 2035|       |  // Like SourceMgr::printMessage() we need to print the include stack if any
 2036|       |  // before printing the message.
 2037|  21.7k|  unsigned DiagCurBuffer = DiagSrcMgr.FindBufferContainingLoc(DiagLoc);
 2038|  21.7k|  if (!Parser->SavedDiagHandler && DiagCurBuffer &&
  ------------------
  |  Branch (2038:7): [True: 21.7k, False: 0]
  |  Branch (2038:36): [True: 21.7k, False: 0]
  ------------------
 2039|  21.7k|      DiagCurBuffer != DiagSrcMgr.getMainFileID()) {
  ------------------
  |  Branch (2039:7): [True: 9.36k, False: 12.4k]
  ------------------
 2040|  9.36k|    SMLoc ParentIncludeLoc = DiagSrcMgr.getParentIncludeLoc(DiagCurBuffer);
 2041|  9.36k|    DiagSrcMgr.PrintIncludeStack(ParentIncludeLoc, OS);
 2042|  9.36k|  }
 2043|       |
 2044|       |  // If we have not parsed a cpp hash line filename comment or the source
 2045|       |  // manager changed or buffer changed (like in a nested include) then just
 2046|       |  // print the normal diagnostic using its Filename and LineNo.
 2047|  21.7k|  if (!Parser->CppHashLineNumber || &DiagSrcMgr != &Parser->SrcMgr ||
  ------------------
  |  Branch (2047:7): [True: 20.0k, False: 1.70k]
  |  Branch (2047:37): [True: 0, False: 1.70k]
  ------------------
 2048|  20.9k|      DiagBuf != CppHashBuf) {
  ------------------
  |  Branch (2048:7): [True: 866, False: 841]
  ------------------
 2049|  20.9k|    if (Parser->SavedDiagHandler)
  ------------------
  |  Branch (2049:9): [True: 0, False: 20.9k]
  ------------------
 2050|      0|      Parser->SavedDiagHandler(Diag, Parser->SavedDiagContext);
 2051|  20.9k|    else
 2052|  20.9k|      Diag.print(nullptr, OS);
 2053|  20.9k|    return;
 2054|  20.9k|  }
 2055|       |
 2056|       |  // Use the CppHashFilename and calculate a line number based on the
 2057|       |  // CppHashLoc and CppHashLineNumber relative to this Diag's SMLoc for
 2058|       |  // the diagnostic.
 2059|    841|  const std::string &Filename = Parser->CppHashFilename;
 2060|       |
 2061|    841|  int DiagLocLineNo = DiagSrcMgr.FindLineNumber(DiagLoc, DiagBuf);
 2062|    841|  int CppHashLocLineNo =
 2063|    841|      Parser->SrcMgr.FindLineNumber(Parser->CppHashLoc, CppHashBuf);
 2064|    841|  int LineNo =
 2065|    841|      Parser->CppHashLineNumber - 1 + (DiagLocLineNo - CppHashLocLineNo);
 2066|       |
 2067|    841|  SMDiagnostic NewDiag(*Diag.getSourceMgr(), Diag.getLoc(), Filename, LineNo,
 2068|    841|                       Diag.getColumnNo(), Diag.getKind(), Diag.getMessage(),
 2069|    841|                       Diag.getLineContents(), Diag.getRanges());
 2070|       |
 2071|    841|  if (Parser->SavedDiagHandler)
  ------------------
  |  Branch (2071:7): [True: 0, False: 841]
  ------------------
 2072|      0|    Parser->SavedDiagHandler(NewDiag, Parser->SavedDiagContext);
 2073|    841|  else
 2074|    841|    NewDiag.print(nullptr, OS);
 2075|    841|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParserD2Ev:
  581|  13.6k|AsmParser::~AsmParser() {
  582|  13.6k|  assert((HadError || ActiveMacros.empty()) &&
  ------------------
  |  Branch (582:3): [True: 3.76k, False: 9.86k]
  |  Branch (582:3): [True: 9.86k, False: 0]
  |  Branch (582:3): [True: 13.6k, Folded]
  |  Branch (582:3): [True: 13.6k, False: 0]
  ------------------
  583|  13.6k|         "Unexpected active macro instantiation!");
  584|       |    
  585|       |  // Restore the saved diagnostics handler and context for use during
  586|       |  // finalization
  587|  13.6k|  SrcMgr.setDiagHandler(SavedDiagHandler, SavedDiagContext);  
  588|  13.6k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19addDirectiveHandlerEN7llvm_ks9StringRefENSt3__14pairIPNS1_20MCAsmParserExtensionEPFbS6_S2_NS1_5SMLocEEEE:
  197|   899k|                           ExtensionDirectiveHandler Handler) override {
  198|   899k|    ExtensionDirectiveMap[Directive] = Handler;
  199|   899k|  }
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser20addAliasForDirectiveEN7llvm_ks9StringRefES2_:
  201|  54.5k|  void addAliasForDirective(StringRef Directive, StringRef Alias) override {
  202|  54.5k|    DirectiveKindMap[Directive] = DirectiveKindMap[Alias];
  203|  54.5k|  }
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser8getLexerEv:
  210|  24.0M|  MCAsmLexer &getLexer() override { return Lexer; }
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser10getContextEv:
  211|   989k|  MCContext &getContext() override { return Ctx; }
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser11getStreamerEv:
  212|  33.4M|  MCStreamer &getStreamer() override { return Out; }
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser3RunEbmb:
  675|  13.6k|{
  676|       |  // count number of statement
  677|  13.6k|  size_t count = 0;
  678|       |
  679|       |  // Create the initial section, if requested.
  680|  13.6k|  if (!NoInitialTextSection)
  ------------------
  |  Branch (680:7): [True: 13.6k, False: 0]
  ------------------
  681|  13.6k|    Out.InitSections(false);
  682|       |
  683|       |  // Prime the lexer.
  684|  13.6k|  Lex();
  685|  13.6k|  if (!Lexer.isNot(AsmToken::Error)) {
  ------------------
  |  Branch (685:7): [True: 104, False: 13.5k]
  ------------------
  686|    104|    KsError = KS_ERR_ASM_TOKEN_INVALID;
  687|    104|    return 0;
  688|    104|  }
  689|       |
  690|  13.5k|  HadError = false;
  691|  13.5k|  AsmCond StartingCondState = TheCondState;
  692|       |
  693|       |  // If we are generating dwarf for assembly source files save the initial text
  694|       |  // section and generate a .file directive.
  695|  13.5k|  if (getContext().getGenDwarfForAssembly()) {
  ------------------
  |  Branch (695:7): [True: 0, False: 13.5k]
  ------------------
  696|      0|    MCSection *Sec = getStreamer().getCurrentSection().first;
  697|      0|    if (!Sec->getBeginSymbol()) {
  ------------------
  |  Branch (697:9): [True: 0, False: 0]
  ------------------
  698|      0|      MCSymbol *SectionStartSym = getContext().createTempSymbol();
  699|      0|      getStreamer().EmitLabel(SectionStartSym);
  700|      0|      Sec->setBeginSymbol(SectionStartSym);
  701|      0|    }
  702|      0|    bool InsertResult = getContext().addGenDwarfSection(Sec);
  703|      0|    assert(InsertResult && ".text section should not have debug info yet");
  ------------------
  |  Branch (703:5): [True: 0, False: 0]
  |  Branch (703:5): [True: 0, Folded]
  |  Branch (703:5): [True: 0, False: 0]
  ------------------
  704|      0|    (void)InsertResult;
  705|      0|    getContext().setGenDwarfFileNumber(getStreamer().EmitDwarfFileDirective(
  706|      0|        0, StringRef(), getContext().getMainFileName()));
  707|      0|  }
  708|       |
  709|       |  // While we have input, parse each statement.
  710|  10.0M|  while (Lexer.isNot(AsmToken::Eof)) {
  ------------------
  |  Branch (710:10): [True: 10.0M, False: 7.43k]
  ------------------
  711|  10.0M|    ParseStatementInfo Info;
  712|  10.0M|    if (!parseStatement(Info, nullptr, Address)) {
  ------------------
  |  Branch (712:9): [True: 9.37M, False: 680k]
  ------------------
  713|  9.37M|      count++;
  714|  9.37M|      continue;
  715|  9.37M|    }
  716|       |
  717|       |    //printf(">> 222 error = %u\n", Info.KsError);
  718|   680k|    if (!KsError) {
  ------------------
  |  Branch (718:9): [True: 6.09k, False: 674k]
  ------------------
  719|  6.09k|        KsError = Info.KsError;
  720|  6.09k|        return 0;
  721|  6.09k|    }
  722|       |
  723|       |    // We had an error, validate that one was emitted and recover by skipping to
  724|       |    // the next line.
  725|       |    // assert(HadError && "Parse statement returned an error, but none emitted!");
  726|       |
  727|       |    //eatToEndOfStatement();
  728|   680k|  }
  729|       |
  730|  7.43k|  if (TheCondState.TheCond != StartingCondState.TheCond ||
  ------------------
  |  Branch (730:7): [True: 825, False: 6.60k]
  ------------------
  731|  6.60k|      TheCondState.Ignore != StartingCondState.Ignore) {
  ------------------
  |  Branch (731:7): [True: 0, False: 6.60k]
  ------------------
  732|       |    //return TokError("unmatched .ifs or .elses");
  733|    825|    KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
  734|    825|    return 0;
  735|    825|  }
  736|       |
  737|       |  // Check to see that all assembler local symbols were actually defined.
  738|       |  // Targets that don't do subsections via symbols may not want this, though,
  739|       |  // so conservatively exclude them. Only do this if we're finalizing, though,
  740|       |  // as otherwise we won't necessarilly have seen everything yet.
  741|  6.60k|  if (!NoFinalize && MAI.hasSubsectionsViaSymbols()) {
  ------------------
  |  Branch (741:7): [True: 6.60k, False: 0]
  |  Branch (741:22): [True: 0, False: 6.60k]
  ------------------
  742|      0|    for (const auto &TableEntry : getContext().getSymbols()) {
  ------------------
  |  Branch (742:33): [True: 0, False: 0]
  ------------------
  743|      0|      MCSymbol *Sym = TableEntry.getValue();
  744|       |      // Variable symbols may not be marked as defined, so check those
  745|       |      // explicitly. If we know it's a variable, we have a definition for
  746|       |      // the purposes of this check.
  747|      0|      if (Sym->isTemporary() && !Sym->isVariable() && !Sym->isDefined()) {
  ------------------
  |  Branch (747:11): [True: 0, False: 0]
  |  Branch (747:33): [True: 0, False: 0]
  |  Branch (747:55): [True: 0, False: 0]
  ------------------
  748|       |        // FIXME: We would really like to refer back to where the symbol was
  749|       |        // first referenced for a source location. We need to add something
  750|       |        // to track that. Currently, we just point to the end of the file.
  751|       |        //return Error(getLexer().getLoc(), "assembler local symbol '" +
  752|       |        //                                      Sym->getName() + "' not defined");    // qq: set KsError, then return 0
  753|      0|        KsError = KS_ERR_ASM_SYMBOL_MISSING;
  754|      0|        return 0;
  755|      0|      }
  756|      0|    }
  757|      0|  }
  758|       |
  759|       |  // Finalize the output stream if there are no errors and if the client wants
  760|       |  // us to.
  761|  6.60k|  if (!KsError) {
  ------------------
  |  Branch (761:7): [True: 5.57k, False: 1.03k]
  ------------------
  762|  5.57k|      if (!HadError && !NoFinalize)
  ------------------
  |  Branch (762:11): [True: 5.04k, False: 534]
  |  Branch (762:24): [True: 5.04k, False: 0]
  ------------------
  763|  5.04k|          KsError = Out.Finish();
  764|  5.57k|  } else
  765|  1.03k|      Out.Finish();
  766|       |
  767|       |  //return HadError || getContext().hadError();
  768|  6.60k|  return count;
  769|  6.60k|}
AsmParser.cpp:_ZN12_GLOBAL__N_118ParseStatementInfoC2Ev:
  114|  10.0M|  ParseStatementInfo() : KsError(0), Opcode(~0U), ParseError(false), AsmRewrites(nullptr) {}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser14parseStatementERNS_18ParseStatementInfoEPN7llvm_ks23MCAsmParserSemaCallbackERm:
 1449|  10.0M|{
 1450|  10.0M|  KsError = 0;
 1451|  10.0M|  if (Lexer.is(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (1451:7): [True: 9.13M, False: 920k]
  ------------------
 1452|  9.13M|    Out.AddBlankLine();
 1453|  9.13M|    Lex();
 1454|  9.13M|    return false;
 1455|  9.13M|  }
 1456|       |
 1457|       |  // Statements always start with an identifier or are a full line comment.
 1458|   920k|  AsmToken ID = getTok();
 1459|       |  //printf(">>> parseStatement:ID = %s\n", ID.getString().str().c_str());
 1460|   920k|  SMLoc IDLoc = ID.getLoc();
 1461|   920k|  StringRef IDVal;
 1462|   920k|  int64_t LocalLabelVal = -1;
 1463|       |  // A full line comment is a '#' as the first token.
 1464|   920k|  if (Lexer.is(AsmToken::Hash))
  ------------------
  |  Branch (1464:7): [True: 36.9k, False: 883k]
  ------------------
 1465|  36.9k|    return parseCppHashLineFilenameComment(IDLoc);
 1466|       |
 1467|       |  // Allow an integer followed by a ':' as a directional local label.
 1468|   883k|  if (Lexer.is(AsmToken::Integer)) {
  ------------------
  |  Branch (1468:7): [True: 1.73k, False: 882k]
  ------------------
 1469|  1.73k|    bool valid;
 1470|  1.73k|    LocalLabelVal = getTok().getIntVal(valid);
 1471|  1.73k|    if (!valid) {
  ------------------
  |  Branch (1471:9): [True: 0, False: 1.73k]
  ------------------
 1472|      0|        return true;
 1473|      0|    }
 1474|  1.73k|    if (LocalLabelVal < 0) {
  ------------------
  |  Branch (1474:9): [True: 265, False: 1.46k]
  ------------------
 1475|    265|      if (!TheCondState.Ignore) {
  ------------------
  |  Branch (1475:11): [True: 66, False: 199]
  ------------------
 1476|       |        // return TokError("unexpected token at start of statement");
 1477|     66|        Info.KsError = KS_ERR_ASM_STAT_TOKEN;
 1478|     66|        return true;
 1479|     66|      }
 1480|    199|      IDVal = "";
 1481|  1.46k|    } else {
 1482|  1.46k|      IDVal = getTok().getString();
 1483|  1.46k|      Lex(); // Consume the integer token to be used as an identifier token.
 1484|  1.46k|      if (Lexer.getKind() != AsmToken::Colon) {
  ------------------
  |  Branch (1484:11): [True: 1.11k, False: 354]
  ------------------
 1485|  1.11k|        if (!TheCondState.Ignore) {
  ------------------
  |  Branch (1485:13): [True: 435, False: 678]
  ------------------
 1486|       |          // return TokError("unexpected token at start of statement");
 1487|    435|          Info.KsError = KS_ERR_ASM_STAT_TOKEN;
 1488|    435|          return true;
 1489|    435|        }
 1490|  1.11k|      }
 1491|  1.46k|    }
 1492|   882k|  } else if (Lexer.is(AsmToken::Dot)) {
  ------------------
  |  Branch (1492:14): [True: 43.4k, False: 838k]
  ------------------
 1493|       |    // Treat '.' as a valid identifier in this context.
 1494|  43.4k|    Lex();
 1495|  43.4k|    IDVal = ".";
 1496|   838k|  } else if (Lexer.is(AsmToken::LCurly)) {
  ------------------
  |  Branch (1496:14): [True: 1.29k, False: 837k]
  ------------------
 1497|       |    // Treat '{' as a valid identifier in this context.
 1498|  1.29k|    Lex();
 1499|  1.29k|    IDVal = "{";
 1500|   837k|  } else if (Lexer.is(AsmToken::RCurly)) {
  ------------------
  |  Branch (1500:14): [True: 712, False: 836k]
  ------------------
 1501|       |    // Treat '}' as a valid identifier in this context.
 1502|    712|    Lex();
 1503|    712|    IDVal = "}";
 1504|   836k|  } else if (KsSyntax == KS_OPT_SYNTAX_NASM && Lexer.is(AsmToken::LBrac)) {
  ------------------
  |  Branch (1504:14): [True: 0, False: 836k]
  |  Branch (1504:48): [True: 0, False: 0]
  ------------------
 1505|       |    // [bits xx]
 1506|      0|    Lex();
 1507|      0|    ID = Lexer.getTok();
 1508|      0|    if (ID.getString().lower() == "bits") {
  ------------------
  |  Branch (1508:9): [True: 0, False: 0]
  ------------------
 1509|      0|        Lex();
 1510|      0|        if (parseNasmDirectiveBits()) {
  ------------------
  |  Branch (1510:13): [True: 0, False: 0]
  ------------------
 1511|      0|            Info.KsError = KS_ERR_ASM_DIRECTIVE_ID;
 1512|      0|            return true;
 1513|      0|        } else {
 1514|      0|            return false;
 1515|      0|        }
 1516|      0|    } else {
 1517|      0|        Info.KsError = KS_ERR_ASM_DIRECTIVE_ID;
 1518|      0|        return true;
 1519|      0|    }
 1520|   836k|  } else if (KsSyntax == KS_OPT_SYNTAX_NASM && isNasmDirective(ID.getString())) {
  ------------------
  |  Branch (1520:14): [True: 0, False: 836k]
  |  Branch (1520:14): [True: 0, False: 836k]
  |  Branch (1520:48): [True: 0, False: 0]
  ------------------
 1521|      0|      Lex();
 1522|      0|      IDVal = ID.getString();
 1523|   836k|  } else if (parseIdentifier(IDVal)) {
  ------------------
  |  Branch (1523:14): [True: 11.9k, False: 824k]
  ------------------
 1524|  11.9k|    if (!TheCondState.Ignore) {
  ------------------
  |  Branch (1524:9): [True: 9.37k, False: 2.53k]
  ------------------
 1525|       |      // return TokError("unexpected token at start of statement");
 1526|  9.37k|      Info.KsError = KS_ERR_ASM_STAT_TOKEN;
 1527|  9.37k|      return true;
 1528|  9.37k|    }
 1529|  2.53k|    IDVal = "";
 1530|  2.53k|  }
 1531|       |
 1532|       |  // Handle conditional assembly here before checking for skipping.  We
 1533|       |  // have to do this so that .endif isn't skipped in a ".if 0" block for
 1534|       |  // example.
 1535|       |
 1536|   874k|  StringMap<DirectiveKind>::const_iterator DirKindIt =
 1537|   874k|      DirectiveKindMap.find(IDVal.lower());
 1538|   874k|  DirectiveKind DirKind = (DirKindIt == DirectiveKindMap.end())
  ------------------
  |  Branch (1538:27): [True: 555k, False: 318k]
  ------------------
 1539|   874k|                              ? DK_NO_DIRECTIVE
 1540|   874k|                              : DirKindIt->getValue();
 1541|   874k|  switch (DirKind) {
 1542|   744k|  default:
  ------------------
  |  Branch (1542:3): [True: 744k, False: 129k]
  ------------------
 1543|   744k|    break;
 1544|   744k|  case DK_IF:
  ------------------
  |  Branch (1544:3): [True: 1.33k, False: 872k]
  ------------------
 1545|  1.68k|  case DK_IFEQ:
  ------------------
  |  Branch (1545:3): [True: 350, False: 873k]
  ------------------
 1546|  2.06k|  case DK_IFGE:
  ------------------
  |  Branch (1546:3): [True: 383, False: 873k]
  ------------------
 1547|  2.48k|  case DK_IFGT:
  ------------------
  |  Branch (1547:3): [True: 415, False: 873k]
  ------------------
 1548|  3.13k|  case DK_IFLE:
  ------------------
  |  Branch (1548:3): [True: 651, False: 873k]
  ------------------
 1549|  3.29k|  case DK_IFLT:
  ------------------
  |  Branch (1549:3): [True: 165, False: 873k]
  ------------------
 1550|  3.72k|  case DK_IFNE:
  ------------------
  |  Branch (1550:3): [True: 424, False: 873k]
  ------------------
 1551|  3.72k|    return parseDirectiveIf(IDLoc, DirKind);
 1552|    709|  case DK_IFB:
  ------------------
  |  Branch (1552:3): [True: 709, False: 873k]
  ------------------
 1553|    709|    return parseDirectiveIfb(IDLoc, true);
 1554|  7.68k|  case DK_IFNB:
  ------------------
  |  Branch (1554:3): [True: 7.68k, False: 866k]
  ------------------
 1555|  7.68k|    return parseDirectiveIfb(IDLoc, false);
 1556|    992|  case DK_IFC:
  ------------------
  |  Branch (1556:3): [True: 992, False: 873k]
  ------------------
 1557|    992|    return parseDirectiveIfc(IDLoc, true);
 1558|     66|  case DK_IFEQS:
  ------------------
  |  Branch (1558:3): [True: 66, False: 873k]
  ------------------
 1559|     66|    return parseDirectiveIfeqs(IDLoc, true);
 1560|   110k|  case DK_IFNC:
  ------------------
  |  Branch (1560:3): [True: 110k, False: 763k]
  ------------------
 1561|   110k|    return parseDirectiveIfc(IDLoc, false);
 1562|  1.88k|  case DK_IFNES:
  ------------------
  |  Branch (1562:3): [True: 1.88k, False: 872k]
  ------------------
 1563|  1.88k|    return parseDirectiveIfeqs(IDLoc, false);
 1564|    282|  case DK_IFDEF:
  ------------------
  |  Branch (1564:3): [True: 282, False: 873k]
  ------------------
 1565|    282|    return parseDirectiveIfdef(IDLoc, true);
 1566|    545|  case DK_IFNDEF:
  ------------------
  |  Branch (1566:3): [True: 545, False: 873k]
  ------------------
 1567|    545|  case DK_IFNOTDEF:
  ------------------
  |  Branch (1567:3): [True: 0, False: 874k]
  ------------------
 1568|    545|    return parseDirectiveIfdef(IDLoc, false);
 1569|  1.31k|  case DK_ELSEIF:
  ------------------
  |  Branch (1569:3): [True: 1.31k, False: 872k]
  ------------------
 1570|  1.31k|    return parseDirectiveElseIf(IDLoc);
 1571|  1.01k|  case DK_ELSE:
  ------------------
  |  Branch (1571:3): [True: 1.01k, False: 873k]
  ------------------
 1572|  1.01k|    return parseDirectiveElse(IDLoc);
 1573|    495|  case DK_ENDIF:
  ------------------
  |  Branch (1573:3): [True: 495, False: 873k]
  ------------------
 1574|    495|    return parseDirectiveEndIf(IDLoc);
 1575|   874k|  }
 1576|       |
 1577|       |  // Ignore the statement if in the middle of inactive conditional
 1578|       |  // (e.g. ".if 0").
 1579|   744k|  if (TheCondState.Ignore) {
  ------------------
  |  Branch (1579:7): [True: 5.01k, False: 739k]
  ------------------
 1580|  5.01k|    eatToEndOfStatement();
 1581|  5.01k|    return false;
 1582|  5.01k|  }
 1583|       |
 1584|       |  // FIXME: Recurse on local labels?
 1585|       |
 1586|       |  // See what kind of statement we have.
 1587|   739k|  switch (Lexer.getKind()) {
 1588|    446|  case AsmToken::Colon: {
  ------------------
  |  Branch (1588:3): [True: 446, False: 738k]
  ------------------
 1589|    446|    bool valid;
 1590|    446|    if (!getTargetParser().isLabel(ID, valid))
  ------------------
  |  Branch (1590:9): [True: 0, False: 446]
  ------------------
 1591|      0|      break;
 1592|    446|    if (!valid) {
  ------------------
  |  Branch (1592:9): [True: 0, False: 446]
  ------------------
 1593|      0|        Info.KsError = KS_ERR_ASM_LABEL_INVALID;
 1594|      0|        return true;
 1595|      0|    }
 1596|    446|    checkForValidSection();
 1597|       |
 1598|       |    // identifier ':'   -> Label.
 1599|    446|    Lex();
 1600|       |
 1601|       |    // Diagnose attempt to use '.' as a label.
 1602|    446|    if (IDVal == ".") {
  ------------------
  |  Branch (1602:9): [True: 222, False: 224]
  ------------------
 1603|       |      //return Error(IDLoc, "invalid use of pseudo-symbol '.' as a label");
 1604|    222|      KsError = KS_ERR_ASM_INVALIDOPERAND;
 1605|    222|      return true;
 1606|    222|    }
 1607|       |
 1608|       |    // Diagnose attempt to use a variable as a label.
 1609|       |    //
 1610|       |    // FIXME: Diagnostics. Note the location of the definition as a label.
 1611|       |    // FIXME: This doesn't diagnose assignment to a symbol which has been
 1612|       |    // implicitly marked as external.
 1613|    224|    MCSymbol *Sym;
 1614|    224|    if (LocalLabelVal == -1) {
  ------------------
  |  Branch (1614:9): [True: 167, False: 57]
  ------------------
 1615|    167|      if (ParsingInlineAsm && SI) {
  ------------------
  |  Branch (1615:11): [True: 0, False: 167]
  |  Branch (1615:31): [True: 0, False: 0]
  ------------------
 1616|      0|        StringRef RewrittenLabel =
 1617|      0|            SI->LookupInlineAsmLabel(IDVal, getSourceManager(), IDLoc, true);
 1618|      0|        assert(RewrittenLabel.size() &&
  ------------------
  |  Branch (1618:9): [True: 0, False: 0]
  |  Branch (1618:9): [True: 0, Folded]
  |  Branch (1618:9): [True: 0, False: 0]
  ------------------
 1619|      0|               "We should have an internal name here.");
 1620|      0|        Info.AsmRewrites->emplace_back(AOK_Label, IDLoc, IDVal.size(),
 1621|      0|                                       RewrittenLabel);
 1622|      0|        IDVal = RewrittenLabel;
 1623|      0|      }
 1624|    167|      if (IDVal.empty()) {
  ------------------
  |  Branch (1624:11): [True: 1, False: 166]
  ------------------
 1625|      1|          return true;
 1626|      1|      }
 1627|    166|      Sym = getContext().getOrCreateSymbol(IDVal);
 1628|    166|    } else {
 1629|     57|      bool valid;
 1630|     57|      Sym = Ctx.createDirectionalLocalSymbol(LocalLabelVal, valid);
 1631|     57|      if (!valid) {
  ------------------
  |  Branch (1631:11): [True: 57, False: 0]
  ------------------
 1632|     57|          Info.KsError = KS_ERR_ASM_LABEL_INVALID;
 1633|     57|          return true;
 1634|     57|      }
 1635|     57|    }
 1636|       |
 1637|    166|    Sym->redefineIfPossible();
 1638|       |
 1639|    166|    if (!Sym->isUndefined() || Sym->isVariable()) {
  ------------------
  |  Branch (1639:9): [True: 4, False: 162]
  |  Branch (1639:32): [True: 0, False: 162]
  ------------------
 1640|       |      //return Error(IDLoc, "invalid symbol redefinition");
 1641|      4|      Info.KsError = KS_ERR_ASM_SYMBOL_REDEFINED;
 1642|      4|      return true;
 1643|      4|    }
 1644|       |
 1645|       |    // Emit the label.
 1646|    162|    if (!ParsingInlineAsm)
  ------------------
  |  Branch (1646:9): [True: 162, False: 0]
  ------------------
 1647|    162|      Out.EmitLabel(Sym);
 1648|       |
 1649|    162|    getTargetParser().onLabelParsed(Sym);
 1650|       |
 1651|       |    // Consume any end of statement token, if present, to avoid spurious
 1652|       |    // AddBlankLine calls().
 1653|    162|    if (Lexer.is(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (1653:9): [True: 62, False: 100]
  ------------------
 1654|     62|      Lex();
 1655|     62|      if (Lexer.is(AsmToken::Eof))
  ------------------
  |  Branch (1655:11): [True: 26, False: 36]
  ------------------
 1656|     26|        return false;
 1657|     62|    }
 1658|       |
 1659|    136|    return false;
 1660|    162|  }
 1661|       |
 1662|   174k|  case AsmToken::Equal:
  ------------------
  |  Branch (1662:3): [True: 174k, False: 564k]
  ------------------
 1663|   174k|    if (!getTargetParser().equalIsAsmAssignment())
  ------------------
  |  Branch (1663:9): [True: 0, False: 174k]
  ------------------
 1664|      0|      break;
 1665|       |    // identifier '=' ... -> assignment statement
 1666|   174k|    Lex();
 1667|       |
 1668|   174k|    if (parseAssignment(IDVal, true)) {
  ------------------
  |  Branch (1668:9): [True: 130k, False: 44.4k]
  ------------------
 1669|   130k|        Info.KsError = KS_ERR_ASM_DIRECTIVE_EQU;
 1670|   130k|        return true;
 1671|   130k|    }
 1672|  44.4k|    return false;
 1673|       |
 1674|   564k|  default: // Normal instruction or directive.
  ------------------
  |  Branch (1674:3): [True: 564k, False: 175k]
  ------------------
 1675|   564k|    break;
 1676|   739k|  }
 1677|       |
 1678|       |  // If macros are enabled, check to see if this is a macro instantiation.
 1679|   564k|  if (areMacrosEnabled())
  ------------------
  |  Branch (1679:7): [True: 564k, False: 0]
  ------------------
 1680|   564k|    if (const MCAsmMacro *M = lookupMacro(IDVal)) {
  ------------------
  |  Branch (1680:27): [True: 32.1k, False: 531k]
  ------------------
 1681|  32.1k|      return handleMacroEntry(M, IDLoc);
 1682|  32.1k|    }
 1683|       |
 1684|       |  // Otherwise, we have a normal instruction or directive.
 1685|   531k|  if (isDirective(IDVal)) {
  ------------------
  |  Branch (1685:7): [True: 521k, False: 10.2k]
  ------------------
 1686|       |    // There are several entities interested in parsing directives:
 1687|       |    //
 1688|       |    // 1. The target-specific assembly parser. Some directives are target
 1689|       |    //    specific or may potentially behave differently on certain targets.
 1690|       |    // 2. Asm parser extensions. For example, platform-specific parsers
 1691|       |    //    (like the ELF parser) register themselves as extensions.
 1692|       |    // 3. The generic directive parser implemented by this class. These are
 1693|       |    //    all the directives that behave in a target and platform independent
 1694|       |    //    manner, or at least have a default behavior that's shared between
 1695|       |    //    all targets and platforms.
 1696|       |
 1697|       |    // First query the target-specific parser. It will return 'true' if it
 1698|       |    // isn't interested in this directive.
 1699|   521k|      uint64_t BytesInFragment = getStreamer().getCurrentFragmentSize();
 1700|   521k|      if (!getTargetParser().ParseDirective(ID)){
  ------------------
  |  Branch (1700:11): [True: 100, False: 521k]
  ------------------
 1701|       |        // increment the address for the next statement if the directive
 1702|       |        // has emitted any value to the streamer.
 1703|    100|        Address += getStreamer().getCurrentFragmentSize() - BytesInFragment;
 1704|    100|        return false;
 1705|    100|        }
 1706|       |
 1707|       |    // Next, check the extension directive map to see if any extension has
 1708|       |    // registered itself to parse this directive.
 1709|   521k|    std::pair<MCAsmParserExtension *, DirectiveHandler> Handler =
 1710|   521k|        ExtensionDirectiveMap.lookup(IDVal);
 1711|   521k|    if (Handler.first)
  ------------------
  |  Branch (1711:9): [True: 3.31k, False: 518k]
  ------------------
 1712|  3.31k|      return (*Handler.second)(Handler.first, IDVal, IDLoc);
 1713|       |
 1714|       |    // Finally, if no one else is interested in this directive, it must be
 1715|       |    // generic and familiar to this class.
 1716|   518k|    switch (DirKind) {
 1717|   329k|    default:
  ------------------
  |  Branch (1717:5): [True: 329k, False: 189k]
  ------------------
 1718|   329k|      break;
 1719|   329k|    case DK_SET:
  ------------------
  |  Branch (1719:5): [True: 1.01k, False: 517k]
  ------------------
 1720|  1.01k|    case DK_EQU:
  ------------------
  |  Branch (1720:5): [True: 1, False: 518k]
  ------------------
 1721|  1.01k|      return parseDirectiveSet(IDVal, true);
 1722|      0|    case DK_EQUIV:
  ------------------
  |  Branch (1722:5): [True: 0, False: 518k]
  ------------------
 1723|      0|      return parseDirectiveSet(IDVal, false);
 1724|    230|    case DK_ASCII:
  ------------------
  |  Branch (1724:5): [True: 230, False: 517k]
  ------------------
 1725|    230|      return parseDirectiveAscii(IDVal, false);
 1726|    323|    case DK_ASCIZ:
  ------------------
  |  Branch (1726:5): [True: 323, False: 517k]
  ------------------
 1727|  1.18k|    case DK_STRING:
  ------------------
  |  Branch (1727:5): [True: 864, False: 517k]
  ------------------
 1728|  1.18k|      return parseDirectiveAscii(IDVal, true);
 1729|    385|    case DK_BYTE:
  ------------------
  |  Branch (1729:5): [True: 385, False: 517k]
  ------------------
 1730|    385|      return parseDirectiveValue(1, Info.KsError);
 1731|     82|    case DK_SHORT:
  ------------------
  |  Branch (1731:5): [True: 82, False: 518k]
  ------------------
 1732|     93|    case DK_VALUE:
  ------------------
  |  Branch (1732:5): [True: 11, False: 518k]
  ------------------
 1733|    200|    case DK_2BYTE:
  ------------------
  |  Branch (1733:5): [True: 107, False: 518k]
  ------------------
 1734|    200|      return parseDirectiveValue(2, Info.KsError);
 1735|    105|    case DK_LONG:
  ------------------
  |  Branch (1735:5): [True: 105, False: 518k]
  ------------------
 1736|  1.08k|    case DK_INT:
  ------------------
  |  Branch (1736:5): [True: 977, False: 517k]
  ------------------
 1737|  14.2k|    case DK_4BYTE:
  ------------------
  |  Branch (1737:5): [True: 13.1k, False: 505k]
  ------------------
 1738|  14.2k|      return parseDirectiveValue(4, Info.KsError);
 1739|     26|    case DK_QUAD:
  ------------------
  |  Branch (1739:5): [True: 26, False: 518k]
  ------------------
 1740|    252|    case DK_8BYTE:
  ------------------
  |  Branch (1740:5): [True: 226, False: 518k]
  ------------------
 1741|    252|      return parseDirectiveValue(8, Info.KsError);
 1742|    311|    case DK_OCTA:
  ------------------
  |  Branch (1742:5): [True: 311, False: 517k]
  ------------------
 1743|    311|      return parseDirectiveOctaValue(Info.KsError);
 1744|    234|    case DK_SINGLE:
  ------------------
  |  Branch (1744:5): [True: 234, False: 517k]
  ------------------
 1745|  1.90k|    case DK_FLOAT:
  ------------------
  |  Branch (1745:5): [True: 1.67k, False: 516k]
  ------------------
 1746|  1.90k|      return parseDirectiveRealValue(APFloat::IEEEsingle);
 1747|      0|    case DK_DOUBLE:
  ------------------
  |  Branch (1747:5): [True: 0, False: 518k]
  ------------------
 1748|      0|      return parseDirectiveRealValue(APFloat::IEEEdouble);
 1749|  10.8k|    case DK_ALIGN: {
  ------------------
  |  Branch (1749:5): [True: 10.8k, False: 507k]
  ------------------
 1750|  10.8k|      bool IsPow2 = !getContext().getAsmInfo()->getAlignmentIsInBytes();
 1751|  10.8k|      return parseDirectiveAlign(IsPow2, /*ExprSize=*/1);
 1752|    234|    }
 1753|     58|    case DK_ALIGN32: {
  ------------------
  |  Branch (1753:5): [True: 58, False: 518k]
  ------------------
 1754|     58|      bool IsPow2 = !getContext().getAsmInfo()->getAlignmentIsInBytes();
 1755|     58|      return parseDirectiveAlign(IsPow2, /*ExprSize=*/4);
 1756|    234|    }
 1757|  1.13k|    case DK_BALIGN:
  ------------------
  |  Branch (1757:5): [True: 1.13k, False: 517k]
  ------------------
 1758|  1.13k|      return parseDirectiveAlign(/*IsPow2=*/false, /*ExprSize=*/1);
 1759|     23|    case DK_BALIGNW:
  ------------------
  |  Branch (1759:5): [True: 23, False: 518k]
  ------------------
 1760|     23|      return parseDirectiveAlign(/*IsPow2=*/false, /*ExprSize=*/2);
 1761|    105|    case DK_BALIGNL:
  ------------------
  |  Branch (1761:5): [True: 105, False: 518k]
  ------------------
 1762|    105|      return parseDirectiveAlign(/*IsPow2=*/false, /*ExprSize=*/4);
 1763|      0|    case DK_P2ALIGN:
  ------------------
  |  Branch (1763:5): [True: 0, False: 518k]
  ------------------
 1764|      0|      return parseDirectiveAlign(/*IsPow2=*/true, /*ExprSize=*/1);
 1765|      0|    case DK_P2ALIGNW:
  ------------------
  |  Branch (1765:5): [True: 0, False: 518k]
  ------------------
 1766|      0|      return parseDirectiveAlign(/*IsPow2=*/true, /*ExprSize=*/2);
 1767|      0|    case DK_P2ALIGNL:
  ------------------
  |  Branch (1767:5): [True: 0, False: 518k]
  ------------------
 1768|      0|      return parseDirectiveAlign(/*IsPow2=*/true, /*ExprSize=*/4);
 1769|  1.38k|    case DK_ORG:
  ------------------
  |  Branch (1769:5): [True: 1.38k, False: 516k]
  ------------------
 1770|  1.38k|      return parseDirectiveOrg();
 1771|  4.25k|    case DK_FILL:
  ------------------
  |  Branch (1771:5): [True: 4.25k, False: 513k]
  ------------------
 1772|  4.25k|      return parseDirectiveFill();
 1773|  12.9k|    case DK_ZERO:
  ------------------
  |  Branch (1773:5): [True: 12.9k, False: 505k]
  ------------------
 1774|  12.9k|      return parseDirectiveZero();
 1775|      0|    case DK_EXTERN:
  ------------------
  |  Branch (1775:5): [True: 0, False: 518k]
  ------------------
 1776|      0|      eatToEndOfStatement(); // .extern is the default, ignore it.
 1777|      0|      return false;
 1778|     55|    case DK_GLOBL:
  ------------------
  |  Branch (1778:5): [True: 55, False: 518k]
  ------------------
 1779|     76|    case DK_GLOBAL:
  ------------------
  |  Branch (1779:5): [True: 21, False: 518k]
  ------------------
 1780|     76|      return parseDirectiveSymbolAttribute(MCSA_Global);
 1781|      0|    case DK_LAZY_REFERENCE:
  ------------------
  |  Branch (1781:5): [True: 0, False: 518k]
  ------------------
 1782|      0|      return parseDirectiveSymbolAttribute(MCSA_LazyReference);
 1783|      0|    case DK_NO_DEAD_STRIP:
  ------------------
  |  Branch (1783:5): [True: 0, False: 518k]
  ------------------
 1784|      0|      return parseDirectiveSymbolAttribute(MCSA_NoDeadStrip);
 1785|      0|    case DK_SYMBOL_RESOLVER:
  ------------------
  |  Branch (1785:5): [True: 0, False: 518k]
  ------------------
 1786|      0|      return parseDirectiveSymbolAttribute(MCSA_SymbolResolver);
 1787|      0|    case DK_PRIVATE_EXTERN:
  ------------------
  |  Branch (1787:5): [True: 0, False: 518k]
  ------------------
 1788|      0|      return parseDirectiveSymbolAttribute(MCSA_PrivateExtern);
 1789|      0|    case DK_REFERENCE:
  ------------------
  |  Branch (1789:5): [True: 0, False: 518k]
  ------------------
 1790|      0|      return parseDirectiveSymbolAttribute(MCSA_Reference);
 1791|      0|    case DK_WEAK_DEFINITION:
  ------------------
  |  Branch (1791:5): [True: 0, False: 518k]
  ------------------
 1792|      0|      return parseDirectiveSymbolAttribute(MCSA_WeakDefinition);
 1793|      0|    case DK_WEAK_REFERENCE:
  ------------------
  |  Branch (1793:5): [True: 0, False: 518k]
  ------------------
 1794|      0|      return parseDirectiveSymbolAttribute(MCSA_WeakReference);
 1795|      0|    case DK_WEAK_DEF_CAN_BE_HIDDEN:
  ------------------
  |  Branch (1795:5): [True: 0, False: 518k]
  ------------------
 1796|      0|      return parseDirectiveSymbolAttribute(MCSA_WeakDefAutoPrivate);
 1797|  1.56k|    case DK_COMM:
  ------------------
  |  Branch (1797:5): [True: 1.56k, False: 516k]
  ------------------
 1798|  1.59k|    case DK_COMMON:
  ------------------
  |  Branch (1798:5): [True: 34, False: 518k]
  ------------------
 1799|  1.59k|      return parseDirectiveComm(/*IsLocal=*/false);
 1800|    283|    case DK_LCOMM:
  ------------------
  |  Branch (1800:5): [True: 283, False: 517k]
  ------------------
 1801|    283|      return parseDirectiveComm(/*IsLocal=*/true);
 1802|      4|    case DK_ABORT:
  ------------------
  |  Branch (1802:5): [True: 4, False: 518k]
  ------------------
 1803|      4|      return parseDirectiveAbort();
 1804|    167|    case DK_INCLUDE:
  ------------------
  |  Branch (1804:5): [True: 167, False: 518k]
  ------------------
 1805|    167|      return parseDirectiveInclude();
 1806|      0|    case DK_INCBIN:
  ------------------
  |  Branch (1806:5): [True: 0, False: 518k]
  ------------------
 1807|      0|      return parseDirectiveIncbin();
 1808|      1|    case DK_CODE16:
  ------------------
  |  Branch (1808:5): [True: 1, False: 518k]
  ------------------
 1809|      1|    case DK_CODE16GCC:
  ------------------
  |  Branch (1809:5): [True: 0, False: 518k]
  ------------------
 1810|       |      // return TokError(Twine(IDVal) + " not supported yet");
 1811|      1|      Info.KsError = KS_ERR_ASM_UNSUPPORTED;
 1812|      1|      return true;
 1813|  77.0k|    case DK_REPT:
  ------------------
  |  Branch (1813:5): [True: 77.0k, False: 441k]
  ------------------
 1814|  77.0k|      return parseDirectiveRept(IDLoc, IDVal);
 1815|  2.67k|    case DK_IRP:
  ------------------
  |  Branch (1815:5): [True: 2.67k, False: 515k]
  ------------------
 1816|  2.67k|      return parseDirectiveIrp(IDLoc);
 1817|  7.12k|    case DK_IRPC:
  ------------------
  |  Branch (1817:5): [True: 7.12k, False: 511k]
  ------------------
 1818|  7.12k|      return parseDirectiveIrpc(IDLoc);
 1819|  2.47k|    case DK_ENDR:
  ------------------
  |  Branch (1819:5): [True: 2.47k, False: 515k]
  ------------------
 1820|  2.47k|      return parseDirectiveEndr(IDLoc);
 1821|      0|    case DK_BUNDLE_ALIGN_MODE:
  ------------------
  |  Branch (1821:5): [True: 0, False: 518k]
  ------------------
 1822|      0|      return parseDirectiveBundleAlignMode();
 1823|      0|    case DK_BUNDLE_LOCK:
  ------------------
  |  Branch (1823:5): [True: 0, False: 518k]
  ------------------
 1824|      0|      return parseDirectiveBundleLock();
 1825|      0|    case DK_BUNDLE_UNLOCK:
  ------------------
  |  Branch (1825:5): [True: 0, False: 518k]
  ------------------
 1826|      0|      return parseDirectiveBundleUnlock();
 1827|      0|    case DK_SLEB128:
  ------------------
  |  Branch (1827:5): [True: 0, False: 518k]
  ------------------
 1828|      0|      return parseDirectiveLEB128(true);
 1829|      0|    case DK_ULEB128:
  ------------------
  |  Branch (1829:5): [True: 0, False: 518k]
  ------------------
 1830|      0|      return parseDirectiveLEB128(false);
 1831|    310|    case DK_SPACE:
  ------------------
  |  Branch (1831:5): [True: 310, False: 517k]
  ------------------
 1832|  1.17k|    case DK_SKIP:
  ------------------
  |  Branch (1832:5): [True: 865, False: 517k]
  ------------------
 1833|  1.17k|      return parseDirectiveSpace(IDVal);
 1834|  1.83k|    case DK_FILE:
  ------------------
  |  Branch (1834:5): [True: 1.83k, False: 516k]
  ------------------
 1835|  1.83k|      return parseDirectiveFile(IDLoc);
 1836|  4.63k|    case DK_LINE:
  ------------------
  |  Branch (1836:5): [True: 4.63k, False: 513k]
  ------------------
 1837|  4.63k|      return parseDirectiveLine();
 1838|    273|    case DK_LOC:
  ------------------
  |  Branch (1838:5): [True: 273, False: 517k]
  ------------------
 1839|    273|      return parseDirectiveLoc();
 1840|      0|    case DK_STABS:
  ------------------
  |  Branch (1840:5): [True: 0, False: 518k]
  ------------------
 1841|      0|      return parseDirectiveStabs();
 1842|      0|    case DK_CV_FILE:
  ------------------
  |  Branch (1842:5): [True: 0, False: 518k]
  ------------------
 1843|      0|      return parseDirectiveCVFile();
 1844|      0|    case DK_CV_LOC:
  ------------------
  |  Branch (1844:5): [True: 0, False: 518k]
  ------------------
 1845|      0|      return parseDirectiveCVLoc();
 1846|      0|    case DK_CV_LINETABLE:
  ------------------
  |  Branch (1846:5): [True: 0, False: 518k]
  ------------------
 1847|      0|      return parseDirectiveCVLinetable();
 1848|      0|    case DK_CV_INLINE_LINETABLE:
  ------------------
  |  Branch (1848:5): [True: 0, False: 518k]
  ------------------
 1849|      0|      return parseDirectiveCVInlineLinetable();
 1850|      0|    case DK_CV_STRINGTABLE:
  ------------------
  |  Branch (1850:5): [True: 0, False: 518k]
  ------------------
 1851|      0|      return parseDirectiveCVStringTable();
 1852|      0|    case DK_CV_FILECHECKSUMS:
  ------------------
  |  Branch (1852:5): [True: 0, False: 518k]
  ------------------
 1853|      0|      return parseDirectiveCVFileChecksums();
 1854|      0|    case DK_CFI_SECTIONS:
  ------------------
  |  Branch (1854:5): [True: 0, False: 518k]
  ------------------
 1855|      0|      return parseDirectiveCFISections();
 1856|      0|    case DK_CFI_STARTPROC:
  ------------------
  |  Branch (1856:5): [True: 0, False: 518k]
  ------------------
 1857|      0|      return parseDirectiveCFIStartProc();
 1858|      0|    case DK_CFI_ENDPROC:
  ------------------
  |  Branch (1858:5): [True: 0, False: 518k]
  ------------------
 1859|      0|      return parseDirectiveCFIEndProc();
 1860|      0|    case DK_CFI_DEF_CFA:
  ------------------
  |  Branch (1860:5): [True: 0, False: 518k]
  ------------------
 1861|      0|      return parseDirectiveCFIDefCfa(IDLoc);
 1862|      0|    case DK_CFI_DEF_CFA_OFFSET:
  ------------------
  |  Branch (1862:5): [True: 0, False: 518k]
  ------------------
 1863|      0|      return parseDirectiveCFIDefCfaOffset();
 1864|      0|    case DK_CFI_ADJUST_CFA_OFFSET:
  ------------------
  |  Branch (1864:5): [True: 0, False: 518k]
  ------------------
 1865|      0|      return parseDirectiveCFIAdjustCfaOffset();
 1866|      0|    case DK_CFI_DEF_CFA_REGISTER:
  ------------------
  |  Branch (1866:5): [True: 0, False: 518k]
  ------------------
 1867|      0|      return parseDirectiveCFIDefCfaRegister(IDLoc);
 1868|      0|    case DK_CFI_OFFSET:
  ------------------
  |  Branch (1868:5): [True: 0, False: 518k]
  ------------------
 1869|      0|      return parseDirectiveCFIOffset(IDLoc);
 1870|      0|    case DK_CFI_REL_OFFSET:
  ------------------
  |  Branch (1870:5): [True: 0, False: 518k]
  ------------------
 1871|      0|      return parseDirectiveCFIRelOffset(IDLoc);
 1872|      0|    case DK_CFI_PERSONALITY:
  ------------------
  |  Branch (1872:5): [True: 0, False: 518k]
  ------------------
 1873|      0|      return parseDirectiveCFIPersonalityOrLsda(true);
 1874|      0|    case DK_CFI_LSDA:
  ------------------
  |  Branch (1874:5): [True: 0, False: 518k]
  ------------------
 1875|      0|      return parseDirectiveCFIPersonalityOrLsda(false);
 1876|      0|    case DK_CFI_REMEMBER_STATE:
  ------------------
  |  Branch (1876:5): [True: 0, False: 518k]
  ------------------
 1877|      0|      return parseDirectiveCFIRememberState();
 1878|      0|    case DK_CFI_RESTORE_STATE:
  ------------------
  |  Branch (1878:5): [True: 0, False: 518k]
  ------------------
 1879|      0|      return parseDirectiveCFIRestoreState();
 1880|      0|    case DK_CFI_SAME_VALUE:
  ------------------
  |  Branch (1880:5): [True: 0, False: 518k]
  ------------------
 1881|      0|      return parseDirectiveCFISameValue(IDLoc);
 1882|      0|    case DK_CFI_RESTORE:
  ------------------
  |  Branch (1882:5): [True: 0, False: 518k]
  ------------------
 1883|      0|      return parseDirectiveCFIRestore(IDLoc);
 1884|      0|    case DK_CFI_ESCAPE:
  ------------------
  |  Branch (1884:5): [True: 0, False: 518k]
  ------------------
 1885|      0|      return parseDirectiveCFIEscape();
 1886|      0|    case DK_CFI_SIGNAL_FRAME:
  ------------------
  |  Branch (1886:5): [True: 0, False: 518k]
  ------------------
 1887|      0|      return parseDirectiveCFISignalFrame();
 1888|      0|    case DK_CFI_UNDEFINED:
  ------------------
  |  Branch (1888:5): [True: 0, False: 518k]
  ------------------
 1889|      0|      return parseDirectiveCFIUndefined(IDLoc);
 1890|      0|    case DK_CFI_REGISTER:
  ------------------
  |  Branch (1890:5): [True: 0, False: 518k]
  ------------------
 1891|      0|      return parseDirectiveCFIRegister(IDLoc);
 1892|      0|    case DK_CFI_WINDOW_SAVE:
  ------------------
  |  Branch (1892:5): [True: 0, False: 518k]
  ------------------
 1893|      0|      return parseDirectiveCFIWindowSave();
 1894|      0|    case DK_MACROS_ON:
  ------------------
  |  Branch (1894:5): [True: 0, False: 518k]
  ------------------
 1895|      0|    case DK_MACROS_OFF:
  ------------------
  |  Branch (1895:5): [True: 0, False: 518k]
  ------------------
 1896|      0|      return parseDirectiveMacrosOnOff(IDVal);
 1897|  3.96k|    case DK_MACRO:
  ------------------
  |  Branch (1897:5): [True: 3.96k, False: 514k]
  ------------------
 1898|  3.96k|      return parseDirectiveMacro(IDLoc);
 1899|      0|    case DK_EXITM:
  ------------------
  |  Branch (1899:5): [True: 0, False: 518k]
  ------------------
 1900|      0|      return parseDirectiveExitMacro(IDVal);
 1901|  1.43k|    case DK_ENDM:
  ------------------
  |  Branch (1901:5): [True: 1.43k, False: 516k]
  ------------------
 1902|  30.2k|    case DK_ENDMACRO:
  ------------------
  |  Branch (1902:5): [True: 28.8k, False: 489k]
  ------------------
 1903|  30.2k|      return parseDirectiveEndMacro(IDVal);
 1904|      5|    case DK_PURGEM:
  ------------------
  |  Branch (1904:5): [True: 5, False: 518k]
  ------------------
 1905|      5|      return parseDirectivePurgeMacro(IDLoc);
 1906|  1.72k|    case DK_END:
  ------------------
  |  Branch (1906:5): [True: 1.72k, False: 516k]
  ------------------
 1907|  1.72k|      return parseDirectiveEnd(IDLoc);
 1908|    276|    case DK_ERR:
  ------------------
  |  Branch (1908:5): [True: 276, False: 517k]
  ------------------
 1909|    276|      return parseDirectiveError(IDLoc, false);
 1910|    175|    case DK_ERROR:
  ------------------
  |  Branch (1910:5): [True: 175, False: 518k]
  ------------------
 1911|    175|      return parseDirectiveError(IDLoc, true);
 1912|    328|    case DK_WARNING:
  ------------------
  |  Branch (1912:5): [True: 328, False: 517k]
  ------------------
 1913|    328|      return parseDirectiveWarning(IDLoc);
 1914|  2.66k|    case DK_RELOC:
  ------------------
  |  Branch (1914:5): [True: 2.66k, False: 515k]
  ------------------
 1915|  2.66k|      return parseDirectiveReloc(IDLoc);
 1916|      0|    case DK_NASM_BITS:
  ------------------
  |  Branch (1916:5): [True: 0, False: 518k]
  ------------------
 1917|      0|      if (parseNasmDirectiveBits()) {
  ------------------
  |  Branch (1917:11): [True: 0, False: 0]
  ------------------
 1918|      0|          Info.KsError = KS_ERR_ASM_DIRECTIVE_ID;
 1919|      0|          return true;
 1920|      0|      } else {
 1921|      0|          return false;
 1922|      0|      }
 1923|      0|    case DK_NASM_USE32:
  ------------------
  |  Branch (1923:5): [True: 0, False: 518k]
  ------------------
 1924|      0|      return parseNasmDirectiveUse32();
 1925|      0|    case DK_NASM_DEFAULT:
  ------------------
  |  Branch (1925:5): [True: 0, False: 518k]
  ------------------
 1926|      0|      if (parseNasmDirectiveDefault()) {
  ------------------
  |  Branch (1926:11): [True: 0, False: 0]
  ------------------
 1927|      0|        Info.KsError = KS_ERR_ASM_DIRECTIVE_ID;
 1928|      0|        return true;
 1929|      0|      } else {
 1930|      0|        return false;
 1931|      0|      }
 1932|   518k|    }
 1933|       |
 1934|       |    //return Error(IDLoc, "unknown directive");
 1935|   329k|    KsError = KS_ERR_ASM_DIRECTIVE_UNKNOWN;
 1936|   329k|    return true;
 1937|   518k|  }
 1938|       |
 1939|       |  // __asm _emit or __asm __emit
 1940|  10.2k|  if (ParsingInlineAsm && (IDVal == "_emit" || IDVal == "__emit" ||
  ------------------
  |  Branch (1940:7): [True: 0, False: 10.2k]
  |  Branch (1940:7): [True: 0, False: 10.2k]
  |  Branch (1940:28): [True: 0, False: 0]
  |  Branch (1940:48): [True: 0, False: 0]
  ------------------
 1941|      0|                           IDVal == "_EMIT" || IDVal == "__EMIT"))
  ------------------
  |  Branch (1941:28): [True: 0, False: 0]
  |  Branch (1941:48): [True: 0, False: 0]
  ------------------
 1942|      0|    return parseDirectiveMSEmit(IDLoc, Info, IDVal.size());
 1943|       |
 1944|       |  // __asm align
 1945|  10.2k|  if (ParsingInlineAsm && (IDVal == "align" || IDVal == "ALIGN"))
  ------------------
  |  Branch (1945:7): [True: 0, False: 10.2k]
  |  Branch (1945:7): [True: 0, False: 10.2k]
  |  Branch (1945:28): [True: 0, False: 0]
  |  Branch (1945:48): [True: 0, False: 0]
  ------------------
 1946|      0|    return parseDirectiveMSAlign(IDLoc, Info);
 1947|       |
 1948|  10.2k|  if (ParsingInlineAsm && (IDVal == "even"))
  ------------------
  |  Branch (1948:7): [True: 0, False: 10.2k]
  |  Branch (1948:7): [True: 0, False: 10.2k]
  |  Branch (1948:27): [True: 0, False: 0]
  ------------------
 1949|      0|    Info.AsmRewrites->emplace_back(AOK_EVEN, IDLoc, 4);
 1950|  10.2k|  checkForValidSection();
 1951|       |
 1952|       |  // Canonicalize the opcode to lower case.
 1953|  10.2k|  std::string OpcodeStr = IDVal.lower();
 1954|  10.2k|  ParseInstructionInfo IInfo(Info.AsmRewrites);
 1955|       |  //printf(">> Going to ParseInstruction()\n");
 1956|  10.2k|  bool HadError = getTargetParser().ParseInstruction(IInfo, OpcodeStr, ID,
 1957|  10.2k|                                                     Info.ParsedOperands, Info.KsError);
 1958|  10.2k|  Info.ParseError = HadError;
 1959|       |
 1960|       |  // If parsing succeeded, match the instruction.
 1961|  10.2k|  if (!HadError) {
  ------------------
  |  Branch (1961:7): [True: 3.35k, False: 6.94k]
  ------------------
 1962|  3.35k|    uint64_t ErrorInfo;
 1963|       |    //printf(">> Going to MatchAndEmitInstruction()\n");
 1964|  3.35k|    return getTargetParser().MatchAndEmitInstruction(IDLoc, Info.Opcode,
 1965|  3.35k|                                              Info.ParsedOperands, Out,
 1966|  3.35k|                                              ErrorInfo, ParsingInlineAsm,
 1967|  3.35k|                                              Info.KsError, Address);
 1968|  3.35k|  }
 1969|       |
 1970|  6.94k|  return true;
 1971|  10.2k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser31parseCppHashLineFilenameCommentEN7llvm_ks5SMLocE:
 1986|  36.9k|bool AsmParser::parseCppHashLineFilenameComment(SMLoc L) {
 1987|  36.9k|  Lex(); // Eat the hash token.
 1988|       |
 1989|  36.9k|  if (getLexer().isNot(AsmToken::Integer)) {
  ------------------
  |  Branch (1989:7): [True: 31.0k, False: 5.90k]
  ------------------
 1990|       |    // Consume the line since in cases it is not a well-formed line directive,
 1991|       |    // as if were simply a full line comment.
 1992|  31.0k|    eatToEndOfLine();
 1993|  31.0k|    return false;
 1994|  31.0k|  }
 1995|       |
 1996|  5.90k|  bool valid;
 1997|  5.90k|  int64_t LineNumber = getTok().getIntVal(valid);
 1998|  5.90k|  if (!valid) {
  ------------------
  |  Branch (1998:7): [True: 0, False: 5.90k]
  ------------------
 1999|      0|      return true;
 2000|      0|  }
 2001|  5.90k|  Lex();
 2002|       |
 2003|  5.90k|  if (getLexer().isNot(AsmToken::String)) {
  ------------------
  |  Branch (2003:7): [True: 5.66k, False: 244]
  ------------------
 2004|  5.66k|    eatToEndOfLine();
 2005|  5.66k|    return false;
 2006|  5.66k|  }
 2007|       |
 2008|    244|  StringRef Filename = getTok().getString();
 2009|       |  // Get rid of the enclosing quotes.
 2010|    244|  Filename = Filename.substr(1, Filename.size() - 2);
 2011|       |
 2012|       |  // Save the SMLoc, Filename and LineNumber for later use by diagnostics.
 2013|    244|  CppHashLoc = L;
 2014|    244|  CppHashFilename = Filename;
 2015|    244|  CppHashLineNumber = LineNumber;
 2016|    244|  CppHashBuf = CurBuffer;
 2017|       |
 2018|       |  // Ignore any trailing characters, they're just comment.
 2019|    244|  eatToEndOfLine();
 2020|    244|  return false;
 2021|  5.90k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser14eatToEndOfLineEv:
 1976|  36.9k|{
 1977|  36.9k|  if (!Lexer.is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1977:7): [True: 33.0k, False: 3.90k]
  ------------------
 1978|  33.0k|    Lexer.LexUntilEndOfLine();
 1979|       |  // Eat EOL.
 1980|  36.9k|  Lex();
 1981|  36.9k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser16parseDirectiveIfEN7llvm_ks5SMLocENS0_13DirectiveKindE:
 4909|  3.72k|{
 4910|  3.72k|  TheCondStack.push_back(TheCondState);
 4911|  3.72k|  TheCondState.TheCond = AsmCond::IfCond;
 4912|  3.72k|  if (TheCondState.Ignore) {
  ------------------
  |  Branch (4912:7): [True: 476, False: 3.24k]
  ------------------
 4913|    476|    eatToEndOfStatement();
 4914|  3.24k|  } else {
 4915|  3.24k|    int64_t ExprValue;
 4916|  3.24k|    if (parseAbsoluteExpression(ExprValue)) {
  ------------------
  |  Branch (4916:9): [True: 846, False: 2.40k]
  ------------------
 4917|    846|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4918|    846|      return true;
 4919|    846|    }
 4920|       |
 4921|  2.40k|    if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4921:9): [True: 281, False: 2.11k]
  ------------------
 4922|       |      //return TokError("unexpected token in '.if' directive");
 4923|    281|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4924|    281|      return true;
 4925|    281|    }
 4926|       |
 4927|  2.11k|    Lex();
 4928|       |
 4929|  2.11k|    switch (DirKind) {
 4930|      0|    default:
  ------------------
  |  Branch (4930:5): [True: 0, False: 2.11k]
  ------------------
 4931|      0|      llvm_unreachable("unsupported directive");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 4932|    793|    case DK_IF:
  ------------------
  |  Branch (4932:5): [True: 793, False: 1.32k]
  ------------------
 4933|    872|    case DK_IFNE:
  ------------------
  |  Branch (4933:5): [True: 79, False: 2.04k]
  ------------------
 4934|    872|      break;
 4935|    298|    case DK_IFEQ:
  ------------------
  |  Branch (4935:5): [True: 298, False: 1.82k]
  ------------------
 4936|    298|      ExprValue = ExprValue == 0;
 4937|    298|      break;
 4938|    330|    case DK_IFGE:
  ------------------
  |  Branch (4938:5): [True: 330, False: 1.78k]
  ------------------
 4939|    330|      ExprValue = ExprValue >= 0;
 4940|    330|      break;
 4941|    267|    case DK_IFGT:
  ------------------
  |  Branch (4941:5): [True: 267, False: 1.85k]
  ------------------
 4942|    267|      ExprValue = ExprValue > 0;
 4943|    267|      break;
 4944|    277|    case DK_IFLE:
  ------------------
  |  Branch (4944:5): [True: 277, False: 1.84k]
  ------------------
 4945|    277|      ExprValue = ExprValue <= 0;
 4946|    277|      break;
 4947|     75|    case DK_IFLT:
  ------------------
  |  Branch (4947:5): [True: 75, False: 2.04k]
  ------------------
 4948|     75|      ExprValue = ExprValue < 0;
 4949|     75|      break;
 4950|  2.11k|    }
 4951|       |
 4952|  2.11k|    TheCondState.CondMet = ExprValue;
 4953|  2.11k|    TheCondState.Ignore = !TheCondState.CondMet;
 4954|  2.11k|  }
 4955|       |
 4956|  2.59k|  return false;
 4957|  3.72k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser17parseDirectiveIfbEN7llvm_ks5SMLocEb:
 4962|  8.39k|{
 4963|  8.39k|  TheCondStack.push_back(TheCondState);
 4964|  8.39k|  TheCondState.TheCond = AsmCond::IfCond;
 4965|       |
 4966|  8.39k|  if (TheCondState.Ignore) {
  ------------------
  |  Branch (4966:7): [True: 423, False: 7.96k]
  ------------------
 4967|    423|    eatToEndOfStatement();
 4968|  7.96k|  } else {
 4969|  7.96k|    StringRef Str = parseStringToEndOfStatement();
 4970|       |
 4971|  7.96k|    if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4971:9): [True: 1, False: 7.96k]
  ------------------
 4972|       |      //return TokError("unexpected token in '.ifb' directive");
 4973|      1|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4974|      1|      return true;
 4975|      1|    }
 4976|       |
 4977|  7.96k|    Lex();
 4978|       |
 4979|  7.96k|    TheCondState.CondMet = ExpectBlank == Str.empty();
 4980|  7.96k|    TheCondState.Ignore = !TheCondState.CondMet;
 4981|  7.96k|  }
 4982|       |
 4983|  8.39k|  return false;
 4984|  8.39k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser17parseDirectiveIfcEN7llvm_ks5SMLocEb:
 4990|   111k|{
 4991|   111k|  TheCondStack.push_back(TheCondState);
 4992|   111k|  TheCondState.TheCond = AsmCond::IfCond;
 4993|       |
 4994|   111k|  if (TheCondState.Ignore) {
  ------------------
  |  Branch (4994:7): [True: 381, False: 111k]
  ------------------
 4995|    381|    eatToEndOfStatement();
 4996|   111k|  } else {
 4997|   111k|    StringRef Str1 = parseStringToComma();
 4998|       |
 4999|   111k|    if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (4999:9): [True: 84.9k, False: 26.6k]
  ------------------
 5000|       |      //return TokError("unexpected token in '.ifc' directive");
 5001|  84.9k|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5002|  84.9k|      return true;
 5003|  84.9k|    }
 5004|       |
 5005|  26.6k|    Lex();
 5006|       |
 5007|  26.6k|    StringRef Str2 = parseStringToEndOfStatement();
 5008|       |
 5009|  26.6k|    if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5009:9): [True: 1, False: 26.6k]
  ------------------
 5010|       |      //return TokError("unexpected token in '.ifc' directive");
 5011|      1|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5012|      1|      return true;
 5013|      1|    }
 5014|       |
 5015|  26.6k|    Lex();
 5016|       |
 5017|  26.6k|    TheCondState.CondMet = ExpectEqual == (Str1.trim() == Str2.trim());
 5018|  26.6k|    TheCondState.Ignore = !TheCondState.CondMet;
 5019|  26.6k|  }
 5020|       |
 5021|  27.0k|  return false;
 5022|   111k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseStringToCommaEv:
  802|   111k|StringRef AsmParser::parseStringToComma() {
  803|   111k|  const char *Start = getTok().getLoc().getPointer();
  804|       |
  805|  1.00M|  while (Lexer.isNot(AsmToken::EndOfStatement) &&
  ------------------
  |  Branch (805:10): [True: 923k, False: 84.9k]
  ------------------
  806|   923k|         Lexer.isNot(AsmToken::Comma) && Lexer.isNot(AsmToken::Eof))
  ------------------
  |  Branch (806:10): [True: 896k, False: 26.6k]
  |  Branch (806:42): [True: 896k, False: 1]
  ------------------
  807|   896k|    Lex();
  808|       |
  809|   111k|  const char *End = getTok().getLoc().getPointer();
  810|   111k|  return StringRef(Start, End - Start);
  811|   111k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveIfeqsEN7llvm_ks5SMLocEb:
 5027|  1.94k|{
 5028|  1.94k|  if (Lexer.isNot(AsmToken::String)) {
  ------------------
  |  Branch (5028:7): [True: 691, False: 1.25k]
  ------------------
 5029|       |    //if (ExpectEqual)
 5030|       |    //  TokError("expected string parameter for '.ifeqs' directive");
 5031|       |    //else
 5032|       |    //  TokError("expected string parameter for '.ifnes' directive");
 5033|    691|    eatToEndOfStatement();
 5034|    691|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5035|    691|    return true;
 5036|    691|  }
 5037|       |
 5038|  1.25k|  bool valid;
 5039|  1.25k|  StringRef String1 = getTok().getStringContents(valid);
 5040|  1.25k|  if (!valid) {
  ------------------
  |  Branch (5040:7): [True: 0, False: 1.25k]
  ------------------
 5041|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5042|      0|      return true;
 5043|      0|  }
 5044|       |
 5045|  1.25k|  Lex();
 5046|       |
 5047|  1.25k|  if (Lexer.isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (5047:7): [True: 9, False: 1.24k]
  ------------------
 5048|       |    //if (ExpectEqual)
 5049|       |    //  TokError("expected comma after first string for '.ifeqs' directive");
 5050|       |    //else
 5051|       |    //  TokError("expected comma after first string for '.ifnes' directive");
 5052|      9|    eatToEndOfStatement();
 5053|      9|    return true;
 5054|      9|  }
 5055|       |
 5056|  1.24k|  Lex();
 5057|       |
 5058|  1.24k|  if (Lexer.isNot(AsmToken::String)) {
  ------------------
  |  Branch (5058:7): [True: 123, False: 1.12k]
  ------------------
 5059|       |    //if (ExpectEqual)
 5060|       |    //  TokError("expected string parameter for '.ifeqs' directive");
 5061|       |    //else
 5062|       |    //  TokError("expected string parameter for '.ifnes' directive");
 5063|    123|    eatToEndOfStatement();
 5064|    123|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5065|    123|    return true;
 5066|    123|  }
 5067|       |
 5068|  1.12k|  StringRef String2 = getTok().getStringContents(valid);
 5069|  1.12k|  if (!valid) {
  ------------------
  |  Branch (5069:7): [True: 0, False: 1.12k]
  ------------------
 5070|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5071|      0|      return true;
 5072|      0|  }
 5073|       |
 5074|  1.12k|  Lex();
 5075|       |
 5076|  1.12k|  TheCondStack.push_back(TheCondState);
 5077|  1.12k|  TheCondState.TheCond = AsmCond::IfCond;
 5078|  1.12k|  TheCondState.CondMet = ExpectEqual == (String1 == String2);
 5079|  1.12k|  TheCondState.Ignore = !TheCondState.CondMet;
 5080|       |
 5081|  1.12k|  return false;
 5082|  1.12k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveIfdefEN7llvm_ks5SMLocEb:
 5086|    827|bool AsmParser::parseDirectiveIfdef(SMLoc DirectiveLoc, bool expect_defined) {
 5087|    827|  StringRef Name;
 5088|    827|  TheCondStack.push_back(TheCondState);
 5089|    827|  TheCondState.TheCond = AsmCond::IfCond;
 5090|       |
 5091|    827|  if (TheCondState.Ignore) {
  ------------------
  |  Branch (5091:7): [True: 232, False: 595]
  ------------------
 5092|    232|    eatToEndOfStatement();
 5093|    595|  } else {
 5094|    595|    if (parseIdentifier(Name)) {
  ------------------
  |  Branch (5094:9): [True: 193, False: 402]
  ------------------
 5095|       |      //return TokError("expected identifier after '.ifdef'");
 5096|    193|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5097|    193|      return true;
 5098|    193|    }
 5099|       |
 5100|    402|    Lex();
 5101|       |
 5102|    402|    MCSymbol *Sym = getContext().lookupSymbol(Name);
 5103|       |
 5104|    402|    if (expect_defined)
  ------------------
  |  Branch (5104:9): [True: 31, False: 371]
  ------------------
 5105|     31|      TheCondState.CondMet = (Sym && !Sym->isUndefined());
  ------------------
  |  Branch (5105:31): [True: 21, False: 10]
  |  Branch (5105:38): [True: 19, False: 2]
  ------------------
 5106|    371|    else
 5107|    371|      TheCondState.CondMet = (!Sym || Sym->isUndefined());
  ------------------
  |  Branch (5107:31): [True: 281, False: 90]
  |  Branch (5107:39): [True: 89, False: 1]
  ------------------
 5108|    402|    TheCondState.Ignore = !TheCondState.CondMet;
 5109|    402|  }
 5110|       |
 5111|    634|  return false;
 5112|    827|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser20parseDirectiveElseIfEN7llvm_ks5SMLocE:
 5117|  1.31k|{
 5118|  1.31k|  if (TheCondState.TheCond != AsmCond::IfCond &&
  ------------------
  |  Branch (5118:7): [True: 870, False: 443]
  ------------------
 5119|    870|      TheCondState.TheCond != AsmCond::ElseIfCond) {
  ------------------
  |  Branch (5119:7): [True: 297, False: 573]
  ------------------
 5120|       |    //Error(DirectiveLoc, "Encountered a .elseif that doesn't follow a .if or "
 5121|       |    //                    " an .elseif");
 5122|    297|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5123|    297|    return true;
 5124|    297|  }
 5125|       |
 5126|  1.01k|  TheCondState.TheCond = AsmCond::ElseIfCond;
 5127|       |
 5128|  1.01k|  bool LastIgnoreState = false;
 5129|  1.01k|  if (!TheCondStack.empty())
  ------------------
  |  Branch (5129:7): [True: 1.01k, False: 0]
  ------------------
 5130|  1.01k|    LastIgnoreState = TheCondStack.back().Ignore;
 5131|  1.01k|  if (LastIgnoreState || TheCondState.CondMet) {
  ------------------
  |  Branch (5131:7): [True: 628, False: 388]
  |  Branch (5131:26): [True: 114, False: 274]
  ------------------
 5132|    742|    TheCondState.Ignore = true;
 5133|    742|    eatToEndOfStatement();
 5134|    742|  } else {
 5135|    274|    int64_t ExprValue;
 5136|    274|    if (parseAbsoluteExpression(ExprValue)) {
  ------------------
  |  Branch (5136:9): [True: 198, False: 76]
  ------------------
 5137|    198|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5138|    198|      return true;
 5139|    198|    }
 5140|       |
 5141|     76|    if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (5141:9): [True: 1, False: 75]
  ------------------
 5142|       |      //return TokError("unexpected token in '.elseif' directive");
 5143|      1|      return true;
 5144|       |
 5145|     75|    Lex();
 5146|     75|    TheCondState.CondMet = ExprValue;
 5147|     75|    TheCondState.Ignore = !TheCondState.CondMet;
 5148|     75|  }
 5149|       |
 5150|    817|  return false;
 5151|  1.01k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveElseEN7llvm_ks5SMLocE:
 5156|  1.01k|{
 5157|  1.01k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5157:7): [True: 211, False: 805]
  ------------------
 5158|       |    //return TokError("unexpected token in '.else' directive");
 5159|    211|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5160|    211|    return true;
 5161|    211|  }
 5162|       |
 5163|    805|  Lex();
 5164|       |
 5165|    805|  if (TheCondState.TheCond != AsmCond::IfCond &&
  ------------------
  |  Branch (5165:7): [True: 396, False: 409]
  ------------------
 5166|    396|      TheCondState.TheCond != AsmCond::ElseIfCond) {
  ------------------
  |  Branch (5166:7): [True: 79, False: 317]
  ------------------
 5167|       |    //Error(DirectiveLoc, "Encountered a .else that doesn't follow a .if or an "
 5168|       |    //                    ".elseif");
 5169|     79|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5170|     79|    return true;
 5171|     79|  }
 5172|    726|  TheCondState.TheCond = AsmCond::ElseCond;
 5173|    726|  bool LastIgnoreState = false;
 5174|    726|  if (!TheCondStack.empty())
  ------------------
  |  Branch (5174:7): [True: 726, False: 0]
  ------------------
 5175|    726|    LastIgnoreState = TheCondStack.back().Ignore;
 5176|    726|  if (LastIgnoreState || TheCondState.CondMet)
  ------------------
  |  Branch (5176:7): [True: 513, False: 213]
  |  Branch (5176:26): [True: 15, False: 198]
  ------------------
 5177|    528|    TheCondState.Ignore = true;
 5178|    198|  else
 5179|    198|    TheCondState.Ignore = false;
 5180|       |
 5181|    726|  return false;
 5182|    805|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveEndIfEN7llvm_ks5SMLocE:
 5332|    495|{
 5333|    495|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5333:7): [True: 68, False: 427]
  ------------------
 5334|       |    //return TokError("unexpected token in '.endif' directive");
 5335|     68|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5336|     68|    return true;
 5337|     68|  }
 5338|       |
 5339|    427|  Lex();
 5340|       |
 5341|    427|  if ((TheCondState.TheCond == AsmCond::NoCond) || TheCondStack.empty()) {
  ------------------
  |  Branch (5341:7): [True: 222, False: 205]
  |  Branch (5341:52): [True: 0, False: 205]
  ------------------
 5342|       |    //Error(DirectiveLoc, "Encountered a .endif that doesn't follow a .if or "
 5343|       |    //                    ".else");
 5344|    222|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5345|    222|    return true;
 5346|    222|  }
 5347|    205|  if (!TheCondStack.empty()) {
  ------------------
  |  Branch (5347:7): [True: 205, False: 0]
  ------------------
 5348|    205|    TheCondState = TheCondStack.back();
 5349|    205|    TheCondStack.pop_back();
 5350|    205|  }
 5351|       |
 5352|    205|  return false;
 5353|    427|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser15parseAssignmentEN7llvm_ks9StringRefEbb:
 2518|   175k|                                bool NoDeadStrip) {
 2519|   175k|  MCSymbol *Sym;
 2520|   175k|  const MCExpr *Value;
 2521|   175k|  if (MCParserUtils::parseAssignmentExpression(Name, allow_redef, *this, Sym,
  ------------------
  |  Branch (2521:7): [True: 128k, False: 46.7k]
  ------------------
 2522|   175k|                                               Value)) {
 2523|   128k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2524|   128k|    return true;
 2525|   128k|  }
 2526|       |
 2527|  46.7k|  if (!Sym) {
  ------------------
  |  Branch (2527:7): [True: 25.4k, False: 21.3k]
  ------------------
 2528|       |    // In the case where we parse an expression starting with a '.', we will
 2529|       |    // not generate an error, nor will we create a symbol.  In this case we
 2530|       |    // should just return out.
 2531|  25.4k|    return false;
 2532|  25.4k|  }
 2533|       |
 2534|       |  // Do the assignment.
 2535|  21.3k|  if (!Out.EmitAssignment(Sym, Value)) {
  ------------------
  |  Branch (2535:7): [True: 2.25k, False: 19.0k]
  ------------------
 2536|  2.25k|    KsError = KS_ERR_ASM_DIRECTIVE_ID;
 2537|  2.25k|    return true;
 2538|  2.25k|  }
 2539|  19.0k|  if (NoDeadStrip)
  ------------------
  |  Branch (2539:7): [True: 83, False: 19.0k]
  ------------------
 2540|     83|    Out.EmitSymbolAttribute(Sym, MCSA_NoDeadStrip);
 2541|       |
 2542|  19.0k|  return false;
 2543|  21.3k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser16areMacrosEnabledEv:
  280|   564k|  bool areMacrosEnabled() {return MacrosEnabledFlag;}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser11lookupMacroEN7llvm_ks9StringRefE:
 2446|   566k|const MCAsmMacro *AsmParser::lookupMacro(StringRef Name) {
 2447|   566k|  StringMap<MCAsmMacro>::iterator I = MacroMap.find(Name);
 2448|   566k|  return (I == MacroMap.end()) ? nullptr : &I->getValue();
  ------------------
  |  Branch (2448:10): [True: 532k, False: 34.1k]
  ------------------
 2449|   566k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser16handleMacroEntryEPKNS_10MCAsmMacroEN7llvm_ks5SMLocE:
 2458|  32.1k|{
 2459|       |  // Arbitrarily limit macro nesting depth, to match 'as'. We can eliminate
 2460|       |  // this, although we should protect against infinite loops.
 2461|  32.1k|  if (ActiveMacros.size() == 20) {
  ------------------
  |  Branch (2461:7): [True: 1.47k, False: 30.6k]
  ------------------
 2462|       |    // return TokError("macros cannot be nested more than 20 levels deep");
 2463|  1.47k|    KsError = KS_ERR_ASM_MACRO_LEVELS_EXCEED;
 2464|  1.47k|    return true;
 2465|  1.47k|  }
 2466|       |
 2467|  30.6k|  MCAsmMacroArguments A;
 2468|  30.6k|  if (parseMacroArguments(M, A)) {
  ------------------
  |  Branch (2468:7): [True: 875, False: 29.7k]
  ------------------
 2469|    875|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2470|    875|    return true;
 2471|    875|  }
 2472|       |
 2473|       |  // Macro instantiation is lexical, unfortunately. We construct a new buffer
 2474|       |  // to hold the macro body with substitutions.
 2475|  29.7k|  SmallString<256> Buf;
 2476|  29.7k|  StringRef Body = M->Body;
 2477|  29.7k|  raw_svector_ostream OS(Buf);
 2478|       |
 2479|  29.7k|  if (expandMacro(OS, Body, M->Parameters, A, true, getTok().getLoc())) {
  ------------------
  |  Branch (2479:7): [True: 0, False: 29.7k]
  ------------------
 2480|      0|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2481|      0|    return true;
 2482|      0|  }
 2483|       |
 2484|       |  // We include the .endmacro in the buffer as our cue to exit the macro
 2485|       |  // instantiation.
 2486|  29.7k|  OS << ".endmacro\n";
 2487|       |
 2488|  29.7k|  std::unique_ptr<MemoryBuffer> Instantiation =
 2489|  29.7k|      MemoryBuffer::getMemBufferCopy(OS.str(), "<instantiation>");
 2490|       |
 2491|       |  // Create the macro instantiation object and add to the current macro
 2492|       |  // instantiation stack.
 2493|  29.7k|  MacroInstantiation *MI = new MacroInstantiation(
 2494|  29.7k|      NameLoc, CurBuffer, getTok().getLoc(), TheCondStack.size());
 2495|  29.7k|  ActiveMacros.push_back(MI);
 2496|       |
 2497|  29.7k|  ++NumOfMacroInstantiations;
 2498|       |
 2499|       |  // Jump to the macro instantiation and prime the lexer.
 2500|  29.7k|  CurBuffer = SrcMgr.AddNewSourceBuffer(std::move(Instantiation), SMLoc());
 2501|  29.7k|  Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
 2502|  29.7k|  Lex();
 2503|       |
 2504|  29.7k|  return false;
 2505|  29.7k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseMacroArgumentsEPKNS_10MCAsmMacroERNSt3__16vectorINS5_IN7llvm_ks8AsmTokenENS4_9allocatorIS7_EEEENS8_ISA_EEEE:
 2337|  39.6k|{
 2338|  39.6k|  const unsigned NParameters = M ? M->Parameters.size() : 0;
  ------------------
  |  Branch (2338:32): [True: 30.6k, False: 8.97k]
  ------------------
 2339|  39.6k|  bool NamedParametersFound = false;
 2340|  39.6k|  SmallVector<SMLoc, 4> FALocs;
 2341|       |
 2342|  39.6k|  A.resize(NParameters);
 2343|  39.6k|  FALocs.resize(NParameters);
 2344|       |
 2345|       |  // Parse two kinds of macro invocations:
 2346|       |  // - macros defined without any parameters accept an arbitrary number of them
 2347|       |  // - macros defined with parameters accept at most that many of them
 2348|  39.6k|  bool HasVararg = NParameters ? M->Parameters.back().Vararg : false;
  ------------------
  |  Branch (2348:20): [True: 2.47k, False: 37.1k]
  ------------------
 2349|   134k|  for (unsigned Parameter = 0; !NParameters || Parameter < NParameters;
  ------------------
  |  Branch (2349:32): [True: 129k, False: 4.57k]
  |  Branch (2349:48): [True: 4.34k, False: 232]
  ------------------
 2350|   133k|       ++Parameter) {
 2351|       |    //SMLoc IDLoc = Lexer.getLoc();
 2352|   133k|    MCAsmMacroParameter FA;
 2353|       |
 2354|   133k|    if (Lexer.is(AsmToken::Identifier) && Lexer.peekTok().is(AsmToken::Equal)) {
  ------------------
  |  Branch (2354:9): [True: 19.7k, False: 114k]
  |  Branch (2354:9): [True: 1.61k, False: 132k]
  |  Branch (2354:43): [True: 1.61k, False: 18.1k]
  ------------------
 2355|  1.61k|      if (parseIdentifier(FA.Name)) {
  ------------------
  |  Branch (2355:11): [True: 0, False: 1.61k]
  ------------------
 2356|       |        //Error(IDLoc, "invalid argument identifier for formal argument");
 2357|      0|        eatToEndOfStatement();
 2358|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2359|      0|        return true;
 2360|      0|      }
 2361|       |
 2362|  1.61k|      if (!Lexer.is(AsmToken::Equal)) {
  ------------------
  |  Branch (2362:11): [True: 0, False: 1.61k]
  ------------------
 2363|       |        //TokError("expected '=' after formal parameter identifier");
 2364|      0|        eatToEndOfStatement();
 2365|      0|        KsError = KS_ERR_ASM_MACRO_EQU;
 2366|      0|        return true;
 2367|      0|      }
 2368|  1.61k|      Lex();
 2369|       |
 2370|  1.61k|      NamedParametersFound = true;
 2371|  1.61k|    }
 2372|       |
 2373|   133k|    if (NamedParametersFound && FA.Name.empty()) {
  ------------------
  |  Branch (2373:9): [True: 2.00k, False: 131k]
  |  Branch (2373:33): [True: 386, False: 1.61k]
  ------------------
 2374|       |      //Error(IDLoc, "cannot mix positional and keyword arguments");
 2375|    386|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2376|    386|      eatToEndOfStatement();
 2377|    386|      return true;
 2378|    386|    }
 2379|       |
 2380|   133k|    bool Vararg = HasVararg && Parameter == (NParameters - 1);
  ------------------
  |  Branch (2380:19): [True: 0, False: 133k]
  |  Branch (2380:32): [True: 0, False: 0]
  ------------------
 2381|   133k|    if (parseMacroArgument(FA.Value, Vararg)) {
  ------------------
  |  Branch (2381:9): [True: 4.20k, False: 129k]
  ------------------
 2382|  4.20k|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2383|  4.20k|      return true;
 2384|  4.20k|    }
 2385|       |
 2386|   129k|    unsigned PI = Parameter;
 2387|   129k|    if (!FA.Name.empty()) {
  ------------------
  |  Branch (2387:9): [True: 1.61k, False: 127k]
  ------------------
 2388|  1.61k|      unsigned FAI = 0;
 2389|  3.64k|      for (FAI = 0; FAI < NParameters; ++FAI)
  ------------------
  |  Branch (2389:21): [True: 3.27k, False: 369]
  ------------------
 2390|  3.27k|        if (M->Parameters[FAI].Name == FA.Name)
  ------------------
  |  Branch (2390:13): [True: 1.24k, False: 2.03k]
  ------------------
 2391|  1.24k|          break;
 2392|       |
 2393|  1.61k|      if (FAI >= NParameters) {
  ------------------
  |  Branch (2393:11): [True: 369, False: 1.24k]
  ------------------
 2394|       |        //assert(M && "expected macro to be defined");
 2395|       |        //Error(IDLoc,
 2396|       |        //      "parameter named '" + FA.Name + "' does not exist for macro '" +
 2397|       |        //      M->Name + "'");
 2398|    369|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2399|    369|        return true;
 2400|    369|      }
 2401|  1.24k|      PI = FAI;
 2402|  1.24k|    }
 2403|       |
 2404|   128k|    if (!FA.Value.empty()) {
  ------------------
  |  Branch (2404:9): [True: 33.4k, False: 95.4k]
  ------------------
 2405|  33.4k|      if (A.size() <= PI)
  ------------------
  |  Branch (2405:11): [True: 30.7k, False: 2.72k]
  ------------------
 2406|  30.7k|        A.resize(PI + 1);
 2407|  33.4k|      A[PI] = FA.Value;
 2408|       |
 2409|  33.4k|      if (FALocs.size() <= PI)
  ------------------
  |  Branch (2409:11): [True: 30.7k, False: 2.72k]
  ------------------
 2410|  30.7k|        FALocs.resize(PI + 1);
 2411|       |
 2412|  33.4k|      FALocs[PI] = Lexer.getLoc();
 2413|  33.4k|    }
 2414|       |
 2415|       |    // At the end of the statement, fill in remaining arguments that have
 2416|       |    // default values. If there aren't any, then the next argument is
 2417|       |    // required but missing
 2418|   128k|    if (Lexer.is(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (2418:9): [True: 34.4k, False: 94.5k]
  ------------------
 2419|  34.4k|      bool Failure = false;
 2420|  43.0k|      for (unsigned FAI = 0; FAI < NParameters; ++FAI) {
  ------------------
  |  Branch (2420:30): [True: 8.60k, False: 34.4k]
  ------------------
 2421|  8.60k|        if (A[FAI].empty()) {
  ------------------
  |  Branch (2421:13): [True: 7.11k, False: 1.49k]
  ------------------
 2422|  7.11k|          if (M->Parameters[FAI].Required) {
  ------------------
  |  Branch (2422:15): [True: 0, False: 7.11k]
  ------------------
 2423|       |            //Error(FALocs[FAI].isValid() ? FALocs[FAI] : Lexer.getLoc(),
 2424|       |            //      "missing value for required parameter "
 2425|       |            //      "'" + M->Parameters[FAI].Name + "' in macro '" + M->Name + "'");
 2426|      0|            KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2427|      0|            Failure = true;
 2428|      0|          }
 2429|       |
 2430|  7.11k|          if (!M->Parameters[FAI].Value.empty())
  ------------------
  |  Branch (2430:15): [True: 899, False: 6.21k]
  ------------------
 2431|    899|            A[FAI] = M->Parameters[FAI].Value;
 2432|  7.11k|        }
 2433|  8.60k|      }
 2434|  34.4k|      return Failure;
 2435|  34.4k|    }
 2436|       |
 2437|  94.5k|    if (Lexer.is(AsmToken::Comma))
  ------------------
  |  Branch (2437:9): [True: 94.5k, False: 0]
  ------------------
 2438|  94.5k|      Lex();
 2439|  94.5k|  }
 2440|       |
 2441|       |  // return TokError("too many positional arguments");
 2442|    232|  KsError = KS_ERR_ASM_MACRO_ARGS;
 2443|    232|  return true;
 2444|  39.6k|}
AsmParser.cpp:_ZN12_GLOBAL__N_119MCAsmMacroParameterC2Ev:
   65|   151k|  MCAsmMacroParameter() : Required(false), Vararg(false) {}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseMacroArgumentERNSt3__16vectorIN7llvm_ks8AsmTokenENS1_9allocatorIS4_EEEEb:
 2261|   134k|{
 2262|       |
 2263|   134k|  if (Vararg) {
  ------------------
  |  Branch (2263:7): [True: 0, False: 134k]
  ------------------
 2264|      0|    if (Lexer.isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (2264:9): [True: 0, False: 0]
  ------------------
 2265|      0|      StringRef Str = parseStringToEndOfStatement();
 2266|      0|      MA.emplace_back(AsmToken::String, Str);
 2267|      0|    }
 2268|      0|    return false;
 2269|      0|  }
 2270|       |
 2271|   134k|  unsigned ParenLevel = 0;
 2272|   134k|  unsigned AddTokens = 0;
 2273|       |
 2274|       |  // Darwin doesn't use spaces to delmit arguments.
 2275|   134k|  AsmLexerSkipSpaceRAII ScopedSkipSpace(Lexer, IsDarwin);
 2276|       |
 2277|   348k|  for (;;) {
 2278|   348k|    if (Lexer.is(AsmToken::Eof) || Lexer.is(AsmToken::Equal)) {
  ------------------
  |  Branch (2278:9): [True: 7, False: 348k]
  |  Branch (2278:36): [True: 0, False: 348k]
  ------------------
 2279|       |      // return TokError("unexpected token in macro instantiation");
 2280|      7|      KsError = KS_ERR_ASM_MACRO_TOKEN;
 2281|      7|      return true;
 2282|      7|    }
 2283|       |
 2284|   348k|    if (ParenLevel == 0 && Lexer.is(AsmToken::Comma))
  ------------------
  |  Branch (2284:9): [True: 255k, False: 93.3k]
  |  Branch (2284:28): [True: 94.7k, False: 160k]
  ------------------
 2285|  94.7k|      break;
 2286|       |
 2287|   254k|    if (Lexer.is(AsmToken::Space)) {
  ------------------
  |  Branch (2287:9): [True: 0, False: 254k]
  ------------------
 2288|      0|      Lex(); // Eat spaces
 2289|       |
 2290|       |      // Spaces can delimit parameters, but could also be part an expression.
 2291|       |      // If the token after a space is an operator, add the token and the next
 2292|       |      // one into this argument
 2293|      0|      if (!IsDarwin) {
  ------------------
  |  Branch (2293:11): [True: 0, False: 0]
  ------------------
 2294|      0|        if (isOperator(Lexer.getKind())) {
  ------------------
  |  Branch (2294:13): [True: 0, False: 0]
  ------------------
 2295|       |          // Check to see whether the token is used as an operator,
 2296|       |          // or part of an identifier
 2297|      0|          const char *NextChar = getTok().getEndLoc().getPointer();
 2298|      0|          if (*NextChar == ' ')
  ------------------
  |  Branch (2298:15): [True: 0, False: 0]
  ------------------
 2299|      0|            AddTokens = 2;
 2300|      0|        }
 2301|       |
 2302|      0|        if (!AddTokens && ParenLevel == 0) {
  ------------------
  |  Branch (2302:13): [True: 0, False: 0]
  |  Branch (2302:27): [True: 0, False: 0]
  ------------------
 2303|      0|          break;
 2304|      0|        }
 2305|      0|      }
 2306|      0|    }
 2307|       |
 2308|       |    // handleMacroEntry relies on not advancing the lexer here
 2309|       |    // to be able to fill in the remaining default parameter values
 2310|   254k|    if (Lexer.is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (2310:9): [True: 39.3k, False: 214k]
  ------------------
 2311|  39.3k|      break;
 2312|       |
 2313|       |    // Adjust the current parentheses level.
 2314|   214k|    if (Lexer.is(AsmToken::LParen))
  ------------------
  |  Branch (2314:9): [True: 12.4k, False: 202k]
  ------------------
 2315|  12.4k|      ++ParenLevel;
 2316|   202k|    else if (Lexer.is(AsmToken::RParen) && ParenLevel)
  ------------------
  |  Branch (2316:14): [True: 2.44k, False: 199k]
  |  Branch (2316:44): [True: 1.83k, False: 615]
  ------------------
 2317|  1.83k|      --ParenLevel;
 2318|       |
 2319|       |    // Append the token to the current argument list.
 2320|   214k|    MA.push_back(getTok());
 2321|   214k|    if (AddTokens)
  ------------------
  |  Branch (2321:9): [True: 0, False: 214k]
  ------------------
 2322|      0|      AddTokens--;
 2323|   214k|    Lex();
 2324|   214k|  }
 2325|       |
 2326|   134k|  if (ParenLevel != 0) {
  ------------------
  |  Branch (2326:7): [True: 4.21k, False: 129k]
  ------------------
 2327|       |    // return TokError("unbalanced parentheses in macro argument");
 2328|  4.21k|    KsError = KS_ERR_ASM_MACRO_PAREN;
 2329|  4.21k|    return true;
 2330|  4.21k|  }
 2331|   129k|  return false;
 2332|   134k|}
AsmParser.cpp:_ZN12_GLOBAL__N_121AsmLexerSkipSpaceRAIIC2ERN7llvm_ks8AsmLexerEb:
 2247|   134k|  AsmLexerSkipSpaceRAII(AsmLexer &Lexer, bool SkipSpace) : Lexer(Lexer) {
 2248|   134k|    Lexer.setSkipSpace(SkipSpace);
 2249|   134k|  }
AsmParser.cpp:_ZN12_GLOBAL__N_121AsmLexerSkipSpaceRAIID2Ev:
 2251|   134k|  ~AsmLexerSkipSpaceRAII() {
 2252|   134k|    Lexer.setSkipSpace(true);
 2253|   134k|  }
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser11expandMacroERN7llvm_ks19raw_svector_ostreamENS1_9StringRefENS1_8ArrayRefINS_19MCAsmMacroParameterEEENS5_INSt3__16vectorINS1_8AsmTokenENS8_9allocatorISA_EEEEEEbNS1_5SMLocE:
 2090|  19.0M|{
 2091|  19.0M|  unsigned NParameters = Parameters.size();
 2092|  19.0M|  bool HasVararg = NParameters ? Parameters.back().Vararg : false;
  ------------------
  |  Branch (2092:20): [True: 27.2k, False: 19.0M]
  ------------------
 2093|  19.0M|  if ((!IsDarwin || NParameters != 0) && NParameters != A.size())
  ------------------
  |  Branch (2093:8): [True: 0, False: 19.0M]
  |  Branch (2093:21): [True: 27.2k, False: 19.0M]
  |  Branch (2093:42): [True: 0, False: 27.2k]
  ------------------
 2094|       |    //return Error(L, "Wrong number of arguments");
 2095|      0|    return true;
 2096|       |
 2097|       |  // A macro without parameters is handled differently on Darwin:
 2098|       |  // gas accepts no arguments and does no substitutions
 2099|  19.4M|  while (!Body.empty()) {
  ------------------
  |  Branch (2099:10): [True: 9.43M, False: 10.0M]
  ------------------
 2100|       |    // Scan for the next substitution.
 2101|  9.43M|    std::size_t End = Body.size(), Pos = 0;
 2102|   108M|    for (; Pos != End; ++Pos) {
  ------------------
  |  Branch (2102:12): [True: 99.9M, False: 9.08M]
  ------------------
 2103|       |      // Check for a substitution or escape.
 2104|  99.9M|      if (IsDarwin && !NParameters) {
  ------------------
  |  Branch (2104:11): [True: 99.9M, False: 0]
  |  Branch (2104:23): [True: 60.1M, False: 39.7M]
  ------------------
 2105|       |        // This macro has no parameters, look for $0, $1, etc.
 2106|  60.1M|        if (Body[Pos] != '$' || Pos + 1 == End)
  ------------------
  |  Branch (2106:13): [True: 59.8M, False: 392k]
  |  Branch (2106:33): [True: 0, False: 392k]
  ------------------
 2107|  59.8M|          continue;
 2108|       |
 2109|   392k|        char Next = Body[Pos + 1];
 2110|   392k|        if (Next == '$' || Next == 'n' ||
  ------------------
  |  Branch (2110:13): [True: 9.24k, False: 383k]
  |  Branch (2110:28): [True: 273k, False: 109k]
  ------------------
 2111|   109k|            isdigit(static_cast<unsigned char>(Next)))
  ------------------
  |  Branch (2111:13): [True: 19.3k, False: 90.6k]
  ------------------
 2112|   301k|          break;
 2113|  39.7M|      } else {
 2114|       |        // This macro has parameters, look for \foo, \bar, etc.
 2115|  39.7M|        if (Body[Pos] == '\\' && Pos + 1 != End)
  ------------------
  |  Branch (2115:13): [True: 49.7k, False: 39.6M]
  |  Branch (2115:34): [True: 49.7k, False: 0]
  ------------------
 2116|  49.7k|          break;
 2117|  39.7M|      }
 2118|  99.9M|    }
 2119|       |
 2120|       |    // Add the prefix.
 2121|  9.43M|    OS << Body.slice(0, Pos);
 2122|       |
 2123|       |    // Check if we reached the end.
 2124|  9.43M|    if (Pos == End)
  ------------------
  |  Branch (2124:9): [True: 9.08M, False: 351k]
  ------------------
 2125|  9.08M|      break;
 2126|       |
 2127|   351k|    if (IsDarwin && !NParameters) {
  ------------------
  |  Branch (2127:9): [True: 351k, False: 0]
  |  Branch (2127:21): [True: 301k, False: 49.7k]
  ------------------
 2128|   301k|      switch (Body[Pos + 1]) {
 2129|       |      // $$ => $
 2130|  9.24k|      case '$':
  ------------------
  |  Branch (2130:7): [True: 9.24k, False: 292k]
  ------------------
 2131|  9.24k|        OS << '$';
 2132|  9.24k|        break;
 2133|       |
 2134|       |      // $n => number of arguments
 2135|   273k|      case 'n':
  ------------------
  |  Branch (2135:7): [True: 273k, False: 28.5k]
  ------------------
 2136|   273k|        OS << A.size();
 2137|   273k|        break;
 2138|       |
 2139|       |      // $[0-9] => argument
 2140|  19.3k|      default: {
  ------------------
  |  Branch (2140:7): [True: 19.3k, False: 282k]
  ------------------
 2141|       |        // Missing arguments are ignored.
 2142|  19.3k|        unsigned Index = Body[Pos + 1] - '0';
 2143|  19.3k|        if (Index >= A.size())
  ------------------
  |  Branch (2143:13): [True: 18.7k, False: 537]
  ------------------
 2144|  18.7k|          break;
 2145|       |
 2146|       |        // Otherwise substitute with the token values, with spaces eliminated.
 2147|    537|        for (const AsmToken &Token : A[Index])
  ------------------
  |  Branch (2147:36): [True: 2.95k, False: 537]
  ------------------
 2148|  2.95k|          OS << Token.getString();
 2149|    537|        break;
 2150|  19.3k|      }
 2151|   301k|      }
 2152|   301k|      Pos += 2;
 2153|   301k|    } else {
 2154|  49.7k|      unsigned I = Pos + 1;
 2155|       |
 2156|       |      // Check for the \@ pseudo-variable.
 2157|  49.7k|      if (EnableAtPseudoVariable && Body[I] == '@' && I + 1 != End)
  ------------------
  |  Branch (2157:11): [True: 49.7k, False: 0]
  |  Branch (2157:37): [True: 967, False: 48.7k]
  |  Branch (2157:55): [True: 967, False: 0]
  ------------------
 2158|    967|        ++I;
 2159|  48.7k|      else
 2160|  59.5k|        while (isIdentifierChar(Body[I]) && I + 1 != End)
  ------------------
  |  Branch (2160:16): [True: 10.7k, False: 48.7k]
  |  Branch (2160:45): [True: 10.7k, False: 0]
  ------------------
 2161|  10.7k|          ++I;
 2162|       |
 2163|  49.7k|      const char *Begin = Body.data() + Pos + 1;
 2164|  49.7k|      StringRef Argument(Begin, I - (Pos + 1));
 2165|  49.7k|      unsigned Index = 0;
 2166|       |
 2167|  49.7k|      if (Argument == "@") {
  ------------------
  |  Branch (2167:11): [True: 967, False: 48.7k]
  ------------------
 2168|    967|        OS << NumOfMacroInstantiations;
 2169|    967|        Pos += 2;
 2170|  48.7k|      } else {
 2171|  95.3k|        for (; Index < NParameters; ++Index)
  ------------------
  |  Branch (2171:16): [True: 49.1k, False: 46.2k]
  ------------------
 2172|  49.1k|          if (Parameters[Index].Name == Argument)
  ------------------
  |  Branch (2172:15): [True: 2.50k, False: 46.6k]
  ------------------
 2173|  2.50k|            break;
 2174|       |
 2175|  48.7k|        if (Index == NParameters) {
  ------------------
  |  Branch (2175:13): [True: 46.2k, False: 2.50k]
  ------------------
 2176|  46.2k|          if (Body[Pos + 1] == '(' && Body[Pos + 2] == ')')
  ------------------
  |  Branch (2176:15): [True: 592, False: 45.6k]
  |  Branch (2176:39): [True: 239, False: 353]
  ------------------
 2177|    239|            Pos += 3;
 2178|  46.0k|          else {
 2179|  46.0k|            OS << '\\' << Argument;
 2180|  46.0k|            Pos = I;
 2181|  46.0k|          }
 2182|  46.2k|        } else {
 2183|  2.50k|          bool VarargParameter = HasVararg && Index == (NParameters - 1);
  ------------------
  |  Branch (2183:34): [True: 0, False: 2.50k]
  |  Branch (2183:47): [True: 0, False: 0]
  ------------------
 2184|  2.50k|          for (const AsmToken &Token : A[Index])
  ------------------
  |  Branch (2184:38): [True: 6.34k, False: 2.50k]
  ------------------
 2185|       |            // We expect no quotes around the string's contents when
 2186|       |            // parsing for varargs.
 2187|  6.34k|            if (Token.getKind() != AsmToken::String || VarargParameter)
  ------------------
  |  Branch (2187:17): [True: 5.32k, False: 1.02k]
  |  Branch (2187:56): [True: 0, False: 1.02k]
  ------------------
 2188|  5.32k|              OS << Token.getString();
 2189|  1.02k|            else {
 2190|  1.02k|              bool valid;
 2191|  1.02k|              OS << Token.getStringContents(valid);
 2192|  1.02k|              if (!valid) {
  ------------------
  |  Branch (2192:19): [True: 0, False: 1.02k]
  ------------------
 2193|      0|                  return true;
 2194|      0|              }
 2195|  1.02k|            }
 2196|       |
 2197|  2.50k|          Pos += 1 + Argument.size();
 2198|  2.50k|        }
 2199|  48.7k|      }
 2200|  49.7k|    }
 2201|       |    // Update the scan point.
 2202|   351k|    Body = Body.substr(Pos);
 2203|   351k|  }
 2204|       |
 2205|  19.0M|  return false;
 2206|  19.0M|}
AsmParser.cpp:_ZL16isIdentifierCharc:
 2081|  67.2k|static bool isIdentifierChar(char c) {
 2082|  67.2k|  return isalnum(static_cast<unsigned char>(c)) || c == '_' || c == '$' ||
  ------------------
  |  Branch (2082:10): [True: 11.7k, False: 55.4k]
  |  Branch (2082:52): [True: 1.07k, False: 54.4k]
  |  Branch (2082:64): [True: 1.41k, False: 52.9k]
  ------------------
 2083|  52.9k|         c == '.';
  ------------------
  |  Branch (2083:10): [True: 210, False: 52.7k]
  ------------------
 2084|  67.2k|}
AsmParser.cpp:_ZN12_GLOBAL__N_118MacroInstantiationC2EN7llvm_ks5SMLocEiS2_m:
 2210|  32.2k|    : InstantiationLoc(IL), ExitBuffer(EB), ExitLoc(EL),
 2211|  32.2k|      CondStackDepth(CondStackDepth) {}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser11isDirectiveEN7llvm_ks9StringRefE:
 1435|   531k|{
 1436|   531k|    if (KsSyntax == KS_OPT_SYNTAX_NASM)
  ------------------
  |  Branch (1436:9): [True: 0, False: 531k]
  ------------------
 1437|      0|        return isNasmDirective(IDVal);
 1438|   531k|    else // Directives start with "."
 1439|   531k|        return (!IDVal.empty() && IDVal[0] == '.' && IDVal != ".");
  ------------------
  |  Branch (1439:17): [True: 531k, False: 342]
  |  Branch (1439:35): [True: 522k, False: 9.45k]
  |  Branch (1439:54): [True: 521k, False: 503]
  ------------------
 1440|   531k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser17parseDirectiveSetEN7llvm_ks9StringRefEb:
 2594|  1.01k|bool AsmParser::parseDirectiveSet(StringRef IDVal, bool allow_redef) {
 2595|  1.01k|  StringRef Name;
 2596|       |
 2597|  1.01k|  if (parseIdentifier(Name)) {
  ------------------
  |  Branch (2597:7): [True: 426, False: 592]
  ------------------
 2598|       |    // return TokError("expected identifier after '" + Twine(IDVal) + "'");
 2599|    426|    KsError = KS_ERR_ASM_DIRECTIVE_ID;
 2600|    426|    return true;
 2601|    426|  }
 2602|       |
 2603|    592|  if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (2603:7): [True: 280, False: 312]
  ------------------
 2604|       |    // return TokError("unexpected token in '" + Twine(IDVal) + "'");
 2605|    280|    KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2606|    280|    return true;
 2607|    280|  }
 2608|    312|  Lex();
 2609|       |
 2610|    312|  return parseAssignment(Name, allow_redef, true);
 2611|    592|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveAsciiEN7llvm_ks9StringRefEb:
 2692|  1.41k|{
 2693|  1.41k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (2693:7): [True: 865, False: 552]
  ------------------
 2694|    865|    checkForValidSection();
 2695|       |
 2696|  1.05k|    for (;;) {
 2697|  1.05k|      if (getLexer().isNot(AsmToken::String)) {
  ------------------
  |  Branch (2697:11): [True: 582, False: 469]
  ------------------
 2698|       |        // return TokError("expected string in '" + Twine(IDVal) + "' directive");
 2699|    582|        KsError = KS_ERR_ASM_DIRECTIVE_STR;
 2700|    582|        return true;
 2701|    582|      }
 2702|       |
 2703|    469|      std::string Data;
 2704|    469|      if (parseEscapedString(Data)) {
  ------------------
  |  Branch (2704:11): [True: 12, False: 457]
  ------------------
 2705|     12|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2706|     12|        return true;
 2707|     12|      }
 2708|       |
 2709|    457|      getStreamer().EmitBytes(Data);
 2710|    457|      if (ZeroTerminated)
  ------------------
  |  Branch (2710:11): [True: 443, False: 14]
  ------------------
 2711|    443|        getStreamer().EmitBytes(StringRef("\0", 1));
 2712|       |
 2713|    457|      Lex();
 2714|       |
 2715|    457|      if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (2715:11): [True: 172, False: 285]
  ------------------
 2716|    172|        break;
 2717|       |
 2718|    285|      if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (2718:11): [True: 99, False: 186]
  ------------------
 2719|       |        // return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
 2720|     99|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2721|     99|        return true;
 2722|     99|      }
 2723|    186|      Lex();
 2724|    186|    }
 2725|    865|  }
 2726|       |
 2727|    724|  Lex();
 2728|    724|  return false;
 2729|  1.41k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveValueEjRj:
 2808|  15.0k|{
 2809|  15.0k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (2809:7): [True: 13.9k, False: 1.17k]
  ------------------
 2810|  13.9k|    checkForValidSection();
 2811|       |
 2812|  57.3k|    for (;;) {
 2813|  57.3k|      const MCExpr *Value;
 2814|  57.3k|      SMLoc ExprLoc = getLexer().getLoc();
 2815|  57.3k|      if (parseExpression(Value)) {
  ------------------
  |  Branch (2815:11): [True: 1.02k, False: 56.2k]
  ------------------
 2816|  1.02k|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2817|  1.02k|        return true;
 2818|  1.02k|      }
 2819|       |
 2820|       |      // Special case constant expressions to match code generator.
 2821|  56.2k|      if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
  ------------------
  |  Branch (2821:33): [True: 7.22k, False: 49.0k]
  ------------------
 2822|  7.22k|        assert(Size <= 8 && "Invalid size");
  ------------------
  |  Branch (2822:9): [True: 7.22k, False: 0]
  |  Branch (2822:9): [True: 7.22k, Folded]
  |  Branch (2822:9): [True: 7.22k, False: 0]
  ------------------
 2823|  7.22k|        uint64_t IntValue = MCE->getValue();
 2824|  7.22k|        if (!isUIntN(8 * Size, IntValue) && !isIntN(8 * Size, IntValue)) {
  ------------------
  |  Branch (2824:13): [True: 2.12k, False: 5.10k]
  |  Branch (2824:45): [True: 110, False: 2.01k]
  ------------------
 2825|       |            // return Error(ExprLoc, "literal value out of range for directive");
 2826|    110|            KsError = KS_ERR_ASM_DIRECTIVE_VALUE_RANGE;
 2827|    110|            return true;
 2828|    110|        }
 2829|  7.11k|        bool Error;
 2830|  7.11k|        getStreamer().EmitIntValue(IntValue, Size, Error);
 2831|  7.11k|        if (Error) {
  ------------------
  |  Branch (2831:13): [True: 0, False: 7.11k]
  ------------------
 2832|      0|            KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2833|      0|            return true;
 2834|      0|        }
 2835|  7.11k|      } else
 2836|  49.0k|        getStreamer().EmitValue(Value, Size, ExprLoc);
 2837|       |
 2838|  56.1k|      if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (2838:11): [True: 12.5k, False: 43.6k]
  ------------------
 2839|  12.5k|        break;
 2840|       |
 2841|       |      // FIXME: Improve diagnostic.
 2842|  43.6k|      if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (2842:11): [True: 247, False: 43.4k]
  ------------------
 2843|       |        // return TokError("unexpected token in directive");
 2844|    247|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2845|    247|        return true;
 2846|    247|      }
 2847|  43.4k|      Lex();
 2848|  43.4k|    }
 2849|  13.9k|  }
 2850|       |
 2851|  13.6k|  Lex();
 2852|  13.6k|  return false;
 2853|  15.0k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser15parseExpressionERPKN7llvm_ks6MCExprE:
 1076|   261k|bool AsmParser::parseExpression(const MCExpr *&Res) {
 1077|   261k|  SMLoc EndLoc;
 1078|   261k|  return parseExpression(Res, EndLoc);
 1079|   261k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser23parseDirectiveOctaValueERj:
 2858|    311|{
 2859|    311|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (2859:7): [True: 100, False: 211]
  ------------------
 2860|    100|    checkForValidSection();
 2861|       |
 2862|  1.13k|    for (;;) {
 2863|  1.13k|      if (Lexer.getKind() == AsmToken::Error) {
  ------------------
  |  Branch (2863:11): [True: 2, False: 1.13k]
  ------------------
 2864|      2|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2865|      2|        return true;
 2866|      2|      }
 2867|  1.13k|      if (Lexer.getKind() != AsmToken::Integer &&
  ------------------
  |  Branch (2867:11): [True: 357, False: 774]
  ------------------
 2868|    357|          Lexer.getKind() != AsmToken::BigNum) {
  ------------------
  |  Branch (2868:11): [True: 12, False: 345]
  ------------------
 2869|       |        // return TokError("unknown token in expression");
 2870|     12|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2871|     12|        return true;
 2872|     12|      }
 2873|       |
 2874|       |      // SMLoc ExprLoc = getLexer().getLoc();
 2875|  1.11k|      bool valid;
 2876|  1.11k|      APInt IntValue = getTok().getAPIntVal(valid);
 2877|  1.11k|      if (!valid) {
  ------------------
  |  Branch (2877:11): [True: 0, False: 1.11k]
  ------------------
 2878|      0|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2879|      0|          return true;
 2880|      0|      }
 2881|  1.11k|      Lex();
 2882|       |
 2883|  1.11k|      uint64_t hi, lo;
 2884|  1.11k|      if (IntValue.isIntN(64)) {
  ------------------
  |  Branch (2884:11): [True: 774, False: 345]
  ------------------
 2885|    774|        hi = 0;
 2886|    774|        lo = IntValue.getZExtValue();
 2887|    774|      } else if (IntValue.isIntN(128)) {
  ------------------
  |  Branch (2887:18): [True: 340, False: 5]
  ------------------
 2888|       |        // It might actually have more than 128 bits, but the top ones are zero.
 2889|    340|        hi = IntValue.getHiBits(IntValue.getBitWidth() - 64).getZExtValue();
 2890|    340|        lo = IntValue.getLoBits(64).getZExtValue();
 2891|    340|      } else {
 2892|       |        // return Error(ExprLoc, "literal value out of range for directive");
 2893|      5|        KsError = KS_ERR_ASM_DIRECTIVE_VALUE_RANGE;
 2894|      5|        return true;
 2895|      5|      }
 2896|       |
 2897|  1.11k|      bool Error;
 2898|  1.11k|      if (MAI.isLittleEndian()) {
  ------------------
  |  Branch (2898:11): [True: 1.11k, False: 0]
  ------------------
 2899|  1.11k|        getStreamer().EmitIntValue(lo, 8, Error);
 2900|  1.11k|        getStreamer().EmitIntValue(hi, 8, Error);
 2901|  1.11k|      } else {
 2902|      0|        getStreamer().EmitIntValue(hi, 8, Error);
 2903|      0|        getStreamer().EmitIntValue(lo, 8, Error);
 2904|      0|      }
 2905|       |
 2906|  1.11k|      if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (2906:11): [True: 63, False: 1.05k]
  ------------------
 2907|     63|        break;
 2908|       |
 2909|       |      // FIXME: Improve diagnostic.
 2910|  1.05k|      if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (2910:11): [True: 18, False: 1.03k]
  ------------------
 2911|       |        // return TokError("unexpected token in directive");
 2912|     18|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2913|     18|        return true;
 2914|     18|      }
 2915|  1.03k|      Lex();
 2916|  1.03k|    }
 2917|    100|  }
 2918|       |
 2919|    274|  Lex();
 2920|    274|  return false;
 2921|    311|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser23parseDirectiveRealValueERKN7llvm_ks12fltSemanticsE:
 2926|  1.90k|{
 2927|  1.90k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (2927:7): [True: 1.52k, False: 385]
  ------------------
 2928|  1.52k|    checkForValidSection();
 2929|       |
 2930|  5.85k|    for (;;) {
 2931|       |      // We don't truly support arithmetic on floating point expressions, so we
 2932|       |      // have to manually parse unary prefixes.
 2933|  5.85k|      bool IsNeg = false;
 2934|  5.85k|      if (getLexer().is(AsmToken::Minus)) {
  ------------------
  |  Branch (2934:11): [True: 1.42k, False: 4.43k]
  ------------------
 2935|  1.42k|        Lex();
 2936|  1.42k|        IsNeg = true;
 2937|  4.43k|      } else if (getLexer().is(AsmToken::Plus))
  ------------------
  |  Branch (2937:18): [True: 1.05k, False: 3.38k]
  ------------------
 2938|  1.05k|        Lex();
 2939|       |
 2940|  5.85k|      if (getLexer().isNot(AsmToken::Integer) &&
  ------------------
  |  Branch (2940:11): [True: 2.33k, False: 3.52k]
  ------------------
 2941|  2.33k|          getLexer().isNot(AsmToken::Real) &&
  ------------------
  |  Branch (2941:11): [True: 1.98k, False: 353]
  ------------------
 2942|  1.98k|          getLexer().isNot(AsmToken::Identifier)) {
  ------------------
  |  Branch (2942:11): [True: 165, False: 1.81k]
  ------------------
 2943|       |        // return TokError("unexpected token in directive");
 2944|    165|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2945|    165|        return true;
 2946|    165|      }
 2947|       |
 2948|       |      // Convert to an APFloat.
 2949|  5.69k|      APFloat Value(Semantics);
 2950|  5.69k|      StringRef IDVal = getTok().getString();
 2951|  5.69k|      if (getLexer().is(AsmToken::Identifier)) {
  ------------------
  |  Branch (2951:11): [True: 1.81k, False: 3.87k]
  ------------------
 2952|  1.81k|        if (!IDVal.compare_lower("infinity") || !IDVal.compare_lower("inf"))
  ------------------
  |  Branch (2952:13): [True: 22, False: 1.79k]
  |  Branch (2952:13): [True: 963, False: 853]
  |  Branch (2952:49): [True: 941, False: 853]
  ------------------
 2953|    963|          Value = APFloat::getInf(Semantics);
 2954|    853|        else if (!IDVal.compare_lower("nan"))
  ------------------
  |  Branch (2954:18): [True: 236, False: 617]
  ------------------
 2955|    236|          Value = APFloat::getNaN(Semantics, false, ~0);
 2956|    617|        else {
 2957|       |          // return TokError("invalid floating point literal");
 2958|    617|          KsError = KS_ERR_ASM_DIRECTIVE_FPOINT;
 2959|    617|          return true;
 2960|    617|        }
 2961|  3.87k|      } else if (Value.convertFromString(IDVal, APFloat::rmNearestTiesToEven) ==
  ------------------
  |  Branch (2961:18): [True: 7, False: 3.86k]
  ------------------
 2962|  3.87k|                 APFloat::opInvalidOp) {
 2963|       |        // return TokError("invalid floating point literal");
 2964|      7|        KsError = KS_ERR_ASM_DIRECTIVE_FPOINT;
 2965|      7|        return true;
 2966|      7|      }
 2967|  5.06k|      if (IsNeg)
  ------------------
  |  Branch (2967:11): [True: 1.16k, False: 3.90k]
  ------------------
 2968|  1.16k|        Value.changeSign();
 2969|       |
 2970|       |      // Consume the numeric token.
 2971|  5.06k|      Lex();
 2972|       |
 2973|       |      // Emit the value as an integer.
 2974|  5.06k|      APInt AsInt = Value.bitcastToAPInt();
 2975|  5.06k|      bool Error;
 2976|  5.06k|      getStreamer().EmitIntValue(AsInt.getLimitedValue(),
 2977|  5.06k|                                 AsInt.getBitWidth() / 8, Error);
 2978|  5.06k|      if (Error) {
  ------------------
  |  Branch (2978:11): [True: 0, False: 5.06k]
  ------------------
 2979|      0|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2980|      0|          return true;
 2981|      0|      }
 2982|       |
 2983|  5.06k|      if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (2983:11): [True: 207, False: 4.86k]
  ------------------
 2984|    207|        break;
 2985|       |
 2986|  4.86k|      if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (2986:11): [True: 525, False: 4.33k]
  ------------------
 2987|       |        // return TokError("unexpected token in directive");
 2988|    525|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 2989|    525|        return true;
 2990|    525|      }
 2991|  4.33k|      Lex();
 2992|  4.33k|    }
 2993|  1.52k|  }
 2994|       |
 2995|    592|  Lex();
 2996|    592|  return false;
 2997|  1.90k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveAlignEbj:
 3170|  12.2k|{
 3171|  12.2k|  checkForValidSection();
 3172|       |
 3173|       |  //SMLoc AlignmentLoc = getLexer().getLoc();
 3174|  12.2k|  int64_t Alignment;
 3175|  12.2k|  if (parseAbsoluteExpression(Alignment)) {
  ------------------
  |  Branch (3175:7): [True: 1.10k, False: 11.1k]
  ------------------
 3176|  1.10k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3177|  1.10k|    return true;
 3178|  1.10k|  }
 3179|       |
 3180|  11.1k|  SMLoc MaxBytesLoc;
 3181|  11.1k|  bool HasFillExpr = false;
 3182|  11.1k|  int64_t FillExpr = 0;
 3183|  11.1k|  int64_t MaxBytesToFill = 0;
 3184|  11.1k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3184:7): [True: 7.30k, False: 3.80k]
  ------------------
 3185|  7.30k|    if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (3185:9): [True: 288, False: 7.01k]
  ------------------
 3186|       |      // return TokError("unexpected token in directive");
 3187|    288|      KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3188|    288|      return true;
 3189|    288|    }
 3190|  7.01k|    Lex();
 3191|       |
 3192|       |    // The fill expression can be omitted while specifying a maximum number of
 3193|       |    // alignment bytes, e.g:
 3194|       |    //  .align 3,,4
 3195|  7.01k|    if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (3195:9): [True: 6.76k, False: 249]
  ------------------
 3196|  6.76k|      HasFillExpr = true;
 3197|  6.76k|      if (parseAbsoluteExpression(FillExpr)) {
  ------------------
  |  Branch (3197:11): [True: 822, False: 5.94k]
  ------------------
 3198|    822|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3199|    822|        return true;
 3200|    822|      }
 3201|  6.76k|    }
 3202|       |
 3203|  6.19k|    if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3203:9): [True: 3.08k, False: 3.10k]
  ------------------
 3204|  3.08k|      if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (3204:11): [True: 212, False: 2.87k]
  ------------------
 3205|       |        // return TokError("unexpected token in directive");
 3206|    212|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3207|    212|        return true;
 3208|    212|      }
 3209|  2.87k|      Lex();
 3210|       |
 3211|  2.87k|      MaxBytesLoc = getLexer().getLoc();
 3212|  2.87k|      if (parseAbsoluteExpression(MaxBytesToFill)) {
  ------------------
  |  Branch (3212:11): [True: 857, False: 2.02k]
  ------------------
 3213|    857|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3214|    857|        return true;
 3215|    857|      }
 3216|       |
 3217|  2.02k|      if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3217:11): [True: 247, False: 1.77k]
  ------------------
 3218|       |        // return TokError("unexpected token in directive");
 3219|    247|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3220|    247|        return true;
 3221|    247|      }
 3222|  2.02k|    }
 3223|  6.19k|  }
 3224|       |
 3225|  8.67k|  Lex();
 3226|       |
 3227|  8.67k|  if (!HasFillExpr)
  ------------------
  |  Branch (3227:7): [True: 4.00k, False: 4.67k]
  ------------------
 3228|  4.00k|    FillExpr = 0;
 3229|       |
 3230|       |  // Compute alignment in bytes.
 3231|  8.67k|  if (IsPow2) {
  ------------------
  |  Branch (3231:7): [True: 7.53k, False: 1.13k]
  ------------------
 3232|       |    // FIXME: Diagnose overflow.
 3233|  7.53k|    if (Alignment >= 32) {
  ------------------
  |  Branch (3233:9): [True: 519, False: 7.01k]
  ------------------
 3234|       |      //Error(AlignmentLoc, "invalid alignment value");
 3235|    519|      Alignment = 31;
 3236|    519|    }
 3237|       |
 3238|  7.53k|    Alignment = 1ULL << Alignment;
 3239|  7.53k|  } else {
 3240|       |    // Reject alignments that aren't either a power of two or zero,
 3241|       |    // for gas compatibility. Alignment of zero is silently rounded
 3242|       |    // up to one.
 3243|  1.13k|    if (Alignment == 0)
  ------------------
  |  Branch (3243:9): [True: 255, False: 884]
  ------------------
 3244|    255|      Alignment = 1;
 3245|  1.13k|    if (!isPowerOf2_64(Alignment)) {
  ------------------
  |  Branch (3245:9): [True: 778, False: 361]
  ------------------
 3246|       |      //Error(AlignmentLoc, "alignment must be a power of 2");
 3247|    778|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3248|    778|      return true;
 3249|    778|    }
 3250|  1.13k|  }
 3251|       |
 3252|       |  // Diagnose non-sensical max bytes to align.
 3253|  7.89k|  if (MaxBytesLoc.isValid()) {
  ------------------
  |  Branch (3253:7): [True: 1.77k, False: 6.12k]
  ------------------
 3254|  1.77k|    if (MaxBytesToFill < 1) {
  ------------------
  |  Branch (3254:9): [True: 378, False: 1.39k]
  ------------------
 3255|       |      //Error(MaxBytesLoc, "alignment directive can never be satisfied in this "
 3256|       |      //                   "many bytes, ignoring maximum bytes expression");
 3257|    378|      MaxBytesToFill = 0;
 3258|    378|    }
 3259|       |
 3260|  1.77k|    if (MaxBytesToFill >= Alignment) {
  ------------------
  |  Branch (3260:9): [True: 1.07k, False: 693]
  ------------------
 3261|  1.07k|      Warning(MaxBytesLoc, "maximum bytes expression exceeds alignment and "
 3262|  1.07k|                           "has no effect");
 3263|  1.07k|      MaxBytesToFill = 0;
 3264|  1.07k|    }
 3265|  1.77k|  }
 3266|       |
 3267|       |  // Check whether we should use optimal code alignment for this .align
 3268|       |  // directive.
 3269|  7.89k|  const MCSection *Section = getStreamer().getCurrentSection().first;
 3270|  7.89k|  assert(Section && "must have section to emit alignment");
  ------------------
  |  Branch (3270:3): [True: 7.89k, False: 0]
  |  Branch (3270:3): [True: 7.89k, Folded]
  |  Branch (3270:3): [True: 7.89k, False: 0]
  ------------------
 3271|  7.89k|  bool UseCodeAlign = Section->UseCodeAlign();
 3272|  7.89k|  if ((!HasFillExpr || Lexer.getMAI().getTextAlignFillValue() == FillExpr) &&
  ------------------
  |  Branch (3272:8): [True: 3.24k, False: 4.65k]
  |  Branch (3272:24): [True: 340, False: 4.31k]
  ------------------
 3273|  3.58k|      ValueSize == 1 && UseCodeAlign) {
  ------------------
  |  Branch (3273:7): [True: 3.56k, False: 21]
  |  Branch (3273:25): [True: 3.49k, False: 71]
  ------------------
 3274|  3.49k|    getStreamer().EmitCodeAlignment(Alignment, MaxBytesToFill);
 3275|  4.40k|  } else {
 3276|       |    // FIXME: Target specific behavior about how the "extra" bytes are filled.
 3277|  4.40k|    getStreamer().EmitValueToAlignment(Alignment, FillExpr, ValueSize,
 3278|  4.40k|                                       MaxBytesToFill);
 3279|  4.40k|  }
 3280|       |
 3281|  7.89k|  return false;
 3282|  7.89k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser17parseDirectiveOrgEv:
 3131|  1.38k|bool AsmParser::parseDirectiveOrg() {
 3132|  1.38k|  checkForValidSection();
 3133|       |
 3134|  1.38k|  const MCExpr *Offset;
 3135|  1.38k|  if (parseExpression(Offset)) {
  ------------------
  |  Branch (3135:7): [True: 246, False: 1.14k]
  ------------------
 3136|    246|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3137|    246|    return true;
 3138|    246|  }
 3139|       |
 3140|       |  // Parse optional fill expression.
 3141|  1.14k|  int64_t FillExpr = 0;
 3142|  1.14k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3142:7): [True: 781, False: 360]
  ------------------
 3143|    781|    if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (3143:9): [True: 653, False: 128]
  ------------------
 3144|       |      // return TokError("unexpected token in '.org' directive");
 3145|    653|      KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3146|    653|      return true;
 3147|    653|    }
 3148|    128|    Lex();
 3149|       |
 3150|    128|    if (parseAbsoluteExpression(FillExpr)) {
  ------------------
  |  Branch (3150:9): [True: 76, False: 52]
  ------------------
 3151|     76|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3152|     76|      return true;
 3153|     76|    }
 3154|       |
 3155|     52|    if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3155:9): [True: 14, False: 38]
  ------------------
 3156|       |      // return TokError("unexpected token in '.org' directive");
 3157|     14|      KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3158|     14|      return true;
 3159|     14|    }
 3160|     52|  }
 3161|       |
 3162|    398|  Lex();
 3163|    398|  getStreamer().emitValueToOffset(Offset, FillExpr);
 3164|    398|  return false;
 3165|  1.14k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveFillEv:
 3036|  4.25k|{
 3037|  4.25k|  checkForValidSection();
 3038|       |
 3039|  4.25k|  SMLoc RepeatLoc = getLexer().getLoc();
 3040|  4.25k|  int64_t NumValues;
 3041|  4.25k|  if (parseAbsoluteExpression(NumValues)) {
  ------------------
  |  Branch (3041:7): [True: 692, False: 3.56k]
  ------------------
 3042|    692|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3043|    692|    return true;
 3044|    692|  }
 3045|       |
 3046|  3.56k|  if (NumValues < 0) {
  ------------------
  |  Branch (3046:7): [True: 1.35k, False: 2.20k]
  ------------------
 3047|  1.35k|    Warning(RepeatLoc,
 3048|  1.35k|            "'.fill' directive with negative repeat count has no effect");
 3049|  1.35k|    NumValues = 0;
 3050|  1.35k|  }
 3051|       |
 3052|  3.56k|  int64_t FillSize = 1;
 3053|  3.56k|  int64_t FillExpr = 0;
 3054|       |
 3055|  3.56k|  SMLoc SizeLoc, ExprLoc;
 3056|  3.56k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3056:7): [True: 3.17k, False: 388]
  ------------------
 3057|  3.17k|    if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (3057:9): [True: 395, False: 2.78k]
  ------------------
 3058|       |      // return TokError("unexpected token in '.fill' directive");
 3059|    395|      KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3060|    395|      return true;
 3061|    395|    }
 3062|  2.78k|    Lex();
 3063|       |
 3064|  2.78k|    SizeLoc = getLexer().getLoc();
 3065|  2.78k|    if (parseAbsoluteExpression(FillSize)) {
  ------------------
  |  Branch (3065:9): [True: 1.41k, False: 1.36k]
  ------------------
 3066|  1.41k|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3067|  1.41k|      return true;
 3068|  1.41k|    }
 3069|       |
 3070|  1.36k|    if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3070:9): [True: 941, False: 427]
  ------------------
 3071|    941|      if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (3071:11): [True: 407, False: 534]
  ------------------
 3072|       |        // return TokError("unexpected token in '.fill' directive");
 3073|    407|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3074|    407|        return true;
 3075|    407|      }
 3076|    534|      Lex();
 3077|       |
 3078|    534|      ExprLoc = getLexer().getLoc();
 3079|    534|      if (parseAbsoluteExpression(FillExpr)) {
  ------------------
  |  Branch (3079:11): [True: 54, False: 480]
  ------------------
 3080|     54|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3081|     54|        return true;
 3082|     54|      }
 3083|       |
 3084|    480|      if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3084:11): [True: 86, False: 394]
  ------------------
 3085|       |        // return TokError("unexpected token in '.fill' directive");
 3086|     86|        KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3087|     86|        return true;
 3088|     86|      }
 3089|       |
 3090|    394|      Lex();
 3091|    394|    }
 3092|  1.36k|  }
 3093|       |
 3094|  1.20k|  if (FillSize < 0) {
  ------------------
  |  Branch (3094:7): [True: 498, False: 711]
  ------------------
 3095|    498|    Warning(SizeLoc, "'.fill' directive with negative size has no effect");
 3096|    498|    NumValues = 0;
 3097|    498|  }
 3098|  1.20k|  if (FillSize > 8) {
  ------------------
  |  Branch (3098:7): [True: 254, False: 955]
  ------------------
 3099|    254|    Warning(SizeLoc, "'.fill' directive with size greater than 8 has been truncated to 8");
 3100|    254|    FillSize = 8;
 3101|    254|  }
 3102|       |
 3103|  1.20k|  if (!isUInt<32>(FillExpr) && FillSize > 4)
  ------------------
  |  Branch (3103:7): [True: 311, False: 898]
  |  Branch (3103:32): [True: 119, False: 192]
  ------------------
 3104|    119|    Warning(ExprLoc, "'.fill' directive pattern has been truncated to 32-bits");
 3105|       |
 3106|  1.20k|  if (NumValues > 0) {
  ------------------
  |  Branch (3106:7): [True: 475, False: 734]
  ------------------
 3107|    475|    int64_t NonZeroFillSize = FillSize > 4 ? 4 : FillSize;
  ------------------
  |  Branch (3107:31): [True: 139, False: 336]
  ------------------
 3108|    475|    FillExpr &= ~0ULL >> (64 - NonZeroFillSize * 8);
 3109|    475|    bool Error;
 3110|  32.1M|    for (uint64_t i = 0, e = NumValues; i != e; ++i) {
  ------------------
  |  Branch (3110:41): [True: 32.1M, False: 426]
  ------------------
 3111|  32.1M|      getStreamer().EmitIntValue(FillExpr, NonZeroFillSize, Error);
 3112|  32.1M|      if (Error) {
  ------------------
  |  Branch (3112:11): [True: 49, False: 32.1M]
  ------------------
 3113|     49|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3114|     49|          return true;
 3115|     49|      }
 3116|  32.1M|      if (NonZeroFillSize < FillSize) {
  ------------------
  |  Branch (3116:11): [True: 585k, False: 31.6M]
  ------------------
 3117|   585k|        getStreamer().EmitIntValue(0, FillSize - NonZeroFillSize, Error);
 3118|   585k|        if (Error) {
  ------------------
  |  Branch (3118:13): [True: 0, False: 585k]
  ------------------
 3119|      0|            KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3120|      0|            return true;
 3121|      0|        }
 3122|   585k|      }
 3123|  32.1M|    }
 3124|    475|  }
 3125|       |
 3126|  1.16k|  return false;
 3127|  1.20k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveZeroEv:
 3002|  12.9k|{
 3003|  12.9k|  checkForValidSection();
 3004|       |
 3005|  12.9k|  int64_t NumBytes;
 3006|  12.9k|  if (parseAbsoluteExpression(NumBytes)) {
  ------------------
  |  Branch (3006:7): [True: 205, False: 12.7k]
  ------------------
 3007|    205|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3008|    205|    return true;
 3009|    205|  }
 3010|       |
 3011|  12.7k|  int64_t Val = 0;
 3012|  12.7k|  if (getLexer().is(AsmToken::Comma)) {
  ------------------
  |  Branch (3012:7): [True: 12.5k, False: 245]
  ------------------
 3013|  12.5k|    Lex();
 3014|  12.5k|    if (parseAbsoluteExpression(Val)) {
  ------------------
  |  Branch (3014:9): [True: 482, False: 12.0k]
  ------------------
 3015|    482|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3016|    482|      return true;
 3017|    482|    }
 3018|  12.5k|  }
 3019|       |
 3020|  12.2k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3020:7): [True: 271, False: 11.9k]
  ------------------
 3021|       |    // return TokError("unexpected token in '.zero' directive");
 3022|    271|    KsError = KS_ERR_ASM_DIRECTIVE_TOKEN;
 3023|    271|    return true;
 3024|    271|  }
 3025|       |
 3026|  11.9k|  Lex();
 3027|       |
 3028|  11.9k|  getStreamer().EmitFill(NumBytes, Val);
 3029|       |
 3030|  11.9k|  return false;
 3031|  12.2k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser29parseDirectiveSymbolAttributeEN7llvm_ks12MCSymbolAttrE:
 4650|     76|{
 4651|     76|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4651:7): [True: 61, False: 15]
  ------------------
 4652|    100|    for (;;) {
 4653|    100|      StringRef Name;
 4654|       |      //SMLoc Loc = getTok().getLoc();
 4655|       |
 4656|    100|      if (parseIdentifier(Name)) {
  ------------------
  |  Branch (4656:11): [True: 24, False: 76]
  ------------------
 4657|       |        //return Error(Loc, "expected identifier in directive");
 4658|     24|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4659|     24|        return true;
 4660|     24|      }
 4661|       |
 4662|     76|      if (Name.empty()) {
  ------------------
  |  Branch (4662:11): [True: 3, False: 73]
  ------------------
 4663|      3|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4664|      3|          return true;
 4665|      3|      }
 4666|     73|      MCSymbol *Sym = getContext().getOrCreateSymbol(Name);
 4667|       |
 4668|       |      // Assembler local symbols don't make any sense here. Complain loudly.
 4669|     73|      if (Sym->isTemporary()) {
  ------------------
  |  Branch (4669:11): [True: 4, False: 69]
  ------------------
 4670|       |        //return Error(Loc, "non-local symbol required in directive");
 4671|      4|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4672|      4|        return true;
 4673|      4|      }
 4674|       |
 4675|     69|      if (!getStreamer().EmitSymbolAttribute(Sym, Attr)) {
  ------------------
  |  Branch (4675:11): [True: 0, False: 69]
  ------------------
 4676|       |        //return Error(Loc, "unable to emit symbol attribute");
 4677|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4678|      0|        return true;
 4679|      0|      }
 4680|       |
 4681|     69|      if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (4681:11): [True: 12, False: 57]
  ------------------
 4682|     12|        break;
 4683|       |
 4684|     57|      if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (4684:11): [True: 18, False: 39]
  ------------------
 4685|       |        //return TokError("unexpected token in directive");
 4686|     18|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4687|     18|        return true;
 4688|     18|      }
 4689|     39|      Lex();
 4690|     39|    }
 4691|     61|  }
 4692|       |
 4693|     27|  Lex();
 4694|     27|  return false;
 4695|     76|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveCommEb:
 4700|  1.88k|{
 4701|  1.88k|  checkForValidSection();
 4702|       |
 4703|       |  //SMLoc IDLoc = getLexer().getLoc();
 4704|  1.88k|  StringRef Name;
 4705|  1.88k|  if (parseIdentifier(Name)) {
  ------------------
  |  Branch (4705:7): [True: 245, False: 1.63k]
  ------------------
 4706|       |    //return TokError("expected identifier in directive");
 4707|    245|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4708|    245|    return true;
 4709|    245|  }
 4710|       |
 4711|  1.63k|  if (Name.empty()) {
  ------------------
  |  Branch (4711:7): [True: 19, False: 1.61k]
  ------------------
 4712|     19|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4713|     19|      return true;
 4714|     19|  }
 4715|       |  // Handle the identifier as the key symbol.
 4716|  1.61k|  MCSymbol *Sym = getContext().getOrCreateSymbol(Name);
 4717|       |
 4718|  1.61k|  if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (4718:7): [True: 241, False: 1.37k]
  ------------------
 4719|       |    //return TokError("unexpected token in directive");
 4720|    241|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4721|    241|    return true;
 4722|    241|  }
 4723|  1.37k|  Lex();
 4724|       |
 4725|  1.37k|  int64_t Size;
 4726|       |  //SMLoc SizeLoc = getLexer().getLoc();
 4727|  1.37k|  if (parseAbsoluteExpression(Size)) {
  ------------------
  |  Branch (4727:7): [True: 82, False: 1.29k]
  ------------------
 4728|     82|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4729|     82|    return true;
 4730|     82|  }
 4731|       |
 4732|  1.29k|  int64_t Pow2Alignment = 0;
 4733|  1.29k|  SMLoc Pow2AlignmentLoc;
 4734|  1.29k|  if (getLexer().is(AsmToken::Comma)) {
  ------------------
  |  Branch (4734:7): [True: 207, False: 1.08k]
  ------------------
 4735|    207|    Lex();
 4736|    207|    Pow2AlignmentLoc = getLexer().getLoc();
 4737|    207|    if (parseAbsoluteExpression(Pow2Alignment)) {
  ------------------
  |  Branch (4737:9): [True: 10, False: 197]
  ------------------
 4738|     10|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4739|     10|      return true;
 4740|     10|    }
 4741|       |
 4742|    197|    LCOMM::LCOMMType LCOMM = Lexer.getMAI().getLCOMMDirectiveAlignmentType();
 4743|    197|    if (IsLocal && LCOMM == LCOMM::NoAlignment) {
  ------------------
  |  Branch (4743:9): [True: 18, False: 179]
  |  Branch (4743:20): [True: 18, False: 0]
  ------------------
 4744|       |      //return Error(Pow2AlignmentLoc, "alignment not supported on this target");
 4745|     18|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4746|     18|      return true;
 4747|     18|    }
 4748|       |
 4749|       |    // If this target takes alignments in bytes (not log) validate and convert.
 4750|    179|    if ((!IsLocal && Lexer.getMAI().getCOMMDirectiveAlignmentIsInBytes()) ||
  ------------------
  |  Branch (4750:10): [True: 179, False: 0]
  |  Branch (4750:22): [True: 179, False: 0]
  ------------------
 4751|    179|        (IsLocal && LCOMM == LCOMM::ByteAlignment)) {
  ------------------
  |  Branch (4751:10): [True: 0, False: 0]
  |  Branch (4751:21): [True: 0, False: 0]
  ------------------
 4752|    179|      if (!isPowerOf2_64(Pow2Alignment)) {
  ------------------
  |  Branch (4752:11): [True: 172, False: 7]
  ------------------
 4753|       |        //return Error(Pow2AlignmentLoc, "alignment must be a power of 2");
 4754|    172|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4755|    172|        return true;
 4756|    172|      }
 4757|      7|      Pow2Alignment = Log2_64(Pow2Alignment);
 4758|      7|    }
 4759|    179|  }
 4760|       |
 4761|  1.09k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4761:7): [True: 83, False: 1.01k]
  ------------------
 4762|       |    //return TokError("unexpected token in '.comm' or '.lcomm' directive");
 4763|     83|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4764|     83|    return true;
 4765|     83|  }
 4766|       |
 4767|  1.01k|  Lex();
 4768|       |
 4769|       |  // NOTE: a size of zero for a .comm should create a undefined symbol
 4770|       |  // but a size of .lcomm creates a bss symbol of size zero.
 4771|  1.01k|  if (Size < 0) {
  ------------------
  |  Branch (4771:7): [True: 81, False: 929]
  ------------------
 4772|       |    //return Error(SizeLoc, "invalid '.comm' or '.lcomm' directive size, can't "
 4773|       |    //                      "be less than zero");
 4774|     81|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4775|     81|    return true;
 4776|     81|  }
 4777|       |
 4778|       |  // NOTE: The alignment in the directive is a power of 2 value, the assembler
 4779|       |  // may internally end up wanting an alignment in bytes.
 4780|       |  // FIXME: Diagnose overflow.
 4781|    929|  if (Pow2Alignment < 0) {
  ------------------
  |  Branch (4781:7): [True: 0, False: 929]
  ------------------
 4782|       |    //return Error(Pow2AlignmentLoc, "invalid '.comm' or '.lcomm' directive "
 4783|       |    //                               "alignment, can't be less than zero");
 4784|      0|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4785|      0|    return true;
 4786|      0|  }
 4787|       |
 4788|    929|  if (!Sym->isUndefined()) {
  ------------------
  |  Branch (4788:7): [True: 102, False: 827]
  ------------------
 4789|       |    //return Error(IDLoc, "invalid symbol redefinition");
 4790|    102|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4791|    102|    return true;
 4792|    102|  }
 4793|       |
 4794|       |  // Create the Symbol as a common or local common with Size and Pow2Alignment
 4795|    827|  if (IsLocal) {
  ------------------
  |  Branch (4795:7): [True: 63, False: 764]
  ------------------
 4796|     63|    getStreamer().EmitLocalCommonSymbol(Sym, Size, 1 << Pow2Alignment);
 4797|     63|    return false;
 4798|     63|  }
 4799|       |
 4800|    764|  getStreamer().EmitCommonSymbol(Sym, Size, 1 << Pow2Alignment);
 4801|    764|  return false;
 4802|    827|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveAbortEv:
 4807|      4|{
 4808|       |  // FIXME: Use loc from directive.
 4809|       |  //SMLoc Loc = getLexer().getLoc();
 4810|       |
 4811|      4|  StringRef Str = parseStringToEndOfStatement();
 4812|      4|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4812:7): [True: 1, False: 3]
  ------------------
 4813|       |    //return TokError("unexpected token in '.abort' directive");
 4814|      1|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4815|      1|    return true;
 4816|      1|  }
 4817|       |
 4818|      3|  Lex();
 4819|       |
 4820|      3|  if (Str.empty()) {
  ------------------
  |  Branch (4820:7): [True: 3, False: 0]
  ------------------
 4821|       |    //Error(Loc, ".abort detected. Assembly stopping.");
 4822|      3|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4823|      3|    return true;
 4824|      3|  } else {
 4825|       |    //Error(Loc, ".abort '" + Str + "' detected. Assembly stopping.");
 4826|      0|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4827|      0|    return true;
 4828|      0|  }
 4829|       |
 4830|       |  // FIXME: Actually abort assembly here.
 4831|       |
 4832|      0|  return false;
 4833|      3|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser21parseDirectiveIncludeEv:
 4838|    167|{
 4839|    167|  if (getLexer().isNot(AsmToken::String)) {
  ------------------
  |  Branch (4839:7): [True: 73, False: 94]
  ------------------
 4840|       |    //return TokError("expected string in '.include' directive");
 4841|     73|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4842|     73|    return true;
 4843|     73|  }
 4844|       |
 4845|       |  // Allow the strings to have escaped octal character sequence.
 4846|     94|  std::string Filename;
 4847|     94|  if (parseEscapedString(Filename)) {
  ------------------
  |  Branch (4847:7): [True: 13, False: 81]
  ------------------
 4848|     13|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4849|     13|    return true;
 4850|     13|  }
 4851|       |  //SMLoc IncludeLoc = getLexer().getLoc();
 4852|     81|  Lex();
 4853|       |
 4854|     81|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4854:7): [True: 72, False: 9]
  ------------------
 4855|       |    //return TokError("unexpected token in '.include' directive");
 4856|     72|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4857|     72|    return true;
 4858|     72|  }
 4859|       |
 4860|       |  // Attempt to switch the lexer to the included file before consuming the end
 4861|       |  // of statement to avoid losing it when we switch.
 4862|      9|  if (enterIncludeFile(Filename)) {
  ------------------
  |  Branch (4862:7): [True: 9, False: 0]
  ------------------
 4863|       |    //Error(IncludeLoc, "Could not find include file '" + Filename + "'");
 4864|      9|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4865|      9|    return true;
 4866|      9|  }
 4867|       |
 4868|      0|  return false;
 4869|      9|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser16enterIncludeFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  622|      9|bool AsmParser::enterIncludeFile(const std::string &Filename) {
  623|      9|  std::string IncludedFile;
  624|      9|  unsigned NewBuf =
  625|      9|      SrcMgr.AddIncludeFile(Filename, Lexer.getLoc(), IncludedFile);
  626|      9|  if (!NewBuf)
  ------------------
  |  Branch (626:7): [True: 9, False: 0]
  ------------------
  627|      9|    return true;
  628|       |
  629|      0|  CurBuffer = NewBuf;
  630|      0|  Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
  631|      0|  return false;
  632|      9|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveReptEN7llvm_ks5SMLocENS1_9StringRefE:
 5563|  77.0k|{
 5564|  77.0k|  const MCExpr *CountExpr;
 5565|       |  //SMLoc CountLoc = getTok().getLoc();
 5566|  77.0k|  if (parseExpression(CountExpr)) {
  ------------------
  |  Branch (5566:7): [True: 28.8k, False: 48.1k]
  ------------------
 5567|  28.8k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5568|  28.8k|    return true;
 5569|  28.8k|  }
 5570|       |
 5571|  48.1k|  int64_t Count;
 5572|  48.1k|  if (!CountExpr->evaluateAsAbsolute(Count)) {
  ------------------
  |  Branch (5572:7): [True: 7.32k, False: 40.8k]
  ------------------
 5573|  7.32k|    eatToEndOfStatement();
 5574|       |    //return Error(CountLoc, "unexpected token in '" + Dir + "' directive");
 5575|  7.32k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5576|  7.32k|    return true;
 5577|  7.32k|  }
 5578|       |
 5579|  40.8k|  if (Count < 0) {
  ------------------
  |  Branch (5579:7): [True: 39.8k, False: 989]
  ------------------
 5580|       |    //return Error(CountLoc, "Count is negative");
 5581|  39.8k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5582|  39.8k|    return true;
 5583|  39.8k|  }
 5584|       |
 5585|    989|  if (Lexer.isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5585:7): [True: 256, False: 733]
  ------------------
 5586|       |    //return TokError("unexpected token in '" + Dir + "' directive");
 5587|    256|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5588|    256|    return true;
 5589|    256|  }
 5590|       |
 5591|       |  // Eat the end of statement.
 5592|    733|  Lex();
 5593|       |
 5594|       |  // Lex the rept definition.
 5595|    733|  MCAsmMacro *M = parseMacroLikeBody(DirectiveLoc);
 5596|    733|  if (!M) {
  ------------------
  |  Branch (5596:7): [True: 60, False: 673]
  ------------------
 5597|     60|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5598|     60|    return true;
 5599|     60|  }
 5600|       |
 5601|       |  // Macro instantiation is lexical, unfortunately. We construct a new buffer
 5602|       |  // to hold the macro body with substitutions.
 5603|    673|  SmallString<256> Buf;
 5604|    673|  raw_svector_ostream OS(Buf);
 5605|  19.0M|  while (Count--) {
  ------------------
  |  Branch (5605:10): [True: 19.0M, False: 673]
  ------------------
 5606|       |    // Note that the AtPseudoVariable is disabled for instantiations of .rep(t).
 5607|  19.0M|    if (expandMacro(OS, M->Body, None, None, false, getTok().getLoc())) {
  ------------------
  |  Branch (5607:9): [True: 0, False: 19.0M]
  ------------------
 5608|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5609|      0|      return true;
 5610|      0|    }
 5611|  19.0M|  }
 5612|    673|  instantiateMacroLikeBody(M, DirectiveLoc, OS);
 5613|       |
 5614|    673|  return false;
 5615|    673|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseMacroLikeBodyEN7llvm_ks5SMLocE:
 5498|  2.74k|MCAsmMacro *AsmParser::parseMacroLikeBody(SMLoc DirectiveLoc) {
 5499|  2.74k|  AsmToken EndToken, StartToken = getTok();
 5500|       |
 5501|  2.74k|  unsigned NestLevel = 0;
 5502|   230k|  for (;;) {
 5503|       |    // Check whether we have reached the end of the file.
 5504|   230k|    if (getLexer().is(AsmToken::Eof)) {
  ------------------
  |  Branch (5504:9): [True: 175, False: 229k]
  ------------------
 5505|       |      //Error(DirectiveLoc, "no matching '.endr' in definition");
 5506|    175|      return nullptr;
 5507|    175|    }
 5508|       |
 5509|   229k|    if (Lexer.is(AsmToken::Identifier) &&
  ------------------
  |  Branch (5509:9): [True: 114k, False: 115k]
  |  Branch (5509:9): [True: 239, False: 229k]
  ------------------
 5510|   114k|        (getTok().getIdentifier() == ".rept")) {
  ------------------
  |  Branch (5510:9): [True: 239, False: 114k]
  ------------------
 5511|    239|      ++NestLevel;
 5512|    239|    }
 5513|       |
 5514|       |    // Otherwise, check whether we have reached the .endr.
 5515|   229k|    if (Lexer.is(AsmToken::Identifier) && getTok().getIdentifier() == ".endr") {
  ------------------
  |  Branch (5515:9): [True: 114k, False: 115k]
  |  Branch (5515:9): [True: 2.60k, False: 227k]
  |  Branch (5515:43): [True: 2.60k, False: 111k]
  ------------------
 5516|  2.60k|      if (NestLevel == 0) {
  ------------------
  |  Branch (5516:11): [True: 2.56k, False: 37]
  ------------------
 5517|  2.56k|        EndToken = getTok();
 5518|  2.56k|        Lex();
 5519|  2.56k|        if (Lexer.isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5519:13): [True: 125, False: 2.44k]
  ------------------
 5520|       |          //TokError("unexpected token in '.endr' directive");
 5521|    125|          return nullptr;
 5522|    125|        }
 5523|  2.44k|        break;
 5524|  2.56k|      }
 5525|     37|      --NestLevel;
 5526|     37|    }
 5527|       |
 5528|       |    // Otherwise, scan till the end of the statement.
 5529|   227k|    eatToEndOfStatement();
 5530|   227k|  }
 5531|       |
 5532|  2.44k|  const char *BodyStart = StartToken.getLoc().getPointer();
 5533|  2.44k|  const char *BodyEnd = EndToken.getLoc().getPointer();
 5534|  2.44k|  StringRef Body = StringRef(BodyStart, BodyEnd - BodyStart);
 5535|       |
 5536|       |  // We Are Anonymous.
 5537|  2.44k|  MacroLikeBodies.emplace_back(StringRef(), Body, MCAsmMacroParameters());
 5538|  2.44k|  return &MacroLikeBodies.back();
 5539|  2.74k|}
AsmParser.cpp:_ZN12_GLOBAL__N_110MCAsmMacroC2EN7llvm_ks9StringRefES2_NSt3__16vectorINS_19MCAsmMacroParameterENS3_9allocatorIS5_EEEE:
   77|  3.17k|      : Name(N), Body(B), Parameters(std::move(P)) {}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser24instantiateMacroLikeBodyEPNS_10MCAsmMacroEN7llvm_ks5SMLocERNS3_19raw_svector_ostreamE:
 5542|  2.44k|                                         raw_svector_ostream &OS) {
 5543|  2.44k|  OS << ".endr\n";
 5544|       |
 5545|  2.44k|  std::unique_ptr<MemoryBuffer> Instantiation =
 5546|  2.44k|      MemoryBuffer::getMemBufferCopy(OS.str(), "<instantiation>");
 5547|       |
 5548|       |  // Create the macro instantiation object and add to the current macro
 5549|       |  // instantiation stack.
 5550|  2.44k|  MacroInstantiation *MI = new MacroInstantiation(
 5551|  2.44k|      DirectiveLoc, CurBuffer, getTok().getLoc(), TheCondStack.size());
 5552|  2.44k|  ActiveMacros.push_back(MI);
 5553|       |
 5554|       |  // Jump to the macro instantiation and prime the lexer.
 5555|  2.44k|  CurBuffer = SrcMgr.AddNewSourceBuffer(std::move(Instantiation), SMLoc());
 5556|  2.44k|  Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer());
 5557|  2.44k|  Lex();
 5558|  2.44k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser17parseDirectiveIrpEN7llvm_ks5SMLocE:
 5620|  2.67k|{
 5621|  2.67k|  MCAsmMacroParameter Parameter;
 5622|       |
 5623|  2.67k|  if (parseIdentifier(Parameter.Name)) {
  ------------------
  |  Branch (5623:7): [True: 241, False: 2.43k]
  ------------------
 5624|       |    //return TokError("expected identifier in '.irp' directive");
 5625|    241|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5626|    241|    return true;
 5627|    241|  }
 5628|       |
 5629|  2.43k|  if (Lexer.isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (5629:7): [True: 88, False: 2.34k]
  ------------------
 5630|       |    //return TokError("expected comma in '.irp' directive");
 5631|     88|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5632|     88|    return true;
 5633|     88|  }
 5634|       |
 5635|  2.34k|  Lex();
 5636|       |
 5637|  2.34k|  MCAsmMacroArguments A;
 5638|  2.34k|  if (parseMacroArguments(nullptr, A)) {
  ------------------
  |  Branch (5638:7): [True: 798, False: 1.54k]
  ------------------
 5639|    798|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5640|    798|    return true;
 5641|    798|  }
 5642|       |
 5643|       |  // Eat the end of statement.
 5644|  1.54k|  Lex();
 5645|       |
 5646|       |  // Lex the irp definition.
 5647|  1.54k|  MCAsmMacro *M = parseMacroLikeBody(DirectiveLoc);
 5648|  1.54k|  if (!M) {
  ------------------
  |  Branch (5648:7): [True: 130, False: 1.41k]
  ------------------
 5649|    130|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5650|    130|    return true;
 5651|    130|  }
 5652|       |
 5653|       |  // Macro instantiation is lexical, unfortunately. We construct a new buffer
 5654|       |  // to hold the macro body with substitutions.
 5655|  1.41k|  SmallString<256> Buf;
 5656|  1.41k|  raw_svector_ostream OS(Buf);
 5657|       |
 5658|  8.38k|  for (const MCAsmMacroArgument &Arg : A) {
  ------------------
  |  Branch (5658:38): [True: 8.38k, False: 1.41k]
  ------------------
 5659|       |    // Note that the AtPseudoVariable is enabled for instantiations of .irp.
 5660|       |    // This is undocumented, but GAS seems to support it.
 5661|  8.38k|    if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) {
  ------------------
  |  Branch (5661:9): [True: 0, False: 8.38k]
  ------------------
 5662|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5663|      0|      return true;
 5664|      0|    }
 5665|  8.38k|  }
 5666|       |
 5667|  1.41k|  instantiateMacroLikeBody(M, DirectiveLoc, OS);
 5668|       |
 5669|  1.41k|  return false;
 5670|  1.41k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveIrpcEN7llvm_ks5SMLocE:
 5675|  7.12k|{
 5676|  7.12k|  MCAsmMacroParameter Parameter;
 5677|       |
 5678|  7.12k|  if (parseIdentifier(Parameter.Name)) {
  ------------------
  |  Branch (5678:7): [True: 250, False: 6.87k]
  ------------------
 5679|       |    //return TokError("expected identifier in '.irpc' directive");
 5680|    250|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5681|    250|    return true;
 5682|    250|  }
 5683|       |
 5684|  6.87k|  if (Lexer.isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (5684:7): [True: 241, False: 6.62k]
  ------------------
 5685|       |    //return TokError("expected comma in '.irpc' directive");
 5686|    241|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5687|    241|    return true;
 5688|    241|  }
 5689|       |
 5690|  6.62k|  Lex();
 5691|       |
 5692|  6.62k|  MCAsmMacroArguments A;
 5693|  6.62k|  if (parseMacroArguments(nullptr, A)) {
  ------------------
  |  Branch (5693:7): [True: 3.52k, False: 3.10k]
  ------------------
 5694|  3.52k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5695|  3.52k|    return true;
 5696|  3.52k|  }
 5697|       |
 5698|  3.10k|  if (A.size() != 1 || A.front().size() != 1) {
  ------------------
  |  Branch (5698:7): [True: 1.18k, False: 1.92k]
  |  Branch (5698:24): [True: 1.45k, False: 466]
  ------------------
 5699|       |    //return TokError("unexpected token in '.irpc' directive");
 5700|  2.64k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5701|  2.64k|    return true;
 5702|  2.64k|  }
 5703|       |
 5704|       |  // Eat the end of statement.
 5705|    466|  Lex();
 5706|       |
 5707|       |  // Lex the irpc definition.
 5708|    466|  MCAsmMacro *M = parseMacroLikeBody(DirectiveLoc);
 5709|    466|  if (!M) {
  ------------------
  |  Branch (5709:7): [True: 110, False: 356]
  ------------------
 5710|    110|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5711|    110|    return true;
 5712|    110|  }
 5713|       |
 5714|       |  // Macro instantiation is lexical, unfortunately. We construct a new buffer
 5715|       |  // to hold the macro body with substitutions.
 5716|    356|  SmallString<256> Buf;
 5717|    356|  raw_svector_ostream OS(Buf);
 5718|       |
 5719|    356|  StringRef Values = A.front().front().getString();
 5720|  17.6k|  for (std::size_t I = 0, End = Values.size(); I != End; ++I) {
  ------------------
  |  Branch (5720:48): [True: 17.2k, False: 356]
  ------------------
 5721|  17.2k|    MCAsmMacroArgument Arg;
 5722|  17.2k|    Arg.emplace_back(AsmToken::Identifier, Values.slice(I, I + 1));
 5723|       |
 5724|       |    // Note that the AtPseudoVariable is enabled for instantiations of .irpc.
 5725|       |    // This is undocumented, but GAS seems to support it.
 5726|  17.2k|    if (expandMacro(OS, M->Body, Parameter, Arg, true, getTok().getLoc())) {
  ------------------
  |  Branch (5726:9): [True: 0, False: 17.2k]
  ------------------
 5727|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5728|      0|      return true;
 5729|      0|    }
 5730|  17.2k|  }
 5731|       |
 5732|    356|  instantiateMacroLikeBody(M, DirectiveLoc, OS);
 5733|       |
 5734|    356|  return false;
 5735|    356|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveEndrEN7llvm_ks5SMLocE:
 5738|  2.47k|{
 5739|  2.47k|  if (ActiveMacros.empty()) {
  ------------------
  |  Branch (5739:7): [True: 105, False: 2.37k]
  ------------------
 5740|       |    //return TokError("unmatched '.endr' directive");
 5741|    105|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5742|    105|    return true;
 5743|    105|  }
 5744|       |
 5745|       |  // The only .repl that should get here are the ones created by
 5746|       |  // instantiateMacroLikeBody.
 5747|  2.47k|  assert(getLexer().is(AsmToken::EndOfStatement));
  ------------------
  |  Branch (5747:3): [True: 2.37k, False: 0]
  ------------------
 5748|       |
 5749|  2.37k|  handleMacroExit();
 5750|  2.37k|  return false;
 5751|  2.37k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser15handleMacroExitEv:
 2507|  31.9k|void AsmParser::handleMacroExit() {
 2508|       |  // Jump to the EndOfStatement we should return to, and consume it.
 2509|  31.9k|  jumpToLoc(ActiveMacros.back()->ExitLoc, ActiveMacros.back()->ExitBuffer);
 2510|  31.9k|  Lex();
 2511|       |
 2512|       |  // Pop the instantiation entry.
 2513|  31.9k|  delete ActiveMacros.back();
 2514|  31.9k|  ActiveMacros.pop_back();
 2515|  31.9k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser9jumpToLocEN7llvm_ks5SMLocEj:
  649|  31.9k|void AsmParser::jumpToLoc(SMLoc Loc, unsigned InBuffer) {
  650|  31.9k|  CurBuffer = InBuffer ? InBuffer : SrcMgr.FindBufferContainingLoc(Loc);
  ------------------
  |  Branch (650:15): [True: 31.9k, False: 0]
  ------------------
  651|  31.9k|  Lexer.setBuffer(SrcMgr.getMemoryBuffer(CurBuffer)->getBuffer(),
  652|  31.9k|                  Loc.getPointer());
  653|  31.9k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveSpaceEN7llvm_ks9StringRefE:
 4574|  1.17k|{
 4575|  1.17k|  checkForValidSection();
 4576|       |
 4577|  1.17k|  int64_t NumBytes;
 4578|  1.17k|  if (parseAbsoluteExpression(NumBytes)) {
  ------------------
  |  Branch (4578:7): [True: 106, False: 1.06k]
  ------------------
 4579|    106|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4580|    106|    return true;
 4581|    106|  }
 4582|       |
 4583|  1.06k|  int64_t FillExpr = 0;
 4584|  1.06k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4584:7): [True: 241, False: 828]
  ------------------
 4585|    241|    if (getLexer().isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (4585:9): [True: 205, False: 36]
  ------------------
 4586|       |      //return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
 4587|    205|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4588|    205|      return true;
 4589|    205|    }
 4590|     36|    Lex();
 4591|       |
 4592|     36|    if (parseAbsoluteExpression(FillExpr))
  ------------------
  |  Branch (4592:9): [True: 11, False: 25]
  ------------------
 4593|     11|      return true;
 4594|       |
 4595|     25|    if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (4595:9): [True: 2, False: 23]
  ------------------
 4596|       |      //return TokError("unexpected token in '" + Twine(IDVal) + "' directive");
 4597|      2|      return true;
 4598|     25|  }
 4599|       |
 4600|    851|  Lex();
 4601|       |
 4602|    851|  if (NumBytes <= 0) {
  ------------------
  |  Branch (4602:7): [True: 392, False: 459]
  ------------------
 4603|       |    //return TokError("invalid number of bytes in '" + Twine(IDVal) +
 4604|       |    //                "' directive");
 4605|    392|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4606|    392|    return true;
 4607|    392|  }
 4608|       |
 4609|       |  // FIXME: Sometimes the fill expr is 'nop' if it isn't supplied, instead of 0.
 4610|    459|  getStreamer().EmitFill(NumBytes, FillExpr);
 4611|       |
 4612|    459|  return false;
 4613|    851|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveFileEN7llvm_ks5SMLocE:
 3288|  1.83k|{
 3289|       |  // FIXME: I'm not sure what this is.
 3290|  1.83k|  int64_t FileNumber = -1;
 3291|       |  //SMLoc FileNumberLoc = getLexer().getLoc();
 3292|  1.83k|  if (getLexer().is(AsmToken::Integer)) {
  ------------------
  |  Branch (3292:7): [True: 485, False: 1.34k]
  ------------------
 3293|    485|    bool valid;
 3294|    485|    FileNumber = getTok().getIntVal(valid);
 3295|    485|    if (!valid) {
  ------------------
  |  Branch (3295:9): [True: 0, False: 485]
  ------------------
 3296|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3297|      0|        return true;
 3298|      0|    }
 3299|    485|    Lex();
 3300|       |
 3301|    485|    if (FileNumber < 1) {
  ------------------
  |  Branch (3301:9): [True: 83, False: 402]
  ------------------
 3302|       |      //return TokError("file number less than one");
 3303|     83|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3304|     83|      return true;
 3305|     83|    }
 3306|    485|  }
 3307|       |
 3308|  1.74k|  if (getLexer().isNot(AsmToken::String)) {
  ------------------
  |  Branch (3308:7): [True: 369, False: 1.38k]
  ------------------
 3309|       |    //return TokError("unexpected token in '.file' directive");
 3310|    369|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3311|    369|    return true;
 3312|    369|  }
 3313|       |
 3314|       |  // Usually the directory and filename together, otherwise just the directory.
 3315|       |  // Allow the strings to have escaped octal character sequence.
 3316|  1.38k|  std::string Path = getTok().getString();
 3317|  1.38k|  if (parseEscapedString(Path))
  ------------------
  |  Branch (3317:7): [True: 64, False: 1.31k]
  ------------------
 3318|     64|    return true;
 3319|  1.31k|  Lex();
 3320|       |
 3321|  1.31k|  StringRef Directory;
 3322|  1.31k|  StringRef Filename;
 3323|  1.31k|  std::string FilenameData;
 3324|  1.31k|  if (getLexer().is(AsmToken::String)) {
  ------------------
  |  Branch (3324:7): [True: 58, False: 1.25k]
  ------------------
 3325|     58|    if (FileNumber == -1)
  ------------------
  |  Branch (3325:9): [True: 1, False: 57]
  ------------------
 3326|       |      //return TokError("explicit path specified, but no file number");
 3327|      1|      return true;
 3328|     57|    if (parseEscapedString(FilenameData))
  ------------------
  |  Branch (3328:9): [True: 4, False: 53]
  ------------------
 3329|      4|      return true;
 3330|     53|    Filename = FilenameData;
 3331|     53|    Directory = Path;
 3332|     53|    Lex();
 3333|  1.25k|  } else {
 3334|  1.25k|    Filename = Path;
 3335|  1.25k|  }
 3336|       |
 3337|  1.31k|  if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (3337:7): [True: 66, False: 1.24k]
  ------------------
 3338|       |    //return TokError("unexpected token in '.file' directive");
 3339|     66|    return true;
 3340|       |
 3341|  1.24k|  if (FileNumber == -1)
  ------------------
  |  Branch (3341:7): [True: 1.19k, False: 48]
  ------------------
 3342|  1.19k|    getStreamer().EmitFileDirective(Filename);
 3343|     48|  else {
 3344|     48|    if (getContext().getGenDwarfForAssembly())
  ------------------
  |  Branch (3344:9): [True: 0, False: 48]
  ------------------
 3345|       |      //Error(DirectiveLoc,
 3346|       |      //      "input can't have .file dwarf directives when -g is "
 3347|       |      //      "used to generate dwarf debug info for assembly code");
 3348|      0|      return true;
 3349|       |
 3350|     48|    if (getStreamer().EmitDwarfFileDirective(FileNumber, Directory, Filename) ==
  ------------------
  |  Branch (3350:9): [True: 48, False: 0]
  ------------------
 3351|     48|        0)
 3352|       |      //Error(FileNumberLoc, "file number already allocated");
 3353|     48|      return true;
 3354|     48|  }
 3355|       |
 3356|  1.19k|  return false;
 3357|  1.24k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseDirectiveLineEv:
 3362|  4.63k|{
 3363|  4.63k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3363:7): [True: 1.19k, False: 3.44k]
  ------------------
 3364|  1.19k|    if (getLexer().isNot(AsmToken::Integer)) {
  ------------------
  |  Branch (3364:9): [True: 1.10k, False: 92]
  ------------------
 3365|       |      //return TokError("unexpected token in '.line' directive");
 3366|  1.10k|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3367|  1.10k|      return true;
 3368|  1.10k|    }
 3369|       |
 3370|     92|    bool valid;
 3371|     92|    int64_t LineNumber = getTok().getIntVal(valid);
 3372|     92|    if (!valid) {
  ------------------
  |  Branch (3372:9): [True: 0, False: 92]
  ------------------
 3373|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3374|      0|        return true;
 3375|      0|    }
 3376|     92|    (void)LineNumber;
 3377|     92|    Lex();
 3378|       |
 3379|       |    // FIXME: Do something with the .line.
 3380|     92|  }
 3381|       |
 3382|  3.53k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3382:7): [True: 23, False: 3.51k]
  ------------------
 3383|       |    //return TokError("unexpected token in '.line' directive");
 3384|     23|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3385|     23|    return true;
 3386|     23|  }
 3387|       |
 3388|  3.51k|  return false;
 3389|  3.53k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser17parseDirectiveLocEv:
 3399|    273|{
 3400|    273|  if (getLexer().isNot(AsmToken::Integer)) {
  ------------------
  |  Branch (3400:7): [True: 199, False: 74]
  ------------------
 3401|       |    //return TokError("unexpected token in '.loc' directive");
 3402|    199|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3403|    199|    return true;
 3404|    199|  }
 3405|     74|  bool valid;
 3406|     74|  int64_t FileNumber = getTok().getIntVal(valid);
 3407|     74|  if (!valid) {
  ------------------
  |  Branch (3407:7): [True: 0, False: 74]
  ------------------
 3408|      0|      return true;
 3409|      0|  }
 3410|     74|  if (FileNumber < 1) {
  ------------------
  |  Branch (3410:7): [True: 5, False: 69]
  ------------------
 3411|       |    //return TokError("file number less than one in '.loc' directive");
 3412|      5|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3413|      5|    return true;
 3414|      5|  }
 3415|     69|  if (!getContext().isValidDwarfFileNumber(FileNumber)) {
  ------------------
  |  Branch (3415:7): [True: 69, False: 0]
  ------------------
 3416|       |    //return TokError("unassigned file number in '.loc' directive");
 3417|     69|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3418|     69|    return true;
 3419|     69|  }
 3420|      0|  Lex();
 3421|       |
 3422|      0|  int64_t LineNumber = 0;
 3423|      0|  if (getLexer().is(AsmToken::Integer)) {
  ------------------
  |  Branch (3423:7): [True: 0, False: 0]
  ------------------
 3424|      0|    bool valid;
 3425|      0|    LineNumber = getTok().getIntVal(valid);
 3426|      0|    if (!valid) {
  ------------------
  |  Branch (3426:9): [True: 0, False: 0]
  ------------------
 3427|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3428|      0|        return true;
 3429|      0|    }
 3430|      0|    if (LineNumber < 0) {
  ------------------
  |  Branch (3430:9): [True: 0, False: 0]
  ------------------
 3431|       |      //return TokError("line number less than zero in '.loc' directive");
 3432|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3433|      0|      return true;
 3434|      0|    }
 3435|      0|    Lex();
 3436|      0|  }
 3437|       |
 3438|      0|  int64_t ColumnPos = 0;
 3439|      0|  if (getLexer().is(AsmToken::Integer)) {
  ------------------
  |  Branch (3439:7): [True: 0, False: 0]
  ------------------
 3440|      0|    bool valid;
 3441|      0|    ColumnPos = getTok().getIntVal(valid);
 3442|      0|    if (!valid) {
  ------------------
  |  Branch (3442:9): [True: 0, False: 0]
  ------------------
 3443|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3444|      0|        return true;
 3445|      0|    }
 3446|      0|    if (ColumnPos < 0) {
  ------------------
  |  Branch (3446:9): [True: 0, False: 0]
  ------------------
 3447|       |      //return TokError("column position less than zero in '.loc' directive");
 3448|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3449|      0|      return true;
 3450|      0|    }
 3451|      0|    Lex();
 3452|      0|  }
 3453|       |
 3454|      0|  unsigned Flags = DWARF2_LINE_DEFAULT_IS_STMT ? DWARF2_FLAG_IS_STMT : 0;
  ------------------
  |  |   66|      0|#define DWARF2_LINE_DEFAULT_IS_STMT 1
  |  |  ------------------
  |  |  |  Branch (66:37): [True: 0, Folded]
  |  |  ------------------
  ------------------
                unsigned Flags = DWARF2_LINE_DEFAULT_IS_STMT ? DWARF2_FLAG_IS_STMT : 0;
  ------------------
  |  |   68|      0|#define DWARF2_FLAG_IS_STMT (1 << 0)
  ------------------
 3455|      0|  unsigned Isa = 0;
 3456|      0|  int64_t Discriminator = 0;
 3457|      0|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (3457:7): [True: 0, False: 0]
  ------------------
 3458|      0|    for (;;) {
 3459|      0|      if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (3459:11): [True: 0, False: 0]
  ------------------
 3460|      0|        break;
 3461|       |
 3462|      0|      StringRef Name;
 3463|      0|      SMLoc Loc = getTok().getLoc();
 3464|      0|      if (parseIdentifier(Name)) {
  ------------------
  |  Branch (3464:11): [True: 0, False: 0]
  ------------------
 3465|       |        //return TokError("unexpected token in '.loc' directive");
 3466|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3467|      0|        return true;
 3468|      0|      }
 3469|       |
 3470|      0|      if (Name == "basic_block")
  ------------------
  |  Branch (3470:11): [True: 0, False: 0]
  ------------------
 3471|      0|        Flags |= DWARF2_FLAG_BASIC_BLOCK;
  ------------------
  |  |   69|      0|#define DWARF2_FLAG_BASIC_BLOCK (1 << 1)
  ------------------
 3472|      0|      else if (Name == "prologue_end")
  ------------------
  |  Branch (3472:16): [True: 0, False: 0]
  ------------------
 3473|      0|        Flags |= DWARF2_FLAG_PROLOGUE_END;
  ------------------
  |  |   70|      0|#define DWARF2_FLAG_PROLOGUE_END (1 << 2)
  ------------------
 3474|      0|      else if (Name == "epilogue_begin")
  ------------------
  |  Branch (3474:16): [True: 0, False: 0]
  ------------------
 3475|      0|        Flags |= DWARF2_FLAG_EPILOGUE_BEGIN;
  ------------------
  |  |   71|      0|#define DWARF2_FLAG_EPILOGUE_BEGIN (1 << 3)
  ------------------
 3476|      0|      else if (Name == "is_stmt") {
  ------------------
  |  Branch (3476:16): [True: 0, False: 0]
  ------------------
 3477|      0|        Loc = getTok().getLoc();
 3478|      0|        const MCExpr *Value;
 3479|      0|        if (parseExpression(Value)) {
  ------------------
  |  Branch (3479:13): [True: 0, False: 0]
  ------------------
 3480|      0|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3481|      0|          return true;
 3482|      0|        }
 3483|       |        // The expression must be the constant 0 or 1.
 3484|      0|        if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
  ------------------
  |  Branch (3484:35): [True: 0, False: 0]
  ------------------
 3485|      0|          int Value = MCE->getValue();
 3486|      0|          if (Value == 0)
  ------------------
  |  Branch (3486:15): [True: 0, False: 0]
  ------------------
 3487|      0|            Flags &= ~DWARF2_FLAG_IS_STMT;
  ------------------
  |  |   68|      0|#define DWARF2_FLAG_IS_STMT (1 << 0)
  ------------------
 3488|      0|          else if (Value == 1)
  ------------------
  |  Branch (3488:20): [True: 0, False: 0]
  ------------------
 3489|      0|            Flags |= DWARF2_FLAG_IS_STMT;
  ------------------
  |  |   68|      0|#define DWARF2_FLAG_IS_STMT (1 << 0)
  ------------------
 3490|      0|          else {
 3491|       |            //return Error(Loc, "is_stmt value not 0 or 1");
 3492|      0|            KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3493|      0|            return true;
 3494|      0|          }
 3495|      0|        } else {
 3496|       |          //return Error(Loc, "is_stmt value not the constant value of 0 or 1");
 3497|      0|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3498|      0|          return true;
 3499|      0|        }
 3500|      0|      } else if (Name == "isa") {
  ------------------
  |  Branch (3500:18): [True: 0, False: 0]
  ------------------
 3501|      0|        Loc = getTok().getLoc();
 3502|      0|        const MCExpr *Value;
 3503|      0|        if (parseExpression(Value)) {
  ------------------
  |  Branch (3503:13): [True: 0, False: 0]
  ------------------
 3504|      0|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3505|      0|          return true;
 3506|      0|        }
 3507|       |        // The expression must be a constant greater or equal to 0.
 3508|      0|        if (const MCConstantExpr *MCE = dyn_cast<MCConstantExpr>(Value)) {
  ------------------
  |  Branch (3508:35): [True: 0, False: 0]
  ------------------
 3509|      0|          int Value = MCE->getValue();
 3510|      0|          if (Value < 0) {
  ------------------
  |  Branch (3510:15): [True: 0, False: 0]
  ------------------
 3511|       |            //return Error(Loc, "isa number less than zero");
 3512|      0|            KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3513|      0|            return true;
 3514|      0|          }
 3515|      0|          Isa = Value;
 3516|      0|        } else {
 3517|       |          //return Error(Loc, "isa number not a constant value");
 3518|      0|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3519|      0|          return true;
 3520|      0|        }
 3521|      0|      } else if (Name == "discriminator") {
  ------------------
  |  Branch (3521:18): [True: 0, False: 0]
  ------------------
 3522|      0|        if (parseAbsoluteExpression(Discriminator)) {
  ------------------
  |  Branch (3522:13): [True: 0, False: 0]
  ------------------
 3523|      0|          KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3524|      0|          return true;
 3525|      0|        }
 3526|      0|      } else {
 3527|       |        //return Error(Loc, "unknown sub-directive in '.loc' directive");
 3528|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 3529|      0|        return true;
 3530|      0|      }
 3531|       |
 3532|      0|      if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (3532:11): [True: 0, False: 0]
  ------------------
 3533|      0|        break;
 3534|      0|    }
 3535|      0|  }
 3536|       |
 3537|      0|  getStreamer().EmitDwarfLocDirective(FileNumber, LineNumber, ColumnPos, Flags,
 3538|      0|                                      Isa, Discriminator, StringRef());
 3539|       |
 3540|      0|  return false;
 3541|      0|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveMacroEN7llvm_ks5SMLocE:
 4166|  3.96k|{
 4167|  3.96k|  StringRef Name;
 4168|  3.96k|  if (parseIdentifier(Name)) {
  ------------------
  |  Branch (4168:7): [True: 42, False: 3.92k]
  ------------------
 4169|       |    //return TokError("expected identifier in '.macro' directive");
 4170|     42|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4171|     42|    return true;
 4172|     42|  }
 4173|       |
 4174|  3.92k|  if (getLexer().is(AsmToken::Comma))
  ------------------
  |  Branch (4174:7): [True: 513, False: 3.40k]
  ------------------
 4175|    513|    Lex();
 4176|       |
 4177|  3.92k|  MCAsmMacroParameters Parameters;
 4178|  11.3k|  while (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4178:10): [True: 7.65k, False: 3.72k]
  ------------------
 4179|       |
 4180|  7.65k|    if (!Parameters.empty() && Parameters.back().Vararg) {
  ------------------
  |  Branch (4180:9): [True: 6.26k, False: 1.38k]
  |  Branch (4180:32): [True: 0, False: 6.26k]
  ------------------
 4181|       |      //return Error(Lexer.getLoc(),
 4182|       |      //             "Vararg parameter '" + Parameters.back().Name +
 4183|       |      //             "' should be last one in the list of parameters.");
 4184|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4185|      0|      return true;
 4186|      0|    }
 4187|       |
 4188|  7.65k|    MCAsmMacroParameter Parameter;
 4189|  7.65k|    if (parseIdentifier(Parameter.Name)) {
  ------------------
  |  Branch (4189:9): [True: 78, False: 7.57k]
  ------------------
 4190|       |      //return TokError("expected identifier in '.macro' directive");
 4191|     78|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4192|     78|      return true;
 4193|     78|    }
 4194|       |
 4195|  7.57k|    if (Lexer.is(AsmToken::Colon)) {
  ------------------
  |  Branch (4195:9): [True: 103, False: 7.47k]
  ------------------
 4196|    103|      Lex();  // consume ':'
 4197|       |
 4198|    103|      SMLoc QualLoc;
 4199|    103|      StringRef Qualifier;
 4200|       |
 4201|    103|      QualLoc = Lexer.getLoc();
 4202|    103|      if (parseIdentifier(Qualifier)) {
  ------------------
  |  Branch (4202:11): [True: 72, False: 31]
  ------------------
 4203|       |        //return Error(QualLoc, "missing parameter qualifier for "
 4204|       |        //             "'" + Parameter.Name + "' in macro '" + Name + "'");
 4205|     72|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4206|     72|        return true;
 4207|     72|      }
 4208|       |
 4209|     31|      if (Qualifier == "req")
  ------------------
  |  Branch (4209:11): [True: 0, False: 31]
  ------------------
 4210|      0|        Parameter.Required = true;
 4211|     31|      else if (Qualifier == "vararg")
  ------------------
  |  Branch (4211:16): [True: 0, False: 31]
  ------------------
 4212|      0|        Parameter.Vararg = true;
 4213|     31|      else {
 4214|       |        //return Error(QualLoc, Qualifier + " is not a valid parameter qualifier "
 4215|       |        //             "for '" + Parameter.Name + "' in macro '" + Name + "'");
 4216|     31|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4217|     31|        return true;
 4218|     31|      }
 4219|     31|    }
 4220|       |
 4221|  7.47k|    if (getLexer().is(AsmToken::Equal)) {
  ------------------
  |  Branch (4221:9): [True: 571, False: 6.89k]
  ------------------
 4222|    571|      Lex();
 4223|       |
 4224|    571|      SMLoc ParamLoc;
 4225|       |
 4226|    571|      ParamLoc = Lexer.getLoc();
 4227|    571|      if (parseMacroArgument(Parameter.Value, /*Vararg=*/false )) {
  ------------------
  |  Branch (4227:11): [True: 11, False: 560]
  ------------------
 4228|     11|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4229|     11|        return true;
 4230|     11|      }
 4231|       |
 4232|    560|      if (Parameter.Required)
  ------------------
  |  Branch (4232:11): [True: 0, False: 560]
  ------------------
 4233|      0|        Warning(ParamLoc, "pointless default value for required parameter "
 4234|      0|                "'" + Parameter.Name + "' in macro '" + Name + "'");
 4235|    560|    }
 4236|       |
 4237|  7.45k|    Parameters.push_back(std::move(Parameter));
 4238|       |
 4239|  7.45k|    if (getLexer().is(AsmToken::Comma))
  ------------------
  |  Branch (4239:9): [True: 1.89k, False: 5.56k]
  ------------------
 4240|  1.89k|      Lex();
 4241|  7.45k|  }
 4242|       |
 4243|       |  // Eat the end of statement.
 4244|  3.72k|  Lex();
 4245|       |
 4246|  3.72k|  AsmToken EndToken, StartToken = getTok();
 4247|  3.72k|  unsigned MacroDepth = 0;
 4248|       |
 4249|       |  // Lex the macro definition.
 4250|  12.8k|  for (;;) {
 4251|       |    // Check whether we have reached the end of the file.
 4252|  12.8k|    if (getLexer().is(AsmToken::Eof)) {
  ------------------
  |  Branch (4252:9): [True: 100, False: 12.7k]
  ------------------
 4253|       |      //return Error(DirectiveLoc, "no matching '.endmacro' in definition");
 4254|    100|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4255|    100|      return true;
 4256|    100|    }
 4257|       |
 4258|       |    // Otherwise, check whether we have reach the .endmacro.
 4259|  12.7k|    if (getLexer().is(AsmToken::Identifier)) {
  ------------------
  |  Branch (4259:9): [True: 8.63k, False: 4.11k]
  ------------------
 4260|  8.63k|      if (getTok().getIdentifier() == ".endm" ||
  ------------------
  |  Branch (4260:11): [True: 3.08k, False: 5.54k]
  |  Branch (4260:11): [True: 4.37k, False: 4.25k]
  ------------------
 4261|  5.54k|          getTok().getIdentifier() == ".endmacro") {
  ------------------
  |  Branch (4261:11): [True: 1.28k, False: 4.25k]
  ------------------
 4262|  4.37k|        if (MacroDepth == 0) { // Outermost macro.
  ------------------
  |  Branch (4262:13): [True: 3.62k, False: 748]
  ------------------
 4263|  3.62k|          EndToken = getTok();
 4264|  3.62k|          Lex();
 4265|  3.62k|          if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4265:15): [True: 882, False: 2.74k]
  ------------------
 4266|       |            //return TokError("unexpected token in '" + EndToken.getIdentifier() +
 4267|       |            //                "' directive");
 4268|    882|            KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4269|    882|            return true;
 4270|    882|          }
 4271|  2.74k|          break;
 4272|  3.62k|        } else {
 4273|       |          // Otherwise we just found the end of an inner macro.
 4274|    748|          --MacroDepth;
 4275|    748|        }
 4276|  4.37k|      } else if (getTok().getIdentifier() == ".macro") {
  ------------------
  |  Branch (4276:18): [True: 758, False: 3.49k]
  ------------------
 4277|       |        // We allow nested macros. Those aren't instantiated until the outermost
 4278|       |        // macro is expanded so just ignore them for now.
 4279|    758|        ++MacroDepth;
 4280|    758|      }
 4281|  8.63k|    }
 4282|       |
 4283|       |    // Otherwise, scan til the end of the statement.
 4284|  9.11k|    eatToEndOfStatement();
 4285|  9.11k|  }
 4286|       |
 4287|  2.74k|  if (lookupMacro(Name)) {
  ------------------
  |  Branch (4287:7): [True: 2.01k, False: 735]
  ------------------
 4288|       |    //return Error(DirectiveLoc, "macro '" + Name + "' is already defined");
 4289|  2.01k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4290|  2.01k|    return true;
 4291|  2.01k|  }
 4292|       |
 4293|    735|  const char *BodyStart = StartToken.getLoc().getPointer();
 4294|    735|  const char *BodyEnd = EndToken.getLoc().getPointer();
 4295|    735|  StringRef Body = StringRef(BodyStart, BodyEnd - BodyStart);
 4296|    735|  checkForBadMacro(DirectiveLoc, Name, Body, Parameters);
 4297|    735|  defineMacro(Name, MCAsmMacro(Name, Body, std::move(Parameters)));
 4298|    735|  return false;
 4299|  2.74k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser16checkForBadMacroEN7llvm_ks5SMLocENS1_9StringRefES3_NS1_8ArrayRefINS_19MCAsmMacroParameterEEE:
 4317|    735|                                 ArrayRef<MCAsmMacroParameter> Parameters) {
 4318|       |  // If this macro is not defined with named parameters the warning we are
 4319|       |  // checking for here doesn't apply.
 4320|    735|  unsigned NParameters = Parameters.size();
 4321|    735|  if (NParameters == 0)
  ------------------
  |  Branch (4321:7): [True: 251, False: 484]
  ------------------
 4322|    251|    return;
 4323|       |
 4324|    484|  bool NamedParametersFound = false;
 4325|    484|  bool PositionalParametersFound = false;
 4326|       |
 4327|       |  // Look at the body of the macro for use of both the named parameters and what
 4328|       |  // are likely to be positional parameters.  This is what expandMacro() is
 4329|       |  // doing when it finds the parameters in the body.
 4330|  6.19k|  while (!Body.empty()) {
  ------------------
  |  Branch (4330:10): [True: 6.00k, False: 192]
  ------------------
 4331|       |    // Scan for the next possible parameter.
 4332|  6.00k|    std::size_t End = Body.size(), Pos = 0;
 4333|  30.9k|    for (; Pos != End; ++Pos) {
  ------------------
  |  Branch (4333:12): [True: 30.6k, False: 292]
  ------------------
 4334|       |      // Check for a substitution or escape.
 4335|       |      // This macro is defined with parameters, look for \foo, \bar, etc.
 4336|  30.6k|      if (Body[Pos] == '\\' && Pos + 1 != End)
  ------------------
  |  Branch (4336:11): [True: 4.00k, False: 26.6k]
  |  Branch (4336:32): [True: 4.00k, False: 0]
  ------------------
 4337|  4.00k|        break;
 4338|       |
 4339|       |      // This macro should have parameters, but look for $0, $1, ..., $n too.
 4340|  26.6k|      if (Body[Pos] != '$' || Pos + 1 == End)
  ------------------
  |  Branch (4340:11): [True: 23.8k, False: 2.79k]
  |  Branch (4340:31): [True: 0, False: 2.79k]
  ------------------
 4341|  23.8k|        continue;
 4342|  2.79k|      char Next = Body[Pos + 1];
 4343|  2.79k|      if (Next == '$' || Next == 'n' ||
  ------------------
  |  Branch (4343:11): [True: 1.15k, False: 1.64k]
  |  Branch (4343:26): [True: 368, False: 1.27k]
  ------------------
 4344|  1.27k|          isdigit(static_cast<unsigned char>(Next)))
  ------------------
  |  Branch (4344:11): [True: 181, False: 1.09k]
  ------------------
 4345|  1.70k|        break;
 4346|  2.79k|    }
 4347|       |
 4348|       |    // Check if we reached the end.
 4349|  6.00k|    if (Pos == End)
  ------------------
  |  Branch (4349:9): [True: 292, False: 5.70k]
  ------------------
 4350|    292|      break;
 4351|       |
 4352|  5.70k|    if (Body[Pos] == '$') {
  ------------------
  |  Branch (4352:9): [True: 1.70k, False: 4.00k]
  ------------------
 4353|  1.70k|      switch (Body[Pos + 1]) {
 4354|       |      // $$ => $
 4355|  1.15k|      case '$':
  ------------------
  |  Branch (4355:7): [True: 1.15k, False: 549]
  ------------------
 4356|  1.15k|        break;
 4357|       |
 4358|       |      // $n => number of arguments
 4359|    368|      case 'n':
  ------------------
  |  Branch (4359:7): [True: 368, False: 1.33k]
  ------------------
 4360|    368|        PositionalParametersFound = true;
 4361|    368|        break;
 4362|       |
 4363|       |      // $[0-9] => argument
 4364|    181|      default: {
  ------------------
  |  Branch (4364:7): [True: 181, False: 1.52k]
  ------------------
 4365|    181|        PositionalParametersFound = true;
 4366|    181|        break;
 4367|      0|      }
 4368|  1.70k|      }
 4369|  1.70k|      Pos += 2;
 4370|  4.00k|    } else {
 4371|  4.00k|      unsigned I = Pos + 1;
 4372|  7.75k|      while (isIdentifierChar(Body[I]) && I + 1 != End)
  ------------------
  |  Branch (4372:14): [True: 3.74k, False: 4.00k]
  |  Branch (4372:43): [True: 3.74k, False: 0]
  ------------------
 4373|  3.74k|        ++I;
 4374|       |
 4375|  4.00k|      const char *Begin = Body.data() + Pos + 1;
 4376|  4.00k|      StringRef Argument(Begin, I - (Pos + 1));
 4377|  4.00k|      unsigned Index = 0;
 4378|  9.27k|      for (; Index < NParameters; ++Index)
  ------------------
  |  Branch (4378:14): [True: 5.83k, False: 3.44k]
  ------------------
 4379|  5.83k|        if (Parameters[Index].Name == Argument)
  ------------------
  |  Branch (4379:13): [True: 567, False: 5.26k]
  ------------------
 4380|    567|          break;
 4381|       |
 4382|  4.00k|      if (Index == NParameters) {
  ------------------
  |  Branch (4382:11): [True: 3.44k, False: 567]
  ------------------
 4383|  3.44k|        if (Body[Pos + 1] == '(' && Body[Pos + 2] == ')')
  ------------------
  |  Branch (4383:13): [True: 408, False: 3.03k]
  |  Branch (4383:37): [True: 79, False: 329]
  ------------------
 4384|     79|          Pos += 3;
 4385|  3.36k|        else {
 4386|  3.36k|          Pos = I;
 4387|  3.36k|        }
 4388|  3.44k|      } else {
 4389|    567|        NamedParametersFound = true;
 4390|    567|        Pos += 1 + Argument.size();
 4391|    567|      }
 4392|  4.00k|    }
 4393|       |    // Update the scan point.
 4394|  5.70k|    Body = Body.substr(Pos);
 4395|  5.70k|  }
 4396|       |
 4397|    484|  if (!NamedParametersFound && PositionalParametersFound)
  ------------------
  |  Branch (4397:7): [True: 406, False: 78]
  |  Branch (4397:32): [True: 38, False: 368]
  ------------------
 4398|     38|    Warning(DirectiveLoc, "macro defined with named parameters which are not "
 4399|     38|                          "used in macro body, possible positional parameter "
 4400|     38|                          "found in body which will have no effect");
 4401|    484|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser11defineMacroEN7llvm_ks9StringRefENS_10MCAsmMacroE:
 2451|    735|void AsmParser::defineMacro(StringRef Name, MCAsmMacro Macro) {
 2452|    735|  MacroMap.insert(std::make_pair(Name, std::move(Macro)));
 2453|    735|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser26isInsideMacroInstantiationEv:
  297|  29.9k|  bool isInsideMacroInstantiation() {return !ActiveMacros.empty();}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser22parseDirectiveEndMacroEN7llvm_ks9StringRefE:
 4434|  30.2k|{
 4435|  30.2k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4435:7): [True: 262, False: 29.9k]
  ------------------
 4436|       |    //return TokError("unexpected token in '" + Directive + "' directive");
 4437|    262|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4438|    262|    return true;
 4439|    262|  }
 4440|       |
 4441|       |  // If we are inside a macro instantiation, terminate the current
 4442|       |  // instantiation.
 4443|  29.9k|  if (isInsideMacroInstantiation()) {
  ------------------
  |  Branch (4443:7): [True: 29.5k, False: 388]
  ------------------
 4444|  29.5k|    handleMacroExit();
 4445|  29.5k|    return false;
 4446|  29.5k|  }
 4447|       |
 4448|       |  // Otherwise, this .endmacro is a stray entry in the file; well formed
 4449|       |  // .endmacro directives are handled during the macro definition parsing.
 4450|       |  //return TokError("unexpected '" + Directive + "' in file, "
 4451|       |  //                                             "no current macro definition");
 4452|    388|  KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4453|    388|  return true;
 4454|  29.9k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser24parseDirectivePurgeMacroEN7llvm_ks5SMLocE:
 4459|      5|{
 4460|      5|  StringRef Name;
 4461|      5|  if (parseIdentifier(Name)) {
  ------------------
  |  Branch (4461:7): [True: 1, False: 4]
  ------------------
 4462|       |    //return TokError("expected identifier in '.purgem' directive");
 4463|      1|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4464|      1|    return true;
 4465|      1|  }
 4466|       |
 4467|      4|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (4467:7): [True: 3, False: 1]
  ------------------
 4468|       |    //return TokError("unexpected token in '.purgem' directive");
 4469|      3|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4470|      3|    return true;
 4471|      3|  }
 4472|       |
 4473|      1|  if (!lookupMacro(Name)) {
  ------------------
  |  Branch (4473:7): [True: 1, False: 0]
  ------------------
 4474|       |    //return Error(DirectiveLoc, "macro '" + Name + "' is not defined");
 4475|      1|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 4476|      1|    return true;
 4477|      1|  }
 4478|       |
 4479|      0|  undefineMacro(Name);
 4480|      0|  return false;
 4481|      1|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser17parseDirectiveEndEN7llvm_ks5SMLocE:
 5187|  1.72k|{
 5188|  1.72k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5188:7): [True: 1.70k, False: 14]
  ------------------
 5189|       |    //return TokError("unexpected token in '.end' directive");
 5190|  1.70k|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5191|  1.70k|    return true;
 5192|  1.70k|  }
 5193|       |
 5194|     14|  Lex();
 5195|       |
 5196|    233|  while (Lexer.isNot(AsmToken::Eof))
  ------------------
  |  Branch (5196:10): [True: 219, False: 14]
  ------------------
 5197|    219|    Lex();
 5198|       |
 5199|     14|  return false;
 5200|  1.72k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveErrorEN7llvm_ks5SMLocEb:
 5206|    451|{
 5207|    451|  if (!TheCondStack.empty()) {
  ------------------
  |  Branch (5207:7): [True: 156, False: 295]
  ------------------
 5208|    156|    if (TheCondStack.back().Ignore) {
  ------------------
  |  Branch (5208:9): [True: 23, False: 133]
  ------------------
 5209|     23|      eatToEndOfStatement();
 5210|     23|      return false;
 5211|     23|    }
 5212|    156|  }
 5213|       |
 5214|    428|  if (!WithMessage) {
  ------------------
  |  Branch (5214:7): [True: 256, False: 172]
  ------------------
 5215|       |    //return Error(L, ".err encountered");
 5216|    256|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5217|    256|    return true;
 5218|    256|  }
 5219|       |
 5220|    172|  StringRef Message = ".error directive invoked in source file";
 5221|    172|  if (Lexer.isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5221:7): [True: 164, False: 8]
  ------------------
 5222|    164|    if (Lexer.isNot(AsmToken::String)) {
  ------------------
  |  Branch (5222:9): [True: 75, False: 89]
  ------------------
 5223|       |      //TokError(".error argument must be a string");
 5224|     75|      eatToEndOfStatement();
 5225|     75|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5226|     75|      return true;
 5227|     75|    }
 5228|       |
 5229|     89|    bool valid;
 5230|     89|    Message = getTok().getStringContents(valid);
 5231|     89|    if (!valid) {
  ------------------
  |  Branch (5231:9): [True: 0, False: 89]
  ------------------
 5232|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5233|      0|        return true;
 5234|      0|    }
 5235|     89|    Lex();
 5236|     89|  }
 5237|       |
 5238|       |  //Error(L, Message);
 5239|     97|  KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5240|     97|  return true;
 5241|    172|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser21parseDirectiveWarningEN7llvm_ks5SMLocE:
 5246|    328|{
 5247|    328|  if (!TheCondStack.empty()) {
  ------------------
  |  Branch (5247:7): [True: 95, False: 233]
  ------------------
 5248|     95|    if (TheCondStack.back().Ignore) {
  ------------------
  |  Branch (5248:9): [True: 0, False: 95]
  ------------------
 5249|      0|      eatToEndOfStatement();
 5250|      0|      return false;
 5251|      0|    }
 5252|     95|  }
 5253|       |
 5254|    328|  StringRef Message = ".warning directive invoked in source file";
 5255|    328|  if (Lexer.isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (5255:7): [True: 116, False: 212]
  ------------------
 5256|    116|    if (Lexer.isNot(AsmToken::String)) {
  ------------------
  |  Branch (5256:9): [True: 92, False: 24]
  ------------------
 5257|       |      //TokError(".warning argument must be a string");
 5258|     92|      eatToEndOfStatement();
 5259|     92|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5260|     92|      return true;
 5261|     92|    }
 5262|       |
 5263|     24|    bool valid;
 5264|     24|    Message = getTok().getStringContents(valid);
 5265|     24|    if (!valid) {
  ------------------
  |  Branch (5265:9): [True: 0, False: 24]
  ------------------
 5266|      0|        KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 5267|      0|        return true;
 5268|      0|    }
 5269|     24|    Lex();
 5270|     24|  }
 5271|       |
 5272|    236|  Warning(L, Message);
 5273|    236|  return false;
 5274|    328|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parseDirectiveRelocEN7llvm_ks5SMLocE:
 2734|  2.66k|{
 2735|  2.66k|  const MCExpr *Offset;
 2736|  2.66k|  const MCExpr *Expr = nullptr;
 2737|       |
 2738|       |  //SMLoc OffsetLoc = Lexer.getTok().getLoc();
 2739|  2.66k|  if (parseExpression(Offset)) {
  ------------------
  |  Branch (2739:7): [True: 28, False: 2.63k]
  ------------------
 2740|     28|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2741|     28|    return true;
 2742|     28|  }
 2743|       |
 2744|       |  // We can only deal with constant expressions at the moment.
 2745|  2.63k|  int64_t OffsetValue;
 2746|  2.63k|  if (!Offset->evaluateAsAbsolute(OffsetValue)) {
  ------------------
  |  Branch (2746:7): [True: 251, False: 2.38k]
  ------------------
 2747|       |    //return Error(OffsetLoc, "expression is not a constant value");
 2748|    251|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2749|    251|    return true;
 2750|    251|  }
 2751|       |
 2752|  2.38k|  if (OffsetValue < 0) {
  ------------------
  |  Branch (2752:7): [True: 136, False: 2.24k]
  ------------------
 2753|       |    //return Error(OffsetLoc, "expression is negative");
 2754|    136|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2755|    136|    return true;
 2756|    136|  }
 2757|       |
 2758|  2.24k|  if (Lexer.isNot(AsmToken::Comma)) {
  ------------------
  |  Branch (2758:7): [True: 325, False: 1.92k]
  ------------------
 2759|       |    // return TokError("expected comma");
 2760|    325|    KsError = KS_ERR_ASM_DIRECTIVE_COMMA;
 2761|    325|    return true;
 2762|    325|  }
 2763|  1.92k|  Lexer.Lex();
 2764|       |
 2765|  1.92k|  if (Lexer.isNot(AsmToken::Identifier)) {
  ------------------
  |  Branch (2765:7): [True: 464, False: 1.46k]
  ------------------
 2766|       |    // return TokError("expected relocation name");
 2767|    464|    KsError = KS_ERR_ASM_DIRECTIVE_RELOC_NAME;
 2768|    464|    return true;
 2769|    464|  }
 2770|       |  //SMLoc NameLoc = Lexer.getTok().getLoc();
 2771|  1.46k|  StringRef Name = Lexer.getTok().getIdentifier();
 2772|  1.46k|  Lexer.Lex();
 2773|       |
 2774|  1.46k|  if (Lexer.is(AsmToken::Comma)) {
  ------------------
  |  Branch (2774:7): [True: 928, False: 532]
  ------------------
 2775|    928|    Lexer.Lex();
 2776|       |    //SMLoc ExprLoc = Lexer.getLoc();
 2777|    928|    if (parseExpression(Expr)) {
  ------------------
  |  Branch (2777:9): [True: 113, False: 815]
  ------------------
 2778|    113|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2779|    113|      return true;
 2780|    113|    }
 2781|       |
 2782|    815|    MCValue Value;
 2783|    815|    if (!Expr->evaluateAsRelocatable(Value, nullptr, nullptr)) {
  ------------------
  |  Branch (2783:9): [True: 606, False: 209]
  ------------------
 2784|       |      //return Error(ExprLoc, "expression must be relocatable");
 2785|    606|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2786|    606|      return true;
 2787|    606|    }
 2788|    815|  }
 2789|       |
 2790|    741|  if (Lexer.isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (2790:7): [True: 11, False: 730]
  ------------------
 2791|       |    // return TokError("unexpected token in .reloc directive");
 2792|     11|    KsError = KS_ERR_ASM_DIRECTIVE_RELOC_TOKEN;
 2793|     11|    return true;
 2794|     11|  }
 2795|       |
 2796|    730|  if (getStreamer().EmitRelocDirective(*Offset, Name, Expr, DirectiveLoc)) {
  ------------------
  |  Branch (2796:7): [True: 730, False: 0]
  ------------------
 2797|       |    //return Error(NameLoc, "unknown relocation name");
 2798|    730|    KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2799|    730|    return true;
 2800|    730|  }
 2801|       |
 2802|      0|  return false;
 2803|    730|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser4NoteEN7llvm_ks5SMLocERKNS1_5TwineENS1_8ArrayRefINS1_7SMRangeEEE:
  600|     25|void AsmParser::Note(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) {
  601|     25|  printMessage(L, SourceMgr::DK_Note, Msg, Ranges);
  602|     25|  printMacroInstantiations();
  603|     25|}
AsmParser.cpp:_ZNK12_GLOBAL__N_19AsmParser12printMessageEN7llvm_ks5SMLocENS1_9SourceMgr8DiagKindERKNS1_5TwineENS1_8ArrayRefINS1_7SMRangeEEE:
  316|  20.5k|                    ArrayRef<SMRange> Ranges = None) const {
  317|  20.5k|    SrcMgr.PrintMessage(Loc, Kind, Msg, Ranges);
  318|  20.5k|  }
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser24printMacroInstantiationsEv:
  590|  12.0k|void AsmParser::printMacroInstantiations() {
  591|       |  // Print the active macro instantiation stack.
  592|  12.0k|  for (std::vector<MacroInstantiation *>::const_reverse_iterator
  593|  12.0k|           it = ActiveMacros.rbegin(),
  594|  12.0k|           ie = ActiveMacros.rend();
  595|  20.5k|       it != ie; ++it)
  ------------------
  |  Branch (595:8): [True: 8.44k, False: 12.0k]
  ------------------
  596|  8.44k|    printMessage((*it)->InstantiationLoc, SourceMgr::DK_Note,
  597|  8.44k|                 "while in macro instantiation");
  598|  12.0k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser7WarningEN7llvm_ks5SMLocERKNS1_5TwineENS1_8ArrayRefINS1_7SMRangeEEE:
  605|  4.52k|bool AsmParser::Warning(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) {
  606|  4.52k|  if(getTargetParser().getTargetOptions().MCNoWarn)
  ------------------
  |  Branch (606:6): [True: 0, False: 4.52k]
  ------------------
  607|      0|    return false;
  608|  4.52k|  if (getTargetParser().getTargetOptions().MCFatalWarnings)
  ------------------
  |  Branch (608:7): [True: 0, False: 4.52k]
  ------------------
  609|      0|    return Error(L, Msg, Ranges);
  610|  4.52k|  printMessage(L, SourceMgr::DK_Warning, Msg, Ranges);
  611|  4.52k|  printMacroInstantiations();
  612|  4.52k|  return false;
  613|  4.52k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser5ErrorEN7llvm_ks5SMLocERKNS1_5TwineENS1_8ArrayRefINS1_7SMRangeEEE:
  615|  7.53k|bool AsmParser::Error(SMLoc L, const Twine &Msg, ArrayRef<SMRange> Ranges) {
  616|  7.53k|  HadError = true;
  617|  7.53k|  printMessage(L, SourceMgr::DK_Error, Msg, Ranges);
  618|  7.53k|  printMacroInstantiations();
  619|  7.53k|  return true;
  620|  7.53k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser3LexEv:
  655|  19.3M|const AsmToken &AsmParser::Lex() {
  656|  19.3M|  const AsmToken *tok = &Lexer.Lex();
  657|       |
  658|  19.3M|  if (tok->is(AsmToken::Eof)) {
  ------------------
  |  Branch (658:7): [True: 10.0k, False: 19.2M]
  ------------------
  659|       |    // If this is the end of an included file, pop the parent file off the
  660|       |    // include stack.
  661|  10.0k|    SMLoc ParentIncludeLoc = SrcMgr.getParentIncludeLoc(CurBuffer);
  662|  10.0k|    if (ParentIncludeLoc != SMLoc()) {
  ------------------
  |  Branch (662:9): [True: 0, False: 10.0k]
  ------------------
  663|      0|      jumpToLoc(ParentIncludeLoc);
  664|      0|      tok = &Lexer.Lex();   // qq
  665|      0|    }
  666|  10.0k|  }
  667|       |
  668|       |  //if (tok->is(AsmToken::Error))
  669|       |  //  Error(Lexer.getErrLoc(), Lexer.getErr());
  670|       |
  671|  19.3M|  return *tok;
  672|  19.3M|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser15parseIdentifierERN7llvm_ks9StringRefE:
 2549|  1.01M|{
 2550|       |  // The assembler has relaxed rules for accepting identifiers, in particular we
 2551|       |  // allow things like '.globl $foo' and '.def @feat.00', which would normally be
 2552|       |  // separate tokens. At this level, we have already lexed so we cannot (currently)
 2553|       |  // handle this as a context dependent token, instead we detect adjacent tokens
 2554|       |  // and return the combined identifier.
 2555|  1.01M|  if (Lexer.is(AsmToken::Dollar) || Lexer.is(AsmToken::At)) {
  ------------------
  |  Branch (2555:7): [True: 43.5k, False: 971k]
  |  Branch (2555:37): [True: 4.71k, False: 966k]
  ------------------
 2556|  48.2k|    SMLoc PrefixLoc = getLexer().getLoc();
 2557|       |
 2558|       |    // Consume the prefix character, and check for a following identifier.
 2559|  48.2k|    Lex();
 2560|  48.2k|    if (Lexer.isNot(AsmToken::Identifier)) {
  ------------------
  |  Branch (2560:9): [True: 39.6k, False: 8.63k]
  ------------------
 2561|  39.6k|      KsError = KS_ERR_ASM_MACRO_INVALID;
 2562|  39.6k|      return true;
 2563|  39.6k|    }
 2564|       |
 2565|       |    // We have a '$' or '@' followed by an identifier, make sure they are adjacent.
 2566|  8.63k|    if (PrefixLoc.getPointer() + 1 != getTok().getLoc().getPointer()) {
  ------------------
  |  Branch (2566:9): [True: 352, False: 8.28k]
  ------------------
 2567|    352|      KsError = KS_ERR_ASM_MACRO_INVALID;
 2568|    352|      return true;
 2569|    352|    }
 2570|       |
 2571|       |    // Construct the joined identifier and consume the token.
 2572|  8.28k|    Res =
 2573|  8.28k|        StringRef(PrefixLoc.getPointer(), getTok().getIdentifier().size() + 1);
 2574|  8.28k|    Lex();
 2575|  8.28k|    return false;
 2576|  8.63k|  }
 2577|       |
 2578|   966k|  if (Lexer.isNot(AsmToken::Identifier) && Lexer.isNot(AsmToken::String)) {
  ------------------
  |  Branch (2578:7): [True: 9.25k, False: 957k]
  |  Branch (2578:44): [True: 3.76k, False: 5.48k]
  ------------------
 2579|  3.76k|    KsError = KS_ERR_ASM_MACRO_INVALID;
 2580|  3.76k|    return true;
 2581|  3.76k|  }
 2582|       |
 2583|   962k|  Res = getTok().getIdentifier();
 2584|       |
 2585|   962k|  Lex(); // Consume the identifier token.
 2586|       |
 2587|   962k|  return false;
 2588|   966k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser27parseStringToEndOfStatementEv:
  792|  34.6k|StringRef AsmParser::parseStringToEndOfStatement() {
  793|  34.6k|  const char *Start = getTok().getLoc().getPointer();
  794|       |
  795|   451k|  while (Lexer.isNot(AsmToken::EndOfStatement) && Lexer.isNot(AsmToken::Eof))
  ------------------
  |  Branch (795:10): [True: 416k, False: 34.6k]
  |  Branch (795:51): [True: 416k, False: 3]
  ------------------
  796|   416k|    Lex();
  797|       |
  798|  34.6k|  const char *End = getTok().getLoc().getPointer();
  799|  34.6k|  return StringRef(Start, End - Start);
  800|  34.6k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18parseEscapedStringERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 2614|  2.00k|{
 2615|  2.00k|  if (!getLexer().is(AsmToken::String)) {
  ------------------
  |  Branch (2615:7): [True: 0, False: 2.00k]
  ------------------
 2616|      0|      KsError = KS_ERR_ASM_ESC_STR;
 2617|      0|      return true;
 2618|      0|  }
 2619|       |
 2620|  2.00k|  Data = "";
 2621|  2.00k|  bool valid;
 2622|  2.00k|  StringRef Str = getTok().getStringContents(valid);
 2623|  2.00k|  if (!valid) {
  ------------------
  |  Branch (2623:7): [True: 0, False: 2.00k]
  ------------------
 2624|      0|      KsError = KS_ERR_ASM_DIRECTIVE_INVALID;
 2625|      0|      return true;
 2626|      0|  }
 2627|       |
 2628|  67.8k|  for (unsigned i = 0, e = Str.size(); i != e; ++i) {
  ------------------
  |  Branch (2628:40): [True: 65.9k, False: 1.90k]
  ------------------
 2629|  65.9k|    if (Str[i] != '\\') {
  ------------------
  |  Branch (2629:9): [True: 58.3k, False: 7.60k]
  ------------------
 2630|  58.3k|      Data += Str[i];
 2631|  58.3k|      continue;
 2632|  58.3k|    }
 2633|       |
 2634|       |    // Recognize escaped characters. Note that this escape semantics currently
 2635|       |    // loosely follows Darwin 'as'. Notably, it doesn't support hex escapes.
 2636|  7.60k|    ++i;
 2637|  7.60k|    if (i == e) {
  ------------------
  |  Branch (2637:9): [True: 0, False: 7.60k]
  ------------------
 2638|       |      // return TokError("unexpected backslash at end of string");
 2639|      0|      KsError = KS_ERR_ASM_ESC_BACKSLASH;
 2640|      0|      return true;
 2641|      0|    }
 2642|       |
 2643|       |    // Recognize octal sequences.
 2644|  7.60k|    if ((unsigned)(Str[i] - '0') <= 7) {
  ------------------
  |  Branch (2644:9): [True: 3.49k, False: 4.11k]
  ------------------
 2645|       |      // Consume up to three octal characters.
 2646|  3.49k|      unsigned Value = Str[i] - '0';
 2647|       |
 2648|  3.49k|      if (i + 1 != e && ((unsigned)(Str[i + 1] - '0')) <= 7) {
  ------------------
  |  Branch (2648:11): [True: 3.24k, False: 247]
  |  Branch (2648:25): [True: 1.71k, False: 1.52k]
  ------------------
 2649|  1.71k|        ++i;
 2650|  1.71k|        Value = Value * 8 + (Str[i] - '0');
 2651|       |
 2652|  1.71k|        if (i + 1 != e && ((unsigned)(Str[i + 1] - '0')) <= 7) {
  ------------------
  |  Branch (2652:13): [True: 1.57k, False: 142]
  |  Branch (2652:27): [True: 675, False: 899]
  ------------------
 2653|    675|          ++i;
 2654|    675|          Value = Value * 8 + (Str[i] - '0');
 2655|    675|        }
 2656|  1.71k|      }
 2657|       |
 2658|  3.49k|      if (Value > 255) {
  ------------------
  |  Branch (2658:11): [True: 21, False: 3.47k]
  ------------------
 2659|       |        // return TokError("invalid octal escape sequence (out of range)");
 2660|     21|        KsError = KS_ERR_ASM_ESC_BACKSLASH;
 2661|     21|        return true;
 2662|     21|      }
 2663|       |
 2664|  3.47k|      Data += (unsigned char)Value;
 2665|  3.47k|      continue;
 2666|  3.49k|    }
 2667|       |
 2668|       |    // Otherwise recognize individual escapes.
 2669|  4.11k|    switch (Str[i]) {
 2670|     72|    default:
  ------------------
  |  Branch (2670:5): [True: 72, False: 4.04k]
  ------------------
 2671|       |      // Just reject invalid escape sequences for now.
 2672|       |      // return TokError("invalid escape sequence (unrecognized character)");
 2673|     72|      KsError = KS_ERR_ASM_ESC_SEQUENCE;
 2674|     72|      return true;
 2675|       |
 2676|    657|    case 'b': Data += '\b'; break;
  ------------------
  |  Branch (2676:5): [True: 657, False: 3.45k]
  ------------------
 2677|    645|    case 'f': Data += '\f'; break;
  ------------------
  |  Branch (2677:5): [True: 645, False: 3.46k]
  ------------------
 2678|    139|    case 'n': Data += '\n'; break;
  ------------------
  |  Branch (2678:5): [True: 139, False: 3.97k]
  ------------------
 2679|    352|    case 'r': Data += '\r'; break;
  ------------------
  |  Branch (2679:5): [True: 352, False: 3.76k]
  ------------------
 2680|    659|    case 't': Data += '\t'; break;
  ------------------
  |  Branch (2680:5): [True: 659, False: 3.45k]
  ------------------
 2681|    553|    case '"': Data += '"'; break;
  ------------------
  |  Branch (2681:5): [True: 553, False: 3.56k]
  ------------------
 2682|  1.03k|    case '\\': Data += '\\'; break;
  ------------------
  |  Branch (2682:5): [True: 1.03k, False: 3.07k]
  ------------------
 2683|  4.11k|    }
 2684|  4.11k|  }
 2685|       |
 2686|  1.90k|  return false;
 2687|  2.00k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19eatToEndOfStatementEv:
  783|   374k|{
  784|  6.26M|  while (Lexer.isNot(AsmToken::EndOfStatement) && Lexer.isNot(AsmToken::Eof))
  ------------------
  |  Branch (784:10): [True: 5.88M, False: 374k]
  |  Branch (784:51): [True: 5.88M, False: 41]
  ------------------
  785|  5.88M|    Lex();
  786|       |
  787|       |  // Eat EOL.
  788|   374k|  if (Lexer.is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (788:7): [True: 374k, False: 41]
  ------------------
  789|   374k|    Lex();
  790|   374k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser15parseExpressionERPKN7llvm_ks6MCExprERNS1_5SMLocE:
 1145|   456k|bool AsmParser::parseExpression(const MCExpr *&Res, SMLoc &EndLoc) {
 1146|       |  // Parse the expression.
 1147|   456k|  Res = nullptr;
 1148|   456k|  if (parsePrimaryExpr(Res, EndLoc) || parseBinOpRHS(1, Res, EndLoc))
  ------------------
  |  Branch (1148:7): [True: 205k, False: 250k]
  |  Branch (1148:40): [True: 7.94k, False: 242k]
  ------------------
 1149|   213k|    return true;
 1150|       |
 1151|       |  // As a special case, we support 'a op b @ modifier' by rewriting the
 1152|       |  // expression to include the modifier. This is inefficient, but in general we
 1153|       |  // expect users to use 'a@modifier op b'.
 1154|   242k|  if (Lexer.getKind() == AsmToken::At) {
  ------------------
  |  Branch (1154:7): [True: 5.35k, False: 237k]
  ------------------
 1155|  5.35k|    Lex();
 1156|       |
 1157|  5.35k|    if (Lexer.isNot(AsmToken::Identifier)) {
  ------------------
  |  Branch (1157:9): [True: 695, False: 4.66k]
  ------------------
 1158|       |      // return TokError("unexpected symbol modifier following '@'");
 1159|    695|      KsError = KS_ERR_ASM_SYMBOL_MODIFIER;
 1160|    695|      return true;
 1161|    695|    }
 1162|       |
 1163|  4.66k|    MCSymbolRefExpr::VariantKind Variant =
 1164|  4.66k|        MCSymbolRefExpr::getVariantKindForName(getTok().getIdentifier());
 1165|  4.66k|    if (Variant == MCSymbolRefExpr::VK_Invalid) {
  ------------------
  |  Branch (1165:9): [True: 3.12k, False: 1.53k]
  ------------------
 1166|       |      // return TokError("invalid variant '" + getTok().getIdentifier() + "'");
 1167|  3.12k|      KsError = KS_ERR_ASM_VARIANT_INVALID;
 1168|  3.12k|      return true;
 1169|  3.12k|    }
 1170|       |
 1171|  1.53k|    const MCExpr *ModifiedRes = applyModifierToExpr(Res, Variant);
 1172|  1.53k|    if (!ModifiedRes) {
  ------------------
  |  Branch (1172:9): [True: 138, False: 1.40k]
  ------------------
 1173|       |      // return TokError("invalid modifier '" + getTok().getIdentifier() +
 1174|       |      //                 "' (no symbols present)");
 1175|    138|      KsError = KS_ERR_ASM_VARIANT_INVALID;
 1176|    138|      return true;
 1177|    138|    }
 1178|       |
 1179|  1.40k|    Res = ModifiedRes;
 1180|  1.40k|    Lex();
 1181|  1.40k|  }
 1182|       |
 1183|       |  // Try to constant fold it up front, if possible.
 1184|   238k|  int64_t Value;
 1185|   238k|  if (Res->evaluateAsAbsolute(Value))
  ------------------
  |  Branch (1185:7): [True: 138k, False: 100k]
  ------------------
 1186|   138k|    Res = MCConstantExpr::create(Value, getContext());
 1187|       |
 1188|   238k|  return false;
 1189|   242k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser13parseBinOpRHSEjRPKN7llvm_ks6MCExprERNS1_5SMLocE:
 1400|   262k|                              SMLoc &EndLoc) {
 1401|   397k|  while (1) {
  ------------------
  |  Branch (1401:10): [True: 397k, Folded]
  ------------------
 1402|   397k|    MCBinaryExpr::Opcode Kind = MCBinaryExpr::Add;
 1403|   397k|    unsigned TokPrec = getBinOpPrecedence(Lexer.getKind(), Kind);
 1404|       |
 1405|       |    // If the next token is lower precedence than we are allowed to eat, return
 1406|       |    // successfully with what we ate already.
 1407|   397k|    if (TokPrec < Precedence)
  ------------------
  |  Branch (1407:9): [True: 252k, False: 144k]
  ------------------
 1408|   252k|      return false;
 1409|       |
 1410|   144k|    Lex();
 1411|       |
 1412|       |    // Eat the next primary expression.
 1413|   144k|    const MCExpr *RHS;
 1414|   144k|    if (parsePrimaryExpr(RHS, EndLoc))
  ------------------
  |  Branch (1414:9): [True: 7.94k, False: 136k]
  ------------------
 1415|  7.94k|      return true;
 1416|       |
 1417|       |    // If BinOp binds less tightly with RHS than the operator after RHS, let
 1418|       |    // the pending operator take RHS as its LHS.
 1419|   136k|    MCBinaryExpr::Opcode Dummy;
 1420|   136k|    unsigned NextTokPrec = getBinOpPrecedence(Lexer.getKind(), Dummy);
 1421|   136k|    if (TokPrec < NextTokPrec && parseBinOpRHS(TokPrec + 1, RHS, EndLoc))
  ------------------
  |  Branch (1421:9): [True: 11.8k, False: 124k]
  |  Branch (1421:34): [True: 1.48k, False: 10.3k]
  ------------------
 1422|  1.48k|      return true;
 1423|       |
 1424|       |    // Merge LHS and RHS according to operator.
 1425|   135k|    Res = MCBinaryExpr::create(Kind, Res, RHS, getContext());
 1426|   135k|  }
 1427|   262k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser18getBinOpPrecedenceEN7llvm_ks8AsmToken9TokenKindERNS1_12MCBinaryExpr6OpcodeE:
 1391|   534k|                                       MCBinaryExpr::Opcode &Kind) {
 1392|   534k|  bool ShouldUseLogicalShr = MAI.shouldUseLogicalShr();
 1393|   534k|  return IsDarwin ? getDarwinBinOpPrecedence(K, Kind, ShouldUseLogicalShr)
  ------------------
  |  Branch (1393:10): [True: 534k, False: 0]
  ------------------
 1394|   534k|                  : getGNUBinOpPrecedence(K, Kind, ShouldUseLogicalShr);
 1395|   534k|}
AsmParser.cpp:_ZL24getDarwinBinOpPrecedenceN7llvm_ks8AsmToken9TokenKindERNS_12MCBinaryExpr6OpcodeEb:
 1238|   534k|                                         bool ShouldUseLogicalShr) {
 1239|   534k|  switch (K) {
 1240|   304k|  default:
  ------------------
  |  Branch (1240:3): [True: 304k, False: 229k]
  ------------------
 1241|   304k|    return 0; // not a binop.
 1242|       |
 1243|       |  // Lowest Precedence: &&, ||
 1244|  1.23k|  case AsmToken::AmpAmp:
  ------------------
  |  Branch (1244:3): [True: 1.23k, False: 533k]
  ------------------
 1245|  1.23k|    Kind = MCBinaryExpr::LAnd;
 1246|  1.23k|    return 1;
 1247|  1.00k|  case AsmToken::PipePipe:
  ------------------
  |  Branch (1247:3): [True: 1.00k, False: 533k]
  ------------------
 1248|  1.00k|    Kind = MCBinaryExpr::LOr;
 1249|  1.00k|    return 1;
 1250|       |
 1251|       |  // Low Precedence: |, &, ^
 1252|       |  //
 1253|       |  // FIXME: gas seems to support '!' as an infix operator?
 1254|  2.53k|  case AsmToken::Pipe:
  ------------------
  |  Branch (1254:3): [True: 2.53k, False: 531k]
  ------------------
 1255|  2.53k|    Kind = MCBinaryExpr::Or;
 1256|  2.53k|    return 2;
 1257|  2.25k|  case AsmToken::Caret:
  ------------------
  |  Branch (1257:3): [True: 2.25k, False: 532k]
  ------------------
 1258|  2.25k|    Kind = MCBinaryExpr::Xor;
 1259|  2.25k|    return 2;
 1260|  8.83k|  case AsmToken::Amp:
  ------------------
  |  Branch (1260:3): [True: 8.83k, False: 525k]
  ------------------
 1261|  8.83k|    Kind = MCBinaryExpr::And;
 1262|  8.83k|    return 2;
 1263|       |
 1264|       |  // Low Intermediate Precedence: ==, !=, <>, <, <=, >, >=
 1265|  1.33k|  case AsmToken::EqualEqual:
  ------------------
  |  Branch (1265:3): [True: 1.33k, False: 533k]
  ------------------
 1266|  1.33k|    Kind = MCBinaryExpr::EQ;
 1267|  1.33k|    return 3;
 1268|    245|  case AsmToken::ExclaimEqual:
  ------------------
  |  Branch (1268:3): [True: 245, False: 534k]
  ------------------
 1269|    921|  case AsmToken::LessGreater:
  ------------------
  |  Branch (1269:3): [True: 676, False: 533k]
  ------------------
 1270|    921|    Kind = MCBinaryExpr::NE;
 1271|    921|    return 3;
 1272|  5.42k|  case AsmToken::Less:
  ------------------
  |  Branch (1272:3): [True: 5.42k, False: 528k]
  ------------------
 1273|  5.42k|    Kind = MCBinaryExpr::LT;
 1274|  5.42k|    return 3;
 1275|    688|  case AsmToken::LessEqual:
  ------------------
  |  Branch (1275:3): [True: 688, False: 533k]
  ------------------
 1276|    688|    Kind = MCBinaryExpr::LTE;
 1277|    688|    return 3;
 1278|  6.53k|  case AsmToken::Greater:
  ------------------
  |  Branch (1278:3): [True: 6.53k, False: 527k]
  ------------------
 1279|  6.53k|    Kind = MCBinaryExpr::GT;
 1280|  6.53k|    return 3;
 1281|  1.85k|  case AsmToken::GreaterEqual:
  ------------------
  |  Branch (1281:3): [True: 1.85k, False: 532k]
  ------------------
 1282|  1.85k|    Kind = MCBinaryExpr::GTE;
 1283|  1.85k|    return 3;
 1284|       |
 1285|       |  // Intermediate Precedence: <<, >>
 1286|    835|  case AsmToken::LessLess:
  ------------------
  |  Branch (1286:3): [True: 835, False: 533k]
  ------------------
 1287|    835|    Kind = MCBinaryExpr::Shl;
 1288|    835|    return 4;
 1289|    678|  case AsmToken::GreaterGreater:
  ------------------
  |  Branch (1289:3): [True: 678, False: 533k]
  ------------------
 1290|    678|    Kind = ShouldUseLogicalShr ? MCBinaryExpr::LShr : MCBinaryExpr::AShr;
  ------------------
  |  Branch (1290:12): [True: 678, False: 0]
  ------------------
 1291|    678|    return 4;
 1292|       |
 1293|       |  // High Intermediate Precedence: +, -
 1294|  31.7k|  case AsmToken::Plus:
  ------------------
  |  Branch (1294:3): [True: 31.7k, False: 502k]
  ------------------
 1295|  31.7k|    Kind = MCBinaryExpr::Add;
 1296|  31.7k|    return 5;
 1297|   125k|  case AsmToken::Minus:
  ------------------
  |  Branch (1297:3): [True: 125k, False: 409k]
  ------------------
 1298|   125k|    Kind = MCBinaryExpr::Sub;
 1299|   125k|    return 5;
 1300|       |
 1301|       |  // Highest Precedence: *, /, %
 1302|  26.6k|  case AsmToken::Star:
  ------------------
  |  Branch (1302:3): [True: 26.6k, False: 507k]
  ------------------
 1303|  26.6k|    Kind = MCBinaryExpr::Mul;
 1304|  26.6k|    return 6;
 1305|  6.97k|  case AsmToken::Slash:
  ------------------
  |  Branch (1305:3): [True: 6.97k, False: 527k]
  ------------------
 1306|  6.97k|    Kind = MCBinaryExpr::Div;
 1307|  6.97k|    return 6;
 1308|  5.43k|  case AsmToken::Percent:
  ------------------
  |  Branch (1308:3): [True: 5.43k, False: 528k]
  ------------------
 1309|  5.43k|    Kind = MCBinaryExpr::Mod;
 1310|  5.43k|    return 6;
 1311|   534k|  }
 1312|   534k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19applyModifierToExprEPKN7llvm_ks6MCExprENS1_15MCSymbolRefExpr11VariantKindE:
 1083|  20.1k|                               MCSymbolRefExpr::VariantKind Variant) {
 1084|       |  // Ask the target implementation about this expression first.
 1085|  20.1k|  const MCExpr *NewE = getTargetParser().applyModifierToExpr(E, Variant, Ctx);
 1086|  20.1k|  if (NewE)
  ------------------
  |  Branch (1086:7): [True: 0, False: 20.1k]
  ------------------
 1087|      0|    return NewE;
 1088|       |  // Recurse over the given expression, rebuilding it to apply the given variant
 1089|       |  // if there is exactly one symbol.
 1090|  20.1k|  switch (E->getKind()) {
  ------------------
  |  Branch (1090:11): [True: 20.1k, False: 0]
  ------------------
 1091|      0|  case MCExpr::Target:
  ------------------
  |  Branch (1091:3): [True: 0, False: 20.1k]
  ------------------
 1092|  2.99k|  case MCExpr::Constant:
  ------------------
  |  Branch (1092:3): [True: 2.99k, False: 17.1k]
  ------------------
 1093|  2.99k|    return nullptr;
 1094|       |
 1095|  7.00k|  case MCExpr::SymbolRef: {
  ------------------
  |  Branch (1095:3): [True: 7.00k, False: 13.1k]
  ------------------
 1096|  7.00k|    const MCSymbolRefExpr *SRE = cast<MCSymbolRefExpr>(E);
 1097|       |
 1098|  7.00k|    if (SRE->getKind() != MCSymbolRefExpr::VK_None) {
  ------------------
  |  Branch (1098:9): [True: 115, False: 6.89k]
  ------------------
 1099|       |      //TokError("invalid variant on expression '" + getTok().getIdentifier() +
 1100|       |      //         "' (already modified)");
 1101|    115|      return E;
 1102|    115|    }
 1103|       |
 1104|  6.89k|    return MCSymbolRefExpr::create(&SRE->getSymbol(), Variant, getContext());
 1105|  7.00k|  }
 1106|       |
 1107|  1.67k|  case MCExpr::Unary: {
  ------------------
  |  Branch (1107:3): [True: 1.67k, False: 18.4k]
  ------------------
 1108|  1.67k|    const MCUnaryExpr *UE = cast<MCUnaryExpr>(E);
 1109|  1.67k|    const MCExpr *Sub = applyModifierToExpr(UE->getSubExpr(), Variant);
 1110|  1.67k|    if (!Sub)
  ------------------
  |  Branch (1110:9): [True: 901, False: 777]
  ------------------
 1111|    901|      return nullptr;
 1112|    777|    return MCUnaryExpr::create(UE->getOpcode(), Sub, getContext());
 1113|  1.67k|  }
 1114|       |
 1115|  8.46k|  case MCExpr::Binary: {
  ------------------
  |  Branch (1115:3): [True: 8.46k, False: 11.6k]
  ------------------
 1116|  8.46k|    const MCBinaryExpr *BE = cast<MCBinaryExpr>(E);
 1117|  8.46k|    const MCExpr *LHS = applyModifierToExpr(BE->getLHS(), Variant);
 1118|  8.46k|    const MCExpr *RHS = applyModifierToExpr(BE->getRHS(), Variant);
 1119|       |
 1120|  8.46k|    if (!LHS && !RHS)
  ------------------
  |  Branch (1120:9): [True: 831, False: 7.63k]
  |  Branch (1120:17): [True: 225, False: 606]
  ------------------
 1121|    225|      return nullptr;
 1122|       |
 1123|  8.23k|    if (!LHS)
  ------------------
  |  Branch (1123:9): [True: 606, False: 7.63k]
  ------------------
 1124|    606|      LHS = BE->getLHS();
 1125|  8.23k|    if (!RHS)
  ------------------
  |  Branch (1125:9): [True: 2.02k, False: 6.21k]
  ------------------
 1126|  2.02k|      RHS = BE->getRHS();
 1127|       |
 1128|  8.23k|    return MCBinaryExpr::create(BE->getOpcode(), LHS, RHS, getContext());
 1129|  8.46k|  }
 1130|  20.1k|  }
 1131|       |
 1132|      0|  llvm_unreachable("Invalid expression kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 1133|  20.1k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser16parsePrimaryExprERPKN7llvm_ks6MCExprERNS1_5SMLocE:
 1072|   601k|{
 1073|   601k|  return parsePrimaryExprAux(Res, EndLoc, 0);
 1074|   601k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser19parsePrimaryExprAuxERPKN7llvm_ks6MCExprERNS1_5SMLocEj:
  848|   726k|{
  849|   726k|  if (depth > 0x100) {
  ------------------
  |  Branch (849:7): [True: 1, False: 726k]
  ------------------
  850|      1|    KsError = KS_ERR_ASM_EXPR_TOKEN;
  851|      1|    return true;
  852|      1|  }
  853|   726k|  SMLoc FirstTokenLoc = getLexer().getLoc();
  854|   726k|  AsmToken::TokenKind FirstTokenKind = Lexer.getKind();
  855|   726k|  switch (FirstTokenKind) {
  856|   113k|  default:
  ------------------
  |  Branch (856:3): [True: 113k, False: 613k]
  ------------------
  857|       |    //return TokError("unknown token in expression");
  858|   113k|    KsError = KS_ERR_ASM_EXPR_TOKEN;
  859|   113k|    return true;
  860|       |  // If we have an error assume that we've already handled it.
  861|  3.41k|  case AsmToken::Error:
  ------------------
  |  Branch (861:3): [True: 3.41k, False: 723k]
  ------------------
  862|  3.41k|    return true;
  863|  4.71k|  case AsmToken::Exclaim:
  ------------------
  |  Branch (863:3): [True: 4.71k, False: 722k]
  ------------------
  864|  4.71k|    Lex(); // Eat the operator.
  865|  4.71k|    if (parsePrimaryExprAux(Res, EndLoc, depth+1))
  ------------------
  |  Branch (865:9): [True: 741, False: 3.97k]
  ------------------
  866|    741|      return true;
  867|  3.97k|    Res = MCUnaryExpr::createLNot(Res, getContext());
  868|  3.97k|    return false;
  869|  34.1k|  case AsmToken::Dollar:
  ------------------
  |  Branch (869:3): [True: 34.1k, False: 692k]
  ------------------
  870|  36.2k|  case AsmToken::At:
  ------------------
  |  Branch (870:3): [True: 2.03k, False: 724k]
  ------------------
  871|  36.6k|  case AsmToken::String:
  ------------------
  |  Branch (871:3): [True: 455, False: 726k]
  ------------------
  872|   149k|  case AsmToken::Identifier: {
  ------------------
  |  Branch (872:3): [True: 113k, False: 613k]
  ------------------
  873|   149k|    StringRef Identifier;
  874|   149k|    if (parseIdentifier(Identifier)) {
  ------------------
  |  Branch (874:9): [True: 30.0k, False: 119k]
  ------------------
  875|  30.0k|      if (FirstTokenKind == AsmToken::Dollar) {
  ------------------
  |  Branch (875:11): [True: 28.8k, False: 1.19k]
  ------------------
  876|  28.8k|        if (Lexer.getMAI().getDollarIsPC()) {
  ------------------
  |  Branch (876:13): [True: 0, False: 28.8k]
  ------------------
  877|       |          // This is a '$' reference, which references the current PC.  Emit a
  878|       |          // temporary label to the streamer and refer to it.
  879|      0|          MCSymbol *Sym = Ctx.createTempSymbol();
  880|      0|          Out.EmitLabel(Sym);
  881|      0|          Res = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_None,
  882|      0|                                        getContext());
  883|      0|          EndLoc = FirstTokenLoc;
  884|      0|          return false;
  885|      0|        }
  886|       |        //return Error(FirstTokenLoc, "invalid token in expression");
  887|  28.8k|        KsError = KS_ERR_ASM_INVALIDOPERAND;
  888|  28.8k|        return true;
  889|  28.8k|      }
  890|  30.0k|    }
  891|       |    // Parse symbol variant
  892|   121k|    std::pair<StringRef, StringRef> Split;
  893|   121k|    if (!MAI.useParensForSymbolVariant()) {
  ------------------
  |  Branch (893:9): [True: 121k, False: 0]
  ------------------
  894|   121k|      if (FirstTokenKind == AsmToken::String) {
  ------------------
  |  Branch (894:11): [True: 455, False: 120k]
  ------------------
  895|    455|        if (Lexer.is(AsmToken::At)) {
  ------------------
  |  Branch (895:13): [True: 180, False: 275]
  ------------------
  896|    180|          Lexer.Lex(); // eat @
  897|       |          //SMLoc AtLoc = getLexer().getLoc();
  898|    180|          StringRef VName;
  899|    180|          if (parseIdentifier(VName)) {
  ------------------
  |  Branch (899:15): [True: 105, False: 75]
  ------------------
  900|       |            //return Error(AtLoc, "expected symbol variant after '@'");
  901|    105|            KsError = KS_ERR_ASM_INVALIDOPERAND;
  902|    105|            return true;
  903|    105|          }
  904|       |
  905|     75|          Split = std::make_pair(Identifier, VName);
  906|     75|        }
  907|   120k|      } else {
  908|   120k|        Split = Identifier.split('@');
  909|   120k|      }
  910|   121k|    } else if (Lexer.is(AsmToken::LParen)) {
  ------------------
  |  Branch (910:16): [True: 0, False: 0]
  ------------------
  911|      0|      Lexer.Lex(); // eat (
  912|      0|      StringRef VName;
  913|      0|      parseIdentifier(VName);
  914|      0|      if (Lexer.isNot(AsmToken::RParen)) {
  ------------------
  |  Branch (914:11): [True: 0, False: 0]
  ------------------
  915|       |          //return Error(Lexer.getTok().getLoc(),
  916|       |          //             "unexpected token in variant, expected ')'");
  917|      0|          KsError = KS_ERR_ASM_INVALIDOPERAND;
  918|      0|          return true;
  919|      0|      }
  920|      0|      Lexer.Lex(); // eat )
  921|      0|      Split = std::make_pair(Identifier, VName);
  922|      0|    }
  923|       |
  924|   120k|    EndLoc = SMLoc::getFromPointer(Identifier.end());
  925|       |
  926|       |    // This is a symbol reference.
  927|   120k|    StringRef SymbolName = Identifier;
  928|   120k|    MCSymbolRefExpr::VariantKind Variant = MCSymbolRefExpr::VK_None;
  929|       |
  930|       |    // Lookup the symbol variant if used.
  931|   120k|    if (Split.second.size()) {
  ------------------
  |  Branch (931:9): [True: 12.7k, False: 108k]
  ------------------
  932|  12.7k|      Variant = MCSymbolRefExpr::getVariantKindForName(Split.second);
  933|  12.7k|      if (Variant != MCSymbolRefExpr::VK_Invalid) {
  ------------------
  |  Branch (933:11): [True: 9.81k, False: 2.89k]
  ------------------
  934|  9.81k|        SymbolName = Split.first;
  935|  9.81k|      } else if (MAI.doesAllowAtInName() && !MAI.useParensForSymbolVariant()) {
  ------------------
  |  Branch (935:18): [True: 0, False: 2.89k]
  |  Branch (935:45): [True: 0, False: 0]
  ------------------
  936|      0|        Variant = MCSymbolRefExpr::VK_None;
  937|  2.89k|      } else {
  938|       |        //return Error(SMLoc::getFromPointer(Split.second.begin()),
  939|       |        //             "invalid variant '" + Split.second + "'");
  940|  2.89k|        KsError = KS_ERR_ASM_INVALIDOPERAND;
  941|  2.89k|        return true;
  942|  2.89k|      }
  943|  12.7k|    }
  944|       |
  945|   118k|    if (SymbolName.empty()) {
  ------------------
  |  Branch (945:9): [True: 1.56k, False: 116k]
  ------------------
  946|  1.56k|        return true;
  947|  1.56k|    }
  948|   116k|    MCSymbol *Sym = getContext().getOrCreateSymbol(SymbolName);
  949|       |
  950|       |    // If this is an absolute variable reference, substitute it now to preserve
  951|       |    // semantics in the face of reassignment.
  952|   116k|    if (Sym->isVariable() &&
  ------------------
  |  Branch (952:9): [True: 7.99k, False: 108k]
  |  Branch (952:9): [True: 2.57k, False: 113k]
  ------------------
  953|  7.99k|        isa<MCConstantExpr>(Sym->getVariableValue(/*SetUsed*/ false))) {
  ------------------
  |  Branch (953:9): [True: 2.57k, False: 5.42k]
  ------------------
  954|  2.57k|      if (Variant) {
  ------------------
  |  Branch (954:11): [True: 85, False: 2.48k]
  ------------------
  955|       |        //return Error(EndLoc, "unexpected modifier on variable reference");
  956|     85|        KsError = KS_ERR_ASM_INVALIDOPERAND;
  957|     85|        return true;
  958|     85|      }
  959|       |
  960|  2.48k|      Res = Sym->getVariableValue(/*SetUsed*/ false);
  961|  2.48k|      return false;
  962|  2.57k|    }
  963|       |
  964|       |    // Otherwise create a symbol ref.
  965|   113k|    Res = MCSymbolRefExpr::create(Sym, Variant, getContext());
  966|   113k|    return false;
  967|   116k|  }
  968|  1.09k|  case AsmToken::BigNum:
  ------------------
  |  Branch (968:3): [True: 1.09k, False: 725k]
  ------------------
  969|       |    // return TokError("literal value out of range for directive");
  970|  1.09k|    KsError = KS_ERR_ASM_DIRECTIVE_VALUE_RANGE;
  971|  1.09k|    return true;
  972|   190k|  case AsmToken::Integer: {
  ------------------
  |  Branch (972:3): [True: 190k, False: 536k]
  ------------------
  973|       |    //SMLoc Loc = getTok().getLoc();
  974|   190k|    bool valid;
  975|   190k|    int64_t IntVal = getTok().getIntVal(valid);
  976|   190k|    if (!valid) {
  ------------------
  |  Branch (976:9): [True: 0, False: 190k]
  ------------------
  977|      0|        return true;
  978|      0|    }
  979|   190k|    Res = MCConstantExpr::create(IntVal, getContext());
  980|   190k|    EndLoc = Lexer.getTok().getEndLoc();
  981|   190k|    Lex(); // Eat token.
  982|       |    // Look for 'b' or 'f' following an Integer as a directional label
  983|   190k|    if (Lexer.getKind() == AsmToken::Identifier) {
  ------------------
  |  Branch (983:9): [True: 7.49k, False: 182k]
  ------------------
  984|  7.49k|      StringRef IDVal = getTok().getString();
  985|       |      // Lookup the symbol variant if used.
  986|  7.49k|      std::pair<StringRef, StringRef> Split = IDVal.split('@');
  987|  7.49k|      MCSymbolRefExpr::VariantKind Variant = MCSymbolRefExpr::VK_None;
  988|  7.49k|      if (Split.first.size() != IDVal.size()) {
  ------------------
  |  Branch (988:11): [True: 1.45k, False: 6.04k]
  ------------------
  989|  1.45k|        Variant = MCSymbolRefExpr::getVariantKindForName(Split.second);
  990|  1.45k|        if (Variant == MCSymbolRefExpr::VK_Invalid) {
  ------------------
  |  Branch (990:13): [True: 1.40k, False: 46]
  ------------------
  991|       |          // return TokError("invalid variant '" + Split.second + "'");
  992|  1.40k|          KsError = KS_ERR_ASM_VARIANT_INVALID;
  993|  1.40k|          return true;
  994|  1.40k|        }
  995|     46|        IDVal = Split.first;
  996|     46|      }
  997|  6.09k|      if (IDVal == "f" || IDVal == "b") {
  ------------------
  |  Branch (997:11): [True: 350, False: 5.74k]
  |  Branch (997:11): [True: 869, False: 5.22k]
  |  Branch (997:27): [True: 519, False: 5.22k]
  ------------------
  998|    869|        bool valid;
  999|    869|        MCSymbol *Sym =
 1000|    869|            Ctx.getDirectionalLocalSymbol(IntVal, IDVal == "b", valid);
 1001|    869|        if (!valid)
  ------------------
  |  Branch (1001:13): [True: 869, False: 0]
  ------------------
 1002|    869|            return true;
 1003|      0|        Res = MCSymbolRefExpr::create(Sym, Variant, getContext());
 1004|      0|        if (IDVal == "b" && Sym->isUndefined()) {
  ------------------
  |  Branch (1004:13): [True: 0, False: 0]
  |  Branch (1004:13): [True: 0, False: 0]
  |  Branch (1004:29): [True: 0, False: 0]
  ------------------
 1005|       |          //return Error(Loc, "invalid reference to undefined symbol");
 1006|      0|          KsError = KS_ERR_ASM_INVALIDOPERAND;
 1007|      0|          return true;
 1008|      0|        }
 1009|      0|        EndLoc = Lexer.getTok().getEndLoc();
 1010|      0|        Lex(); // Eat identifier.
 1011|      0|      }
 1012|  6.09k|    }
 1013|   187k|    return false;
 1014|   190k|  }
 1015|  27.7k|  case AsmToken::Real: {
  ------------------
  |  Branch (1015:3): [True: 27.7k, False: 699k]
  ------------------
 1016|  27.7k|    APFloat RealVal(APFloat::IEEEdouble, getTok().getString());
 1017|  27.7k|    uint64_t IntVal = RealVal.bitcastToAPInt().getZExtValue();
 1018|  27.7k|    Res = MCConstantExpr::create(IntVal, getContext());
 1019|  27.7k|    EndLoc = Lexer.getTok().getEndLoc();
 1020|  27.7k|    Lex(); // Eat token.
 1021|  27.7k|    return false;
 1022|   190k|  }
 1023|  55.0k|  case AsmToken::Dot: {
  ------------------
  |  Branch (1023:3): [True: 55.0k, False: 671k]
  ------------------
 1024|       |    // This is a '.' reference, which references the current PC.  Emit a
 1025|       |    // temporary label to the streamer and refer to it.
 1026|  55.0k|    MCSymbol *Sym = Ctx.createTempSymbol();
 1027|  55.0k|    Out.EmitLabel(Sym);
 1028|  55.0k|    Res = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_None, getContext());
 1029|  55.0k|    EndLoc = Lexer.getTok().getEndLoc();
 1030|  55.0k|    Lex(); // Eat identifier.
 1031|  55.0k|    return false;
 1032|   190k|  }
 1033|  60.0k|  case AsmToken::LParen:
  ------------------
  |  Branch (1033:3): [True: 60.0k, False: 666k]
  ------------------
 1034|  60.0k|    Lex(); // Eat the '('.
 1035|  60.0k|    return parseParenExpr(Res, EndLoc);
 1036|    220|  case AsmToken::LBrac:
  ------------------
  |  Branch (1036:3): [True: 220, False: 726k]
  ------------------
 1037|    220|    if (!PlatformParser->HasBracketExpressions()) {
  ------------------
  |  Branch (1037:9): [True: 220, False: 0]
  ------------------
 1038|       |      // return TokError("brackets expression not supported on this target");
 1039|    220|      KsError = KS_ERR_ASM_EXPR_BRACKET;
 1040|    220|      return true;
 1041|    220|    }
 1042|      0|    Lex(); // Eat the '['.
 1043|      0|    return parseBracketExpr(Res, EndLoc);
 1044|  61.2k|  case AsmToken::Minus:
  ------------------
  |  Branch (1044:3): [True: 61.2k, False: 665k]
  ------------------
 1045|  61.2k|    Lex(); // Eat the operator.
 1046|  61.2k|    if (parsePrimaryExprAux(Res, EndLoc, depth+1))
  ------------------
  |  Branch (1046:9): [True: 4.51k, False: 56.7k]
  ------------------
 1047|  4.51k|      return true;
 1048|  56.7k|    Res = MCUnaryExpr::createMinus(Res, getContext());
 1049|  56.7k|    return false;
 1050|  17.8k|  case AsmToken::Plus:
  ------------------
  |  Branch (1050:3): [True: 17.8k, False: 709k]
  ------------------
 1051|  17.8k|    Lex(); // Eat the operator.
 1052|  17.8k|    if (parsePrimaryExprAux(Res, EndLoc, depth+1))
  ------------------
  |  Branch (1052:9): [True: 2.95k, False: 14.8k]
  ------------------
 1053|  2.95k|      return true;
 1054|  14.8k|    Res = MCUnaryExpr::createPlus(Res, getContext());
 1055|  14.8k|    return false;
 1056|  42.0k|  case AsmToken::Tilde:
  ------------------
  |  Branch (1056:3): [True: 42.0k, False: 684k]
  ------------------
 1057|  42.0k|    Lex(); // Eat the operator.
 1058|  42.0k|    if (parsePrimaryExprAux(Res, EndLoc, depth+1))
  ------------------
  |  Branch (1058:9): [True: 1.52k, False: 40.5k]
  ------------------
 1059|  1.52k|      return true;
 1060|  40.5k|    Res = MCUnaryExpr::createNot(Res, getContext());
 1061|  40.5k|    return false;
 1062|   726k|  }
 1063|   726k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser14parseParenExprERPKN7llvm_ks6MCExprERNS1_5SMLocE:
  818|  60.1k|bool AsmParser::parseParenExpr(const MCExpr *&Res, SMLoc &EndLoc) {
  819|  60.1k|  if (parseExpression(Res))
  ------------------
  |  Branch (819:7): [True: 59.1k, False: 1.01k]
  ------------------
  820|  59.1k|    return true;
  821|  1.01k|  if (Lexer.isNot(AsmToken::RParen))
  ------------------
  |  Branch (821:7): [True: 761, False: 258]
  ------------------
  822|       |    //return TokError("expected ')' in parentheses expression");
  823|    761|    return true;
  824|    258|  EndLoc = Lexer.getTok().getEndLoc();
  825|    258|  Lex();
  826|    258|  return false;
  827|  1.01k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser20parseParenExpressionERPKN7llvm_ks6MCExprERNS1_5SMLocE:
 1191|     83|bool AsmParser::parseParenExpression(const MCExpr *&Res, SMLoc &EndLoc) {
 1192|     83|  Res = nullptr;
 1193|     83|  return parseParenExpr(Res, EndLoc) || parseBinOpRHS(1, Res, EndLoc);
  ------------------
  |  Branch (1193:10): [True: 82, False: 1]
  |  Branch (1193:41): [True: 0, False: 1]
  ------------------
 1194|     83|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser23parseAbsoluteExpressionERl:
 1220|  61.6k|bool AsmParser::parseAbsoluteExpression(int64_t &Res) {
 1221|  61.6k|  const MCExpr *Expr;
 1222|       |
 1223|       |  //SMLoc StartLoc = Lexer.getLoc();
 1224|  61.6k|  if (parseExpression(Expr))
  ------------------
  |  Branch (1224:7): [True: 2.42k, False: 59.1k]
  ------------------
 1225|  2.42k|    return true;
 1226|       |
 1227|  59.1k|  if (!Expr->evaluateAsAbsolute(Res)) {
  ------------------
  |  Branch (1227:7): [True: 4.62k, False: 54.5k]
  ------------------
 1228|       |    //return Error(StartLoc, "expected absolute expression");
 1229|  4.62k|    KsError = KS_ERR_ASM_INVALIDOPERAND;
 1230|  4.62k|    return true;
 1231|  4.62k|  }
 1232|       |
 1233|  54.5k|  return false;
 1234|  59.1k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser20checkForValidSectionEv:
  772|  60.9k|{
  773|       |#if 0
  774|       |  if (!ParsingInlineAsm && !getStreamer().getCurrentSection().first) {
  775|       |    TokError("expected section directive before assembly directive");
  776|       |    Out.InitSections(false);
  777|       |  }
  778|       |#endif
  779|  60.9k|}
AsmParser.cpp:_ZN12_GLOBAL__N_19AsmParser26initializeDirectiveKindMapEi:
 5356|  13.6k|{
 5357|  13.6k|    KsSyntax = syntax;
 5358|  13.6k|    if (syntax == KS_OPT_SYNTAX_NASM) {
  ------------------
  |  Branch (5358:9): [True: 0, False: 13.6k]
  ------------------
 5359|       |        // NASM syntax
 5360|      0|        DirectiveKindMap.clear();
 5361|      0|        DirectiveKindMap["db"] = DK_BYTE;
 5362|      0|        DirectiveKindMap["dw"] = DK_SHORT;
 5363|      0|        DirectiveKindMap["dd"] = DK_INT;
 5364|      0|        DirectiveKindMap["dq"] = DK_QUAD;
 5365|      0|        DirectiveKindMap["use16"] = DK_CODE16;
 5366|      0|        DirectiveKindMap["use32"] = DK_NASM_USE32;
 5367|      0|        DirectiveKindMap["global"] = DK_GLOBAL;
 5368|      0|        DirectiveKindMap["bits"] = DK_NASM_BITS;
 5369|      0|        DirectiveKindMap["default"] = DK_NASM_DEFAULT;
 5370|  13.6k|    } else {
 5371|       |        // default LLVM syntax
 5372|  13.6k|        DirectiveKindMap.clear();
 5373|  13.6k|        DirectiveKindMap[".set"] = DK_SET;
 5374|  13.6k|        DirectiveKindMap[".equ"] = DK_EQU;
 5375|  13.6k|        DirectiveKindMap[".equiv"] = DK_EQUIV;
 5376|  13.6k|        DirectiveKindMap[".ascii"] = DK_ASCII;
 5377|  13.6k|        DirectiveKindMap[".asciz"] = DK_ASCIZ;
 5378|  13.6k|        DirectiveKindMap[".string"] = DK_STRING;
 5379|  13.6k|        DirectiveKindMap[".byte"] = DK_BYTE;
 5380|  13.6k|        DirectiveKindMap[".short"] = DK_SHORT;
 5381|  13.6k|        DirectiveKindMap[".value"] = DK_VALUE;
 5382|  13.6k|        DirectiveKindMap[".2byte"] = DK_2BYTE;
 5383|  13.6k|        DirectiveKindMap[".long"] = DK_LONG;
 5384|  13.6k|        DirectiveKindMap[".int"] = DK_INT;
 5385|  13.6k|        DirectiveKindMap[".4byte"] = DK_4BYTE;
 5386|  13.6k|        DirectiveKindMap[".quad"] = DK_QUAD;
 5387|  13.6k|        DirectiveKindMap[".8byte"] = DK_8BYTE;
 5388|  13.6k|        DirectiveKindMap[".octa"] = DK_OCTA;
 5389|  13.6k|        DirectiveKindMap[".single"] = DK_SINGLE;
 5390|  13.6k|        DirectiveKindMap[".float"] = DK_FLOAT;
 5391|  13.6k|        DirectiveKindMap[".double"] = DK_DOUBLE;
 5392|  13.6k|        DirectiveKindMap[".align"] = DK_ALIGN;
 5393|  13.6k|        DirectiveKindMap[".align32"] = DK_ALIGN32;
 5394|  13.6k|        DirectiveKindMap[".balign"] = DK_BALIGN;
 5395|  13.6k|        DirectiveKindMap[".balignw"] = DK_BALIGNW;
 5396|  13.6k|        DirectiveKindMap[".balignl"] = DK_BALIGNL;
 5397|  13.6k|        DirectiveKindMap[".p2align"] = DK_P2ALIGN;
 5398|  13.6k|        DirectiveKindMap[".p2alignw"] = DK_P2ALIGNW;
 5399|  13.6k|        DirectiveKindMap[".p2alignl"] = DK_P2ALIGNL;
 5400|  13.6k|        DirectiveKindMap[".org"] = DK_ORG;
 5401|  13.6k|        DirectiveKindMap[".fill"] = DK_FILL;
 5402|  13.6k|        DirectiveKindMap[".zero"] = DK_ZERO;
 5403|  13.6k|        DirectiveKindMap[".extern"] = DK_EXTERN;
 5404|  13.6k|        DirectiveKindMap[".globl"] = DK_GLOBL;
 5405|  13.6k|        DirectiveKindMap[".global"] = DK_GLOBAL;
 5406|  13.6k|        DirectiveKindMap[".lazy_reference"] = DK_LAZY_REFERENCE;
 5407|  13.6k|        DirectiveKindMap[".no_dead_strip"] = DK_NO_DEAD_STRIP;
 5408|  13.6k|        DirectiveKindMap[".symbol_resolver"] = DK_SYMBOL_RESOLVER;
 5409|  13.6k|        DirectiveKindMap[".private_extern"] = DK_PRIVATE_EXTERN;
 5410|  13.6k|        DirectiveKindMap[".reference"] = DK_REFERENCE;
 5411|  13.6k|        DirectiveKindMap[".weak_definition"] = DK_WEAK_DEFINITION;
 5412|  13.6k|        DirectiveKindMap[".weak_reference"] = DK_WEAK_REFERENCE;
 5413|  13.6k|        DirectiveKindMap[".weak_def_can_be_hidden"] = DK_WEAK_DEF_CAN_BE_HIDDEN;
 5414|  13.6k|        DirectiveKindMap[".comm"] = DK_COMM;
 5415|  13.6k|        DirectiveKindMap[".common"] = DK_COMMON;
 5416|  13.6k|        DirectiveKindMap[".lcomm"] = DK_LCOMM;
 5417|  13.6k|        DirectiveKindMap[".abort"] = DK_ABORT;
 5418|  13.6k|        DirectiveKindMap[".include"] = DK_INCLUDE;
 5419|  13.6k|        DirectiveKindMap[".incbin"] = DK_INCBIN;
 5420|  13.6k|        DirectiveKindMap[".code16"] = DK_CODE16;
 5421|  13.6k|        DirectiveKindMap[".code16gcc"] = DK_CODE16GCC;
 5422|  13.6k|        DirectiveKindMap[".rept"] = DK_REPT;
 5423|  13.6k|        DirectiveKindMap[".rep"] = DK_REPT;
 5424|  13.6k|        DirectiveKindMap[".irp"] = DK_IRP;
 5425|  13.6k|        DirectiveKindMap[".irpc"] = DK_IRPC;
 5426|  13.6k|        DirectiveKindMap[".endr"] = DK_ENDR;
 5427|  13.6k|        DirectiveKindMap[".bundle_align_mode"] = DK_BUNDLE_ALIGN_MODE;
 5428|  13.6k|        DirectiveKindMap[".bundle_lock"] = DK_BUNDLE_LOCK;
 5429|  13.6k|        DirectiveKindMap[".bundle_unlock"] = DK_BUNDLE_UNLOCK;
 5430|  13.6k|        DirectiveKindMap[".if"] = DK_IF;
 5431|  13.6k|        DirectiveKindMap[".ifeq"] = DK_IFEQ;
 5432|  13.6k|        DirectiveKindMap[".ifge"] = DK_IFGE;
 5433|  13.6k|        DirectiveKindMap[".ifgt"] = DK_IFGT;
 5434|  13.6k|        DirectiveKindMap[".ifle"] = DK_IFLE;
 5435|  13.6k|        DirectiveKindMap[".iflt"] = DK_IFLT;
 5436|  13.6k|        DirectiveKindMap[".ifne"] = DK_IFNE;
 5437|  13.6k|        DirectiveKindMap[".ifb"] = DK_IFB;
 5438|  13.6k|        DirectiveKindMap[".ifnb"] = DK_IFNB;
 5439|  13.6k|        DirectiveKindMap[".ifc"] = DK_IFC;
 5440|  13.6k|        DirectiveKindMap[".ifeqs"] = DK_IFEQS;
 5441|  13.6k|        DirectiveKindMap[".ifnc"] = DK_IFNC;
 5442|  13.6k|        DirectiveKindMap[".ifnes"] = DK_IFNES;
 5443|  13.6k|        DirectiveKindMap[".ifdef"] = DK_IFDEF;
 5444|  13.6k|        DirectiveKindMap[".ifndef"] = DK_IFNDEF;
 5445|  13.6k|        DirectiveKindMap[".ifnotdef"] = DK_IFNOTDEF;
 5446|  13.6k|        DirectiveKindMap[".elseif"] = DK_ELSEIF;
 5447|  13.6k|        DirectiveKindMap[".else"] = DK_ELSE;
 5448|  13.6k|        DirectiveKindMap[".end"] = DK_END;
 5449|  13.6k|        DirectiveKindMap[".endif"] = DK_ENDIF;
 5450|  13.6k|        DirectiveKindMap[".skip"] = DK_SKIP;
 5451|  13.6k|        DirectiveKindMap[".space"] = DK_SPACE;
 5452|  13.6k|        DirectiveKindMap[".file"] = DK_FILE;
 5453|  13.6k|        DirectiveKindMap[".line"] = DK_LINE;
 5454|  13.6k|        DirectiveKindMap[".loc"] = DK_LOC;
 5455|  13.6k|        DirectiveKindMap[".stabs"] = DK_STABS;
 5456|  13.6k|        DirectiveKindMap[".cv_file"] = DK_CV_FILE;
 5457|  13.6k|        DirectiveKindMap[".cv_loc"] = DK_CV_LOC;
 5458|  13.6k|        DirectiveKindMap[".cv_linetable"] = DK_CV_LINETABLE;
 5459|  13.6k|        DirectiveKindMap[".cv_inline_linetable"] = DK_CV_INLINE_LINETABLE;
 5460|  13.6k|        DirectiveKindMap[".cv_stringtable"] = DK_CV_STRINGTABLE;
 5461|  13.6k|        DirectiveKindMap[".cv_filechecksums"] = DK_CV_FILECHECKSUMS;
 5462|  13.6k|        DirectiveKindMap[".sleb128"] = DK_SLEB128;
 5463|  13.6k|        DirectiveKindMap[".uleb128"] = DK_ULEB128;
 5464|  13.6k|        DirectiveKindMap[".cfi_sections"] = DK_CFI_SECTIONS;
 5465|  13.6k|        DirectiveKindMap[".cfi_startproc"] = DK_CFI_STARTPROC;
 5466|  13.6k|        DirectiveKindMap[".cfi_endproc"] = DK_CFI_ENDPROC;
 5467|  13.6k|        DirectiveKindMap[".cfi_def_cfa"] = DK_CFI_DEF_CFA;
 5468|  13.6k|        DirectiveKindMap[".cfi_def_cfa_offset"] = DK_CFI_DEF_CFA_OFFSET;
 5469|  13.6k|        DirectiveKindMap[".cfi_adjust_cfa_offset"] = DK_CFI_ADJUST_CFA_OFFSET;
 5470|  13.6k|        DirectiveKindMap[".cfi_def_cfa_register"] = DK_CFI_DEF_CFA_REGISTER;
 5471|  13.6k|        DirectiveKindMap[".cfi_offset"] = DK_CFI_OFFSET;
 5472|  13.6k|        DirectiveKindMap[".cfi_rel_offset"] = DK_CFI_REL_OFFSET;
 5473|  13.6k|        DirectiveKindMap[".cfi_personality"] = DK_CFI_PERSONALITY;
 5474|  13.6k|        DirectiveKindMap[".cfi_lsda"] = DK_CFI_LSDA;
 5475|  13.6k|        DirectiveKindMap[".cfi_remember_state"] = DK_CFI_REMEMBER_STATE;
 5476|  13.6k|        DirectiveKindMap[".cfi_restore_state"] = DK_CFI_RESTORE_STATE;
 5477|  13.6k|        DirectiveKindMap[".cfi_same_value"] = DK_CFI_SAME_VALUE;
 5478|  13.6k|        DirectiveKindMap[".cfi_restore"] = DK_CFI_RESTORE;
 5479|  13.6k|        DirectiveKindMap[".cfi_escape"] = DK_CFI_ESCAPE;
 5480|  13.6k|        DirectiveKindMap[".cfi_signal_frame"] = DK_CFI_SIGNAL_FRAME;
 5481|  13.6k|        DirectiveKindMap[".cfi_undefined"] = DK_CFI_UNDEFINED;
 5482|  13.6k|        DirectiveKindMap[".cfi_register"] = DK_CFI_REGISTER;
 5483|  13.6k|        DirectiveKindMap[".cfi_window_save"] = DK_CFI_WINDOW_SAVE;
 5484|  13.6k|        DirectiveKindMap[".macros_on"] = DK_MACROS_ON;
 5485|  13.6k|        DirectiveKindMap[".macros_off"] = DK_MACROS_OFF;
 5486|  13.6k|        DirectiveKindMap[".macro"] = DK_MACRO;
 5487|  13.6k|        DirectiveKindMap[".exitm"] = DK_EXITM;
 5488|  13.6k|        DirectiveKindMap[".endm"] = DK_ENDM;
 5489|  13.6k|        DirectiveKindMap[".endmacro"] = DK_ENDMACRO;
 5490|  13.6k|        DirectiveKindMap[".purgem"] = DK_PURGEM;
 5491|  13.6k|        DirectiveKindMap[".err"] = DK_ERR;
 5492|  13.6k|        DirectiveKindMap[".error"] = DK_ERROR;
 5493|  13.6k|        DirectiveKindMap[".warning"] = DK_WARNING;
 5494|  13.6k|        DirectiveKindMap[".reloc"] = DK_RELOC;
 5495|  13.6k|    }
 5496|  13.6k|}

_ZN7llvm_ks21createDarwinAsmParserEv:
  964|  13.6k|MCAsmParserExtension *createDarwinAsmParser() {
  965|  13.6k|  return new DarwinAsmParser;
  966|  13.6k|}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParserC2Ev:
   47|  13.6k|  DarwinAsmParser() {}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser10InitializeERN7llvm_ks11MCAsmParserE:
   49|  13.6k|  void Initialize(MCAsmParser &Parser) override {
   50|       |    // Call the base implementation.
   51|  13.6k|    this->MCAsmParserExtension::Initialize(Parser);
   52|       |
   53|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveDesc>(".desc");
   54|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveIndirectSymbol>(
   55|  13.6k|      ".indirect_symbol");
   56|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveLsym>(".lsym");
   57|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveSubsectionsViaSymbols>(
   58|  13.6k|      ".subsections_via_symbols");
   59|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveDumpOrLoad>(".dump");
   60|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveDumpOrLoad>(".load");
   61|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveSection>(".section");
   62|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectivePushSection>(
   63|  13.6k|      ".pushsection");
   64|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectivePopSection>(
   65|  13.6k|      ".popsection");
   66|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectivePrevious>(".previous");
   67|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveSecureLogUnique>(
   68|  13.6k|      ".secure_log_unique");
   69|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveSecureLogReset>(
   70|  13.6k|      ".secure_log_reset");
   71|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveTBSS>(".tbss");
   72|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveZerofill>(".zerofill");
   73|       |
   74|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveDataRegion>(
   75|  13.6k|      ".data_region");
   76|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveDataRegionEnd>(
   77|  13.6k|      ".end_data_region");
   78|       |
   79|       |    // Special section directives.
   80|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveBss>(".bss");
   81|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveConst>(".const");
   82|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveConstData>(
   83|  13.6k|      ".const_data");
   84|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveConstructor>(
   85|  13.6k|      ".constructor");
   86|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveCString>(
   87|  13.6k|      ".cstring");
   88|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveData>(".data");
   89|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveDestructor>(
   90|  13.6k|      ".destructor");
   91|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveDyld>(".dyld");
   92|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveFVMLibInit0>(
   93|  13.6k|      ".fvmlib_init0");
   94|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveFVMLibInit1>(
   95|  13.6k|      ".fvmlib_init1");
   96|  13.6k|    addDirectiveHandler<
   97|  13.6k|      &DarwinAsmParser::parseSectionDirectiveLazySymbolPointers>(
   98|  13.6k|        ".lazy_symbol_pointer");
   99|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseDirectiveLinkerOption>(
  100|  13.6k|      ".linker_option");
  101|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveLiteral16>(
  102|  13.6k|      ".literal16");
  103|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveLiteral4>(
  104|  13.6k|      ".literal4");
  105|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveLiteral8>(
  106|  13.6k|      ".literal8");
  107|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveModInitFunc>(
  108|  13.6k|      ".mod_init_func");
  109|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveModTermFunc>(
  110|  13.6k|      ".mod_term_func");
  111|  13.6k|    addDirectiveHandler<
  112|  13.6k|      &DarwinAsmParser::parseSectionDirectiveNonLazySymbolPointers>(
  113|  13.6k|        ".non_lazy_symbol_pointer");
  114|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCCatClsMeth>(
  115|  13.6k|      ".objc_cat_cls_meth");
  116|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCCatInstMeth>(
  117|  13.6k|      ".objc_cat_inst_meth");
  118|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCCategory>(
  119|  13.6k|      ".objc_category");
  120|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClass>(
  121|  13.6k|      ".objc_class");
  122|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClassNames>(
  123|  13.6k|      ".objc_class_names");
  124|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClassVars>(
  125|  13.6k|      ".objc_class_vars");
  126|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClsMeth>(
  127|  13.6k|      ".objc_cls_meth");
  128|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCClsRefs>(
  129|  13.6k|      ".objc_cls_refs");
  130|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCInstMeth>(
  131|  13.6k|      ".objc_inst_meth");
  132|  13.6k|    addDirectiveHandler<
  133|  13.6k|      &DarwinAsmParser::parseSectionDirectiveObjCInstanceVars>(
  134|  13.6k|        ".objc_instance_vars");
  135|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCMessageRefs>(
  136|  13.6k|      ".objc_message_refs");
  137|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCMetaClass>(
  138|  13.6k|      ".objc_meta_class");
  139|  13.6k|    addDirectiveHandler<
  140|  13.6k|      &DarwinAsmParser::parseSectionDirectiveObjCMethVarNames>(
  141|  13.6k|        ".objc_meth_var_names");
  142|  13.6k|    addDirectiveHandler<
  143|  13.6k|      &DarwinAsmParser::parseSectionDirectiveObjCMethVarTypes>(
  144|  13.6k|        ".objc_meth_var_types");
  145|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCModuleInfo>(
  146|  13.6k|      ".objc_module_info");
  147|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCProtocol>(
  148|  13.6k|      ".objc_protocol");
  149|  13.6k|    addDirectiveHandler<
  150|  13.6k|      &DarwinAsmParser::parseSectionDirectiveObjCSelectorStrs>(
  151|  13.6k|        ".objc_selector_strs");
  152|  13.6k|    addDirectiveHandler<
  153|  13.6k|      &DarwinAsmParser::parseSectionDirectiveObjCStringObject>(
  154|  13.6k|        ".objc_string_object");
  155|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveObjCSymbols>(
  156|  13.6k|      ".objc_symbols");
  157|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectivePICSymbolStub>(
  158|  13.6k|      ".picsymbol_stub");
  159|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveStaticConst>(
  160|  13.6k|      ".static_const");
  161|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveStaticData>(
  162|  13.6k|      ".static_data");
  163|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveSymbolStub>(
  164|  13.6k|      ".symbol_stub");
  165|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveTData>(".tdata");
  166|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveText>(".text");
  167|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveThreadInitFunc>(
  168|  13.6k|      ".thread_init_func");
  169|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveTLV>(".tlv");
  170|       |
  171|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseSectionDirectiveIdent>(".ident");
  172|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseVersionMin>(
  173|  13.6k|      ".watchos_version_min");
  174|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseVersionMin>(".tvos_version_min");
  175|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseVersionMin>(".ios_version_min");
  176|  13.6k|    addDirectiveHandler<&DarwinAsmParser::parseVersionMin>(
  177|  13.6k|      ".macosx_version_min");
  178|       |
  179|  13.6k|    LastVersionMinDirective = SMLoc();
  180|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_18parseDirectiveDescEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser18parseDirectiveDescEN7llvm_ks9StringRefENS1_5SMLocE:
  413|     32|bool DarwinAsmParser::parseDirectiveDesc(StringRef, SMLoc) {
  414|     32|  StringRef Name;
  415|     32|  if (getParser().parseIdentifier(Name))
  ------------------
  |  Branch (415:7): [True: 19, False: 13]
  ------------------
  416|     19|    return TokError("expected identifier in directive");
  417|       |
  418|       |  // Handle the identifier as the key symbol.
  419|     13|  MCSymbol *Sym = getContext().getOrCreateSymbol(Name);
  420|       |
  421|     13|  if (getLexer().isNot(AsmToken::Comma))
  ------------------
  |  Branch (421:7): [True: 2, False: 11]
  ------------------
  422|      2|    return TokError("unexpected token in '.desc' directive");
  423|     11|  Lex();
  424|       |
  425|     11|  int64_t DescValue;
  426|     11|  if (getParser().parseAbsoluteExpression(DescValue))
  ------------------
  |  Branch (426:7): [True: 10, False: 1]
  ------------------
  427|     10|    return true;
  428|       |
  429|      1|  if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (429:7): [True: 1, False: 0]
  ------------------
  430|      1|    return TokError("unexpected token in '.desc' directive");
  431|       |
  432|      0|  Lex();
  433|       |
  434|       |  // Set the n_desc field of this Symbol to this DescValue
  435|      0|  getStreamer().EmitSymbolDesc(Sym, DescValue);
  436|       |
  437|      0|  return false;
  438|      1|}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_28parseDirectiveIndirectSymbolEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_18parseDirectiveLsymEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser18parseDirectiveLsymEN7llvm_ks9StringRefENS1_5SMLocE:
  525|     54|bool DarwinAsmParser::parseDirectiveLsym(StringRef, SMLoc) {
  526|     54|  StringRef Name;
  527|     54|  if (getParser().parseIdentifier(Name))
  ------------------
  |  Branch (527:7): [True: 11, False: 43]
  ------------------
  528|     11|    return TokError("expected identifier in directive");
  529|       |
  530|       |  // Handle the identifier as the key symbol.
  531|     43|  MCSymbol *Sym = getContext().getOrCreateSymbol(Name);
  532|       |
  533|     43|  if (getLexer().isNot(AsmToken::Comma))
  ------------------
  |  Branch (533:7): [True: 2, False: 41]
  ------------------
  534|      2|    return TokError("unexpected token in '.lsym' directive");
  535|     41|  Lex();
  536|       |
  537|     41|  const MCExpr *Value;
  538|     41|  if (getParser().parseExpression(Value))
  ------------------
  |  Branch (538:7): [True: 37, False: 4]
  ------------------
  539|     37|    return true;
  540|       |
  541|      4|  if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (541:7): [True: 1, False: 3]
  ------------------
  542|      1|    return TokError("unexpected token in '.lsym' directive");
  543|       |
  544|      3|  Lex();
  545|       |
  546|       |  // We don't currently support this directive.
  547|       |  //
  548|       |  // FIXME: Diagnostic location!
  549|      3|  (void) Sym;
  550|      3|  return TokError("directive '.lsym' is unsupported");
  551|      4|}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_35parseDirectiveSubsectionsViaSymbolsEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_24parseDirectiveDumpOrLoadEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  27.2k|  void addDirectiveHandler(StringRef Directive) {
   35|  27.2k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  27.2k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  27.2k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  27.2k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser24parseDirectiveDumpOrLoadEN7llvm_ks9StringRefENS1_5SMLocE:
  476|    833|                                               SMLoc IDLoc) {
  477|    833|  bool IsDump = Directive == ".dump";
  478|    833|  if (getLexer().isNot(AsmToken::String))
  ------------------
  |  Branch (478:7): [True: 3, False: 830]
  ------------------
  479|      3|    return TokError("expected string in '.dump' or '.load' directive");
  480|       |
  481|    830|  Lex();
  482|       |
  483|    830|  if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (483:7): [True: 5, False: 825]
  ------------------
  484|      5|    return TokError("unexpected token in '.dump' or '.load' directive");
  485|       |
  486|    825|  Lex();
  487|       |
  488|       |  // FIXME: If/when .dump and .load are implemented they will be done in the
  489|       |  // the assembly parser and not have any need for an MCStreamer API.
  490|    825|  if (IsDump)
  ------------------
  |  Branch (490:7): [True: 614, False: 211]
  ------------------
  491|    614|    return Warning(IDLoc, "ignoring directive .dump for now");
  492|    211|  else
  493|    211|    return Warning(IDLoc, "ignoring directive .load for now");
  494|    825|}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_21parseDirectiveSectionEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser21parseDirectiveSectionEN7llvm_ks9StringRefENS1_5SMLocE:
  555|    679|bool DarwinAsmParser::parseDirectiveSection(StringRef, SMLoc) {
  556|    679|  SMLoc Loc = getLexer().getLoc();
  557|       |
  558|    679|  StringRef SectionName;
  559|    679|  if (getParser().parseIdentifier(SectionName))
  ------------------
  |  Branch (559:7): [True: 12, False: 667]
  ------------------
  560|     12|    return Error(Loc, "expected identifier after '.section' directive");
  561|       |
  562|       |  // Verify there is a following comma.
  563|    667|  if (!getLexer().is(AsmToken::Comma))
  ------------------
  |  Branch (563:7): [True: 6, False: 661]
  ------------------
  564|      6|    return TokError("unexpected token in '.section' directive");
  565|       |
  566|    661|  std::string SectionSpec = SectionName;
  567|    661|  SectionSpec += ",";
  568|       |
  569|       |  // Add all the tokens until the end of the line, ParseSectionSpecifier will
  570|       |  // handle this.
  571|    661|  StringRef EOL = getLexer().LexUntilEndOfStatement();
  572|    661|  SectionSpec.append(EOL.begin(), EOL.end());
  573|       |
  574|    661|  Lex();
  575|    661|  if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (575:7): [True: 2, False: 659]
  ------------------
  576|      2|    return TokError("unexpected token in '.section' directive");
  577|    659|  Lex();
  578|       |
  579|       |
  580|    659|  StringRef Segment, Section;
  581|    659|  unsigned StubSize;
  582|    659|  unsigned TAA;
  583|    659|  bool TAAParsed;
  584|    659|  std::string ErrorStr =
  585|    659|    MCSectionMachO::ParseSectionSpecifier(SectionSpec, Segment, Section,
  586|    659|                                          TAA, TAAParsed, StubSize);
  587|       |
  588|    659|  if (!ErrorStr.empty())
  ------------------
  |  Branch (588:7): [True: 118, False: 541]
  ------------------
  589|    118|    return Error(Loc, ErrorStr.c_str());
  590|       |
  591|       |  // Issue a warning if the target is not powerpc and Section is a *coal* section.
  592|    541|  Triple TT = getParser().getContext().getObjectFileInfo()->getTargetTriple();
  593|    541|  Triple::ArchType ArchTy = TT.getArch();
  594|       |
  595|    541|  if (ArchTy != Triple::ppc && ArchTy != Triple::ppc64) {
  ------------------
  |  Branch (595:7): [True: 541, False: 0]
  |  Branch (595:32): [True: 541, False: 0]
  ------------------
  596|    541|    StringRef NonCoalSection = StringSwitch<StringRef>(Section)
  597|    541|                                   .Case("__textcoal_nt", "__text")
  598|    541|                                   .Case("__const_coal", "__const")
  599|    541|                                   .Case("__datacoal_nt", "__data")
  600|    541|                                   .Default(Section);
  601|       |
  602|    541|    if (!Section.equals(NonCoalSection)) {
  ------------------
  |  Branch (602:9): [True: 25, False: 516]
  ------------------
  603|     25|      StringRef SectionVal(Loc.getPointer());
  604|     25|      size_t B = SectionVal.find(',') + 1, E = SectionVal.find(',', B);
  605|     25|      SMLoc BLoc = SMLoc::getFromPointer(SectionVal.data() + B);
  606|     25|      SMLoc ELoc = SMLoc::getFromPointer(SectionVal.data() + E);
  607|     25|      getParser().Warning(Loc, "section \"" + Section + "\" is deprecated",
  608|     25|                          SMRange(BLoc, ELoc));
  609|     25|      getParser().Note(Loc, "change section name to \"" + NonCoalSection +
  610|     25|                       "\"", SMRange(BLoc, ELoc));
  611|     25|    }
  612|    541|  }
  613|       |
  614|       |  // FIXME: Arch specific.
  615|    541|  bool isText = Segment == "__TEXT";  // FIXME: Hack.
  616|    541|  getStreamer().SwitchSection(getContext().getMachOSection(
  617|    541|      Segment, Section, TAA, StubSize,
  618|    541|      isText ? SectionKind::getText() : SectionKind::getData()));
  ------------------
  |  Branch (618:7): [True: 1, False: 540]
  ------------------
  619|    541|  return false;
  620|    659|}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_25parseDirectivePushSectionEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_24parseDirectivePopSectionEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_22parseDirectivePreviousEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_29parseDirectiveSecureLogUniqueEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_28parseDirectiveSecureLogResetEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_18parseDirectiveTBSSEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser18parseDirectiveTBSSEN7llvm_ks9StringRefENS1_5SMLocE:
  721|    323|bool DarwinAsmParser::parseDirectiveTBSS(StringRef, SMLoc) {
  722|    323|  SMLoc IDLoc = getLexer().getLoc();
  723|    323|  StringRef Name;
  724|    323|  if (getParser().parseIdentifier(Name))
  ------------------
  |  Branch (724:7): [True: 112, False: 211]
  ------------------
  725|    112|    return TokError("expected identifier in directive");
  726|       |
  727|       |  // Handle the identifier as the key symbol.
  728|    211|  MCSymbol *Sym = getContext().getOrCreateSymbol(Name);
  729|       |
  730|    211|  if (getLexer().isNot(AsmToken::Comma))
  ------------------
  |  Branch (730:7): [True: 3, False: 208]
  ------------------
  731|      3|    return TokError("unexpected token in directive");
  732|    208|  Lex();
  733|       |
  734|    208|  int64_t Size;
  735|    208|  SMLoc SizeLoc = getLexer().getLoc();
  736|    208|  if (getParser().parseAbsoluteExpression(Size))
  ------------------
  |  Branch (736:7): [True: 70, False: 138]
  ------------------
  737|     70|    return true;
  738|       |
  739|    138|  int64_t Pow2Alignment = 0;
  740|    138|  SMLoc Pow2AlignmentLoc;
  741|    138|  if (getLexer().is(AsmToken::Comma)) {
  ------------------
  |  Branch (741:7): [True: 78, False: 60]
  ------------------
  742|     78|    Lex();
  743|     78|    Pow2AlignmentLoc = getLexer().getLoc();
  744|     78|    if (getParser().parseAbsoluteExpression(Pow2Alignment))
  ------------------
  |  Branch (744:9): [True: 6, False: 72]
  ------------------
  745|      6|      return true;
  746|     78|  }
  747|       |
  748|    132|  if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (748:7): [True: 1, False: 131]
  ------------------
  749|      1|    return TokError("unexpected token in '.tbss' directive");
  750|       |
  751|    131|  Lex();
  752|       |
  753|    131|  if (Size < 0)
  ------------------
  |  Branch (753:7): [True: 61, False: 70]
  ------------------
  754|     61|    return Error(SizeLoc, "invalid '.tbss' directive size, can't be less than"
  755|     61|                 "zero");
  756|       |
  757|       |  // FIXME: Diagnose overflow.
  758|     70|  if (Pow2Alignment < 0)
  ------------------
  |  Branch (758:7): [True: 70, False: 0]
  ------------------
  759|     70|    return Error(Pow2AlignmentLoc, "invalid '.tbss' alignment, can't be less"
  760|     70|                 "than zero");
  761|       |
  762|      0|  if (!Sym->isUndefined())
  ------------------
  |  Branch (762:7): [True: 0, False: 0]
  ------------------
  763|      0|    return Error(IDLoc, "invalid symbol redefinition");
  764|       |
  765|      0|  getStreamer().EmitTBSSSymbol(getContext().getMachOSection(
  766|      0|                                 "__DATA", "__thread_bss",
  767|      0|                                 MachO::S_THREAD_LOCAL_ZEROFILL,
  768|      0|                                 0, SectionKind::getThreadBSS()),
  769|      0|                               Sym, Size, 1 << Pow2Alignment);
  770|       |
  771|      0|  return false;
  772|      0|}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_22parseDirectiveZerofillEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_24parseDirectiveDataRegionEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_27parseDirectiveDataRegionEndEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_24parseSectionDirectiveBssEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser24parseSectionDirectiveBssEN7llvm_ks9StringRefENS1_5SMLocE:
  200|    475|  bool parseSectionDirectiveBss(StringRef, SMLoc) {
  201|    475|    return parseSectionSwitch("__DATA", "__bss");
  202|    475|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser18parseSectionSwitchEPKcS2_jjj:
  386|  1.19k|                                         unsigned StubSize) {
  387|  1.19k|  if (getLexer().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (387:7): [True: 7, False: 1.18k]
  ------------------
  388|      7|    return TokError("unexpected token in section switching directive");
  389|  1.18k|  Lex();
  390|       |
  391|       |  // FIXME: Arch specific.
  392|  1.18k|  bool isText = TAA & MachO::S_ATTR_PURE_INSTRUCTIONS;
  393|  1.18k|  getStreamer().SwitchSection(getContext().getMachOSection(
  394|  1.18k|      Segment, Section, TAA, StubSize,
  395|  1.18k|      isText ? SectionKind::getText() : SectionKind::getData()));
  ------------------
  |  Branch (395:7): [True: 0, False: 1.18k]
  ------------------
  396|       |
  397|       |  // Set the implicit alignment, if any.
  398|       |  //
  399|       |  // FIXME: This isn't really what 'as' does; I think it just uses the implicit
  400|       |  // alignment on the section (e.g., if one manually inserts bytes into the
  401|       |  // section, then just issuing the section switch directive will not realign
  402|       |  // the section. However, this is arguably more reasonable behavior, and there
  403|       |  // is no good reason for someone to intentionally emit incorrectly sized
  404|       |  // values into the implicitly aligned sections.
  405|  1.18k|  if (Align)
  ------------------
  |  Branch (405:7): [True: 0, False: 1.18k]
  ------------------
  406|      0|    getStreamer().EmitValueToAlignment(Align);
  407|       |
  408|  1.18k|  return false;
  409|  1.19k|}
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_26parseSectionDirectiveConstEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser26parseSectionDirectiveConstEN7llvm_ks9StringRefENS1_5SMLocE:
  204|     89|  bool parseSectionDirectiveConst(StringRef, SMLoc) {
  205|     89|    return parseSectionSwitch("__TEXT", "__const");
  206|     89|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_30parseSectionDirectiveConstDataEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveConstructorEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_28parseSectionDirectiveCStringEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_25parseSectionDirectiveDataEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser25parseSectionDirectiveDataEN7llvm_ks9StringRefENS1_5SMLocE:
  250|    614|  bool parseSectionDirectiveData(StringRef, SMLoc) {
  251|    614|    return parseSectionSwitch("__DATA", "__data");
  252|    614|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_31parseSectionDirectiveDestructorEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_25parseSectionDirectiveDyldEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser25parseSectionDirectiveDyldEN7llvm_ks9StringRefENS1_5SMLocE:
  264|     10|  bool parseSectionDirectiveDyld(StringRef, SMLoc) {
  265|     10|    return parseSectionSwitch("__DATA", "__dyld");
  266|     10|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveFVMLibInit0EN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveFVMLibInit1EN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_39parseSectionDirectiveLazySymbolPointersEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_26parseDirectiveLinkerOptionEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_30parseSectionDirectiveLiteral16EN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_29parseSectionDirectiveLiteral4EN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_29parseSectionDirectiveLiteral8EN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveModInitFuncEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveModTermFuncEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_42parseSectionDirectiveNonLazySymbolPointersEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_35parseSectionDirectiveObjCCatClsMethEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_36parseSectionDirectiveObjCCatInstMethEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_33parseSectionDirectiveObjCCategoryEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_30parseSectionDirectiveObjCClassEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_35parseSectionDirectiveObjCClassNamesEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_34parseSectionDirectiveObjCClassVarsEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveObjCClsMethEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveObjCClsRefsEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_33parseSectionDirectiveObjCInstMethEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_37parseSectionDirectiveObjCInstanceVarsEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_36parseSectionDirectiveObjCMessageRefsEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_34parseSectionDirectiveObjCMetaClassEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_37parseSectionDirectiveObjCMethVarNamesEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_37parseSectionDirectiveObjCMethVarTypesEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_35parseSectionDirectiveObjCModuleInfoEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_33parseSectionDirectiveObjCProtocolEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_37parseSectionDirectiveObjCSelectorStrsEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_37parseSectionDirectiveObjCStringObjectEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveObjCSymbolsEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_34parseSectionDirectivePICSymbolStubEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_32parseSectionDirectiveStaticConstEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_31parseSectionDirectiveStaticDataEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_31parseSectionDirectiveSymbolStubEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_26parseSectionDirectiveTDataEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser26parseSectionDirectiveTDataEN7llvm_ks9StringRefENS1_5SMLocE:
  356|      1|  bool parseSectionDirectiveTData(StringRef, SMLoc) {
  357|      1|    return parseSectionSwitch("__DATA", "__thread_data",
  358|      1|                              MachO::S_THREAD_LOCAL_REGULAR);
  359|      1|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_25parseSectionDirectiveTextEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser25parseSectionDirectiveTextEN7llvm_ks9StringRefENS1_5SMLocE:
  360|      1|  bool parseSectionDirectiveText(StringRef, SMLoc) {
  361|      1|    return parseSectionSwitch("__TEXT", "__text",
  362|      1|                              MachO::S_ATTR_PURE_INSTRUCTIONS);
  363|      1|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_35parseSectionDirectiveThreadInitFuncEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_24parseSectionDirectiveTLVEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser24parseSectionDirectiveTLVEN7llvm_ks9StringRefENS1_5SMLocE:
  364|      1|  bool parseSectionDirectiveTLV(StringRef, SMLoc) {
  365|      1|    return parseSectionSwitch("__DATA", "__thread_vars",
  366|      1|                              MachO::S_THREAD_LOCAL_VARIABLES);
  367|      1|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_26parseSectionDirectiveIdentEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  13.6k|  void addDirectiveHandler(StringRef Directive) {
   35|  13.6k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  13.6k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  13.6k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  13.6k|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser26parseSectionDirectiveIdentEN7llvm_ks9StringRefENS1_5SMLocE:
  368|    207|  bool parseSectionDirectiveIdent(StringRef, SMLoc) {
  369|       |    // Darwin silently ignores the .ident directive.
  370|    207|    getParser().eatToEndOfStatement();
  371|    207|    return false;
  372|    207|  }
DarwinAsmParser.cpp:_ZN12_GLOBAL__N_115DarwinAsmParser19addDirectiveHandlerIXadL_ZNS0_15parseVersionMinEN7llvm_ks9StringRefENS2_5SMLocEEEEEvS3_:
   34|  54.5k|  void addDirectiveHandler(StringRef Directive) {
   35|  54.5k|    MCAsmParser::ExtensionDirectiveHandler Handler = std::make_pair(
   36|  54.5k|        this, HandleDirective<DarwinAsmParser, HandlerMethod>);
   37|  54.5k|    getParser().addDirectiveHandler(Directive, Handler);
   38|  54.5k|  }

_ZN7llvm_ks10MCAsmLexerC2Ev:
   15|  13.6k|MCAsmLexer::MCAsmLexer() : TokStart(nullptr), SkipSpace(true) {
   16|  13.6k|  CurTok.emplace_back(AsmToken::Error, StringRef());
   17|  13.6k|}
_ZN7llvm_ks10MCAsmLexerD2Ev:
   19|  13.6k|MCAsmLexer::~MCAsmLexer() {
   20|  13.6k|}
_ZNK7llvm_ks10MCAsmLexer6getLocEv:
   22|   879k|SMLoc MCAsmLexer::getLoc() const {
   23|   879k|  return SMLoc::getFromPointer(TokStart);
   24|   879k|}
_ZNK7llvm_ks8AsmToken6getLocEv:
   26|  20.4M|SMLoc AsmToken::getLoc() const {
   27|  20.4M|  return SMLoc::getFromPointer(Str.data());
   28|  20.4M|}
_ZNK7llvm_ks8AsmToken9getEndLocEv:
   30|   273k|SMLoc AsmToken::getEndLoc() const {
   31|   273k|  return SMLoc::getFromPointer(Str.data() + Str.size());
   32|   273k|}

_ZN7llvm_ks11MCAsmParserC2Ev:
   20|  13.6k|MCAsmParser::MCAsmParser() : TargetParser(nullptr), KsError(0) {
   21|  13.6k|}
_ZN7llvm_ks11MCAsmParserD2Ev:
   23|  13.6k|MCAsmParser::~MCAsmParser() {
   24|  13.6k|}
_ZN7llvm_ks11MCAsmParser15setTargetParserERNS_17MCTargetAsmParserE:
   26|  13.6k|void MCAsmParser::setTargetParser(MCTargetAsmParser &P) {
   27|  13.6k|  assert(!TargetParser && "Target parser is already initialized!");
  ------------------
  |  Branch (27:3): [True: 13.6k, False: 0]
  |  Branch (27:3): [True: 13.6k, Folded]
  |  Branch (27:3): [True: 13.6k, False: 0]
  ------------------
   28|  13.6k|  TargetParser = &P;
   29|  13.6k|  TargetParser->Initialize(*this);
   30|  13.6k|}
_ZNK7llvm_ks11MCAsmParser6getTokEv:
   32|  22.0M|const AsmToken &MCAsmParser::getTok() const {
   33|  22.0M|  return getLexer().getTok();
   34|  22.0M|}
_ZN7llvm_ks11MCAsmParser8TokErrorERKNS_5TwineENS_8ArrayRefINS_7SMRangeEEE:
   36|    178|bool MCAsmParser::TokError(const Twine &Msg, ArrayRef<SMRange> Ranges) {
   37|    178|  Error(getLexer().getLoc(), Msg, Ranges);
   38|    178|  return true;
   39|    178|}
_ZN7llvm_ks11MCAsmParser15parseExpressionERPKNS_6MCExprE:
   41|   195k|bool MCAsmParser::parseExpression(const MCExpr *&Res) {
   42|   195k|  SMLoc L;
   43|   195k|  return parseExpression(Res, L);
   44|   195k|}

_ZN7llvm_ks20MCAsmParserExtensionC2Ev:
   14|  27.2k|  BracketExpressionsSupported(false) {
   15|  27.2k|}
_ZN7llvm_ks20MCAsmParserExtensionD2Ev:
   17|  27.2k|MCAsmParserExtension::~MCAsmParserExtension() {
   18|  27.2k|}
_ZN7llvm_ks20MCAsmParserExtension10InitializeERNS_11MCAsmParserE:
   20|  27.2k|void MCAsmParserExtension::Initialize(MCAsmParser &Parser) {
   21|  27.2k|  this->Parser = &Parser;
   22|  27.2k|}

_ZN7llvm_ks17MCTargetAsmParserC2ERKNS_15MCTargetOptionsERKNS_15MCSubtargetInfoE:
   16|  13.6k|  : AvailableFeatures(0),AvailableFeaturesFB(), ParsingInlineAsm(false), MCOptions(MCOptions),
   17|  13.6k|    STI(&STI)
   18|  13.6k|{
   19|  13.6k|}
_ZN7llvm_ks17MCTargetAsmParserD2Ev:
   21|  13.6k|MCTargetAsmParser::~MCTargetAsmParser() {
   22|  13.6k|}
_ZNK7llvm_ks17MCTargetAsmParser6getSTIEv:
   30|  56.5k|const MCSubtargetInfo &MCTargetAsmParser::getSTI() const {
   31|  56.5k|  return *STI;
   32|  56.5k|}

_ZNK7llvm_ks14MCRegisterInfo14getDwarfRegNumEjb:
   61|  13.6k|int MCRegisterInfo::getDwarfRegNum(unsigned RegNum, bool isEH) const {
   62|  13.6k|  const DwarfLLVMRegPair *M = isEH ? EHL2DwarfRegs : L2DwarfRegs;
  ------------------
  |  Branch (62:31): [True: 13.6k, False: 0]
  ------------------
   63|  13.6k|  unsigned Size = isEH ? EHL2DwarfRegsSize : L2DwarfRegsSize;
  ------------------
  |  Branch (63:19): [True: 13.6k, False: 0]
  ------------------
   64|       |
   65|  13.6k|  DwarfLLVMRegPair Key = { RegNum, 0 };
   66|  13.6k|  const DwarfLLVMRegPair *I = std::lower_bound(M, M+Size, Key);
   67|  13.6k|  if (I == M+Size || I->FromReg != RegNum)
  ------------------
  |  Branch (67:7): [True: 0, False: 13.6k]
  |  Branch (67:22): [True: 0, False: 13.6k]
  ------------------
   68|      0|    return -1;
   69|  13.6k|  return I->ToReg;
   70|  13.6k|}

_ZN7llvm_ks9MCSectionC2ENS0_14SectionVariantENS_11SectionKindEPNS_8MCSymbolE:
   23|   592k|    : Begin(Begin), BundleGroupBeforeFirstInst(false), HasInstructions(false),
   24|   592k|      IsRegistered(false), DummyFragment(this), Variant(V), Kind(K) {}
_ZNK7llvm_ks9MCSection8hasEndedEv:
   32|  14.5k|bool MCSection::hasEnded() const { return End && End->isInSection(); }
  ------------------
  |  Branch (32:43): [True: 0, False: 14.5k]
  |  Branch (32:50): [True: 0, False: 0]
  ------------------
_ZN7llvm_ks9MCSectionD2Ev:
   34|   592k|MCSection::~MCSection() {
   35|   592k|}
_ZN7llvm_ks9MCSection27getSubsectionInsertionPointEj:
   57|  14.5k|MCSection::getSubsectionInsertionPoint(unsigned Subsection) {
   58|  14.5k|  if (Subsection == 0 && SubsectionFragmentMap.empty())
  ------------------
  |  Branch (58:7): [True: 14.5k, False: 0]
  |  Branch (58:26): [True: 14.5k, False: 0]
  ------------------
   59|  14.5k|    return end();
   60|       |
   61|      0|  SmallVectorImpl<std::pair<unsigned, MCFragment *>>::iterator MI =
   62|      0|      std::lower_bound(SubsectionFragmentMap.begin(),
   63|      0|                       SubsectionFragmentMap.end(),
   64|      0|                       std::make_pair(Subsection, (MCFragment *)nullptr));
   65|      0|  bool ExactMatch = false;
   66|      0|  if (MI != SubsectionFragmentMap.end()) {
  ------------------
  |  Branch (66:7): [True: 0, False: 0]
  ------------------
   67|      0|    ExactMatch = MI->first == Subsection;
   68|      0|    if (ExactMatch)
  ------------------
  |  Branch (68:9): [True: 0, False: 0]
  ------------------
   69|      0|      ++MI;
   70|      0|  }
   71|      0|  iterator IP;
   72|      0|  if (MI == SubsectionFragmentMap.end())
  ------------------
  |  Branch (72:7): [True: 0, False: 0]
  ------------------
   73|      0|    IP = end();
   74|      0|  else
   75|      0|    IP = MI->second->getIterator();
   76|      0|  if (!ExactMatch && Subsection != 0) {
  ------------------
  |  Branch (76:7): [True: 0, False: 0]
  |  Branch (76:22): [True: 0, False: 0]
  ------------------
   77|       |    // The GNU as documentation claims that subsections have an alignment of 4,
   78|       |    // although this appears not to be the case.
   79|      0|    MCFragment *F = new MCDataFragment();
   80|      0|    SubsectionFragmentMap.insert(MI, std::make_pair(Subsection, F));
   81|      0|    getFragmentList().insert(IP, F);
   82|      0|    F->setParent(this);
   83|      0|  }
   84|       |
   85|      0|  return IP;
   86|  14.5k|}
_ZN7llvm_ks9MCSection5beginEv:
  103|  31.0k|MCSection::iterator MCSection::begin() { return Fragments.begin(); }
_ZN7llvm_ks9MCSection3endEv:
  105|  90.2k|MCSection::iterator MCSection::end() { return Fragments.end(); }
_ZN7llvm_ks9MCSection6rbeginEv:
  107|  6.29k|MCSection::reverse_iterator MCSection::rbegin() { return Fragments.rbegin(); }

_ZN7llvm_ks12MCSectionELFD2Ev:
   20|   592k|MCSectionELF::~MCSectionELF() {} // anchor.
_ZNK7llvm_ks12MCSectionELF12UseCodeAlignEv:
  162|  7.82k|bool MCSectionELF::UseCodeAlign() const {
  163|  7.82k|  return getFlags() & ELF::SHF_EXECINSTR;
  164|  7.82k|}
_ZNK7llvm_ks12MCSectionELF16isVirtualSectionEv:
  166|  17.9k|bool MCSectionELF::isVirtualSection() const {
  167|  17.9k|  return getType() == ELF::SHT_NOBITS;
  168|  17.9k|}

_ZN7llvm_ks14MCSectionMachOC2ENS_9StringRefES1_jjNS_11SectionKindEPNS_8MCSymbolE:
   75|    302|    : MCSection(SV_MachO, K, Begin), TypeAndAttributes(TAA),
   76|    302|      Reserved2(reserved2) {
   77|    302|  assert(Segment.size() <= 16 && Section.size() <= 16 &&
  ------------------
  |  Branch (77:3): [True: 302, False: 0]
  |  Branch (77:3): [True: 302, False: 0]
  |  Branch (77:3): [True: 302, Folded]
  |  Branch (77:3): [True: 302, False: 0]
  ------------------
   78|    302|         "Segment or section string too long");
   79|  5.13k|  for (unsigned i = 0; i != 16; ++i) {
  ------------------
  |  Branch (79:24): [True: 4.83k, False: 302]
  ------------------
   80|  4.83k|    if (i < Segment.size())
  ------------------
  |  Branch (80:9): [True: 1.18k, False: 3.64k]
  ------------------
   81|  1.18k|      SegmentName[i] = Segment[i];
   82|  3.64k|    else
   83|  3.64k|      SegmentName[i] = 0;
   84|       |
   85|  4.83k|    if (i < Section.size())
  ------------------
  |  Branch (85:9): [True: 2.14k, False: 2.68k]
  ------------------
   86|  2.14k|      SectionName[i] = Section[i];
   87|  2.68k|    else
   88|  2.68k|      SectionName[i] = 0;
   89|  4.83k|  }
   90|    302|}
_ZNK7llvm_ks14MCSectionMachO12UseCodeAlignEv:
  156|     73|bool MCSectionMachO::UseCodeAlign() const {
  157|     73|  return hasAttribute(MachO::S_ATTR_PURE_INSTRUCTIONS);
  158|     73|}
_ZNK7llvm_ks14MCSectionMachO16isVirtualSectionEv:
  160|    576|bool MCSectionMachO::isVirtualSection() const {
  161|    576|  return (getType() == MachO::S_ZEROFILL ||
  ------------------
  |  Branch (161:11): [True: 0, False: 576]
  ------------------
  162|    576|          getType() == MachO::S_GB_ZEROFILL ||
  ------------------
  |  Branch (162:11): [True: 0, False: 576]
  ------------------
  163|    576|          getType() == MachO::S_THREAD_LOCAL_ZEROFILL);
  ------------------
  |  Branch (163:11): [True: 0, False: 576]
  ------------------
  164|    576|}
_ZN7llvm_ks14MCSectionMachO21ParseSectionSpecifierENS_9StringRefERS1_S2_RjRbS3_:
  176|    659|                                                  unsigned  &StubSize) { // Out.
  177|    659|  TAAParsed = false;
  178|       |
  179|    659|  SmallVector<StringRef, 5> SplitSpec;
  180|    659|  Spec.split(SplitSpec, ',');
  181|       |  // Remove leading and trailing whitespace.
  182|    659|  auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef {
  183|    659|    return SplitSpec.size() > Idx ? SplitSpec[Idx].trim() : StringRef();
  184|    659|  };
  185|    659|  Segment = GetEmptyOrTrim(0);
  186|    659|  Section = GetEmptyOrTrim(1);
  187|    659|  StringRef SectionType = GetEmptyOrTrim(2);
  188|    659|  StringRef Attrs = GetEmptyOrTrim(3);
  189|    659|  StringRef StubSizeStr = GetEmptyOrTrim(4);
  190|       |
  191|       |  // Verify that the segment is present and not too long.
  192|    659|  if (Segment.empty() || Segment.size() > 16)
  ------------------
  |  Branch (192:7): [True: 3, False: 656]
  |  Branch (192:26): [True: 5, False: 651]
  ------------------
  193|      8|    return "mach-o section specifier requires a segment whose length is "
  194|      8|           "between 1 and 16 characters";
  195|       |
  196|       |  // Verify that the section is present and not too long.
  197|    651|  if (Section.empty())
  ------------------
  |  Branch (197:7): [True: 40, False: 611]
  ------------------
  198|     40|    return "mach-o section specifier requires a segment and section "
  199|     40|           "separated by a comma";
  200|       |
  201|    611|  if (Section.size() > 16)
  ------------------
  |  Branch (201:7): [True: 19, False: 592]
  ------------------
  202|     19|    return "mach-o section specifier requires a section whose length is "
  203|     19|           "between 1 and 16 characters";
  204|       |
  205|       |  // If there is no comma after the section, we're done.
  206|    592|  TAA = 0;
  207|    592|  StubSize = 0;
  208|    592|  if (SectionType.empty())
  ------------------
  |  Branch (208:7): [True: 540, False: 52]
  ------------------
  209|    540|    return "";
  210|       |
  211|       |  // Figure out which section type it is.
  212|     52|  auto TypeDescriptor = std::find_if(
  213|     52|      std::begin(SectionTypeDescriptors), std::end(SectionTypeDescriptors),
  214|     52|      [&](decltype(*SectionTypeDescriptors) &Descriptor) {
  215|     52|        return Descriptor.AssemblerName &&
  216|     52|               SectionType == Descriptor.AssemblerName;
  217|     52|      });
  218|       |
  219|       |  // If we didn't find the section type, reject it.
  220|     52|  if (TypeDescriptor == std::end(SectionTypeDescriptors))
  ------------------
  |  Branch (220:7): [True: 35, False: 17]
  ------------------
  221|     35|    return "mach-o section specifier uses an unknown section type";
  222|       |
  223|       |  // Remember the TypeID.
  224|     17|  TAA = TypeDescriptor - std::begin(SectionTypeDescriptors);
  225|     17|  TAAParsed = true;
  226|       |
  227|       |  // If we have no comma after the section type, there are no attributes.
  228|     17|  if (Attrs.empty()) {
  ------------------
  |  Branch (228:7): [True: 1, False: 16]
  ------------------
  229|       |    // S_SYMBOL_STUBS always require a symbol stub size specifier.
  230|      1|    if (TAA == MachO::S_SYMBOL_STUBS)
  ------------------
  |  Branch (230:9): [True: 0, False: 1]
  ------------------
  231|      0|      return "mach-o section specifier of type 'symbol_stubs' requires a size "
  232|      0|             "specifier";
  233|      1|    return "";
  234|      1|  }
  235|       |
  236|       |  // The attribute list is a '+' separated list of attributes.
  237|     16|  SmallVector<StringRef, 1> SectionAttrs;
  238|     16|  Attrs.split(SectionAttrs, '+', /*MaxSplit=*/-1, /*KeepEmpty=*/false);
  239|       |
  240|     16|  for (StringRef &SectionAttr : SectionAttrs) {
  ------------------
  |  Branch (240:31): [True: 16, False: 0]
  ------------------
  241|     16|    auto AttrDescriptorI = std::find_if(
  242|     16|        std::begin(SectionAttrDescriptors), std::end(SectionAttrDescriptors),
  243|     16|        [&](decltype(*SectionAttrDescriptors) &Descriptor) {
  244|     16|          return Descriptor.AssemblerName &&
  245|     16|                 SectionAttr.trim() == Descriptor.AssemblerName;
  246|     16|        });
  247|     16|    if (AttrDescriptorI == std::end(SectionAttrDescriptors))
  ------------------
  |  Branch (247:9): [True: 16, False: 0]
  ------------------
  248|     16|      return "mach-o section specifier has invalid attribute";
  249|       |
  250|      0|    TAA |= AttrDescriptorI->AttrFlag;
  251|      0|  }
  252|       |
  253|       |  // Okay, we've parsed the section attributes, see if we have a stub size spec.
  254|      0|  if (StubSizeStr.empty()) {
  ------------------
  |  Branch (254:7): [True: 0, False: 0]
  ------------------
  255|       |    // S_SYMBOL_STUBS always require a symbol stub size specifier.
  256|      0|    if (TAA == MachO::S_SYMBOL_STUBS)
  ------------------
  |  Branch (256:9): [True: 0, False: 0]
  ------------------
  257|      0|      return "mach-o section specifier of type 'symbol_stubs' requires a size "
  258|      0|      "specifier";
  259|      0|    return "";
  260|      0|  }
  261|       |
  262|       |  // If we have a stub size spec, we must have a sectiontype of S_SYMBOL_STUBS.
  263|      0|  if ((TAA & MachO::SECTION_TYPE) != MachO::S_SYMBOL_STUBS)
  ------------------
  |  Branch (263:7): [True: 0, False: 0]
  ------------------
  264|      0|    return "mach-o section specifier cannot have a stub size specified because "
  265|      0|           "it does not have type 'symbol_stubs'";
  266|       |
  267|       |  // Convert the stub size from a string to an integer.
  268|      0|  if (StubSizeStr.getAsInteger(0, StubSize))
  ------------------
  |  Branch (268:7): [True: 0, False: 0]
  ------------------
  269|      0|    return "mach-o section specifier has a malformed stub size";
  270|       |
  271|      0|  return "";
  272|      0|}
MCSectionMachO.cpp:_ZZN7llvm_ks14MCSectionMachO21ParseSectionSpecifierENS_9StringRefERS1_S2_RjRbS3_ENK3$_0clEm:
  182|  3.29k|  auto GetEmptyOrTrim = [&SplitSpec](size_t Idx) -> StringRef {
  183|  3.29k|    return SplitSpec.size() > Idx ? SplitSpec[Idx].trim() : StringRef();
  ------------------
  |  Branch (183:12): [True: 2.62k, False: 668]
  ------------------
  184|  3.29k|  };
MCSectionMachO.cpp:_ZZN7llvm_ks14MCSectionMachO21ParseSectionSpecifierENS_9StringRefERS1_S2_RjRbS3_ENK3$_1clERK3$_0:
  214|    868|      [&](decltype(*SectionTypeDescriptors) &Descriptor) {
  215|    868|        return Descriptor.AssemblerName &&
  ------------------
  |  Branch (215:16): [True: 714, False: 154]
  ------------------
  216|    714|               SectionType == Descriptor.AssemblerName;
  ------------------
  |  Branch (216:16): [True: 17, False: 697]
  ------------------
  217|    868|      });
MCSectionMachO.cpp:_ZZN7llvm_ks14MCSectionMachO21ParseSectionSpecifierENS_9StringRefERS1_S2_RjRbS3_ENK3$_2clERK3$_1:
  243|    176|        [&](decltype(*SectionAttrDescriptors) &Descriptor) {
  244|    176|          return Descriptor.AssemblerName &&
  ------------------
  |  Branch (244:18): [True: 128, False: 48]
  ------------------
  245|    128|                 SectionAttr.trim() == Descriptor.AssemblerName;
  ------------------
  |  Branch (245:18): [True: 0, False: 128]
  ------------------
  246|    176|        });

_ZN7llvm_ks16MCTargetStreamerD2Ev:
   33|  13.6k|MCTargetStreamer::~MCTargetStreamer() {}
_ZN7llvm_ks16MCTargetStreamerC2ERNS_10MCStreamerE:
   35|  13.6k|MCTargetStreamer::MCTargetStreamer(MCStreamer &S) : Streamer(S) {
   36|  13.6k|  S.setTargetStreamer(this);
   37|  13.6k|}
_ZN7llvm_ks16MCTargetStreamer9emitLabelEPNS_8MCSymbolE:
   39|  69.2k|void MCTargetStreamer::emitLabel(MCSymbol *Symbol) {}
_ZN7llvm_ks16MCTargetStreamer6finishEv:
   41|  6.07k|void MCTargetStreamer::finish() {}
_ZN7llvm_ks16MCTargetStreamer14emitAssignmentEPNS_8MCSymbolEPKNS_6MCExprE:
   43|  19.0k|void MCTargetStreamer::emitAssignment(MCSymbol *Symbol, const MCExpr *Value) {}
_ZN7llvm_ks10MCStreamerC2ERNS_9MCContextE:
   46|  13.6k|    : Context(Ctx), CurrentWinFrameInfo(nullptr) {
   47|  13.6k|  SectionStack.push_back(std::pair<MCSectionSubPair, MCSectionSubPair>());
   48|  13.6k|}
_ZN7llvm_ks10MCStreamerD2Ev:
   50|  13.6k|MCStreamer::~MCStreamer() {
   51|  13.6k|  for (unsigned i = 0; i < getNumWinFrameInfos(); ++i)
  ------------------
  |  Branch (51:24): [True: 0, False: 13.6k]
  ------------------
   52|      0|    delete WinFrameInfos[i];
   53|  13.6k|}
_ZN7llvm_ks10MCStreamer12EmitIntValueEmjRb:
   82|  32.7M|{
   83|  32.7M|  Error = false;
   84|       |  //assert(1 <= Size && Size <= 8 && "Invalid size");
   85|  32.7M|  if (1 > Size || Size > 8) {
  ------------------
  |  Branch (85:7): [True: 49, False: 32.7M]
  |  Branch (85:19): [True: 0, False: 32.7M]
  ------------------
   86|     49|      Error = true;
   87|     49|      return;
   88|     49|  }
   89|       |  //assert((isUIntN(8 * Size, Value) || isIntN(8 * Size, Value)) &&
   90|       |  //       "Invalid size");
   91|  32.7M|  if (!isUIntN(8 * Size, Value) && !isIntN(8 * Size, Value)) {
  ------------------
  |  Branch (91:7): [True: 2.49k, False: 32.7M]
  |  Branch (91:36): [True: 345, False: 2.15k]
  ------------------
   92|    345|      Error = true;
   93|    345|      return;
   94|    345|  }
   95|  32.7M|  char buf[8];
   96|  32.7M|  const bool isLittleEndian = Context.getAsmInfo()->isLittleEndian();
   97|  69.1M|  for (unsigned i = 0; i != Size; ++i) {
  ------------------
  |  Branch (97:24): [True: 36.3M, False: 32.7M]
  ------------------
   98|  36.3M|    unsigned index = isLittleEndian ? i : (Size - i - 1);
  ------------------
  |  Branch (98:22): [True: 36.3M, False: 0]
  ------------------
   99|  36.3M|    buf[i] = uint8_t(Value >> (index * 8));
  100|  36.3M|  }
  101|  32.7M|  EmitBytes(StringRef(buf, Size));
  102|  32.7M|}
_ZN7llvm_ks10MCStreamer9EmitValueEPKNS_6MCExprEjNS_5SMLocE:
  122|  49.0k|void MCStreamer::EmitValue(const MCExpr *Value, unsigned Size, SMLoc Loc) {
  123|  49.0k|  EmitValueImpl(Value, Size, Loc);
  124|  49.0k|}
_ZN7llvm_ks10MCStreamer9EmitZerosEm:
  154|     63|void MCStreamer::EmitZeros(uint64_t NumBytes) {
  155|     63|  EmitFill(NumBytes, 0);
  156|     63|}
_ZN7llvm_ks10MCStreamer22EmitDwarfFileDirectiveEjNS_9StringRefES1_j:
  160|     48|                                            StringRef Filename, unsigned CUID) {
  161|     48|  return getContext().getDwarfFile(Directory, Filename, FileNo, CUID);
  162|     48|}
_ZN7llvm_ks10MCStreamer9EmitLabelEPNS_8MCSymbolE:
  232|  69.2k|void MCStreamer::EmitLabel(MCSymbol *Symbol) {
  233|  69.2k|  assert(!Symbol->isVariable() && "Cannot emit a variable symbol!");
  ------------------
  |  Branch (233:3): [True: 69.2k, False: 0]
  |  Branch (233:3): [True: 69.2k, Folded]
  |  Branch (233:3): [True: 69.2k, False: 0]
  ------------------
  234|  69.2k|  assert(getCurrentSection().first && "Cannot emit before setting section!");
  ------------------
  |  Branch (234:3): [True: 69.2k, False: 0]
  |  Branch (234:3): [True: 69.2k, Folded]
  |  Branch (234:3): [True: 69.2k, False: 0]
  ------------------
  235|  69.2k|  assert(!Symbol->getFragment() && "Unexpected fragment on symbol data!");
  ------------------
  |  Branch (235:3): [True: 69.2k, False: 0]
  |  Branch (235:3): [True: 69.2k, Folded]
  |  Branch (235:3): [True: 69.2k, False: 0]
  ------------------
  236|  69.2k|  Symbol->setFragment(&getCurrentSectionOnly()->getDummyFragment());
  237|       |
  238|  69.2k|  MCTargetStreamer *TS = getTargetStreamer();
  239|  69.2k|  if (TS)
  ------------------
  |  Branch (239:7): [True: 69.2k, False: 0]
  ------------------
  240|  69.2k|    TS->emitLabel(Symbol);
  241|  69.2k|}
_ZN7llvm_ks10MCStreamer6FinishEv:
  625|  6.07k|unsigned int MCStreamer::Finish() {
  626|  6.07k|  if (!DwarfFrameInfos.empty() && !DwarfFrameInfos.back().End)
  ------------------
  |  Branch (626:7): [True: 0, False: 6.07k]
  |  Branch (626:35): [True: 0, False: 0]
  ------------------
  627|      0|    report_fatal_error("Unfinished frame!");
  628|       |
  629|  6.07k|  MCTargetStreamer *TS = getTargetStreamer();
  630|  6.07k|  if (TS)
  ------------------
  |  Branch (630:7): [True: 6.07k, False: 0]
  ------------------
  631|  6.07k|    TS->finish();
  632|       |
  633|  6.07k|  return FinishImpl();
  634|  6.07k|}
_ZN7llvm_ks10MCStreamer14EmitAssignmentEPNS_8MCSymbolEPKNS_6MCExprE:
  636|  21.3k|bool MCStreamer::EmitAssignment(MCSymbol *Symbol, const MCExpr *Value) {
  637|  21.3k|  visitUsedExpr(*Value);
  638|  21.3k|  bool valid;
  639|  21.3k|  Symbol->setVariableValue(Value, valid);
  640|  21.3k|  if (!valid)
  ------------------
  |  Branch (640:7): [True: 2.25k, False: 19.0k]
  ------------------
  641|  2.25k|      return false;
  642|       |
  643|  19.0k|  MCTargetStreamer *TS = getTargetStreamer();
  644|  19.0k|  if (TS)
  ------------------
  |  Branch (644:7): [True: 19.0k, False: 0]
  ------------------
  645|  19.0k|    TS->emitAssignment(Symbol, Value);
  646|       |
  647|  19.0k|  return true;
  648|  21.3k|}
_ZN7llvm_ks10MCStreamer13visitUsedExprERKNS_6MCExprE:
  653|   249k|void MCStreamer::visitUsedExpr(const MCExpr &Expr) {
  654|   249k|  switch (Expr.getKind()) {
  ------------------
  |  Branch (654:11): [True: 249k, False: 0]
  ------------------
  655|     10|  case MCExpr::Target:
  ------------------
  |  Branch (655:3): [True: 10, False: 249k]
  ------------------
  656|     10|    cast<MCTargetExpr>(Expr).visitUsedExpr(*this);
  657|     10|    break;
  658|       |
  659|  37.1k|  case MCExpr::Constant:
  ------------------
  |  Branch (659:3): [True: 37.1k, False: 211k]
  ------------------
  660|  37.1k|    break;
  661|       |
  662|  72.3k|  case MCExpr::Binary: {
  ------------------
  |  Branch (662:3): [True: 72.3k, False: 176k]
  ------------------
  663|  72.3k|    const MCBinaryExpr &BE = cast<MCBinaryExpr>(Expr);
  664|  72.3k|    visitUsedExpr(*BE.getLHS());
  665|  72.3k|    visitUsedExpr(*BE.getRHS());
  666|  72.3k|    break;
  667|      0|  }
  668|       |
  669|   105k|  case MCExpr::SymbolRef:
  ------------------
  |  Branch (669:3): [True: 105k, False: 143k]
  ------------------
  670|   105k|    visitUsedSymbol(cast<MCSymbolRefExpr>(Expr).getSymbol());
  671|   105k|    break;
  672|       |
  673|  33.5k|  case MCExpr::Unary:
  ------------------
  |  Branch (673:3): [True: 33.5k, False: 215k]
  ------------------
  674|  33.5k|    visitUsedExpr(*cast<MCUnaryExpr>(Expr).getSubExpr());
  675|  33.5k|    break;
  676|   249k|  }
  677|   249k|}
_ZN7llvm_ks10MCStreamer15EmitInstructionERNS_6MCInstERKNS_15MCSubtargetInfoERj:
  681|  1.21k|                                 unsigned int &KsError) {
  682|       |  // Scan for values.
  683|  2.68k|  for (unsigned i = Inst.getNumOperands(); i--;)
  ------------------
  |  Branch (683:44): [True: 1.46k, False: 1.21k]
  ------------------
  684|  1.46k|    if (Inst.getOperand(i).isExpr())
  ------------------
  |  Branch (684:9): [True: 336, False: 1.12k]
  ------------------
  685|    336|      visitUsedExpr(*Inst.getOperand(i).getExpr());
  686|  1.21k|}
_ZN7llvm_ks10MCStreamer13EmitValueImplEPKNS_6MCExprEjNS_5SMLocE:
  723|  49.0k|void MCStreamer::EmitValueImpl(const MCExpr *Value, unsigned Size, SMLoc Loc) {
  724|  49.0k|  visitUsedExpr(*Value);
  725|  49.0k|}
_ZN7llvm_ks10MCStreamer13SwitchSectionEPNS_9MCSectionEPKNS_6MCExprE:
  739|  15.4k|void MCStreamer::SwitchSection(MCSection *Section, const MCExpr *Subsection) {
  740|  15.4k|  assert(Section && "Cannot switch to a null section!");
  ------------------
  |  Branch (740:3): [True: 15.4k, False: 0]
  |  Branch (740:3): [True: 15.4k, Folded]
  |  Branch (740:3): [True: 15.4k, False: 0]
  ------------------
  741|  15.4k|  MCSectionSubPair curSection = SectionStack.back().first;
  742|  15.4k|  SectionStack.back().second = curSection;
  743|  15.4k|  if (MCSectionSubPair(Section, Subsection) != curSection) {
  ------------------
  |  Branch (743:7): [True: 14.5k, False: 959]
  ------------------
  744|  14.5k|    ChangeSection(Section, Subsection);
  745|  14.5k|    SectionStack.back().first = MCSectionSubPair(Section, Subsection);
  746|  14.5k|    assert(!Section->hasEnded() && "Section already ended");
  ------------------
  |  Branch (746:5): [True: 14.5k, False: 0]
  |  Branch (746:5): [True: 14.5k, Folded]
  |  Branch (746:5): [True: 14.5k, False: 0]
  ------------------
  747|  14.5k|    MCSymbol *Sym = Section->getBeginSymbol();
  748|  14.5k|    if (Sym && !Sym->isInSection())
  ------------------
  |  Branch (748:9): [True: 14.5k, False: 0]
  |  Branch (748:16): [True: 13.9k, False: 563]
  ------------------
  749|  13.9k|      EmitLabel(Sym);
  750|  14.5k|  }
  751|  15.4k|}

_ZN7llvm_ks15MCSubtargetInfo19InitMCProcessorInfoENS_9StringRefES1_:
   26|  13.6k|void MCSubtargetInfo::InitMCProcessorInfo(StringRef CPU, StringRef FS) {
   27|  13.6k|  FeatureBits = getFeatures(CPU, FS, ProcDesc, ProcFeatures);
   28|  13.6k|  if (!CPU.empty() && ProcSchedModels)
  ------------------
  |  Branch (28:7): [True: 13.6k, False: 0]
  |  Branch (28:23): [True: 13.6k, False: 0]
  ------------------
   29|  13.6k|      CPUSchedModel = &getSchedModelForCPU(CPU);
   30|  13.6k|}
_ZN7llvm_ks15MCSubtargetInfoC2ERKNS_6TripleENS_9StringRefES4_NS_8ArrayRefINS_18SubtargetFeatureKVEEES7_PKNS_15SubtargetInfoKVE:
   40|  13.6k|    : TargetTriple(TT), CPU(C), ProcFeatures(PF), ProcDesc(PD),
   41|  13.6k|    ProcSchedModels(ProcSched) {
   42|  13.6k|  InitMCProcessorInfo(CPU, FS);
   43|  13.6k|}
_ZNK7llvm_ks15MCSubtargetInfo19getSchedModelForCPUENS_9StringRefE:
   69|  13.6k|const MCSchedModel &MCSubtargetInfo::getSchedModelForCPU(StringRef CPU) const {
   70|  13.6k|  assert(ProcSchedModels && "Processor machine model not available!");
  ------------------
  |  Branch (70:3): [True: 13.6k, False: 0]
  |  Branch (70:3): [True: 13.6k, Folded]
  |  Branch (70:3): [True: 13.6k, False: 0]
  ------------------
   71|       |
   72|  13.6k|  ArrayRef<SubtargetInfoKV> SchedModels(ProcSchedModels, ProcDesc.size());
   73|       |
   74|  13.6k|  assert(std::is_sorted(SchedModels.begin(), SchedModels.end(),
  ------------------
  |  Branch (74:3): [True: 13.6k, False: 0]
  |  Branch (74:3): [True: 13.6k, Folded]
  |  Branch (74:3): [True: 13.6k, False: 0]
  ------------------
   75|  13.6k|                    [](const SubtargetInfoKV &LHS, const SubtargetInfoKV &RHS) {
   76|  13.6k|                      return strcmp(LHS.Key, RHS.Key) < 0;
   77|  13.6k|                    }) &&
   78|  13.6k|         "Processor machine model table is not sorted");
   79|       |
   80|       |  // Find entry
   81|  13.6k|  auto Found =
   82|  13.6k|    std::lower_bound(SchedModels.begin(), SchedModels.end(), CPU);
   83|       |#if 0
   84|       |  if (Found == SchedModels.end() || StringRef(Found->Key) != CPU) {
   85|       |    if (CPU != "help") // Don't error if the user asked for help.
   86|       |      errs() << "'" << CPU
   87|       |             << "' is not a recognized processor for this target"
   88|       |             << " (ignoring processor)\n";
   89|       |    return MCSchedModel::GetDefaultSchedModel();
   90|       |  }
   91|       |#endif
   92|  13.6k|  assert(Found->Value && "Missing processor SchedModel value");
  ------------------
  |  Branch (92:3): [True: 13.6k, False: 0]
  |  Branch (92:3): [True: 13.6k, Folded]
  |  Branch (92:3): [True: 13.6k, False: 0]
  ------------------
   93|  13.6k|  return *(const MCSchedModel *)Found->Value;
   94|  13.6k|}
MCSubtargetInfo.cpp:_ZL11getFeaturesN7llvm_ks9StringRefES0_NS_8ArrayRefINS_18SubtargetFeatureKVEEES3_:
   21|  13.6k|                                 ArrayRef<SubtargetFeatureKV> ProcFeatures) {
   22|  13.6k|  SubtargetFeatures Features(FS);
   23|  13.6k|  return Features.getFeatureBits(CPU, ProcDesc, ProcFeatures);
   24|  13.6k|}

_ZN7llvm_ks8MCSymbolnwEmPKNS_14StringMapEntryIbEERNS_9MCContextE:
   26|   218k|                             MCContext &Ctx) {
   27|       |  // We may need more space for a Name to account for alignment.  So allocate
   28|       |  // space for the storage type and not the name pointer.
   29|   218k|  size_t Size = s + (Name ? sizeof(NameEntryStorageTy) : 0);
  ------------------
  |  Branch (29:22): [True: 218k, False: 0]
  ------------------
   30|       |
   31|       |  // For safety, ensure that the alignment of a pointer is enough for an
   32|       |  // MCSymbol.  This also ensures we don't need padding between the name and
   33|       |  // symbol.
   34|   218k|  static_assert((unsigned)AlignOf<MCSymbol>::Alignment <=
   35|   218k|                AlignOf<NameEntryStorageTy>::Alignment,
   36|   218k|                "Bad alignment of MCSymbol");
   37|   218k|  void *Storage = Ctx.allocate(Size, alignOf<NameEntryStorageTy>());
   38|   218k|  NameEntryStorageTy *Start = static_cast<NameEntryStorageTy*>(Storage);
   39|   218k|  NameEntryStorageTy *End = Start + (Name ? 1 : 0);
  ------------------
  |  Branch (39:38): [True: 218k, False: 0]
  ------------------
   40|   218k|  return End;
   41|   218k|}
_ZN7llvm_ks8MCSymbol16setVariableValueEPKNS_6MCExprERb:
   43|  21.3k|void MCSymbol::setVariableValue(const MCExpr *Value, bool &valid) {
   44|  21.3k|  valid = true;
   45|       |  //assert(!IsUsed && "Cannot set a variable that has already been used.");
   46|       |  //assert(Value && "Invalid variable value!");
   47|       |  //assert((SymbolContents == SymContentsUnset ||
   48|       |  //        SymbolContents == SymContentsVariable) &&
   49|       |  //       "Cannot give common/offset symbol a variable value");
   50|  21.3k|  if (IsUsed || !Value || (SymbolContents != SymContentsUnset &&
  ------------------
  |  Branch (50:7): [True: 2.19k, False: 19.1k]
  |  Branch (50:17): [True: 0, False: 19.1k]
  |  Branch (50:28): [True: 17.3k, False: 1.82k]
  ------------------
   51|  17.3k|              SymbolContents != SymContentsVariable)) {
  ------------------
  |  Branch (51:15): [True: 67, False: 17.2k]
  ------------------
   52|  2.25k|      valid = false;
   53|  2.25k|      return;
   54|  2.25k|  }
   55|  19.0k|  this->Value = Value;
   56|  19.0k|  SymbolContents = SymContentsVariable;
   57|  19.0k|  setUndefined();
   58|  19.0k|}

_ZNK7llvm_ks11MCSymbolELF10setBindingEj:
   43|    811|void MCSymbolELF::setBinding(unsigned Binding) const {
   44|    811|  setIsBindingSet();
   45|    811|  unsigned Val;
   46|    811|  switch (Binding) {
   47|      0|  default:
  ------------------
  |  Branch (47:3): [True: 0, False: 811]
  ------------------
   48|      0|    llvm_unreachable("Unsupported Binding");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
   49|    347|  case ELF::STB_LOCAL:
  ------------------
  |  Branch (49:3): [True: 347, False: 464]
  ------------------
   50|    347|    Val = 0;
   51|    347|    break;
   52|    464|  case ELF::STB_GLOBAL:
  ------------------
  |  Branch (52:3): [True: 464, False: 347]
  ------------------
   53|    464|    Val = 1;
   54|    464|    break;
   55|      0|  case ELF::STB_WEAK:
  ------------------
  |  Branch (55:3): [True: 0, False: 811]
  ------------------
   56|      0|    Val = 2;
   57|      0|    break;
   58|      0|  case ELF::STB_GNU_UNIQUE:
  ------------------
  |  Branch (58:3): [True: 0, False: 811]
  ------------------
   59|      0|    Val = 3;
   60|      0|    break;
   61|    811|  }
   62|    811|  uint32_t OtherFlags = getFlags() & ~(0x3 << ELF_STB_Shift);
   63|    811|  setFlags(OtherFlags | (Val << ELF_STB_Shift));
   64|    811|}
_ZNK7llvm_ks11MCSymbolELF10getBindingEv:
   66|  6.38k|unsigned MCSymbolELF::getBinding() const {
   67|  6.38k|  if (isBindingSet()) {
  ------------------
  |  Branch (67:7): [True: 827, False: 5.55k]
  ------------------
   68|    827|    uint32_t Val = (getFlags() & (0x3 << ELF_STB_Shift)) >> ELF_STB_Shift;
   69|    827|    switch (Val) {
   70|      0|    default:
  ------------------
  |  Branch (70:5): [True: 0, False: 827]
  ------------------
   71|      0|      llvm_unreachable("Invalid value");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
   72|     63|    case 0:
  ------------------
  |  Branch (72:5): [True: 63, False: 764]
  ------------------
   73|     63|      return ELF::STB_LOCAL;
   74|    764|    case 1:
  ------------------
  |  Branch (74:5): [True: 764, False: 63]
  ------------------
   75|    764|      return ELF::STB_GLOBAL;
   76|      0|    case 2:
  ------------------
  |  Branch (76:5): [True: 0, False: 827]
  ------------------
   77|      0|      return ELF::STB_WEAK;
   78|      0|    case 3:
  ------------------
  |  Branch (78:5): [True: 0, False: 827]
  ------------------
   79|      0|      return ELF::STB_GNU_UNIQUE;
   80|    827|    }
   81|    827|  }
   82|       |
   83|  5.55k|  if (isDefined())
  ------------------
  |  Branch (83:7): [True: 5.23k, False: 320]
  ------------------
   84|  5.23k|    return ELF::STB_LOCAL;
   85|    320|  if (isUsedInReloc())
  ------------------
  |  Branch (85:7): [True: 0, False: 320]
  ------------------
   86|      0|    return ELF::STB_GLOBAL;
   87|    320|  if (isWeakrefUsedInReloc())
  ------------------
  |  Branch (87:7): [True: 0, False: 320]
  ------------------
   88|      0|    return ELF::STB_WEAK;
   89|    320|  if (isSignature())
  ------------------
  |  Branch (89:7): [True: 0, False: 320]
  ------------------
   90|      0|    return ELF::STB_LOCAL;
   91|    320|  return ELF::STB_GLOBAL;
   92|    320|}
_ZNK7llvm_ks11MCSymbolELF7setTypeEj:
   94|  20.1k|void MCSymbolELF::setType(unsigned Type) const {
   95|  20.1k|  unsigned Val;
   96|  20.1k|  switch (Type) {
   97|      0|  default:
  ------------------
  |  Branch (97:3): [True: 0, False: 20.1k]
  ------------------
   98|      0|    llvm_unreachable("Unsupported Binding");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
   99|      0|  case ELF::STT_NOTYPE:
  ------------------
  |  Branch (99:3): [True: 0, False: 20.1k]
  ------------------
  100|      0|    Val = 0;
  101|      0|    break;
  102|    827|  case ELF::STT_OBJECT:
  ------------------
  |  Branch (102:3): [True: 827, False: 19.3k]
  ------------------
  103|    827|    Val = 1;
  104|    827|    break;
  105|      0|  case ELF::STT_FUNC:
  ------------------
  |  Branch (105:3): [True: 0, False: 20.1k]
  ------------------
  106|      0|    Val = 2;
  107|      0|    break;
  108|  13.9k|  case ELF::STT_SECTION:
  ------------------
  |  Branch (108:3): [True: 13.9k, False: 6.16k]
  ------------------
  109|  13.9k|    Val = 3;
  110|  13.9k|    break;
  111|      0|  case ELF::STT_COMMON:
  ------------------
  |  Branch (111:3): [True: 0, False: 20.1k]
  ------------------
  112|      0|    Val = 4;
  113|      0|    break;
  114|  5.34k|  case ELF::STT_TLS:
  ------------------
  |  Branch (114:3): [True: 5.34k, False: 14.7k]
  ------------------
  115|  5.34k|    Val = 5;
  116|  5.34k|    break;
  117|      0|  case ELF::STT_GNU_IFUNC:
  ------------------
  |  Branch (117:3): [True: 0, False: 20.1k]
  ------------------
  118|      0|    Val = 6;
  119|      0|    break;
  120|  20.1k|  }
  121|  20.1k|  uint32_t OtherFlags = getFlags() & ~(0x7 << ELF_STT_Shift);
  122|  20.1k|  setFlags(OtherFlags | (Val << ELF_STT_Shift));
  123|  20.1k|}
_ZNK7llvm_ks11MCSymbolELF7getTypeEv:
  125|    204|unsigned MCSymbolELF::getType() const {
  126|    204|  uint32_t Val = (getFlags() & (0x7 << ELF_STT_Shift)) >> ELF_STT_Shift;
  127|    204|  switch (Val) {
  128|      0|  default:
  ------------------
  |  Branch (128:3): [True: 0, False: 204]
  ------------------
  129|      0|    llvm_unreachable("Invalid value");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  130|    204|  case 0:
  ------------------
  |  Branch (130:3): [True: 204, False: 0]
  ------------------
  131|    204|    return ELF::STT_NOTYPE;
  132|      0|  case 1:
  ------------------
  |  Branch (132:3): [True: 0, False: 204]
  ------------------
  133|      0|    return ELF::STT_OBJECT;
  134|      0|  case 2:
  ------------------
  |  Branch (134:3): [True: 0, False: 204]
  ------------------
  135|      0|    return ELF::STT_FUNC;
  136|      0|  case 3:
  ------------------
  |  Branch (136:3): [True: 0, False: 204]
  ------------------
  137|      0|    return ELF::STT_SECTION;
  138|      0|  case 4:
  ------------------
  |  Branch (138:3): [True: 0, False: 204]
  ------------------
  139|      0|    return ELF::STT_COMMON;
  140|      0|  case 5:
  ------------------
  |  Branch (140:3): [True: 0, False: 204]
  ------------------
  141|      0|    return ELF::STT_TLS;
  142|      0|  case 6:
  ------------------
  |  Branch (142:3): [True: 0, False: 204]
  ------------------
  143|      0|    return ELF::STT_GNU_IFUNC;
  144|    204|  }
  145|    204|}
_ZNK7llvm_ks11MCSymbolELF20isWeakrefUsedInRelocEv:
  180|    320|bool MCSymbolELF::isWeakrefUsedInReloc() const {
  181|    320|  return getFlags() & (0x1 << ELF_WeakrefUsedInReloc_Shift);
  182|    320|}
_ZNK7llvm_ks11MCSymbolELF11isSignatureEv:
  189|    320|bool MCSymbolELF::isSignature() const {
  190|    320|  return getFlags() & (0x1 << ELF_IsSignature_Shift);
  191|    320|}
_ZNK7llvm_ks11MCSymbolELF15setIsBindingSetEv:
  193|    811|void MCSymbolELF::setIsBindingSet() const {
  194|    811|  uint32_t OtherFlags = getFlags() & ~(0x1 << ELF_BindingSet_Shift);
  195|    811|  setFlags(OtherFlags | (1 << ELF_BindingSet_Shift));
  196|    811|}
_ZNK7llvm_ks11MCSymbolELF12isBindingSetEv:
  198|  7.20k|bool MCSymbolELF::isBindingSet() const {
  199|  7.20k|  return getFlags() & (0x1 << ELF_BindingSet_Shift);
  200|  7.20k|}

_ZN7llvm_ks15MCTargetOptionsC2Ev:
   16|  27.2k|    : MCRelaxAll(false),
   17|  27.2k|      MCFatalWarnings(false), MCNoWarn(false),
   18|  27.2k|      DwarfVersion(0), ABIName() {}
_ZNK7llvm_ks15MCTargetOptions10getABINameEv:
   20|  13.6k|StringRef MCTargetOptions::getABIName() const {
   21|  13.6k|  return ABIName;
   22|  13.6k|}

_ZN7llvm_ks18StringTableBuilderC2ENS0_4KindE:
   19|  13.6k|StringTableBuilder::StringTableBuilder(Kind K) : K(K) {
   20|       |  // Account for leading bytes in table so that offsets returned from add are
   21|       |  // correct.
   22|  13.6k|  switch (K) {
  ------------------
  |  Branch (22:11): [True: 13.6k, False: 0]
  ------------------
   23|      0|  case RAW:
  ------------------
  |  Branch (23:3): [True: 0, False: 13.6k]
  ------------------
   24|      0|    Size = 0;
   25|      0|    break;
   26|      0|  case MachO:
  ------------------
  |  Branch (26:3): [True: 0, False: 13.6k]
  ------------------
   27|  13.6k|  case ELF:
  ------------------
  |  Branch (27:3): [True: 13.6k, False: 0]
  ------------------
   28|  13.6k|    Size = 1;
   29|  13.6k|    break;
   30|      0|  case WinCOFF:
  ------------------
  |  Branch (30:3): [True: 0, False: 13.6k]
  ------------------
   31|      0|    Size = 4;
   32|      0|    break;
   33|  13.6k|  }
   34|  13.6k|}
_ZN7llvm_ks18StringTableBuilder3addENS_9StringRefE:
  177|  11.3k|size_t StringTableBuilder::add(StringRef S) {
  178|  11.3k|  assert(!isFinalized());
  ------------------
  |  Branch (178:3): [True: 11.3k, False: 0]
  ------------------
  179|  11.3k|  auto P = StringIndexMap.insert(std::make_pair(S, Size));
  180|  11.3k|  if (P.second)
  ------------------
  |  Branch (180:7): [True: 11.2k, False: 83]
  ------------------
  181|  11.2k|    Size += S.size() + (K != RAW);
  182|  11.3k|  return P.first->second;
  183|  11.3k|}

_ZN7llvm_ks17SubtargetFeaturesC2ENS_9StringRefE:
  120|  13.6k|SubtargetFeatures::SubtargetFeatures(StringRef Initial) {
  121|       |  // Break up string into separate features
  122|  13.6k|  Split(Features, Initial);
  123|  13.6k|}
_ZN7llvm_ks17SubtargetFeatures14getFeatureBitsENS_9StringRefENS_8ArrayRefINS_18SubtargetFeatureKVEEES4_:
  225|  13.6k|                                  ArrayRef<SubtargetFeatureKV> FeatureTable) {
  226|       |
  227|  13.6k|  if (CPUTable.empty() || FeatureTable.empty())
  ------------------
  |  Branch (227:7): [True: 0, False: 13.6k]
  |  Branch (227:27): [True: 0, False: 13.6k]
  ------------------
  228|      0|    return FeatureBitset();
  229|       |
  230|  13.6k|#ifndef NDEBUG
  231|  13.6k|  assert(std::is_sorted(std::begin(CPUTable), std::end(CPUTable)) &&
  ------------------
  |  Branch (231:3): [True: 13.6k, False: 0]
  |  Branch (231:3): [True: 13.6k, Folded]
  |  Branch (231:3): [True: 13.6k, False: 0]
  ------------------
  232|  13.6k|         "CPU table is not sorted");
  233|  13.6k|  assert(std::is_sorted(std::begin(FeatureTable), std::end(FeatureTable)) &&
  ------------------
  |  Branch (233:3): [True: 13.6k, False: 0]
  |  Branch (233:3): [True: 13.6k, Folded]
  |  Branch (233:3): [True: 13.6k, False: 0]
  ------------------
  234|  13.6k|         "CPU features table is not sorted");
  235|  13.6k|#endif
  236|       |  // Resulting bits
  237|  13.6k|  FeatureBitset Bits;
  238|       |
  239|       |  // Check if help is needed
  240|  13.6k|  if (CPU == "help")
  ------------------
  |  Branch (240:7): [True: 0, False: 13.6k]
  ------------------
  241|      0|    Help(CPUTable, FeatureTable);
  242|       |
  243|       |  // Find CPU entry if CPU name is specified.
  244|  13.6k|  else if (!CPU.empty()) {
  ------------------
  |  Branch (244:12): [True: 13.6k, False: 0]
  ------------------
  245|  13.6k|    const SubtargetFeatureKV *CPUEntry = Find(CPU, CPUTable);
  246|       |
  247|       |    // If there is a match
  248|  13.6k|    if (CPUEntry) {
  ------------------
  |  Branch (248:9): [True: 13.6k, False: 0]
  ------------------
  249|       |      // Set base feature bits
  250|  13.6k|      Bits = CPUEntry->Value;
  251|       |
  252|       |      // Set the feature implied by this CPU feature, if any.
  253|   109k|      for (auto &FE : FeatureTable) {
  ------------------
  |  Branch (253:21): [True: 109k, False: 13.6k]
  ------------------
  254|   109k|        if ((CPUEntry->Value & FE.Value).any())
  ------------------
  |  Branch (254:13): [True: 81.7k, False: 27.2k]
  ------------------
  255|  81.7k|          SetImpliedBits(Bits, &FE, FeatureTable);
  256|   109k|      }
  257|  13.6k|    } else {
  258|      0|      errs() << "'" << CPU
  259|      0|             << "' is not a recognized processor for this target"
  260|      0|             << " (ignoring processor)\n";
  261|      0|    }
  262|  13.6k|  }
  263|       |
  264|       |  // Iterate through each feature
  265|  13.6k|  for (auto &Feature : Features) {
  ------------------
  |  Branch (265:22): [True: 0, False: 13.6k]
  ------------------
  266|       |    // Check for help
  267|      0|    if (Feature == "+help")
  ------------------
  |  Branch (267:9): [True: 0, False: 0]
  ------------------
  268|      0|      Help(CPUTable, FeatureTable);
  269|       |
  270|      0|    ApplyFeatureFlag(Bits, Feature, FeatureTable);
  271|      0|  }
  272|       |
  273|  13.6k|  return Bits;
  274|  13.6k|}
SubtargetFeature.cpp:_ZL5SplitRNSt3__16vectorINS_12basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEENS4_IS6_EEEEN7llvm_ks9StringRefE:
   57|  13.6k|static void Split(std::vector<std::string> &V, StringRef S) {
   58|  13.6k|  SmallVector<StringRef, 3> Tmp;
   59|  13.6k|  S.split(Tmp, ',', -1, false /* KeepEmpty */);
   60|  13.6k|  V.assign(Tmp.begin(), Tmp.end());
   61|  13.6k|}
SubtargetFeature.cpp:_ZL4FindN7llvm_ks9StringRefENS_8ArrayRefINS_18SubtargetFeatureKVEEE:
   74|  13.6k|                                      ArrayRef<SubtargetFeatureKV> A) {
   75|       |  // Binary search the array
   76|  13.6k|  auto F = std::lower_bound(A.begin(), A.end(), S);
   77|       |  // If not found then return NULL
   78|  13.6k|  if (F == A.end() || StringRef(F->Key) != S) return nullptr;
  ------------------
  |  Branch (78:7): [True: 0, False: 13.6k]
  |  Branch (78:7): [True: 0, False: 13.6k]
  |  Branch (78:23): [True: 0, False: 13.6k]
  ------------------
   79|       |  // Return the found array item
   80|  13.6k|  return F;
   81|  13.6k|}
SubtargetFeature.cpp:_ZL14SetImpliedBitsRN7llvm_ks13FeatureBitsetEPKNS_18SubtargetFeatureKVENS_8ArrayRefIS2_EE:
  135|  95.4k|                    ArrayRef<SubtargetFeatureKV> FeatureTable) {
  136|   763k|  for (auto &FE : FeatureTable) {
  ------------------
  |  Branch (136:17): [True: 763k, False: 95.4k]
  ------------------
  137|   763k|    if (FeatureEntry->Value == FE.Value) continue;
  ------------------
  |  Branch (137:9): [True: 95.4k, False: 668k]
  ------------------
  138|       |
  139|   668k|    if ((FeatureEntry->Implies & FE.Value).any()) {
  ------------------
  |  Branch (139:9): [True: 13.6k, False: 654k]
  ------------------
  140|  13.6k|      Bits |= FE.Value;
  141|  13.6k|      SetImpliedBits(Bits, &FE, FeatureTable);
  142|  13.6k|    }
  143|   668k|  }
  144|  95.4k|}

_Z16interpretDecimalPKcS0_P11decimalInfo:
  277|  27.3k|{
  278|  27.3k|  StringRef::iterator dot = end;
  279|  27.3k|  StringRef::iterator p = skipLeadingZeroesAndAnyDot (begin, end, &dot);
  280|  27.3k|  APFloat::opStatus fp;
  281|       |
  282|  27.3k|  D->firstSigDigit = p;
  283|  27.3k|  D->exponent = 0;
  284|  27.3k|  D->normalizedExponent = 0;
  285|       |
  286|   194k|  for (; p != end; ++p) {
  ------------------
  |  Branch (286:10): [True: 172k, False: 22.0k]
  ------------------
  287|   172k|    if (*p == '.') {
  ------------------
  |  Branch (287:9): [True: 0, False: 172k]
  ------------------
  288|       |      //assert(dot == end && "String contains multiple dots");
  289|      0|      if (dot != end)
  ------------------
  |  Branch (289:11): [True: 0, False: 0]
  ------------------
  290|      0|          return APFloat::opInvalidOp;
  291|      0|      dot = p++;
  292|      0|      if (p == end)
  ------------------
  |  Branch (292:11): [True: 0, False: 0]
  ------------------
  293|      0|        break;
  294|      0|    }
  295|   172k|    if (decDigitValue(*p) >= 10U)
  ------------------
  |  Branch (295:9): [True: 5.32k, False: 167k]
  ------------------
  296|  5.32k|      break;
  297|   172k|  }
  298|       |
  299|  27.3k|  if (p != end) {
  ------------------
  |  Branch (299:7): [True: 5.32k, False: 22.0k]
  ------------------
  300|       |    //assert((*p == 'e' || *p == 'E') && "Invalid character in significand");
  301|  5.32k|    if (*p != 'e' && *p != 'E')
  ------------------
  |  Branch (301:9): [True: 3.89k, False: 1.42k]
  |  Branch (301:22): [True: 4, False: 3.89k]
  ------------------
  302|      4|        return APFloat::opInvalidOp;
  303|       |    //assert(p != begin && "Significand has no digits");
  304|  5.31k|    if (p == begin)
  ------------------
  |  Branch (304:9): [True: 0, False: 5.31k]
  ------------------
  305|      0|        return APFloat::opInvalidOp;
  306|       |    //assert((dot == end || p - begin != 1) && "Significand has no digits");
  307|  5.31k|    if (dot != end && p - begin == 1)
  ------------------
  |  Branch (307:9): [True: 5.31k, False: 5]
  |  Branch (307:23): [True: 0, False: 5.31k]
  ------------------
  308|      0|        return APFloat::opInvalidOp;
  309|       |
  310|       |    /* p points to the first non-digit in the string */
  311|  5.31k|    D->exponent = readExponent(p + 1, end, fp); // qq
  312|  5.31k|    if (fp)
  ------------------
  |  Branch (312:9): [True: 499, False: 4.81k]
  ------------------
  313|    499|        return fp;
  314|       |
  315|       |    /* Implied decimal point?  */
  316|  4.81k|    if (dot == end)
  ------------------
  |  Branch (316:9): [True: 2, False: 4.81k]
  ------------------
  317|      2|      dot = p;
  318|  4.81k|  }
  319|       |
  320|       |  /* If number is all zeroes accept any exponent.  */
  321|  26.8k|  if (p != D->firstSigDigit) {
  ------------------
  |  Branch (321:7): [True: 25.2k, False: 1.61k]
  ------------------
  322|       |    /* Drop insignificant trailing zeroes.  */
  323|  25.2k|    if (p != begin) {
  ------------------
  |  Branch (323:9): [True: 25.2k, False: 0]
  ------------------
  324|  25.2k|      do
  325|  25.2k|        do
  326|  40.3k|          p--;
  327|  40.3k|        while (p != begin && *p == '0');
  ------------------
  |  Branch (327:16): [True: 38.3k, False: 1.98k]
  |  Branch (327:30): [True: 15.1k, False: 23.2k]
  ------------------
  328|  25.2k|      while (p != begin && *p == '.');
  ------------------
  |  Branch (328:14): [True: 23.2k, False: 1.98k]
  |  Branch (328:28): [True: 0, False: 23.2k]
  ------------------
  329|  25.2k|    }
  330|       |
  331|       |    /* Adjust the exponents for any decimal point.  */
  332|  25.2k|    D->exponent += static_cast<APFloat::ExponentType>((dot - p) - (dot > p));
  333|  25.2k|    D->normalizedExponent = (D->exponent +
  334|  25.2k|              static_cast<APFloat::ExponentType>((p - D->firstSigDigit)
  335|  25.2k|                                      - (dot > D->firstSigDigit && dot < p)));
  ------------------
  |  Branch (335:42): [True: 2.85k, False: 22.3k]
  |  Branch (335:68): [True: 0, False: 2.85k]
  ------------------
  336|  25.2k|  }
  337|       |
  338|  26.8k|  D->lastSigDigit = p;
  339|       |
  340|  26.8k|  return APFloat::opOK;
  341|  27.3k|}
_ZN7llvm_ks7APFloat10initializeEPKNS_12fltSemanticsE:
  614|  85.2k|{
  615|  85.2k|  unsigned int count;
  616|       |
  617|  85.2k|  semantics = ourSemantics;
  618|  85.2k|  count = partCount();
  619|  85.2k|  if (count > 1)
  ------------------
  |  Branch (619:7): [True: 3.11k, False: 82.1k]
  ------------------
  620|  3.11k|    significand.parts = new integerPart[count];
  621|  85.2k|}
_ZN7llvm_ks7APFloat15freeSignificandEv:
  625|  86.4k|{
  626|  86.4k|  if (needsCleanup())
  ------------------
  |  Branch (626:7): [True: 3.11k, False: 83.3k]
  ------------------
  627|  3.11k|    delete [] significand.parts;
  628|  86.4k|}
_ZN7llvm_ks7APFloat7makeNaNEbbPKNS_5APIntE:
  656|    236|{
  657|    236|  category = fcNaN;
  658|    236|  sign = Negative;
  659|       |
  660|    236|  integerPart *significand = significandParts();
  661|    236|  unsigned numParts = partCount();
  662|       |
  663|       |  // Set the significand bits to the fill.
  664|    236|  if (!fill || fill->getNumWords() < numParts)
  ------------------
  |  Branch (664:7): [True: 0, False: 236]
  |  Branch (664:16): [True: 0, False: 236]
  ------------------
  665|      0|    APInt::tcSet(significand, 0, numParts);
  666|    236|  if (fill) {
  ------------------
  |  Branch (666:7): [True: 236, False: 0]
  ------------------
  667|    236|    APInt::tcAssign(significand, fill->getRawData(),
  668|    236|                    std::min(fill->getNumWords(), numParts));
  669|       |
  670|       |    // Zero out the excess bits of the significand.
  671|    236|    unsigned bitsToPreserve = semantics->precision - 1;
  672|    236|    unsigned part = bitsToPreserve / 64;
  673|    236|    bitsToPreserve %= 64;
  674|    236|    significand[part] &= ((1ULL << bitsToPreserve) - 1);
  675|    236|    for (part++; part != numParts; ++part)
  ------------------
  |  Branch (675:18): [True: 0, False: 236]
  ------------------
  676|      0|      significand[part] = 0;
  677|    236|  }
  678|       |
  679|    236|  unsigned QNaNBit = semantics->precision - 2;
  680|       |
  681|    236|  if (SNaN) {
  ------------------
  |  Branch (681:7): [True: 0, False: 236]
  ------------------
  682|       |    // We always have to clear the QNaN bit to make it an SNaN.
  683|      0|    APInt::tcClearBit(significand, QNaNBit);
  684|       |
  685|       |    // If there are no bits set in the payload, we have to set
  686|       |    // *something* to make it a NaN instead of an infinity;
  687|       |    // conventionally, this is the next bit down from the QNaN bit.
  688|      0|    if (APInt::tcIsZero(significand, numParts))
  ------------------
  |  Branch (688:9): [True: 0, False: 0]
  ------------------
  689|      0|      APInt::tcSetBit(significand, QNaNBit - 1);
  690|    236|  } else {
  691|       |    // We always have to set the QNaN bit to make it a QNaN.
  692|    236|    APInt::tcSetBit(significand, QNaNBit);
  693|    236|  }
  694|       |
  695|       |  // For x87 extended precision, we want to make a NaN, not a
  696|       |  // pseudo-NaN.  Maybe we should expose the ability to make
  697|       |  // pseudo-NaNs?
  698|    236|  if (semantics == &APFloat::x87DoubleExtended)
  ------------------
  |  Branch (698:7): [True: 0, False: 236]
  ------------------
  699|      0|    APInt::tcSetBit(significand, QNaNBit + 1);
  700|    236|}
_ZN7llvm_ks7APFloat7makeNaNERKNS_12fltSemanticsEbbPKNS_5APIntE:
  703|    236|                         const APInt *fill) {
  704|    236|  APFloat value(Sem, uninitialized);
  705|    236|  value.makeNaN(SNaN, Negative, fill);
  706|    236|  return value;
  707|    236|}
_ZN7llvm_ks7APFloataSEOS0_:
  724|  1.19k|APFloat::operator=(APFloat &&rhs) {
  725|  1.19k|  freeSignificand();
  726|       |
  727|  1.19k|  semantics = rhs.semantics;
  728|  1.19k|  significand = rhs.significand;
  729|  1.19k|  exponent = rhs.exponent;
  730|  1.19k|  category = rhs.category;
  731|  1.19k|  sign = rhs.sign;
  732|       |
  733|  1.19k|  rhs.semantics = &Bogus;
  734|  1.19k|  return *this;
  735|  1.19k|}
_ZN7llvm_ks7APFloatC2ERKNS_12fltSemanticsE:
  842|  30.9k|APFloat::APFloat(const fltSemantics &ourSemantics) {
  843|  30.9k|  initialize(&ourSemantics);
  844|  30.9k|  category = fcZero;
  845|  30.9k|  sign = false;
  846|  30.9k|}
_ZN7llvm_ks7APFloatC2ERKNS_12fltSemanticsENS0_16uninitializedTagE:
  848|  26.4k|APFloat::APFloat(const fltSemantics &ourSemantics, uninitializedTag tag) {
  849|       |  // Allocates storage if necessary but does not initialize it.
  850|  26.4k|  initialize(&ourSemantics);
  851|  26.4k|}
_ZN7llvm_ks7APFloatC2ERKNS_12fltSemanticsENS_9StringRefE:
  853|  27.7k|APFloat::APFloat(const fltSemantics &ourSemantics, StringRef text) {
  854|  27.7k|  initialize(&ourSemantics);
  855|  27.7k|  convertFromString(text, rmNearestTiesToEven);
  856|  27.7k|}
_ZN7llvm_ks7APFloatD2Ev:
  868|  85.2k|{
  869|  85.2k|  freeSignificand();
  870|  85.2k|}
_ZNK7llvm_ks7APFloat9partCountEv:
  879|  1.01M|{
  880|  1.01M|  return partCountForBits(semantics->precision + 1);
  881|  1.01M|}
_ZNK7llvm_ks7APFloat16significandPartsEv:
  906|   145k|{
  907|   145k|  return const_cast<APFloat *>(this)->significandParts();
  908|   145k|}
_ZN7llvm_ks7APFloat16significandPartsEv:
  912|   489k|{
  913|   489k|  if (partCount() > 1)
  ------------------
  |  Branch (913:7): [True: 21.6k, False: 468k]
  ------------------
  914|  21.6k|    return significand.parts;
  915|   468k|  else
  916|   468k|    return &significand.part;
  917|   489k|}
_ZN7llvm_ks7APFloat15zeroSignificandEv:
  921|  4.80k|{
  922|  4.80k|  APInt::tcSet(significandParts(), 0, partCount());
  923|  4.80k|}
_ZN7llvm_ks7APFloat20incrementSignificandEv:
  928|  15.2k|{
  929|  15.2k|  integerPart carry;
  930|       |
  931|  15.2k|  carry = APInt::tcIncrement(significandParts(), partCount());
  932|       |
  933|       |  /* Our callers should never cause us to overflow.  */
  934|  15.2k|  assert(carry == 0);
  ------------------
  |  Branch (934:3): [True: 15.2k, False: 0]
  ------------------
  935|  15.2k|  (void)carry;
  936|  15.2k|}
_ZN7llvm_ks7APFloat19multiplySignificandERKS0_PS1_:
  973|  5.08k|{
  974|  5.08k|  unsigned int omsb;        // One, not zero, based MSB.
  975|  5.08k|  unsigned int partsCount, newPartsCount, precision;
  976|  5.08k|  integerPart *lhsSignificand;
  977|  5.08k|  integerPart scratch[4];
  978|  5.08k|  integerPart *fullSignificand;
  979|  5.08k|  lostFraction lost_fraction;
  980|  5.08k|  bool ignored;
  981|       |
  982|  5.08k|  assert(semantics == rhs.semantics);
  ------------------
  |  Branch (982:3): [True: 5.08k, False: 0]
  ------------------
  983|       |
  984|  5.08k|  precision = semantics->precision;
  985|       |
  986|       |  // Allocate space for twice as many bits as the original significand, plus one
  987|       |  // extra bit for the addition to overflow into.
  988|  5.08k|  newPartsCount = partCountForBits(precision * 2 + 1);
  989|       |
  990|  5.08k|  if (newPartsCount > 4)
  ------------------
  |  Branch (990:7): [True: 0, False: 5.08k]
  ------------------
  991|      0|    fullSignificand = new integerPart[newPartsCount];
  992|  5.08k|  else
  993|  5.08k|    fullSignificand = scratch;
  994|       |
  995|  5.08k|  lhsSignificand = significandParts();
  996|  5.08k|  partsCount = partCount();
  997|       |
  998|  5.08k|  APInt::tcFullMultiply(fullSignificand, lhsSignificand,
  999|  5.08k|                        rhs.significandParts(), partsCount, partsCount);
 1000|       |
 1001|  5.08k|  lost_fraction = lfExactlyZero;
 1002|  5.08k|  omsb = APInt::tcMSB(fullSignificand, newPartsCount) + 1;
 1003|  5.08k|  exponent += rhs.exponent;
 1004|       |
 1005|       |  // Assume the operands involved in the multiplication are single-precision
 1006|       |  // FP, and the two multiplicants are:
 1007|       |  //   *this = a23 . a22 ... a0 * 2^e1
 1008|       |  //     rhs = b23 . b22 ... b0 * 2^e2
 1009|       |  // the result of multiplication is:
 1010|       |  //   *this = c48 c47 c46 . c45 ... c0 * 2^(e1+e2)
 1011|       |  // Note that there are three significant bits at the left-hand side of the 
 1012|       |  // radix point: two for the multiplication, and an overflow bit for the
 1013|       |  // addition (that will always be zero at this point). Move the radix point
 1014|       |  // toward left by two bits, and adjust exponent accordingly.
 1015|  5.08k|  exponent += 2;
 1016|       |
 1017|  5.08k|  if (addend && addend->isNonZero()) {
  ------------------
  |  Branch (1017:7): [True: 0, False: 5.08k]
  |  Branch (1017:17): [True: 0, False: 0]
  ------------------
 1018|       |    // The intermediate result of the multiplication has "2 * precision" 
 1019|       |    // signicant bit; adjust the addend to be consistent with mul result.
 1020|       |    //
 1021|      0|    Significand savedSignificand = significand;
 1022|      0|    const fltSemantics *savedSemantics = semantics;
 1023|      0|    fltSemantics extendedSemantics;
 1024|      0|    opStatus status;
 1025|      0|    unsigned int extendedPrecision;
 1026|       |
 1027|       |    // Normalize our MSB to one below the top bit to allow for overflow.
 1028|      0|    extendedPrecision = 2 * precision + 1;
 1029|      0|    if (omsb != extendedPrecision - 1) {
  ------------------
  |  Branch (1029:9): [True: 0, False: 0]
  ------------------
 1030|      0|      assert(extendedPrecision > omsb);
  ------------------
  |  Branch (1030:7): [True: 0, False: 0]
  ------------------
 1031|      0|      APInt::tcShiftLeft(fullSignificand, newPartsCount,
 1032|      0|                         (extendedPrecision - 1) - omsb);
 1033|      0|      exponent -= (extendedPrecision - 1) - omsb;
 1034|      0|    }
 1035|       |
 1036|       |    /* Create new semantics.  */
 1037|      0|    extendedSemantics = *semantics;
 1038|      0|    extendedSemantics.precision = extendedPrecision;
 1039|       |
 1040|      0|    if (newPartsCount == 1)
  ------------------
  |  Branch (1040:9): [True: 0, False: 0]
  ------------------
 1041|      0|      significand.part = fullSignificand[0];
 1042|      0|    else
 1043|      0|      significand.parts = fullSignificand;
 1044|      0|    semantics = &extendedSemantics;
 1045|       |
 1046|      0|    APFloat extendedAddend(*addend);
 1047|      0|    status = extendedAddend.convert(extendedSemantics, rmTowardZero, &ignored);
 1048|      0|    assert(status == opOK);
  ------------------
  |  Branch (1048:5): [True: 0, False: 0]
  ------------------
 1049|      0|    (void)status;
 1050|       |
 1051|       |    // Shift the significand of the addend right by one bit. This guarantees
 1052|       |    // that the high bit of the significand is zero (same as fullSignificand),
 1053|       |    // so the addition will overflow (if it does overflow at all) into the top bit.
 1054|      0|    lost_fraction = extendedAddend.shiftSignificandRight(1);
 1055|      0|    assert(lost_fraction == lfExactlyZero &&
  ------------------
  |  Branch (1055:5): [True: 0, False: 0]
  |  Branch (1055:5): [True: 0, Folded]
  |  Branch (1055:5): [True: 0, False: 0]
  ------------------
 1056|      0|           "Lost precision while shifting addend for fused-multiply-add.");
 1057|       |
 1058|      0|    lost_fraction = addOrSubtractSignificand(extendedAddend, false);
 1059|       |
 1060|       |    /* Restore our state.  */
 1061|      0|    if (newPartsCount == 1)
  ------------------
  |  Branch (1061:9): [True: 0, False: 0]
  ------------------
 1062|      0|      fullSignificand[0] = significand.part;
 1063|      0|    significand = savedSignificand;
 1064|      0|    semantics = savedSemantics;
 1065|       |
 1066|      0|    omsb = APInt::tcMSB(fullSignificand, newPartsCount) + 1;
 1067|      0|  }
 1068|       |
 1069|       |  // Convert the result having "2 * precision" significant-bits back to the one
 1070|       |  // having "precision" significant-bits. First, move the radix point from 
 1071|       |  // poision "2*precision - 1" to "precision - 1". The exponent need to be
 1072|       |  // adjusted by "2*precision - 1" - "precision - 1" = "precision".
 1073|  5.08k|  exponent -= precision + 1;
 1074|       |
 1075|       |  // In case MSB resides at the left-hand side of radix point, shift the
 1076|       |  // mantissa right by some amount to make sure the MSB reside right before
 1077|       |  // the radix point (i.e. "MSB . rest-significant-bits").
 1078|       |  //
 1079|       |  // Note that the result is not normalized when "omsb < precision". So, the
 1080|       |  // caller needs to call APFloat::normalize() if normalized value is expected.
 1081|  5.08k|  if (omsb > precision) {
  ------------------
  |  Branch (1081:7): [True: 5.08k, False: 0]
  ------------------
 1082|  5.08k|    unsigned int bits, significantParts;
 1083|  5.08k|    lostFraction lf;
 1084|       |
 1085|  5.08k|    bits = omsb - precision;
 1086|  5.08k|    significantParts = partCountForBits(omsb);
 1087|  5.08k|    lf = shiftRight(fullSignificand, significantParts, bits);
 1088|  5.08k|    lost_fraction = combineLostFractions(lf, lost_fraction);
 1089|  5.08k|    exponent += bits;
 1090|  5.08k|  }
 1091|       |
 1092|  5.08k|  APInt::tcAssign(lhsSignificand, fullSignificand, partsCount);
 1093|       |
 1094|  5.08k|  if (newPartsCount > 4)
  ------------------
  |  Branch (1094:7): [True: 0, False: 5.08k]
  ------------------
 1095|      0|    delete [] fullSignificand;
 1096|       |
 1097|  5.08k|  return lost_fraction;
 1098|  5.08k|}
_ZN7llvm_ks7APFloat17divideSignificandERKS0_:
 1103|  20.2k|{
 1104|  20.2k|  unsigned int bit, i, partsCount;
 1105|  20.2k|  const integerPart *rhsSignificand;
 1106|  20.2k|  integerPart *lhsSignificand, *dividend, *divisor;
 1107|  20.2k|  integerPart scratch[4];
 1108|  20.2k|  lostFraction lost_fraction;
 1109|       |
 1110|  20.2k|  assert(semantics == rhs.semantics);
  ------------------
  |  Branch (1110:3): [True: 20.2k, False: 0]
  ------------------
 1111|       |
 1112|  20.2k|  lhsSignificand = significandParts();
 1113|  20.2k|  rhsSignificand = rhs.significandParts();
 1114|  20.2k|  partsCount = partCount();
 1115|       |
 1116|  20.2k|  if (partsCount > 2)
  ------------------
  |  Branch (1116:7): [True: 427, False: 19.7k]
  ------------------
 1117|    427|    dividend = new integerPart[partsCount * 2];
 1118|  19.7k|  else
 1119|  19.7k|    dividend = scratch;
 1120|       |
 1121|  20.2k|  divisor = dividend + partsCount;
 1122|       |
 1123|       |  /* Copy the dividend and divisor as they will be modified in-place.  */
 1124|  48.0k|  for (i = 0; i < partsCount; i++) {
  ------------------
  |  Branch (1124:15): [True: 27.7k, False: 20.2k]
  ------------------
 1125|  27.7k|    dividend[i] = lhsSignificand[i];
 1126|  27.7k|    divisor[i] = rhsSignificand[i];
 1127|  27.7k|    lhsSignificand[i] = 0;
 1128|  27.7k|  }
 1129|       |
 1130|  20.2k|  exponent -= rhs.exponent;
 1131|       |
 1132|  20.2k|  unsigned int precision = semantics->precision;
 1133|       |
 1134|       |  /* Normalize the divisor.  */
 1135|  20.2k|  bit = precision - APInt::tcMSB(divisor, partsCount) - 1;
 1136|  20.2k|  if (bit) {
  ------------------
  |  Branch (1136:7): [True: 0, False: 20.2k]
  ------------------
 1137|      0|    exponent += bit;
 1138|      0|    APInt::tcShiftLeft(divisor, partsCount, bit);
 1139|      0|  }
 1140|       |
 1141|       |  /* Normalize the dividend.  */
 1142|  20.2k|  bit = precision - APInt::tcMSB(dividend, partsCount) - 1;
 1143|  20.2k|  if (bit) {
  ------------------
  |  Branch (1143:7): [True: 0, False: 20.2k]
  ------------------
 1144|      0|    exponent -= bit;
 1145|      0|    APInt::tcShiftLeft(dividend, partsCount, bit);
 1146|      0|  }
 1147|       |
 1148|       |  /* Ensure the dividend >= divisor initially for the loop below.
 1149|       |     Incidentally, this means that the division loop below is
 1150|       |     guaranteed to set the integer bit to one.  */
 1151|  20.2k|  if (APInt::tcCompare(dividend, divisor, partsCount) < 0) {
  ------------------
  |  Branch (1151:7): [True: 13.1k, False: 7.04k]
  ------------------
 1152|  13.1k|    exponent--;
 1153|  13.1k|    APInt::tcShiftLeft(dividend, partsCount, 1);
 1154|  13.1k|    assert(APInt::tcCompare(dividend, divisor, partsCount) >= 0);
  ------------------
  |  Branch (1154:5): [True: 13.1k, False: 0]
  ------------------
 1155|  13.1k|  }
 1156|       |
 1157|       |  /* Long division.  */
 1158|  1.77M|  for (bit = precision; bit; bit -= 1) {
  ------------------
  |  Branch (1158:25): [True: 1.75M, False: 20.2k]
  ------------------
 1159|  1.75M|    if (APInt::tcCompare(dividend, divisor, partsCount) >= 0) {
  ------------------
  |  Branch (1159:9): [True: 868k, False: 889k]
  ------------------
 1160|   868k|      APInt::tcSubtract(dividend, divisor, 0, partsCount);
 1161|   868k|      APInt::tcSetBit(lhsSignificand, bit - 1);
 1162|   868k|    }
 1163|       |
 1164|  1.75M|    APInt::tcShiftLeft(dividend, partsCount, 1);
 1165|  1.75M|  }
 1166|       |
 1167|       |  /* Figure out the lost fraction.  */
 1168|  20.2k|  int cmp = APInt::tcCompare(dividend, divisor, partsCount);
 1169|       |
 1170|  20.2k|  if (cmp > 0)
  ------------------
  |  Branch (1170:7): [True: 7.44k, False: 12.7k]
  ------------------
 1171|  7.44k|    lost_fraction = lfMoreThanHalf;
 1172|  12.7k|  else if (cmp == 0)
  ------------------
  |  Branch (1172:12): [True: 0, False: 12.7k]
  ------------------
 1173|      0|    lost_fraction = lfExactlyHalf;
 1174|  12.7k|  else if (APInt::tcIsZero(dividend, partsCount))
  ------------------
  |  Branch (1174:12): [True: 1.02k, False: 11.7k]
  ------------------
 1175|  1.02k|    lost_fraction = lfExactlyZero;
 1176|  11.7k|  else
 1177|  11.7k|    lost_fraction = lfLessThanHalf;
 1178|       |
 1179|  20.2k|  if (partsCount > 2)
  ------------------
  |  Branch (1179:7): [True: 427, False: 19.7k]
  ------------------
 1180|    427|    delete [] dividend;
 1181|       |
 1182|  20.2k|  return lost_fraction;
 1183|  20.2k|}
_ZNK7llvm_ks7APFloat14significandMSBEv:
 1187|  94.3k|{
 1188|  94.3k|  return APInt::tcMSB(significandParts(), partCount());
 1189|  94.3k|}
_ZN7llvm_ks7APFloat21shiftSignificandRightEj:
 1200|  3.19k|{
 1201|       |  /* Our exponent should not overflow.  */
 1202|  3.19k|  assert((ExponentType) (exponent + bits) >= exponent);
  ------------------
  |  Branch (1202:3): [True: 3.19k, False: 0]
  ------------------
 1203|       |
 1204|  3.19k|  exponent += bits;
 1205|       |
 1206|  3.19k|  return shiftRight(significandParts(), partCount(), bits);
 1207|  3.19k|}
_ZN7llvm_ks7APFloat20shiftSignificandLeftEj:
 1212|  46.3k|{
 1213|  46.3k|  assert(bits < semantics->precision);
  ------------------
  |  Branch (1213:3): [True: 46.3k, False: 0]
  ------------------
 1214|       |
 1215|  46.3k|  if (bits) {
  ------------------
  |  Branch (1215:7): [True: 46.3k, False: 0]
  ------------------
 1216|  46.3k|    unsigned int partsCount = partCount();
 1217|       |
 1218|  46.3k|    APInt::tcShiftLeft(significandParts(), partsCount, bits);
 1219|  46.3k|    exponent -= bits;
 1220|       |
 1221|       |    assert(!APInt::tcIsZero(significandParts(), partsCount));
  ------------------
  |  Branch (1221:5): [True: 46.3k, False: 0]
  ------------------
 1222|  46.3k|  }
 1223|  46.3k|}
_ZN7llvm_ks7APFloat14handleOverflowENS0_12roundingModeE:
 1254|  1.87k|{
 1255|       |  /* Infinity?  */
 1256|  1.87k|  if (rounding_mode == rmNearestTiesToEven ||
  ------------------
  |  Branch (1256:7): [True: 1.87k, False: 0]
  ------------------
 1257|      0|      rounding_mode == rmNearestTiesToAway ||
  ------------------
  |  Branch (1257:7): [True: 0, False: 0]
  ------------------
 1258|      0|      (rounding_mode == rmTowardPositive && !sign) ||
  ------------------
  |  Branch (1258:8): [True: 0, False: 0]
  |  Branch (1258:45): [True: 0, False: 0]
  ------------------
 1259|  1.87k|      (rounding_mode == rmTowardNegative && sign)) {
  ------------------
  |  Branch (1259:8): [True: 0, False: 0]
  |  Branch (1259:45): [True: 0, False: 0]
  ------------------
 1260|  1.87k|    category = fcInfinity;
 1261|  1.87k|    return (opStatus) (opOverflow | opInexact);
 1262|  1.87k|  }
 1263|       |
 1264|       |  /* Otherwise we become the largest finite number.  */
 1265|      0|  category = fcNormal;
 1266|      0|  exponent = semantics->maxExponent;
 1267|      0|  APInt::tcSetLeastSignificantBits(significandParts(), partCount(),
 1268|      0|                                   semantics->precision);
 1269|       |
 1270|      0|  return opInexact;
 1271|  1.87k|}
_ZNK7llvm_ks7APFloat17roundAwayFromZeroENS0_12roundingModeENS_12lostFractionEj:
 1282|  26.2k|{
 1283|       |  /* NaNs and infinities should not have lost fractions.  */
 1284|  26.2k|  assert(isFiniteNonZero() || category == fcZero);
  ------------------
  |  Branch (1284:3): [True: 26.2k, False: 0]
  |  Branch (1284:3): [True: 0, False: 0]
  |  Branch (1284:3): [True: 26.2k, False: 0]
  ------------------
 1285|       |
 1286|       |  /* Current callers never pass this so we don't handle it.  */
 1287|  26.2k|  assert(lost_fraction != lfExactlyZero);
  ------------------
  |  Branch (1287:3): [True: 26.2k, False: 0]
  ------------------
 1288|       |
 1289|  26.2k|  switch (rounding_mode) {
  ------------------
  |  Branch (1289:11): [True: 26.2k, False: 0]
  ------------------
 1290|      0|  case rmNearestTiesToAway:
  ------------------
  |  Branch (1290:3): [True: 0, False: 26.2k]
  ------------------
 1291|      0|    return lost_fraction == lfExactlyHalf || lost_fraction == lfMoreThanHalf;
  ------------------
  |  Branch (1291:12): [True: 0, False: 0]
  |  Branch (1291:46): [True: 0, False: 0]
  ------------------
 1292|       |
 1293|  26.2k|  case rmNearestTiesToEven:
  ------------------
  |  Branch (1293:3): [True: 26.2k, False: 0]
  ------------------
 1294|  26.2k|    if (lost_fraction == lfMoreThanHalf)
  ------------------
  |  Branch (1294:9): [True: 15.0k, False: 11.2k]
  ------------------
 1295|  15.0k|      return true;
 1296|       |
 1297|       |    /* Our zeroes don't have a significand to test.  */
 1298|  11.2k|    if (lost_fraction == lfExactlyHalf && category != fcZero)
  ------------------
  |  Branch (1298:9): [True: 288, False: 10.9k]
  |  Branch (1298:43): [True: 288, False: 0]
  ------------------
 1299|    288|      return APInt::tcExtractBit(significandParts(), bit);
 1300|       |
 1301|  10.9k|    return false;
 1302|       |
 1303|      0|  case rmTowardZero:
  ------------------
  |  Branch (1303:3): [True: 0, False: 26.2k]
  ------------------
 1304|      0|    return false;
 1305|       |
 1306|      0|  case rmTowardPositive:
  ------------------
  |  Branch (1306:3): [True: 0, False: 26.2k]
  ------------------
 1307|      0|    return !sign;
 1308|       |
 1309|      0|  case rmTowardNegative:
  ------------------
  |  Branch (1309:3): [True: 0, False: 26.2k]
  ------------------
 1310|      0|    return sign;
 1311|  26.2k|  }
 1312|      0|  llvm_unreachable("Invalid rounding mode found");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 1313|  26.2k|}
_ZN7llvm_ks7APFloat9normalizeENS0_12roundingModeENS_12lostFractionE:
 1318|  79.1k|{
 1319|  79.1k|  unsigned int omsb;                /* One, not zero, based MSB.  */
 1320|  79.1k|  int exponentChange;
 1321|       |
 1322|  79.1k|  if (!isFiniteNonZero())
  ------------------
  |  Branch (1322:7): [True: 0, False: 79.1k]
  ------------------
 1323|      0|    return opOK;
 1324|       |
 1325|       |  /* Before rounding normalize the exponent of fcNormal numbers.  */
 1326|  79.1k|  omsb = significandMSB() + 1;
 1327|       |
 1328|  79.1k|  if (omsb) {
  ------------------
  |  Branch (1328:7): [True: 78.0k, False: 1.11k]
  ------------------
 1329|       |    /* OMSB is numbered from 1.  We want to place it in the integer
 1330|       |       bit numbered PRECISION if possible, with a compensating change in
 1331|       |       the exponent.  */
 1332|  78.0k|    exponentChange = omsb - semantics->precision;
 1333|       |
 1334|       |    /* If the resulting exponent is too high, overflow according to
 1335|       |       the rounding mode.  */
 1336|  78.0k|    if (exponent + exponentChange > semantics->maxExponent)
  ------------------
  |  Branch (1336:9): [True: 908, False: 77.1k]
  ------------------
 1337|    908|      return handleOverflow(rounding_mode);
 1338|       |
 1339|       |    /* Subnormal numbers have exponent minExponent, and their MSB
 1340|       |       is forced based on that.  */
 1341|  77.1k|    if (exponent + exponentChange < semantics->minExponent)
  ------------------
  |  Branch (1341:9): [True: 1.72k, False: 75.3k]
  ------------------
 1342|  1.72k|      exponentChange = semantics->minExponent - exponent;
 1343|       |
 1344|       |    /* Shifting left is easy as we don't lose precision.  */
 1345|  77.1k|    if (exponentChange < 0) {
  ------------------
  |  Branch (1345:9): [True: 46.3k, False: 30.7k]
  ------------------
 1346|  46.3k|      assert(lost_fraction == lfExactlyZero);
  ------------------
  |  Branch (1346:7): [True: 46.3k, False: 0]
  ------------------
 1347|       |
 1348|  46.3k|      shiftSignificandLeft(-exponentChange);
 1349|       |
 1350|  46.3k|      return opOK;
 1351|  46.3k|    }
 1352|       |
 1353|  30.7k|    if (exponentChange > 0) {
  ------------------
  |  Branch (1353:9): [True: 3.07k, False: 27.6k]
  ------------------
 1354|  3.07k|      lostFraction lf;
 1355|       |
 1356|       |      /* Shift right and capture any new lost fraction.  */
 1357|  3.07k|      lf = shiftSignificandRight(exponentChange);
 1358|       |
 1359|  3.07k|      lost_fraction = combineLostFractions(lf, lost_fraction);
 1360|       |
 1361|       |      /* Keep OMSB up-to-date.  */
 1362|  3.07k|      if (omsb > (unsigned) exponentChange)
  ------------------
  |  Branch (1362:11): [True: 1.42k, False: 1.64k]
  ------------------
 1363|  1.42k|        omsb -= exponentChange;
 1364|  1.64k|      else
 1365|  1.64k|        omsb = 0;
 1366|  3.07k|    }
 1367|  30.7k|  }
 1368|       |
 1369|       |  /* Now round the number according to rounding_mode given the lost
 1370|       |     fraction.  */
 1371|       |
 1372|       |  /* As specified in IEEE 754, since we do not trap we do not report
 1373|       |     underflow for exact results.  */
 1374|  31.8k|  if (lost_fraction == lfExactlyZero) {
  ------------------
  |  Branch (1374:7): [True: 5.63k, False: 26.2k]
  ------------------
 1375|       |    /* Canonicalize zeroes.  */
 1376|  5.63k|    if (omsb == 0)
  ------------------
  |  Branch (1376:9): [True: 298, False: 5.34k]
  ------------------
 1377|    298|      category = fcZero;
 1378|       |
 1379|  5.63k|    return opOK;
 1380|  5.63k|  }
 1381|       |
 1382|       |  /* Increment the significand if we're rounding away from zero.  */
 1383|  26.2k|  if (roundAwayFromZero(rounding_mode, lost_fraction, 0)) {
  ------------------
  |  Branch (1383:7): [True: 15.2k, False: 11.0k]
  ------------------
 1384|  15.2k|    if (omsb == 0)
  ------------------
  |  Branch (1384:9): [True: 214, False: 15.0k]
  ------------------
 1385|    214|      exponent = semantics->minExponent;
 1386|       |
 1387|  15.2k|    incrementSignificand();
 1388|  15.2k|    omsb = significandMSB() + 1;
 1389|       |
 1390|       |    /* Did the significand increment overflow?  */
 1391|  15.2k|    if (omsb == (unsigned) semantics->precision + 1) {
  ------------------
  |  Branch (1391:9): [True: 125, False: 15.0k]
  ------------------
 1392|       |      /* Renormalize by incrementing the exponent and shifting our
 1393|       |         significand right one.  However if we already have the
 1394|       |         maximum exponent we overflow to infinity.  */
 1395|    125|      if (exponent == semantics->maxExponent) {
  ------------------
  |  Branch (1395:11): [True: 1, False: 124]
  ------------------
 1396|      1|        category = fcInfinity;
 1397|       |
 1398|      1|        return (opStatus) (opOverflow | opInexact);
 1399|      1|      }
 1400|       |
 1401|    124|      shiftSignificandRight(1);
 1402|       |
 1403|    124|      return opInexact;
 1404|    125|    }
 1405|  15.2k|  }
 1406|       |
 1407|       |  /* The normal case - we were and are not denormal, and any
 1408|       |     significand increment above didn't overflow.  */
 1409|  26.1k|  if (omsb == semantics->precision)
  ------------------
  |  Branch (1409:7): [True: 23.5k, False: 2.53k]
  ------------------
 1410|  23.5k|    return opInexact;
 1411|       |
 1412|       |  /* We have a non-zero denormal.  */
 1413|  26.1k|  assert(omsb < semantics->precision);
  ------------------
  |  Branch (1413:3): [True: 2.53k, False: 0]
  ------------------
 1414|       |
 1415|       |  /* Canonicalize zeroes.  */
 1416|  2.53k|  if (omsb == 0)
  ------------------
  |  Branch (1416:7): [True: 2.24k, False: 290]
  ------------------
 1417|  2.24k|    category = fcZero;
 1418|       |
 1419|       |  /* The fcZero case is a denormal that underflowed to zero.  */
 1420|  2.53k|  return (opStatus) (opUnderflow | opInexact);
 1421|  2.53k|}
_ZN7llvm_ks7APFloat10changeSignEv:
 1677|  1.16k|{
 1678|       |  /* Look mummy, this one's easy.  */
 1679|  1.16k|  sign = !sign;
 1680|  1.16k|}
_ZN7llvm_ks7APFloat24convertFromUnsignedPartsEPKmjNS0_12roundingModeE:
 2297|  50.5k|{
 2298|  50.5k|  unsigned int omsb, precision, dstCount;
 2299|  50.5k|  integerPart *dst;
 2300|  50.5k|  lostFraction lost_fraction;
 2301|       |
 2302|  50.5k|  category = fcNormal;
 2303|  50.5k|  omsb = APInt::tcMSB(src, srcCount) + 1;
 2304|  50.5k|  dst = significandParts();
 2305|  50.5k|  dstCount = partCount();
 2306|  50.5k|  precision = semantics->precision;
 2307|       |
 2308|       |  /* We want the most significant PRECISION bits of SRC.  There may not
 2309|       |     be that many; extract what we can.  */
 2310|  50.5k|  if (precision <= omsb) {
  ------------------
  |  Branch (2310:7): [True: 4.24k, False: 46.3k]
  ------------------
 2311|  4.24k|    exponent = omsb - 1;
 2312|  4.24k|    lost_fraction = lostFractionThroughTruncation(src, srcCount,
 2313|  4.24k|                                                  omsb - precision);
 2314|  4.24k|    APInt::tcExtract(dst, dstCount, src, precision, omsb - precision);
 2315|  46.3k|  } else {
 2316|  46.3k|    exponent = precision - 1;
 2317|  46.3k|    lost_fraction = lfExactlyZero;
 2318|  46.3k|    APInt::tcExtract(dst, dstCount, src, omsb, 0);
 2319|  46.3k|  }
 2320|       |
 2321|  50.5k|  return normalize(rounding_mode, lost_fraction);
 2322|  50.5k|}
_ZN7llvm_ks7APFloat28convertFromHexadecimalStringENS_9StringRefENS0_12roundingModeE:
 2391|  4.27k|{
 2392|  4.27k|  lostFraction lost_fraction = lfExactlyZero;
 2393|       |
 2394|  4.27k|  category = fcNormal;
 2395|  4.27k|  zeroSignificand();
 2396|  4.27k|  exponent = 0;
 2397|       |
 2398|  4.27k|  integerPart *significand = significandParts();
 2399|  4.27k|  unsigned partsCount = partCount();
 2400|  4.27k|  unsigned bitPos = partsCount * integerPartWidth;
 2401|  4.27k|  bool computedTrailingFraction = false;
 2402|       |
 2403|       |  // Skip leading zeroes and any (hexa)decimal point.
 2404|  4.27k|  StringRef::iterator begin = s.begin();
 2405|  4.27k|  StringRef::iterator end = s.end();
 2406|  4.27k|  StringRef::iterator dot;
 2407|  4.27k|  StringRef::iterator p = skipLeadingZeroesAndAnyDot(begin, end, &dot);
 2408|  4.27k|  StringRef::iterator firstSignificantDigit = p;
 2409|       |
 2410|  35.0k|  while (p != end) {
  ------------------
  |  Branch (2410:10): [True: 35.0k, False: 0]
  ------------------
 2411|  35.0k|    integerPart hex_value;
 2412|       |
 2413|  35.0k|    if (*p == '.') {
  ------------------
  |  Branch (2413:9): [True: 225, False: 34.8k]
  ------------------
 2414|    225|      assert(dot == end && "String contains multiple dots");
  ------------------
  |  Branch (2414:7): [True: 225, False: 0]
  |  Branch (2414:7): [True: 225, Folded]
  |  Branch (2414:7): [True: 225, False: 0]
  ------------------
 2415|    225|      dot = p++;
 2416|    225|      continue;
 2417|    225|    }
 2418|       |
 2419|  34.8k|    hex_value = hexDigitValue(*p);
 2420|  34.8k|    if (hex_value == -1U)
  ------------------
  |  Branch (2420:9): [True: 4.27k, False: 30.5k]
  ------------------
 2421|  4.27k|      break;
 2422|       |
 2423|  30.5k|    p++;
 2424|       |
 2425|       |    // Store the number while we have space.
 2426|  30.5k|    if (bitPos) {
  ------------------
  |  Branch (2426:9): [True: 19.5k, False: 11.0k]
  ------------------
 2427|  19.5k|      bitPos -= 4;
 2428|  19.5k|      hex_value <<= bitPos % integerPartWidth;
 2429|  19.5k|      significand[bitPos / integerPartWidth] |= hex_value;
 2430|  19.5k|    } else if (!computedTrailingFraction) {
  ------------------
  |  Branch (2430:16): [True: 847, False: 10.1k]
  ------------------
 2431|    847|      lost_fraction = trailingHexadecimalFraction(p, end, hex_value);
 2432|    847|      computedTrailingFraction = true;
 2433|    847|    }
 2434|  30.5k|  }
 2435|       |
 2436|       |  /* Hex floats require an exponent but not a hexadecimal point.  */
 2437|  4.27k|  assert(p != end && "Hex strings require an exponent");
  ------------------
  |  Branch (2437:3): [True: 4.27k, False: 0]
  |  Branch (2437:3): [True: 4.27k, Folded]
  |  Branch (2437:3): [True: 4.27k, False: 0]
  ------------------
 2438|  4.27k|  assert((*p == 'p' || *p == 'P') && "Invalid character in significand");
  ------------------
  |  Branch (2438:3): [True: 3.00k, False: 1.27k]
  |  Branch (2438:3): [True: 1.27k, False: 0]
  |  Branch (2438:3): [True: 4.27k, Folded]
  |  Branch (2438:3): [True: 4.27k, False: 0]
  ------------------
 2439|  4.27k|  assert(p != begin && "Significand has no digits");
  ------------------
  |  Branch (2439:3): [True: 4.27k, False: 0]
  |  Branch (2439:3): [True: 4.27k, Folded]
  |  Branch (2439:3): [True: 4.27k, False: 0]
  ------------------
 2440|  4.27k|  assert((dot == end || p - begin != 1) && "Significand has no digits");
  ------------------
  |  Branch (2440:3): [True: 3.72k, False: 558]
  |  Branch (2440:3): [True: 558, False: 0]
  |  Branch (2440:3): [True: 4.27k, Folded]
  |  Branch (2440:3): [True: 4.27k, False: 0]
  ------------------
 2441|       |
 2442|       |  /* Ignore the exponent if we are zero.  */
 2443|  4.27k|  if (p != firstSignificantDigit) {
  ------------------
  |  Branch (2443:7): [True: 3.98k, False: 298]
  ------------------
 2444|  3.98k|    int expAdjustment;
 2445|       |
 2446|       |    /* Implicit hexadecimal point?  */
 2447|  3.98k|    if (dot == end)
  ------------------
  |  Branch (2447:9): [True: 3.48k, False: 497]
  ------------------
 2448|  3.48k|      dot = p;
 2449|       |
 2450|       |    /* Calculate the exponent adjustment implicit in the number of
 2451|       |       significant digits.  */
 2452|  3.98k|    expAdjustment = static_cast<int>(dot - firstSignificantDigit);
 2453|  3.98k|    if (expAdjustment < 0)
  ------------------
  |  Branch (2453:9): [True: 272, False: 3.70k]
  ------------------
 2454|    272|      expAdjustment++;
 2455|  3.98k|    expAdjustment = expAdjustment * 4 - 1;
 2456|       |
 2457|       |    /* Adjust for writing the significand starting at the most
 2458|       |       significant nibble.  */
 2459|  3.98k|    expAdjustment += semantics->precision;
 2460|  3.98k|    expAdjustment -= partsCount * integerPartWidth;
 2461|       |
 2462|       |    /* Adjust for the given exponent.  */
 2463|  3.98k|    exponent = totalExponent(p + 1, end, expAdjustment);
 2464|  3.98k|  }
 2465|       |
 2466|  4.27k|  return normalize(rounding_mode, lost_fraction);
 2467|  4.27k|}
_ZN7llvm_ks7APFloat28roundSignificandWithExponentEPKmjiNS0_12roundingModeE:
 2473|  23.7k|{
 2474|  23.7k|  unsigned int parts, pow5PartCount;
 2475|  23.7k|  fltSemantics calcSemantics = { 32767, -32767, 0, 0 };
 2476|  23.7k|  integerPart pow5Parts[maxPowerOfFiveParts];
 2477|  23.7k|  bool isNearest;
 2478|       |
 2479|  23.7k|  isNearest = (rounding_mode == rmNearestTiesToEven ||
  ------------------
  |  Branch (2479:16): [True: 23.7k, False: 0]
  ------------------
 2480|      0|               rounding_mode == rmNearestTiesToAway);
  ------------------
  |  Branch (2480:16): [True: 0, False: 0]
  ------------------
 2481|       |
 2482|  23.7k|  parts = partCountForBits(semantics->precision + 11);
 2483|       |
 2484|       |  /* Calculate pow(5, abs(exp)).  */
 2485|  23.7k|  pow5PartCount = powerOf5(pow5Parts, exp >= 0 ? exp: -exp);
  ------------------
  |  Branch (2485:39): [True: 5.00k, False: 18.7k]
  ------------------
 2486|       |
 2487|  25.2k|  for (;; parts *= 2) {
 2488|  25.2k|    opStatus sigStatus, powStatus;
 2489|  25.2k|    unsigned int excessPrecision, truncatedBits;
 2490|       |
 2491|  25.2k|    calcSemantics.precision = parts * integerPartWidth - 1;
 2492|  25.2k|    excessPrecision = calcSemantics.precision - semantics->precision;
 2493|  25.2k|    truncatedBits = excessPrecision;
 2494|       |
 2495|  25.2k|    APFloat decSig = APFloat::getZero(calcSemantics, sign);
 2496|  25.2k|    APFloat pow5(calcSemantics);
 2497|       |
 2498|  25.2k|    sigStatus = decSig.convertFromUnsignedParts(decSigParts, sigPartCount,
 2499|  25.2k|                                                rmNearestTiesToEven);
 2500|  25.2k|    powStatus = pow5.convertFromUnsignedParts(pow5Parts, pow5PartCount,
 2501|  25.2k|                                              rmNearestTiesToEven);
 2502|       |    /* Add exp, as 10^n = 5^n * 2^n.  */
 2503|  25.2k|    decSig.exponent += exp;
 2504|       |
 2505|  25.2k|    lostFraction calcLostFraction;
 2506|  25.2k|    integerPart HUerr, HUdistance;
 2507|  25.2k|    unsigned int powHUerr;
 2508|       |
 2509|  25.2k|    if (exp >= 0) {
  ------------------
  |  Branch (2509:9): [True: 5.08k, False: 20.2k]
  ------------------
 2510|       |      /* multiplySignificand leaves the precision-th bit set to 1.  */
 2511|  5.08k|      calcLostFraction = decSig.multiplySignificand(pow5, nullptr);
 2512|  5.08k|      powHUerr = powStatus != opOK;
 2513|  20.2k|    } else {
 2514|  20.2k|      calcLostFraction = decSig.divideSignificand(pow5);
 2515|       |      /* Denormal numbers have less precision.  */
 2516|  20.2k|      if (decSig.exponent < semantics->minExponent) {
  ------------------
  |  Branch (2516:11): [True: 361, False: 19.8k]
  ------------------
 2517|    361|        excessPrecision += (semantics->minExponent - decSig.exponent);
 2518|    361|        truncatedBits = excessPrecision;
 2519|    361|        if (excessPrecision > calcSemantics.precision)
  ------------------
  |  Branch (2519:13): [True: 71, False: 290]
  ------------------
 2520|     71|          excessPrecision = calcSemantics.precision;
 2521|    361|      }
 2522|       |      /* Extra half-ulp lost in reciprocal of exponent.  */
 2523|  20.2k|      powHUerr = (powStatus == opOK && calcLostFraction == lfExactlyZero) ? 0:2;
  ------------------
  |  Branch (2523:19): [True: 18.7k, False: 1.43k]
  |  Branch (2523:40): [True: 1.00k, False: 17.7k]
  ------------------
 2524|  20.2k|    }
 2525|       |
 2526|       |    /* Both multiplySignificand and divideSignificand return the
 2527|       |       result with the integer bit set.  */
 2528|  25.2k|    assert(APInt::tcExtractBit
  ------------------
  |  Branch (2528:5): [True: 25.2k, False: 0]
  ------------------
 2529|  25.2k|           (decSig.significandParts(), calcSemantics.precision - 1) == 1);
 2530|       |
 2531|  25.2k|    HUerr = HUerrBound(calcLostFraction != lfExactlyZero, sigStatus != opOK,
 2532|  25.2k|                       powHUerr);
 2533|  25.2k|    HUdistance = 2 * ulpsFromBoundary(decSig.significandParts(),
 2534|  25.2k|                                      excessPrecision, isNearest);
 2535|       |
 2536|       |    /* Are we guaranteed to round correctly if we truncate?  */
 2537|  25.2k|    if (HUdistance >= HUerr) {
  ------------------
  |  Branch (2537:9): [True: 23.7k, False: 1.55k]
  ------------------
 2538|  23.7k|      APInt::tcExtract(significandParts(), partCount(), decSig.significandParts(),
 2539|  23.7k|                       calcSemantics.precision - excessPrecision,
 2540|  23.7k|                       excessPrecision);
 2541|       |      /* Take the exponent of decSig.  If we tcExtract-ed less bits
 2542|       |         above we must adjust our exponent to compensate for the
 2543|       |         implicit right shift.  */
 2544|  23.7k|      exponent = (decSig.exponent + semantics->precision
 2545|  23.7k|                  - (calcSemantics.precision - excessPrecision));
 2546|  23.7k|      calcLostFraction = lostFractionThroughTruncation(decSig.significandParts(),
 2547|  23.7k|                                                       decSig.partCount(),
 2548|  23.7k|                                                       truncatedBits);
 2549|  23.7k|      return normalize(rounding_mode, calcLostFraction);
 2550|  23.7k|    }
 2551|  25.2k|  }
 2552|  23.7k|}
_ZN7llvm_ks7APFloat24convertFromDecimalStringENS_9StringRefENS0_12roundingModeE:
 2556|  27.3k|{
 2557|  27.3k|  decimalInfo D;
 2558|  27.3k|  opStatus fs;
 2559|       |
 2560|       |  /* Scan the text.  */
 2561|  27.3k|  StringRef::iterator p = str.begin();
 2562|  27.3k|  fs = interpretDecimal(p, str.end(), &D);
 2563|  27.3k|  if (fs != opOK)
  ------------------
  |  Branch (2563:7): [True: 503, False: 26.8k]
  ------------------
 2564|    503|      return fs;
 2565|       |
 2566|       |  /* Handle the quick cases.  First the case of no significant digits,
 2567|       |     i.e. zero, and then exponents that are obviously too large or too
 2568|       |     small.  Writing L for log 10 / log 2, a number d.ddddd*10^exp
 2569|       |     definitely overflows if
 2570|       |
 2571|       |           (exp - 1) * L >= maxExponent
 2572|       |
 2573|       |     and definitely underflows to zero where
 2574|       |
 2575|       |           (exp + 1) * L <= minExponent - precision
 2576|       |
 2577|       |     With integer arithmetic the tightest bounds for L are
 2578|       |
 2579|       |           93/28 < L < 196/59            [ numerator <= 256 ]
 2580|       |           42039/12655 < L < 28738/8651  [ numerator <= 65536 ]
 2581|       |  */
 2582|       |
 2583|       |  // Test if we have a zero number allowing for strings with no null terminators
 2584|       |  // and zero decimals with non-zero exponents.
 2585|       |  // 
 2586|       |  // We computed firstSigDigit by ignoring all zeros and dots. Thus if
 2587|       |  // D->firstSigDigit equals str.end(), every digit must be a zero and there can
 2588|       |  // be at most one dot. On the other hand, if we have a zero with a non-zero
 2589|       |  // exponent, then we know that D.firstSigDigit will be non-numeric.
 2590|  26.8k|  if (D.firstSigDigit == str.end() || decDigitValue(*D.firstSigDigit) >= 10U) {
  ------------------
  |  Branch (2590:7): [True: 1.22k, False: 25.6k]
  |  Branch (2590:39): [True: 387, False: 25.2k]
  ------------------
 2591|  1.61k|    category = fcZero;
 2592|  1.61k|    fs = opOK;
 2593|       |
 2594|       |  /* Check whether the normalized exponent is high enough to overflow
 2595|       |     max during the log-rebasing in the max-exponent check below. */
 2596|  25.2k|  } else if (D.normalizedExponent - 1 > INT_MAX / 42039) {
  ------------------
  |  Branch (2596:14): [True: 581, False: 24.6k]
  ------------------
 2597|    581|    fs = handleOverflow(rounding_mode);
 2598|       |
 2599|       |  /* If it wasn't, then it also wasn't high enough to overflow max
 2600|       |     during the log-rebasing in the min-exponent check.  Check that it
 2601|       |     won't overflow min in either check, then perform the min-exponent
 2602|       |     check. */
 2603|  24.6k|  } else if (D.normalizedExponent - 1 < INT_MIN / 42039 ||
  ------------------
  |  Branch (2603:14): [True: 132, False: 24.5k]
  ------------------
 2604|  24.5k|             (D.normalizedExponent + 1) * 28738 <=
  ------------------
  |  Branch (2604:14): [True: 395, False: 24.1k]
  ------------------
 2605|  24.5k|               8651 * (semantics->minExponent - (int) semantics->precision)) {
 2606|       |    /* Underflow to zero and round.  */
 2607|    527|    category = fcNormal;
 2608|    527|    zeroSignificand();
 2609|    527|    fs = normalize(rounding_mode, lfLessThanHalf);
 2610|       |
 2611|       |  /* We can finally safely perform the max-exponent check. */
 2612|  24.1k|  } else if ((D.normalizedExponent - 1) * 42039
  ------------------
  |  Branch (2612:14): [True: 384, False: 23.7k]
  ------------------
 2613|  24.1k|             >= 12655 * semantics->maxExponent) {
 2614|       |    /* Overflow and round.  */
 2615|    384|    fs = handleOverflow(rounding_mode);
 2616|  23.7k|  } else {
 2617|  23.7k|    integerPart *decSignificand;
 2618|  23.7k|    unsigned int partCount;
 2619|       |
 2620|       |    /* A tight upper bound on number of bits required to hold an
 2621|       |       N-digit decimal integer is N * 196 / 59.  Allocate enough space
 2622|       |       to hold the full significand, and an extra part required by
 2623|       |       tcMultiplyPart.  */
 2624|  23.7k|    partCount = static_cast<unsigned int>(D.lastSigDigit - D.firstSigDigit) + 1;
 2625|  23.7k|    partCount = partCountForBits(1 + 196 * partCount / 59);
 2626|  23.7k|    decSignificand = new integerPart[partCount + 1];
 2627|  23.7k|    partCount = 0;
 2628|       |
 2629|       |    /* Convert to binary efficiently - we do almost all multiplication
 2630|       |       in an integerPart.  When this would overflow do we do a single
 2631|       |       bignum multiplication, and then revert again to multiplication
 2632|       |       in an integerPart.  */
 2633|  29.2k|    do {
 2634|  29.2k|      integerPart decValue, val, multiplier;
 2635|       |
 2636|  29.2k|      val = 0;
 2637|  29.2k|      multiplier = 1;
 2638|       |
 2639|   159k|      do {
 2640|   159k|        if (*p == '.') {
  ------------------
  |  Branch (2640:13): [True: 20.8k, False: 139k]
  ------------------
 2641|  20.8k|          p++;
 2642|  20.8k|          if (p == str.end()) {
  ------------------
  |  Branch (2642:15): [True: 0, False: 20.8k]
  ------------------
 2643|      0|            break;
 2644|      0|          }
 2645|  20.8k|        }
 2646|   159k|        decValue = decDigitValue(*p++);
 2647|   159k|        assert(decValue < 10U && "Invalid character in significand");
  ------------------
  |  Branch (2647:9): [True: 159k, False: 0]
  |  Branch (2647:9): [True: 159k, Folded]
  |  Branch (2647:9): [True: 159k, False: 0]
  ------------------
 2648|   159k|        multiplier *= 10;
 2649|   159k|        val = val * 10 + decValue;
 2650|       |        /* The maximum number that can be multiplied by ten with any
 2651|       |           digit added without overflowing an integerPart.  */
 2652|   159k|      } while (p <= D.lastSigDigit && multiplier <= (~ (integerPart) 0 - 9) / 10);
  ------------------
  |  Branch (2652:16): [True: 136k, False: 23.7k]
  |  Branch (2652:39): [True: 130k, False: 5.53k]
  ------------------
 2653|       |
 2654|       |      /* Multiply out the current part.  */
 2655|  29.2k|      APInt::tcMultiplyPart(decSignificand, decSignificand, multiplier, val,
 2656|  29.2k|                            partCount, partCount + 1, false);
 2657|       |
 2658|       |      /* If we used another part (likely but not guaranteed), increase
 2659|       |         the count.  */
 2660|  29.2k|      if (decSignificand[partCount])
  ------------------
  |  Branch (2660:11): [True: 28.6k, False: 625]
  ------------------
 2661|  28.6k|        partCount++;
 2662|  29.2k|    } while (p <= D.lastSigDigit);
  ------------------
  |  Branch (2662:14): [True: 5.53k, False: 23.7k]
  ------------------
 2663|       |
 2664|  23.7k|    category = fcNormal;
 2665|  23.7k|    fs = roundSignificandWithExponent(decSignificand, partCount,
 2666|  23.7k|                                      D.exponent, rounding_mode);
 2667|       |
 2668|  23.7k|    delete [] decSignificand;
 2669|  23.7k|  }
 2670|       |
 2671|  26.8k|  return fs;
 2672|  26.8k|}
_ZN7llvm_ks7APFloat25convertFromStringSpecialsENS_9StringRefE:
 2675|  31.6k|APFloat::convertFromStringSpecials(StringRef str) {
 2676|  31.6k|  if (str.equals("inf") || str.equals("INFINITY")) {
  ------------------
  |  Branch (2676:7): [True: 0, False: 31.6k]
  |  Branch (2676:7): [True: 0, False: 31.6k]
  |  Branch (2676:28): [True: 0, False: 31.6k]
  ------------------
 2677|      0|    makeInf(false);
 2678|      0|    return true;
 2679|      0|  }
 2680|       |
 2681|  31.6k|  if (str.equals("-inf") || str.equals("-INFINITY")) {
  ------------------
  |  Branch (2681:7): [True: 0, False: 31.6k]
  |  Branch (2681:7): [True: 0, False: 31.6k]
  |  Branch (2681:29): [True: 0, False: 31.6k]
  ------------------
 2682|      0|    makeInf(true);
 2683|      0|    return true;
 2684|      0|  }
 2685|       |
 2686|  31.6k|  if (str.equals("nan") || str.equals("NaN")) {
  ------------------
  |  Branch (2686:7): [True: 0, False: 31.6k]
  |  Branch (2686:7): [True: 0, False: 31.6k]
  |  Branch (2686:28): [True: 0, False: 31.6k]
  ------------------
 2687|      0|    makeNaN(false, false);
 2688|      0|    return true;
 2689|      0|  }
 2690|       |
 2691|  31.6k|  if (str.equals("-nan") || str.equals("-NaN")) {
  ------------------
  |  Branch (2691:7): [True: 0, False: 31.6k]
  |  Branch (2691:7): [True: 0, False: 31.6k]
  |  Branch (2691:29): [True: 0, False: 31.6k]
  ------------------
 2692|      0|    makeNaN(false, true);
 2693|      0|    return true;
 2694|      0|  }
 2695|       |
 2696|  31.6k|  return false;
 2697|  31.6k|}
_ZN7llvm_ks7APFloat17convertFromStringENS_9StringRefENS0_12roundingModeE:
 2701|  31.6k|{
 2702|  31.6k|  assert(!str.empty() && "Invalid string length");
  ------------------
  |  Branch (2702:3): [True: 31.6k, False: 0]
  |  Branch (2702:3): [True: 31.6k, Folded]
  |  Branch (2702:3): [True: 31.6k, False: 0]
  ------------------
 2703|       |
 2704|       |  // Handle special cases.
 2705|  31.6k|  if (convertFromStringSpecials(str))
  ------------------
  |  Branch (2705:7): [True: 0, False: 31.6k]
  ------------------
 2706|      0|    return opOK;
 2707|       |
 2708|       |  /* Handle a leading minus sign.  */
 2709|  31.6k|  StringRef::iterator p = str.begin();
 2710|  31.6k|  size_t slen = str.size();
 2711|  31.6k|  sign = *p == '-' ? 1 : 0;
  ------------------
  |  Branch (2711:10): [True: 0, False: 31.6k]
  ------------------
 2712|  31.6k|  if (*p == '-' || *p == '+') {
  ------------------
  |  Branch (2712:7): [True: 0, False: 31.6k]
  |  Branch (2712:20): [True: 0, False: 31.6k]
  ------------------
 2713|      0|    p++;
 2714|      0|    slen--;
 2715|      0|    assert(slen && "String has no digits");
  ------------------
  |  Branch (2715:5): [True: 0, False: 0]
  |  Branch (2715:5): [True: 0, Folded]
  |  Branch (2715:5): [True: 0, False: 0]
  ------------------
 2716|      0|  }
 2717|       |
 2718|  31.6k|  if (slen >= 2 && p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) {
  ------------------
  |  Branch (2718:7): [True: 29.2k, False: 2.36k]
  |  Branch (2718:20): [True: 4.89k, False: 24.3k]
  |  Branch (2718:36): [True: 3.62k, False: 1.26k]
  |  Branch (2718:51): [True: 653, False: 614]
  ------------------
 2719|  4.27k|    assert(slen - 2 && "Invalid string");
  ------------------
  |  Branch (2719:5): [True: 4.27k, False: 0]
  |  Branch (2719:5): [True: 4.27k, Folded]
  |  Branch (2719:5): [True: 4.27k, False: 0]
  ------------------
 2720|  4.27k|    return convertFromHexadecimalString(StringRef(p + 2, slen - 2),
 2721|  4.27k|                                        rounding_mode);
 2722|  4.27k|  }
 2723|       |
 2724|  27.3k|  return convertFromDecimalString(StringRef(p, slen), rounding_mode);
 2725|  31.6k|}
_ZNK7llvm_ks7APFloat27convertDoubleAPFloatToAPIntEv:
 3048|  27.7k|{
 3049|  27.7k|  assert(semantics == (const llvm_ks::fltSemantics*)&IEEEdouble);
  ------------------
  |  Branch (3049:3): [True: 27.7k, False: 0]
  ------------------
 3050|  27.7k|  assert(partCount()==1);
  ------------------
  |  Branch (3050:3): [True: 27.7k, False: 0]
  ------------------
 3051|       |
 3052|  27.7k|  uint64_t myexponent, mysignificand;
 3053|       |
 3054|  27.7k|  if (isFiniteNonZero()) {
  ------------------
  |  Branch (3054:7): [True: 22.0k, False: 5.72k]
  ------------------
 3055|  22.0k|    myexponent = exponent+1023; //bias
 3056|  22.0k|    mysignificand = *significandParts();
 3057|  22.0k|    if (myexponent==1 && !(mysignificand & 0x10000000000000LL))
  ------------------
  |  Branch (3057:9): [True: 334, False: 21.6k]
  |  Branch (3057:26): [True: 258, False: 76]
  ------------------
 3058|    258|      myexponent = 0;   // denormal
 3059|  22.0k|  } else if (category==fcZero) {
  ------------------
  |  Branch (3059:14): [True: 3.50k, False: 2.21k]
  ------------------
 3060|  3.50k|    myexponent = 0;
 3061|  3.50k|    mysignificand = 0;
 3062|  3.50k|  } else if (category==fcInfinity) {
  ------------------
  |  Branch (3062:14): [True: 1.95k, False: 262]
  ------------------
 3063|  1.95k|    myexponent = 0x7ff;
 3064|  1.95k|    mysignificand = 0;
 3065|  1.95k|  } else {
 3066|    262|    assert(category == fcNaN && "Unknown category!");
  ------------------
  |  Branch (3066:5): [True: 262, False: 0]
  |  Branch (3066:5): [True: 262, Folded]
  |  Branch (3066:5): [True: 262, False: 0]
  ------------------
 3067|    262|    myexponent = 0x7ff;
 3068|    262|    mysignificand = *significandParts();
 3069|    262|  }
 3070|       |
 3071|  27.7k|  return APInt(64, ((((uint64_t)(sign & 1) << 63) |
 3072|  27.7k|                     ((myexponent & 0x7ff) <<  52) |
 3073|  27.7k|                     (mysignificand & 0xfffffffffffffLL))));
 3074|  27.7k|}
_ZNK7llvm_ks7APFloat26convertFloatAPFloatToAPIntEv:
 3078|  5.06k|{
 3079|  5.06k|  assert(semantics == (const llvm_ks::fltSemantics*)&IEEEsingle);
  ------------------
  |  Branch (3079:3): [True: 5.06k, False: 0]
  ------------------
 3080|  5.06k|  assert(partCount()==1);
  ------------------
  |  Branch (3080:3): [True: 5.06k, False: 0]
  ------------------
 3081|       |
 3082|  5.06k|  uint32_t myexponent, mysignificand;
 3083|       |
 3084|  5.06k|  if (isFiniteNonZero()) {
  ------------------
  |  Branch (3084:7): [True: 3.10k, False: 1.96k]
  ------------------
 3085|  3.10k|    myexponent = exponent+127; //bias
 3086|  3.10k|    mysignificand = (uint32_t)*significandParts();
 3087|  3.10k|    if (myexponent == 1 && !(mysignificand & 0x800000))
  ------------------
  |  Branch (3087:9): [True: 54, False: 3.04k]
  |  Branch (3087:28): [True: 32, False: 22]
  ------------------
 3088|     32|      myexponent = 0;   // denormal
 3089|  3.10k|  } else if (category==fcZero) {
  ------------------
  |  Branch (3089:14): [True: 767, False: 1.19k]
  ------------------
 3090|    767|    myexponent = 0;
 3091|    767|    mysignificand = 0;
 3092|  1.19k|  } else if (category==fcInfinity) {
  ------------------
  |  Branch (3092:14): [True: 963, False: 236]
  ------------------
 3093|    963|    myexponent = 0xff;
 3094|    963|    mysignificand = 0;
 3095|    963|  } else {
 3096|    236|    assert(category == fcNaN && "Unknown category!");
  ------------------
  |  Branch (3096:5): [True: 236, False: 0]
  |  Branch (3096:5): [True: 236, Folded]
  |  Branch (3096:5): [True: 236, False: 0]
  ------------------
 3097|    236|    myexponent = 0xff;
 3098|    236|    mysignificand = (uint32_t)*significandParts();
 3099|    236|  }
 3100|       |
 3101|  5.06k|  return APInt(32, (((sign&1) << 31) | ((myexponent&0xff) << 23) |
 3102|  5.06k|                    (mysignificand & 0x7fffff)));
 3103|  5.06k|}
_ZNK7llvm_ks7APFloat14bitcastToAPIntEv:
 3140|  32.8k|{
 3141|  32.8k|  if (semantics == (const llvm_ks::fltSemantics*)&IEEEhalf)
  ------------------
  |  Branch (3141:7): [True: 0, False: 32.8k]
  ------------------
 3142|      0|    return convertHalfAPFloatToAPInt();
 3143|       |
 3144|  32.8k|  if (semantics == (const llvm_ks::fltSemantics*)&IEEEsingle)
  ------------------
  |  Branch (3144:7): [True: 5.06k, False: 27.7k]
  ------------------
 3145|  5.06k|    return convertFloatAPFloatToAPInt();
 3146|       |
 3147|  27.7k|  if (semantics == (const llvm_ks::fltSemantics*)&IEEEdouble)
  ------------------
  |  Branch (3147:7): [True: 27.7k, False: 0]
  ------------------
 3148|  27.7k|    return convertDoubleAPFloatToAPInt();
 3149|       |
 3150|      0|  if (semantics == (const llvm_ks::fltSemantics*)&IEEEquad)
  ------------------
  |  Branch (3150:7): [True: 0, False: 0]
  ------------------
 3151|      0|    return convertQuadrupleAPFloatToAPInt();
 3152|       |
 3153|      0|  if (semantics == (const llvm_ks::fltSemantics*)&PPCDoubleDouble)
  ------------------
  |  Branch (3153:7): [True: 0, False: 0]
  ------------------
 3154|      0|    return convertPPCDoubleDoubleAPFloatToAPInt();
 3155|       |
 3156|      0|  assert(semantics == (const llvm_ks::fltSemantics*)&x87DoubleExtended &&
  ------------------
  |  Branch (3156:3): [True: 0, False: 0]
  |  Branch (3156:3): [True: 0, Folded]
  |  Branch (3156:3): [True: 0, False: 0]
  ------------------
 3157|      0|         "unknown format!");
 3158|      0|  return convertF80LongDoubleAPFloatToAPInt();
 3159|      0|}
_ZN7llvm_ks7APFloat7makeInfEb:
 3968|    963|APFloat::makeInf(bool Negative) {
 3969|    963|  category = fcInfinity;
 3970|    963|  sign = Negative;
 3971|    963|  exponent = semantics->maxExponent + 1;
 3972|    963|  APInt::tcSet(significandParts(), 0, partCount());
 3973|    963|}
_ZN7llvm_ks7APFloat8makeZeroEb:
 3976|  25.2k|APFloat::makeZero(bool Negative) {
 3977|  25.2k|  category = fcZero;
 3978|  25.2k|  sign = Negative;
 3979|  25.2k|  exponent = semantics->minExponent-1;
 3980|  25.2k|  APInt::tcSet(significandParts(), 0, partCount());  
 3981|  25.2k|}
APFloat.cpp:_ZL26skipLeadingZeroesAndAnyDotPKcS0_PS0_:
  236|  31.6k|{
  237|  31.6k|  StringRef::iterator p = begin;
  238|  31.6k|  *dot = end;
  239|  36.7k|  while (p != end && *p == '0')
  ------------------
  |  Branch (239:10): [True: 36.0k, False: 656]
  |  Branch (239:22): [True: 5.09k, False: 30.9k]
  ------------------
  240|  5.09k|    p++;
  241|       |
  242|  31.6k|  if (p != end && *p == '.') {
  ------------------
  |  Branch (242:7): [True: 30.9k, False: 656]
  |  Branch (242:19): [True: 24.1k, False: 6.81k]
  ------------------
  243|  24.1k|    *dot = p++;
  244|       |
  245|  24.1k|    assert(end - begin != 1 && "Significand has no digits");
  ------------------
  |  Branch (245:5): [True: 24.1k, False: 0]
  |  Branch (245:5): [True: 24.1k, Folded]
  |  Branch (245:5): [True: 24.1k, False: 0]
  ------------------
  246|       |
  247|  36.4k|    while (p != end && *p == '0')
  ------------------
  |  Branch (247:12): [True: 35.8k, False: 571]
  |  Branch (247:24): [True: 12.2k, False: 23.5k]
  ------------------
  248|  12.2k|      p++;
  249|  24.1k|  }
  250|       |
  251|  31.6k|  return p;
  252|  31.6k|}
APFloat.cpp:_ZL13decDigitValuej:
  109|   391k|{
  110|   391k|  return c - '0';
  111|   391k|}
APFloat.cpp:_ZL12readExponentPKcS0_RN7llvm_ks7APFloat8opStatusE:
  120|  5.31k|{
  121|  5.31k|  bool isNegative;
  122|  5.31k|  unsigned int absExponent;
  123|  5.31k|  const unsigned int overlargeExponent = 24000;  /* FIXME.  */
  124|  5.31k|  StringRef::iterator p = begin;
  125|       |
  126|  5.31k|  fp = APFloat::opOK;
  127|       |
  128|       |  //assert(p != end && "Exponent has no digits"); // qq
  129|  5.31k|  if (p == end) {
  ------------------
  |  Branch (129:7): [True: 176, False: 5.14k]
  ------------------
  130|    176|      fp = APFloat::opInvalidOp;
  131|    176|      return 0;
  132|    176|  }
  133|       |
  134|  5.14k|  isNegative = (*p == '-');
  135|  5.14k|  if (*p == '-' || *p == '+') {
  ------------------
  |  Branch (135:7): [True: 1.20k, False: 3.93k]
  |  Branch (135:20): [True: 296, False: 3.63k]
  ------------------
  136|  1.50k|    p++;
  137|       |    //assert(p != end && "Exponent has no digits");
  138|  1.50k|    if (p == end) {
  ------------------
  |  Branch (138:9): [True: 320, False: 1.18k]
  ------------------
  139|    320|      fp = APFloat::opInvalidOp;
  140|    320|      return 0;
  141|    320|    }
  142|  1.50k|  }
  143|       |
  144|  4.82k|  absExponent = decDigitValue(*p++);
  145|       |  //assert(absExponent < 10U && "Invalid character in exponent");
  146|  4.82k|  if (absExponent >= 10U) {
  ------------------
  |  Branch (146:7): [True: 2, False: 4.81k]
  ------------------
  147|      2|      fp = APFloat::opInvalidOp;
  148|      2|      return 0;
  149|      2|  }
  150|       |
  151|  14.4k|  for (; p != end; ++p) {
  ------------------
  |  Branch (151:10): [True: 10.0k, False: 4.38k]
  ------------------
  152|  10.0k|    unsigned int value;
  153|       |
  154|  10.0k|    value = decDigitValue(*p);
  155|       |    //assert(value < 10U && "Invalid character in exponent");
  156|  10.0k|    if (value >= 10U) {
  ------------------
  |  Branch (156:9): [True: 1, False: 10.0k]
  ------------------
  157|      1|        fp = APFloat::opInvalidOp;
  158|      1|        return 0;
  159|      1|    }
  160|       |
  161|  10.0k|    value += absExponent * 10;
  162|  10.0k|    if (absExponent >= overlargeExponent) {
  ------------------
  |  Branch (162:9): [True: 436, False: 9.59k]
  ------------------
  163|    436|      absExponent = overlargeExponent;
  164|    436|      p = end;  /* outwit assert below */
  165|    436|      break;
  166|    436|    }
  167|  9.59k|    absExponent = value;
  168|  9.59k|  }
  169|       |
  170|       |  //assert(p == end && "Invalid exponent in exponent");
  171|  4.81k|  if (p != end) {
  ------------------
  |  Branch (171:7): [True: 0, False: 4.81k]
  ------------------
  172|      0|      fp = APFloat::opInvalidOp;
  173|      0|      return 0;
  174|      0|  }
  175|       |
  176|  4.81k|  if (isNegative)
  ------------------
  |  Branch (176:7): [True: 1.05k, False: 3.76k]
  ------------------
  177|  1.05k|    return -(int) absExponent;
  178|  3.76k|  else
  179|  3.76k|    return (int) absExponent;
  180|  4.81k|}
APFloat.cpp:_ZL16partCountForBitsj:
  102|  1.07M|{
  103|  1.07M|  return ((bits) + integerPartWidth - 1) / integerPartWidth;
  104|  1.07M|}
APFloat.cpp:_ZL10shiftRightPmjj:
  401|  8.27k|{
  402|  8.27k|  lostFraction lost_fraction;
  403|       |
  404|  8.27k|  lost_fraction = lostFractionThroughTruncation(dst, parts, bits);
  405|       |
  406|  8.27k|  APInt::tcShiftRight(dst, parts, bits);
  407|       |
  408|  8.27k|  return lost_fraction;
  409|  8.27k|}
APFloat.cpp:_ZL20combineLostFractionsN7llvm_ks12lostFractionES0_:
  415|  8.15k|{
  416|  8.15k|  if (lessSignificant != lfExactlyZero) {
  ------------------
  |  Branch (416:7): [True: 573, False: 7.58k]
  ------------------
  417|    573|    if (moreSignificant == lfExactlyZero)
  ------------------
  |  Branch (417:9): [True: 168, False: 405]
  ------------------
  418|    168|      moreSignificant = lfLessThanHalf;
  419|    405|    else if (moreSignificant == lfExactlyHalf)
  ------------------
  |  Branch (419:14): [True: 17, False: 388]
  ------------------
  420|     17|      moreSignificant = lfMoreThanHalf;
  421|    573|  }
  422|       |
  423|  8.15k|  return moreSignificant;
  424|  8.15k|}
APFloat.cpp:_ZL29lostFractionThroughTruncationPKmjj:
  381|  36.2k|{
  382|  36.2k|  unsigned int lsb;
  383|       |
  384|  36.2k|  lsb = APInt::tcLSB(parts, partCount);
  385|       |
  386|       |  /* Note this is guaranteed true if bits == 0, or LSB == -1U.  */
  387|  36.2k|  if (bits <= lsb)
  ------------------
  |  Branch (387:7): [True: 9.80k, False: 26.4k]
  ------------------
  388|  9.80k|    return lfExactlyZero;
  389|  26.4k|  if (bits == lsb + 1)
  ------------------
  |  Branch (389:7): [True: 471, False: 25.9k]
  ------------------
  390|    471|    return lfExactlyHalf;
  391|  25.9k|  if (bits <= partCount * integerPartWidth &&
  ------------------
  |  Branch (391:7): [True: 24.3k, False: 1.68k]
  ------------------
  392|  24.3k|      APInt::tcExtractBit(parts, bits - 1))
  ------------------
  |  Branch (392:7): [True: 15.3k, False: 8.98k]
  ------------------
  393|  15.3k|    return lfMoreThanHalf;
  394|       |
  395|  10.6k|  return lfLessThanHalf;
  396|  25.9k|}
APFloat.cpp:_ZL27trailingHexadecimalFractionPKcS0_j:
  349|    847|{
  350|    847|  unsigned int hexDigit;
  351|       |
  352|       |  /* If the first trailing digit isn't 0 or 8 we can work out the
  353|       |     fraction immediately.  */
  354|    847|  if (digitValue > 8)
  ------------------
  |  Branch (354:7): [True: 92, False: 755]
  ------------------
  355|     92|    return lfMoreThanHalf;
  356|    755|  else if (digitValue < 8 && digitValue > 0)
  ------------------
  |  Branch (356:12): [True: 591, False: 164]
  |  Branch (356:30): [True: 210, False: 381]
  ------------------
  357|    210|    return lfLessThanHalf;
  358|       |
  359|       |  // Otherwise we need to find the first non-zero digit.
  360|  3.35k|  while (p != end && (*p == '0' || *p == '.'))
  ------------------
  |  Branch (360:10): [True: 3.35k, False: 0]
  |  Branch (360:23): [True: 2.69k, False: 666]
  |  Branch (360:36): [True: 121, False: 545]
  ------------------
  361|  2.81k|    p++;
  362|       |
  363|    545|  assert(p != end && "Invalid trailing hexadecimal fraction!");
  ------------------
  |  Branch (363:3): [True: 545, False: 0]
  |  Branch (363:3): [True: 545, Folded]
  |  Branch (363:3): [True: 545, False: 0]
  ------------------
  364|       |
  365|    545|  hexDigit = hexDigitValue(*p);
  366|       |
  367|       |  /* If we ran off the end it is exactly zero or one-half, otherwise
  368|       |     a little more.  */
  369|    545|  if (hexDigit == -1U)
  ------------------
  |  Branch (369:7): [True: 177, False: 368]
  ------------------
  370|    177|    return digitValue == 0 ? lfExactlyZero: lfExactlyHalf;
  ------------------
  |  Branch (370:12): [True: 147, False: 30]
  ------------------
  371|    368|  else
  372|    368|    return digitValue == 0 ? lfLessThanHalf: lfMoreThanHalf;
  ------------------
  |  Branch (372:12): [True: 234, False: 134]
  ------------------
  373|    545|}
APFloat.cpp:_ZL13totalExponentPKcS0_i:
  187|  3.98k|{
  188|  3.98k|  int unsignedExponent;
  189|  3.98k|  bool negative, overflow;
  190|  3.98k|  int exponent = 0;
  191|       |
  192|  3.98k|  assert(p != end && "Exponent has no digits");
  ------------------
  |  Branch (192:3): [True: 3.98k, False: 0]
  |  Branch (192:3): [True: 3.98k, Folded]
  |  Branch (192:3): [True: 3.98k, False: 0]
  ------------------
  193|       |
  194|  3.98k|  negative = *p == '-';
  195|  3.98k|  if (*p == '-' || *p == '+') {
  ------------------
  |  Branch (195:7): [True: 1.80k, False: 2.17k]
  |  Branch (195:20): [True: 464, False: 1.71k]
  ------------------
  196|  2.26k|    p++;
  197|  2.26k|    assert(p != end && "Exponent has no digits");
  ------------------
  |  Branch (197:5): [True: 2.26k, False: 0]
  |  Branch (197:5): [True: 2.26k, Folded]
  |  Branch (197:5): [True: 2.26k, False: 0]
  ------------------
  198|  2.26k|  }
  199|       |
  200|  3.98k|  unsignedExponent = 0;
  201|  3.98k|  overflow = false;
  202|  21.9k|  for (; p != end; ++p) {
  ------------------
  |  Branch (202:10): [True: 18.4k, False: 3.49k]
  ------------------
  203|  18.4k|    unsigned int value;
  204|       |
  205|  18.4k|    value = decDigitValue(*p);
  206|  18.4k|    assert(value < 10U && "Invalid character in exponent");
  ------------------
  |  Branch (206:5): [True: 18.4k, False: 0]
  |  Branch (206:5): [True: 18.4k, Folded]
  |  Branch (206:5): [True: 18.4k, False: 0]
  ------------------
  207|       |
  208|  18.4k|    unsignedExponent = unsignedExponent * 10 + value;
  209|  18.4k|    if (unsignedExponent > 32767) {
  ------------------
  |  Branch (209:9): [True: 489, False: 17.9k]
  ------------------
  210|    489|      overflow = true;
  211|    489|      break;
  212|    489|    }
  213|  18.4k|  }
  214|       |
  215|  3.98k|  if (exponentAdjustment > 32767 || exponentAdjustment < -32768)
  ------------------
  |  Branch (215:7): [True: 0, False: 3.98k]
  |  Branch (215:37): [True: 0, False: 3.98k]
  ------------------
  216|      0|    overflow = true;
  217|       |
  218|  3.98k|  if (!overflow) {
  ------------------
  |  Branch (218:7): [True: 3.49k, False: 489]
  ------------------
  219|  3.49k|    exponent = unsignedExponent;
  220|  3.49k|    if (negative)
  ------------------
  |  Branch (220:9): [True: 1.52k, False: 1.96k]
  ------------------
  221|  1.52k|      exponent = -exponent;
  222|  3.49k|    exponent += exponentAdjustment;
  223|  3.49k|    if (exponent > 32767 || exponent < -32768)
  ------------------
  |  Branch (223:9): [True: 11, False: 3.48k]
  |  Branch (223:29): [True: 929, False: 2.55k]
  ------------------
  224|    940|      overflow = true;
  225|  3.49k|  }
  226|       |
  227|  3.98k|  if (overflow)
  ------------------
  |  Branch (227:7): [True: 1.42k, False: 2.55k]
  ------------------
  228|  1.42k|    exponent = negative ? -32768: 32767;
  ------------------
  |  Branch (228:16): [True: 1.20k, False: 220]
  ------------------
  229|       |
  230|  3.98k|  return exponent;
  231|  3.98k|}
APFloat.cpp:_ZL8powerOf5Pmj:
  494|  23.7k|{
  495|  23.7k|  static const integerPart firstEightPowers[] = { 1, 5, 25, 125, 625, 3125,
  496|  23.7k|                                                  15625, 78125 };
  497|  23.7k|  integerPart pow5s[maxPowerOfFiveParts * 2 + 5];
  498|  23.7k|  pow5s[0] = 78125 * 5;
  499|       |
  500|  23.7k|  unsigned int partsCount[16] = { 1 };
  501|  23.7k|  integerPart scratch[maxPowerOfFiveParts], *p1, *p2, *pow5;
  502|  23.7k|  unsigned int result;
  503|  23.7k|  assert(power <= maxExponent);
  ------------------
  |  Branch (503:3): [True: 23.7k, False: 0]
  ------------------
  504|       |
  505|  23.7k|  p1 = dst;
  506|  23.7k|  p2 = scratch;
  507|       |
  508|  23.7k|  *p1 = firstEightPowers[power & 7];
  509|  23.7k|  power >>= 3;
  510|       |
  511|  23.7k|  result = 1;
  512|  23.7k|  pow5 = pow5s;
  513|       |
  514|  37.1k|  for (unsigned int n = 0; power; power >>= 1, n++) {
  ------------------
  |  Branch (514:28): [True: 13.4k, False: 23.7k]
  ------------------
  515|  13.4k|    unsigned int pc;
  516|       |
  517|  13.4k|    pc = partsCount[n];
  518|       |
  519|       |    /* Calculate pow(5,pow(2,n+3)) if we haven't yet.  */
  520|  13.4k|    if (pc == 0) {
  ------------------
  |  Branch (520:9): [True: 9.64k, False: 3.75k]
  ------------------
  521|  9.64k|      pc = partsCount[n - 1];
  522|  9.64k|      APInt::tcFullMultiply(pow5, pow5 - pc, pow5 - pc, pc, pc);
  523|  9.64k|      pc *= 2;
  524|  9.64k|      if (pow5[pc - 1] == 0)
  ------------------
  |  Branch (524:11): [True: 6.45k, False: 3.19k]
  ------------------
  525|  6.45k|        pc--;
  526|  9.64k|      partsCount[n] = pc;
  527|  9.64k|    }
  528|       |
  529|  13.4k|    if (power & 1) {
  ------------------
  |  Branch (529:9): [True: 7.44k, False: 5.96k]
  ------------------
  530|  7.44k|      integerPart *tmp;
  531|       |
  532|  7.44k|      APInt::tcFullMultiply(p2, p1, pow5, result, pc);
  533|  7.44k|      result += pc;
  534|  7.44k|      if (p2[result - 1] == 0)
  ------------------
  |  Branch (534:11): [True: 6.02k, False: 1.41k]
  ------------------
  535|  6.02k|        result--;
  536|       |
  537|       |      /* Now result is in p1 with partsCount parts and p2 is scratch
  538|       |         space.  */
  539|  7.44k|      tmp = p1, p1 = p2, p2 = tmp;
  540|  7.44k|    }
  541|       |
  542|  13.4k|    pow5 += pc;
  543|  13.4k|  }
  544|       |
  545|  23.7k|  if (p1 != dst)
  ------------------
  |  Branch (545:7): [True: 2.07k, False: 21.6k]
  ------------------
  546|  2.07k|    APInt::tcAssign(dst, p1, result);
  547|       |
  548|  23.7k|  return result;
  549|  23.7k|}
APFloat.cpp:_ZL10HUerrBoundbjj:
  435|  25.2k|{
  436|  25.2k|  assert(HUerr1 < 2 || HUerr2 < 2 || (HUerr1 + HUerr2 < 8));
  ------------------
  |  Branch (436:3): [True: 25.2k, False: 0]
  |  Branch (436:3): [True: 0, False: 0]
  |  Branch (436:3): [True: 0, False: 0]
  |  Branch (436:3): [True: 25.2k, False: 0]
  ------------------
  437|       |
  438|  25.2k|  if (HUerr1 + HUerr2 == 0)
  ------------------
  |  Branch (438:7): [True: 4.54k, False: 20.7k]
  ------------------
  439|  4.54k|    return inexactMultiply * 2;  /* <= inexactMultiply half-ulps.  */
  440|  20.7k|  else
  441|  20.7k|    return inexactMultiply + 2 * (HUerr1 + HUerr2);
  442|  25.2k|}
APFloat.cpp:_ZL16ulpsFromBoundaryPKmjb:
  449|  25.2k|{
  450|  25.2k|  unsigned int count, partBits;
  451|  25.2k|  integerPart part, boundary;
  452|       |
  453|  25.2k|  assert(bits != 0);
  ------------------
  |  Branch (453:3): [True: 25.2k, False: 0]
  ------------------
  454|       |
  455|  25.2k|  bits--;
  456|  25.2k|  count = bits / integerPartWidth;
  457|  25.2k|  partBits = bits % integerPartWidth + 1;
  458|       |
  459|  25.2k|  part = parts[count] & (~(integerPart) 0 >> (integerPartWidth - partBits));
  460|       |
  461|  25.2k|  if (isNearest)
  ------------------
  |  Branch (461:7): [True: 25.2k, False: 0]
  ------------------
  462|  25.2k|    boundary = (integerPart) 1 << (partBits - 1);
  463|      0|  else
  464|      0|    boundary = 0;
  465|       |
  466|  25.2k|  if (count == 0) {
  ------------------
  |  Branch (466:7): [True: 23.7k, False: 1.55k]
  ------------------
  467|  23.7k|    if (part - boundary <= boundary - part)
  ------------------
  |  Branch (467:9): [True: 12.9k, False: 10.7k]
  ------------------
  468|  12.9k|      return part - boundary;
  469|  10.7k|    else
  470|  10.7k|      return boundary - part;
  471|  23.7k|  }
  472|       |
  473|  1.55k|  if (part == boundary) {
  ------------------
  |  Branch (473:7): [True: 511, False: 1.04k]
  ------------------
  474|  2.98k|    while (--count)
  ------------------
  |  Branch (474:12): [True: 2.51k, False: 469]
  ------------------
  475|  2.51k|      if (parts[count])
  ------------------
  |  Branch (475:11): [True: 42, False: 2.47k]
  ------------------
  476|     42|        return ~(integerPart) 0; /* A lot.  */
  477|       |
  478|    469|    return parts[0];
  479|  1.04k|  } else if (part == boundary - 1) {
  ------------------
  |  Branch (479:14): [True: 811, False: 235]
  ------------------
  480|  3.03k|    while (--count)
  ------------------
  |  Branch (480:12): [True: 2.30k, False: 727]
  ------------------
  481|  2.30k|      if (~parts[count])
  ------------------
  |  Branch (481:11): [True: 84, False: 2.22k]
  ------------------
  482|     84|        return ~(integerPart) 0; /* A lot.  */
  483|       |
  484|    727|    return -parts[0];
  485|    811|  }
  486|       |
  487|    235|  return ~(integerPart) 0; /* A lot.  */
  488|  1.55k|}

_ZN7llvm_ks5APInt12initSlowCaseEjmb:
   77|   578k|void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) {
   78|   578k|  pVal = getClearedMemory(getNumWords());
   79|   578k|  pVal[0] = val;
   80|   578k|  if (isSigned && int64_t(val) < 0)
  ------------------
  |  Branch (80:7): [True: 573k, False: 4.89k]
  |  Branch (80:19): [True: 0, False: 573k]
  ------------------
   81|      0|    for (unsigned i = 1; i < getNumWords(); ++i)
  ------------------
  |  Branch (81:26): [True: 0, False: 0]
  ------------------
   82|      0|      pVal[i] = -1ULL;
   83|   578k|}
_ZN7llvm_ks5APInt12initSlowCaseERKS0_:
   85|   872k|void APInt::initSlowCase(const APInt& that) {
   86|   872k|  pVal = getMemory(getNumWords());
   87|   872k|  memcpy(pVal, that.pVal, getNumWords() * APINT_WORD_SIZE);
   88|   872k|}
_ZN7llvm_ks5APInt14AssignSlowCaseERKS0_:
  123|  3.30k|APInt& APInt::AssignSlowCase(const APInt& RHS) {
  124|       |  // Don't do anything for X = X
  125|  3.30k|  if (this == &RHS)
  ------------------
  |  Branch (125:7): [True: 0, False: 3.30k]
  ------------------
  126|      0|    return *this;
  127|       |
  128|  3.30k|  if (BitWidth == RHS.getBitWidth()) {
  ------------------
  |  Branch (128:7): [True: 440, False: 2.86k]
  ------------------
  129|       |    // assume same bit-width single-word case is already handled
  130|    440|    assert(!isSingleWord());
  ------------------
  |  Branch (130:5): [True: 440, False: 0]
  ------------------
  131|    440|    memcpy(pVal, RHS.pVal, getNumWords() * APINT_WORD_SIZE);
  132|    440|    return *this;
  133|    440|  }
  134|       |
  135|  2.86k|  if (isSingleWord()) {
  ------------------
  |  Branch (135:7): [True: 1.92k, False: 939]
  ------------------
  136|       |    // assume case where both are single words is already handled
  137|  1.92k|    assert(!RHS.isSingleWord());
  ------------------
  |  Branch (137:5): [True: 1.92k, False: 0]
  ------------------
  138|  1.92k|    VAL = 0;
  139|  1.92k|    pVal = getMemory(RHS.getNumWords());
  140|  1.92k|    memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE);
  141|  1.92k|  } else if (getNumWords() == RHS.getNumWords())
  ------------------
  |  Branch (141:14): [True: 38, False: 901]
  ------------------
  142|     38|    memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE);
  143|    901|  else if (RHS.isSingleWord()) {
  ------------------
  |  Branch (143:12): [True: 853, False: 48]
  ------------------
  144|    853|    delete [] pVal;
  145|    853|    VAL = RHS.VAL;
  146|    853|  } else {
  147|     48|    delete [] pVal;
  148|     48|    pVal = getMemory(RHS.getNumWords());
  149|     48|    memcpy(pVal, RHS.pVal, RHS.getNumWords() * APINT_WORD_SIZE);
  150|     48|  }
  151|  2.86k|  BitWidth = RHS.BitWidth;
  152|  2.86k|  return clearUnusedBits();
  153|  2.86k|}
_ZN7llvm_ks5APIntaSEm:
  155|   406k|APInt& APInt::operator=(uint64_t RHS) {
  156|   406k|  if (isSingleWord())
  ------------------
  |  Branch (156:7): [True: 0, False: 406k]
  ------------------
  157|      0|    VAL = RHS;
  158|   406k|  else {
  159|   406k|    pVal[0] = RHS;
  160|   406k|    memset(pVal+1, 0, (getNumWords() - 1) * APINT_WORD_SIZE);
  161|   406k|  }
  162|   406k|  return clearUnusedBits();
  163|   406k|}
_ZNK7llvm_ks5APInt9getHiBitsEj:
  686|    340|APInt APInt::getHiBits(unsigned numBits) const {
  687|    340|  return APIntOps::lshr(*this, BitWidth - numBits);
  688|    340|}
_ZNK7llvm_ks5APInt9getLoBitsEj:
  691|    340|APInt APInt::getLoBits(unsigned numBits) const {
  692|    340|  return APIntOps::lshr(APIntOps::shl(*this, BitWidth - numBits),
  693|    340|                        BitWidth - numBits);
  694|    340|}
_ZNK7llvm_ks5APInt25countLeadingZerosSlowCaseEv:
  696|   517k|unsigned APInt::countLeadingZerosSlowCase() const {
  697|       |  // Treat the most significand word differently because it might have
  698|       |  // meaningless bits set beyond the precision.
  699|   517k|  unsigned BitsInMSW = BitWidth % APINT_BITS_PER_WORD;
  700|   517k|  integerPart MSWMask;
  701|   517k|  if (BitsInMSW) MSWMask = (integerPart(1) << BitsInMSW) - 1;
  ------------------
  |  Branch (701:7): [True: 2.69k, False: 515k]
  ------------------
  702|   515k|  else {
  703|   515k|    MSWMask = ~integerPart(0);
  704|   515k|    BitsInMSW = APINT_BITS_PER_WORD;
  705|   515k|  }
  706|       |
  707|   517k|  unsigned i = getNumWords();
  708|   517k|  integerPart MSW = pVal[i-1] & MSWMask;
  709|   517k|  if (MSW)
  ------------------
  |  Branch (709:7): [True: 11.5k, False: 506k]
  ------------------
  710|  11.5k|    return llvm_ks::countLeadingZeros(MSW) - (APINT_BITS_PER_WORD - BitsInMSW);
  711|       |
  712|   506k|  unsigned Count = BitsInMSW;
  713|   506k|  for (--i; i > 0u; --i) {
  ------------------
  |  Branch (713:13): [True: 506k, False: 303]
  ------------------
  714|   506k|    if (pVal[i-1] == 0)
  ------------------
  |  Branch (714:9): [True: 313, False: 505k]
  ------------------
  715|    313|      Count += APINT_BITS_PER_WORD;
  716|   505k|    else {
  717|   505k|      Count += llvm_ks::countLeadingZeros(pVal[i-1]);
  718|   505k|      break;
  719|   505k|    }
  720|   506k|  }
  721|   506k|  return Count;
  722|   517k|}
_ZNK7llvm_ks5APInt4zextEj:
  998|  2.72k|APInt APInt::zext(unsigned width) const {
  999|  2.72k|  assert(width > BitWidth && "Invalid APInt ZeroExtend request");
  ------------------
  |  Branch (999:3): [True: 2.72k, False: 0]
  |  Branch (999:3): [True: 2.72k, Folded]
  |  Branch (999:3): [True: 2.72k, False: 0]
  ------------------
 1000|       |
 1001|  2.72k|  if (width <= APINT_BITS_PER_WORD)
  ------------------
  |  Branch (1001:7): [True: 0, False: 2.72k]
  ------------------
 1002|      0|    return APInt(width, VAL);
 1003|       |
 1004|  2.72k|  APInt Result(getMemory(getNumWords(width)), width);
 1005|       |
 1006|       |  // Copy words.
 1007|  2.72k|  unsigned i;
 1008|  8.17k|  for (i = 0; i != getNumWords(); i++)
  ------------------
  |  Branch (1008:15): [True: 5.45k, False: 2.72k]
  ------------------
 1009|  5.45k|    Result.pVal[i] = getRawData()[i];
 1010|       |
 1011|       |  // Zero remaining words.
 1012|  2.72k|  memset(&Result.pVal[i], 0, (Result.getNumWords() - i) * APINT_WORD_SIZE);
 1013|       |
 1014|  2.72k|  return Result;
 1015|  2.72k|}
_ZNK7llvm_ks5APInt4lshrEj:
 1144|    680|APInt APInt::lshr(unsigned shiftAmt) const {
 1145|    680|  if (isSingleWord()) {
  ------------------
  |  Branch (1145:7): [True: 0, False: 680]
  ------------------
 1146|      0|    if (shiftAmt >= BitWidth)
  ------------------
  |  Branch (1146:9): [True: 0, False: 0]
  ------------------
 1147|      0|      return APInt(BitWidth, 0);
 1148|      0|    else
 1149|      0|      return APInt(BitWidth, this->VAL >> shiftAmt);
 1150|      0|  }
 1151|       |
 1152|       |  // If all the bits were shifted out, the result is 0. This avoids issues
 1153|       |  // with shifting by the size of the integer type, which produces undefined
 1154|       |  // results. We define these "undefined results" to always be 0.
 1155|    680|  if (shiftAmt >= BitWidth)
  ------------------
  |  Branch (1155:7): [True: 0, False: 680]
  ------------------
 1156|      0|    return APInt(BitWidth, 0);
 1157|       |
 1158|       |  // If none of the bits are shifted out, the result is *this. This avoids
 1159|       |  // issues with shifting by the size of the integer type, which produces
 1160|       |  // undefined results in the code below. This is also an optimization.
 1161|    680|  if (shiftAmt == 0)
  ------------------
  |  Branch (1161:7): [True: 0, False: 680]
  ------------------
 1162|      0|    return *this;
 1163|       |
 1164|       |  // Create some space for the result.
 1165|    680|  uint64_t * val = new uint64_t[getNumWords()];
 1166|       |
 1167|       |  // If we are shifting less than a word, compute the shift with a simple carry
 1168|    680|  if (shiftAmt < APINT_BITS_PER_WORD) {
  ------------------
  |  Branch (1168:7): [True: 0, False: 680]
  ------------------
 1169|      0|    lshrNear(val, pVal, getNumWords(), shiftAmt);
 1170|      0|    APInt Result(val, BitWidth);
 1171|      0|    Result.clearUnusedBits();
 1172|      0|    return Result;
 1173|      0|  }
 1174|       |
 1175|       |  // Compute some values needed by the remaining shift algorithms
 1176|    680|  unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD;
 1177|    680|  unsigned offset = shiftAmt / APINT_BITS_PER_WORD;
 1178|       |
 1179|       |  // If we are shifting whole words, just move whole words
 1180|    680|  if (wordShift == 0) {
  ------------------
  |  Branch (1180:7): [True: 675, False: 5]
  ------------------
 1181|  1.35k|    for (unsigned i = 0; i < getNumWords() - offset; ++i)
  ------------------
  |  Branch (1181:26): [True: 680, False: 675]
  ------------------
 1182|    680|      val[i] = pVal[i+offset];
 1183|  1.35k|    for (unsigned i = getNumWords()-offset; i < getNumWords(); i++)
  ------------------
  |  Branch (1183:45): [True: 675, False: 675]
  ------------------
 1184|    675|      val[i] = 0;
 1185|    675|    APInt Result(val, BitWidth);
 1186|    675|    Result.clearUnusedBits();
 1187|    675|    return Result;
 1188|    675|  }
 1189|       |
 1190|       |  // Shift the low order words
 1191|      5|  unsigned breakWord = getNumWords() - offset -1;
 1192|     10|  for (unsigned i = 0; i < breakWord; ++i)
  ------------------
  |  Branch (1192:24): [True: 5, False: 5]
  ------------------
 1193|      5|    val[i] = (pVal[i+offset] >> wordShift) |
 1194|      5|             (pVal[i+offset+1] << (APINT_BITS_PER_WORD - wordShift));
 1195|       |  // Shift the break word.
 1196|      5|  val[breakWord] = pVal[breakWord+offset] >> wordShift;
 1197|       |
 1198|       |  // Remaining words are 0
 1199|     10|  for (unsigned i = breakWord+1; i < getNumWords(); ++i)
  ------------------
  |  Branch (1199:34): [True: 5, False: 5]
  ------------------
 1200|      5|    val[i] = 0;
 1201|      5|  APInt Result(val, BitWidth);
 1202|      5|  Result.clearUnusedBits();
 1203|      5|  return Result;
 1204|    680|}
_ZNK7llvm_ks5APInt11shlSlowCaseEj:
 1213|  1.30M|APInt APInt::shlSlowCase(unsigned shiftAmt) const {
 1214|       |  // If all the bits were shifted out, the result is 0. This avoids issues
 1215|       |  // with shifting by the size of the integer type, which produces undefined
 1216|       |  // results. We define these "undefined results" to always be 0.
 1217|  1.30M|  if (shiftAmt == BitWidth)
  ------------------
  |  Branch (1217:7): [True: 0, False: 1.30M]
  ------------------
 1218|      0|    return APInt(BitWidth, 0);
 1219|       |
 1220|       |  // If none of the bits are shifted out, the result is *this. This avoids a
 1221|       |  // lshr by the words size in the loop below which can produce incorrect
 1222|       |  // results. It also avoids the expensive computation below for a common case.
 1223|  1.30M|  if (shiftAmt == 0)
  ------------------
  |  Branch (1223:7): [True: 0, False: 1.30M]
  ------------------
 1224|      0|    return *this;
 1225|       |
 1226|       |  // Create some space for the result.
 1227|  1.30M|  uint64_t * val = new uint64_t[getNumWords()];
 1228|       |
 1229|       |  // If we are shifting less than a word, do it the easy way
 1230|  1.30M|  if (shiftAmt < APINT_BITS_PER_WORD) {
  ------------------
  |  Branch (1230:7): [True: 1.30M, False: 340]
  ------------------
 1231|  1.30M|    uint64_t carry = 0;
 1232|  12.6M|    for (unsigned i = 0; i < getNumWords(); i++) {
  ------------------
  |  Branch (1232:26): [True: 11.3M, False: 1.30M]
  ------------------
 1233|  11.3M|      val[i] = pVal[i] << shiftAmt | carry;
 1234|  11.3M|      carry = pVal[i] >> (APINT_BITS_PER_WORD - shiftAmt);
 1235|  11.3M|    }
 1236|  1.30M|    APInt Result(val, BitWidth);
 1237|  1.30M|    Result.clearUnusedBits();
 1238|  1.30M|    return Result;
 1239|  1.30M|  }
 1240|       |
 1241|       |  // Compute some values needed by the remaining shift algorithms
 1242|    340|  unsigned wordShift = shiftAmt % APINT_BITS_PER_WORD;
 1243|    340|  unsigned offset = shiftAmt / APINT_BITS_PER_WORD;
 1244|       |
 1245|       |  // If we are shifting whole words, just move whole words
 1246|    340|  if (wordShift == 0) {
  ------------------
  |  Branch (1246:7): [True: 335, False: 5]
  ------------------
 1247|    670|    for (unsigned i = 0; i < offset; i++)
  ------------------
  |  Branch (1247:26): [True: 335, False: 335]
  ------------------
 1248|    335|      val[i] = 0;
 1249|    670|    for (unsigned i = offset; i < getNumWords(); i++)
  ------------------
  |  Branch (1249:31): [True: 335, False: 335]
  ------------------
 1250|    335|      val[i] = pVal[i-offset];
 1251|    335|    APInt Result(val, BitWidth);
 1252|    335|    Result.clearUnusedBits();
 1253|    335|    return Result;
 1254|    335|  }
 1255|       |
 1256|       |  // Copy whole words from this to Result.
 1257|      5|  unsigned i = getNumWords() - 1;
 1258|     10|  for (; i > offset; --i)
  ------------------
  |  Branch (1258:10): [True: 5, False: 5]
  ------------------
 1259|      5|    val[i] = pVal[i-offset] << wordShift |
 1260|      5|             pVal[i-offset-1] >> (APINT_BITS_PER_WORD - wordShift);
 1261|      5|  val[offset] = pVal[0] << wordShift;
 1262|     10|  for (i = 0; i < offset; ++i)
  ------------------
  |  Branch (1262:15): [True: 5, False: 5]
  ------------------
 1263|      5|    val[i] = 0;
 1264|      5|  APInt Result(val, BitWidth);
 1265|      5|  Result.clearUnusedBits();
 1266|      5|  return Result;
 1267|    340|}
_ZN7llvm_ks5APInt5tcSetEPmmj:
 2307|  53.2k|{
 2308|  53.2k|  unsigned int i;
 2309|       |
 2310|  53.2k|  assert(parts > 0);
  ------------------
  |  Branch (2310:3): [True: 53.2k, False: 0]
  ------------------
 2311|       |
 2312|  53.2k|  dst[0] = part;
 2313|  86.2k|  for (i = 1; i < parts; i++)
  ------------------
  |  Branch (2313:15): [True: 32.9k, False: 53.2k]
  ------------------
 2314|  32.9k|    dst[i] = 0;
 2315|  53.2k|}
_ZN7llvm_ks5APInt8tcAssignEPmPKmj:
 2320|  81.7k|{
 2321|  81.7k|  unsigned int i;
 2322|       |
 2323|   180k|  for (i = 0; i < parts; i++)
  ------------------
  |  Branch (2323:15): [True: 98.8k, False: 81.7k]
  ------------------
 2324|  98.8k|    dst[i] = src[i];
 2325|  81.7k|}
_ZN7llvm_ks5APInt8tcIsZeroEPKmj:
 2330|  59.1k|{
 2331|  59.1k|  unsigned int i;
 2332|       |
 2333|  67.8k|  for (i = 0; i < parts; i++)
  ------------------
  |  Branch (2333:15): [True: 66.8k, False: 1.02k]
  ------------------
 2334|  66.8k|    if (src[i])
  ------------------
  |  Branch (2334:9): [True: 58.0k, False: 8.71k]
  ------------------
 2335|  58.0k|      return false;
 2336|       |
 2337|  1.02k|  return true;
 2338|  59.1k|}
_ZN7llvm_ks5APInt12tcExtractBitEPKmj:
 2343|  49.8k|{
 2344|  49.8k|  return (parts[bit / integerPartWidth] &
 2345|  49.8k|          ((integerPart) 1 << bit % integerPartWidth)) != 0;
 2346|  49.8k|}
_ZN7llvm_ks5APInt8tcSetBitEPmj:
 2351|   868k|{
 2352|   868k|  parts[bit / integerPartWidth] |= (integerPart) 1 << (bit % integerPartWidth);
 2353|   868k|}
_ZN7llvm_ks5APInt5tcLSBEPKmj:
 2367|  36.2k|{
 2368|  36.2k|  unsigned int i, lsb;
 2369|       |
 2370|  40.1k|  for (i = 0; i < n; i++) {
  ------------------
  |  Branch (2370:15): [True: 40.1k, False: 0]
  ------------------
 2371|  40.1k|      if (parts[i] != 0) {
  ------------------
  |  Branch (2371:11): [True: 36.2k, False: 3.91k]
  ------------------
 2372|  36.2k|          lsb = partLSB(parts[i]);
 2373|       |
 2374|  36.2k|          return lsb + i * integerPartWidth;
 2375|  36.2k|      }
 2376|  40.1k|  }
 2377|       |
 2378|      0|  return -1U;
 2379|  36.2k|}
_ZN7llvm_ks5APInt5tcMSBEPKmj:
 2385|   190k|{
 2386|   190k|  unsigned int msb;
 2387|       |
 2388|   195k|  do {
 2389|   195k|    --n;
 2390|       |
 2391|   195k|    if (parts[n] != 0) {
  ------------------
  |  Branch (2391:9): [True: 189k, False: 5.71k]
  ------------------
 2392|   189k|      msb = partMSB(parts[n]);
 2393|       |
 2394|   189k|      return msb + n * integerPartWidth;
 2395|   189k|    }
 2396|   195k|  } while (n);
  ------------------
  |  Branch (2396:12): [True: 4.60k, False: 1.11k]
  ------------------
 2397|       |
 2398|  1.11k|  return -1U;
 2399|   190k|}
_ZN7llvm_ks5APInt9tcExtractEPmjPKmjj:
 2408|  74.3k|{
 2409|  74.3k|  unsigned int firstSrcPart, dstParts, shift, n;
 2410|       |
 2411|  74.3k|  dstParts = (srcBits + integerPartWidth - 1) / integerPartWidth;
 2412|  74.3k|  assert(dstParts <= dstCount);
  ------------------
  |  Branch (2412:3): [True: 74.3k, False: 0]
  ------------------
 2413|       |
 2414|  74.3k|  firstSrcPart = srcLSB / integerPartWidth;
 2415|  74.3k|  tcAssign (dst, src + firstSrcPart, dstParts);
 2416|       |
 2417|  74.3k|  shift = srcLSB % integerPartWidth;
 2418|  74.3k|  tcShiftRight (dst, dstParts, shift);
 2419|       |
 2420|       |  /* We now have (dstParts * integerPartWidth - shift) bits from SRC
 2421|       |     in DST.  If this is less that srcBits, append the rest, else
 2422|       |     clear the high bits.  */
 2423|  74.3k|  n = dstParts * integerPartWidth - shift;
 2424|  74.3k|  if (n < srcBits) {
  ------------------
  |  Branch (2424:7): [True: 3.68k, False: 70.6k]
  ------------------
 2425|  3.68k|    integerPart mask = lowBitMask (srcBits - n);
 2426|  3.68k|    dst[dstParts - 1] |= ((src[firstSrcPart + dstParts] & mask)
 2427|  3.68k|                          << n % integerPartWidth);
 2428|  70.6k|  } else if (n > srcBits) {
  ------------------
  |  Branch (2428:14): [True: 70.3k, False: 305]
  ------------------
 2429|  70.3k|    if (srcBits % integerPartWidth)
  ------------------
  |  Branch (2429:9): [True: 70.0k, False: 285]
  ------------------
 2430|  70.0k|      dst[dstParts - 1] &= lowBitMask (srcBits % integerPartWidth);
 2431|  70.3k|  }
 2432|       |
 2433|       |  /* Clear high parts.  */
 2434|  79.2k|  while (dstParts < dstCount)
  ------------------
  |  Branch (2434:10): [True: 4.89k, False: 74.3k]
  ------------------
 2435|  4.89k|    dst[dstParts++] = 0;
 2436|  74.3k|}
_ZN7llvm_ks5APInt10tcSubtractEPmPKmmj:
 2467|   868k|{
 2468|   868k|  unsigned int i;
 2469|       |
 2470|   868k|  assert(c <= 1);
  ------------------
  |  Branch (2470:3): [True: 868k, False: 0]
  ------------------
 2471|       |
 2472|  14.5M|  for (i = 0; i < parts; i++) {
  ------------------
  |  Branch (2472:15): [True: 13.6M, False: 868k]
  ------------------
 2473|  13.6M|    integerPart l;
 2474|       |
 2475|  13.6M|    l = dst[i];
 2476|  13.6M|    if (c) {
  ------------------
  |  Branch (2476:9): [True: 3.17M, False: 10.4M]
  ------------------
 2477|  3.17M|      dst[i] -= rhs[i] + 1;
 2478|  3.17M|      c = (dst[i] >= l);
 2479|  10.4M|    } else {
 2480|  10.4M|      dst[i] -= rhs[i];
 2481|  10.4M|      c = (dst[i] > l);
 2482|  10.4M|    }
 2483|  13.6M|  }
 2484|       |
 2485|   868k|  return c;
 2486|   868k|}
_ZN7llvm_ks5APInt14tcMultiplyPartEPmPKmmmjjb:
 2512|  65.1k|{
 2513|  65.1k|  unsigned int i, n;
 2514|       |
 2515|       |  /* Otherwise our writes of DST kill our later reads of SRC.  */
 2516|  65.1k|  assert(dst <= src || dst >= src + srcParts);
  ------------------
  |  Branch (2516:3): [True: 39.3k, False: 25.8k]
  |  Branch (2516:3): [True: 25.8k, False: 0]
  |  Branch (2516:3): [True: 65.1k, False: 0]
  ------------------
 2517|  65.1k|  assert(dstParts <= srcParts + 1);
  ------------------
  |  Branch (2517:3): [True: 65.1k, False: 0]
  ------------------
 2518|       |
 2519|       |  /* N loops; minimum of dstParts and srcParts.  */
 2520|  65.1k|  n = dstParts < srcParts ? dstParts: srcParts;
  ------------------
  |  Branch (2520:7): [True: 0, False: 65.1k]
  ------------------
 2521|       |
 2522|   385k|  for (i = 0; i < n; i++) {
  ------------------
  |  Branch (2522:15): [True: 320k, False: 65.1k]
  ------------------
 2523|   320k|    integerPart low, mid, high, srcPart;
 2524|       |
 2525|       |      /* [ LOW, HIGH ] = MULTIPLIER * SRC[i] + DST[i] + CARRY.
 2526|       |
 2527|       |         This cannot overflow, because
 2528|       |
 2529|       |         (n - 1) * (n - 1) + 2 (n - 1) = (n - 1) * (n + 1)
 2530|       |
 2531|       |         which is less than n^2.  */
 2532|       |
 2533|   320k|    srcPart = src[i];
 2534|       |
 2535|   320k|    if (multiplier == 0 || srcPart == 0)        {
  ------------------
  |  Branch (2535:9): [True: 138, False: 320k]
  |  Branch (2535:28): [True: 31.1k, False: 289k]
  ------------------
 2536|  31.2k|      low = carry;
 2537|  31.2k|      high = 0;
 2538|   289k|    } else {
 2539|   289k|      low = lowHalf(srcPart) * lowHalf(multiplier);
 2540|   289k|      high = highHalf(srcPart) * highHalf(multiplier);
 2541|       |
 2542|   289k|      mid = lowHalf(srcPart) * highHalf(multiplier);
 2543|   289k|      high += highHalf(mid);
 2544|   289k|      mid <<= integerPartWidth / 2;
 2545|   289k|      if (low + mid < low)
  ------------------
  |  Branch (2545:11): [True: 62.0k, False: 227k]
  ------------------
 2546|  62.0k|        high++;
 2547|   289k|      low += mid;
 2548|       |
 2549|   289k|      mid = highHalf(srcPart) * lowHalf(multiplier);
 2550|   289k|      high += highHalf(mid);
 2551|   289k|      mid <<= integerPartWidth / 2;
 2552|   289k|      if (low + mid < low)
  ------------------
  |  Branch (2552:11): [True: 127k, False: 161k]
  ------------------
 2553|   127k|        high++;
 2554|   289k|      low += mid;
 2555|       |
 2556|       |      /* Now add carry.  */
 2557|   289k|      if (low + carry < low)
  ------------------
  |  Branch (2557:11): [True: 57.0k, False: 232k]
  ------------------
 2558|  57.0k|        high++;
 2559|   289k|      low += carry;
 2560|   289k|    }
 2561|       |
 2562|   320k|    if (add) {
  ------------------
  |  Branch (2562:9): [True: 153k, False: 166k]
  ------------------
 2563|       |      /* And now DST[i], and store the new low part there.  */
 2564|   153k|      if (low + dst[i] < low)
  ------------------
  |  Branch (2564:11): [True: 48.3k, False: 105k]
  ------------------
 2565|  48.3k|        high++;
 2566|   153k|      dst[i] += low;
 2567|   153k|    } else
 2568|   166k|      dst[i] = low;
 2569|       |
 2570|   320k|    carry = high;
 2571|   320k|  }
 2572|       |
 2573|  65.1k|  if (i < dstParts) {
  ------------------
  |  Branch (2573:7): [True: 65.1k, False: 0]
  ------------------
 2574|       |    /* Full multiplication, there is no overflow.  */
 2575|  65.1k|    assert(i + 1 == dstParts);
  ------------------
  |  Branch (2575:5): [True: 65.1k, False: 0]
  ------------------
 2576|  65.1k|    dst[i] = carry;
 2577|  65.1k|    return 0;
 2578|  65.1k|  } else {
 2579|       |    /* We overflowed if there is carry.  */
 2580|      0|    if (carry)
  ------------------
  |  Branch (2580:9): [True: 0, False: 0]
  ------------------
 2581|      0|      return 1;
 2582|       |
 2583|       |    /* We would overflow if any significant unwritten parts would be
 2584|       |       non-zero.  This is true if any remaining src parts are non-zero
 2585|       |       and the multiplier is non-zero.  */
 2586|      0|    if (multiplier)
  ------------------
  |  Branch (2586:9): [True: 0, False: 0]
  ------------------
 2587|      0|      for (; i < srcParts; i++)
  ------------------
  |  Branch (2587:14): [True: 0, False: 0]
  ------------------
 2588|      0|        if (src[i])
  ------------------
  |  Branch (2588:13): [True: 0, False: 0]
  ------------------
 2589|      0|          return 1;
 2590|       |
 2591|       |    /* We fitted in the narrow destination.  */
 2592|      0|    return 0;
 2593|      0|  }
 2594|  65.1k|}
_ZN7llvm_ks5APInt14tcFullMultiplyEPmPKmS3_jj:
 2627|  22.1k|{
 2628|       |  /* Put the narrower number on the LHS for less loops below.  */
 2629|  22.1k|  if (lhsParts > rhsParts) {
  ------------------
  |  Branch (2629:7): [True: 0, False: 22.1k]
  ------------------
 2630|      0|    return tcFullMultiply (dst, rhs, lhs, rhsParts, lhsParts);
 2631|  22.1k|  } else {
 2632|  22.1k|    unsigned int n;
 2633|       |
 2634|  22.1k|    assert(dst != lhs && dst != rhs);
  ------------------
  |  Branch (2634:5): [True: 22.1k, False: 0]
  |  Branch (2634:5): [True: 22.1k, False: 0]
  |  Branch (2634:5): [True: 22.1k, False: 0]
  ------------------
 2635|       |
 2636|  22.1k|    tcSet(dst, 0, rhsParts);
 2637|       |
 2638|  58.0k|    for (n = 0; n < lhsParts; n++)
  ------------------
  |  Branch (2638:17): [True: 35.9k, False: 22.1k]
  ------------------
 2639|  35.9k|      tcMultiplyPart(&dst[n], rhs, lhs[n], 0, rhsParts, rhsParts + 1, true);
 2640|       |
 2641|  22.1k|    n = lhsParts + rhsParts;
 2642|       |
 2643|  22.1k|    return n - (dst[n - 1] == 0);
 2644|  22.1k|  }
 2645|  22.1k|}
_ZN7llvm_ks5APInt11tcShiftLeftEPmjj:
 2706|  1.81M|{
 2707|  1.81M|  if (count) {
  ------------------
  |  Branch (2707:7): [True: 1.81M, False: 0]
  ------------------
 2708|  1.81M|    unsigned int jump, shift;
 2709|       |
 2710|       |    /* Jump is the inter-part jump; shift is is intra-part shift.  */
 2711|  1.81M|    jump = count / integerPartWidth;
 2712|  1.81M|    shift = count % integerPartWidth;
 2713|       |
 2714|  34.1M|    while (parts > jump) {
  ------------------
  |  Branch (2714:12): [True: 32.3M, False: 1.81M]
  ------------------
 2715|  32.3M|      integerPart part;
 2716|       |
 2717|  32.3M|      parts--;
 2718|       |
 2719|       |      /* dst[i] comes from the two parts src[i - jump] and, if we have
 2720|       |         an intra-part shift, src[i - jump - 1].  */
 2721|  32.3M|      part = dst[parts - jump];
 2722|  32.3M|      if (shift) {
  ------------------
  |  Branch (2722:11): [True: 32.3M, False: 327]
  ------------------
 2723|  32.3M|        part <<= shift;
 2724|  32.3M|        if (parts >= jump + 1)
  ------------------
  |  Branch (2724:13): [True: 30.5M, False: 1.81M]
  ------------------
 2725|  30.5M|          part |= dst[parts - jump - 1] >> (integerPartWidth - shift);
 2726|  32.3M|      }
 2727|       |
 2728|  32.3M|      dst[parts] = part;
 2729|  32.3M|    }
 2730|       |
 2731|  1.82M|    while (parts > 0)
  ------------------
  |  Branch (2731:12): [True: 4.58k, False: 1.81M]
  ------------------
 2732|  4.58k|      dst[--parts] = 0;
 2733|  1.81M|  }
 2734|  1.81M|}
_ZN7llvm_ks5APInt12tcShiftRightEPmjj:
 2740|  82.6k|{
 2741|  82.6k|  if (count) {
  ------------------
  |  Branch (2741:7): [True: 35.9k, False: 46.6k]
  ------------------
 2742|  35.9k|    unsigned int i, jump, shift;
 2743|       |
 2744|       |    /* Jump is the inter-part jump; shift is is intra-part shift.  */
 2745|  35.9k|    jump = count / integerPartWidth;
 2746|  35.9k|    shift = count % integerPartWidth;
 2747|       |
 2748|       |    /* Perform the shift.  This leaves the most significant COUNT bits
 2749|       |       of the result at zero.  */
 2750|  82.6k|    for (i = 0; i < parts; i++) {
  ------------------
  |  Branch (2750:17): [True: 46.6k, False: 35.9k]
  ------------------
 2751|  46.6k|      integerPart part;
 2752|       |
 2753|  46.6k|      if (i + jump >= parts) {
  ------------------
  |  Branch (2753:11): [True: 1.71k, False: 44.9k]
  ------------------
 2754|  1.71k|        part = 0;
 2755|  44.9k|      } else {
 2756|  44.9k|        part = dst[i + jump];
 2757|  44.9k|        if (shift) {
  ------------------
  |  Branch (2757:13): [True: 44.9k, False: 0]
  ------------------
 2758|  44.9k|          part >>= shift;
 2759|  44.9k|          if (i + jump + 1 < parts)
  ------------------
  |  Branch (2759:15): [True: 10.8k, False: 34.0k]
  ------------------
 2760|  10.8k|            part |= dst[i + jump + 1] << (integerPartWidth - shift);
 2761|  44.9k|        }
 2762|  44.9k|      }
 2763|       |
 2764|  46.6k|      dst[i] = part;
 2765|  46.6k|    }
 2766|  35.9k|  }
 2767|  82.6k|}
_ZN7llvm_ks5APInt9tcCompareEPKmS2_j:
 2813|  1.81M|{
 2814|  1.81M|  while (parts) {
  ------------------
  |  Branch (2814:10): [True: 1.81M, False: 1.96k]
  ------------------
 2815|  1.81M|      parts--;
 2816|  1.81M|      if (lhs[parts] == rhs[parts])
  ------------------
  |  Branch (2816:11): [True: 6.76k, False: 1.80M]
  ------------------
 2817|  6.76k|        continue;
 2818|       |
 2819|  1.80M|      if (lhs[parts] > rhs[parts])
  ------------------
  |  Branch (2819:11): [True: 894k, False: 915k]
  ------------------
 2820|   894k|        return 1;
 2821|   915k|      else
 2822|   915k|        return -1;
 2823|  1.80M|    }
 2824|       |
 2825|  1.96k|  return 0;
 2826|  1.81M|}
_ZN7llvm_ks5APInt11tcIncrementEPmj:
 2831|  15.2k|{
 2832|  15.2k|  unsigned int i;
 2833|       |
 2834|  15.3k|  for (i = 0; i < parts; i++)
  ------------------
  |  Branch (2834:15): [True: 15.3k, False: 0]
  ------------------
 2835|  15.3k|    if (++dst[i] != 0)
  ------------------
  |  Branch (2835:9): [True: 15.2k, False: 109]
  ------------------
 2836|  15.2k|      break;
 2837|       |
 2838|  15.2k|  return i == parts;
 2839|  15.2k|}
APInt.cpp:_ZL16getClearedMemoryj:
   34|   578k|inline static uint64_t* getClearedMemory(unsigned numWords) {
   35|   578k|  uint64_t * result = new uint64_t[numWords];
   36|   578k|  assert(result && "APInt memory allocation fails!");
  ------------------
  |  Branch (36:3): [True: 578k, False: 0]
  |  Branch (36:3): [True: 578k, Folded]
  |  Branch (36:3): [True: 578k, False: 0]
  ------------------
   37|   578k|  memset(result, 0, numWords * sizeof(uint64_t));
   38|   578k|  return result;
   39|   578k|}
APInt.cpp:_ZL9getMemoryj:
   43|   877k|inline static uint64_t* getMemory(unsigned numWords) {
   44|   877k|  uint64_t * result = new uint64_t[numWords];
   45|   877k|  assert(result && "APInt memory allocation fails!");
  ------------------
  |  Branch (45:3): [True: 877k, False: 0]
  |  Branch (45:3): [True: 877k, Folded]
  |  Branch (45:3): [True: 877k, False: 0]
  ------------------
   46|   877k|  return result;
   47|   877k|}
APInt.cpp:_ZN12_GLOBAL__N_17partLSBEm:
 2298|  36.2k|  {
 2299|  36.2k|    return findFirstSet(value, ZB_Max);
 2300|  36.2k|  }
APInt.cpp:_ZN12_GLOBAL__N_17partMSBEm:
 2290|   189k|  {
 2291|   189k|    return findLastSet(value, ZB_Max);
 2292|   189k|  }
APInt.cpp:_ZN12_GLOBAL__N_110lowBitMaskEj:
 2266|  1.23M|  {
 2267|  1.23M|    assert(bits != 0 && bits <= integerPartWidth);
  ------------------
  |  Branch (2267:5): [True: 1.23M, False: 0]
  |  Branch (2267:5): [True: 1.23M, False: 0]
  |  Branch (2267:5): [True: 1.23M, False: 0]
  ------------------
 2268|       |
 2269|  1.23M|    return ~(integerPart) 0 >> (integerPartWidth - bits);
 2270|  1.23M|  }
APInt.cpp:_ZN12_GLOBAL__N_17lowHalfEm:
 2275|  1.15M|  {
 2276|  1.15M|    return part & lowBitMask(integerPartWidth / 2);
 2277|  1.15M|  }
APInt.cpp:_ZN12_GLOBAL__N_18highHalfEm:
 2282|  1.73M|  {
 2283|  1.73M|    return part >> (integerPartWidth / 2);
 2284|  1.73M|  }

_ZN7llvm_ks12MemoryBufferD2Ev:
   39|  45.8k|MemoryBuffer::~MemoryBuffer() { }
_ZN7llvm_ks12MemoryBuffer4initEPKcS2_b:
   44|  45.8k|                        bool RequiresNullTerminator) {
   45|  45.8k|  assert((!RequiresNullTerminator || BufEnd[0] == 0) &&
  ------------------
  |  Branch (45:3): [True: 0, False: 45.8k]
  |  Branch (45:3): [True: 45.8k, False: 0]
  |  Branch (45:3): [True: 45.8k, Folded]
  |  Branch (45:3): [True: 45.8k, False: 0]
  ------------------
   46|  45.8k|         "Buffer is not null terminated!");
   47|  45.8k|  BufferStart = BufStart;
   48|  45.8k|  BufferEnd = BufEnd;
   49|  45.8k|}
_ZN7llvm_ks12MemoryBuffer12getMemBufferENS_9StringRefES1_b:
  104|  13.6k|                           bool RequiresNullTerminator) {
  105|  13.6k|  auto *Ret = new (NamedBufferAlloc(BufferName))
  106|  13.6k|      MemoryBufferMem(InputData, RequiresNullTerminator);
  107|  13.6k|  return std::unique_ptr<MemoryBuffer>(Ret);
  108|  13.6k|}
_ZN7llvm_ks12MemoryBuffer16getMemBufferCopyENS_9StringRefERKNS_5TwineE:
  117|  32.2k|MemoryBuffer::getMemBufferCopy(StringRef InputData, const Twine &BufferName) {
  118|  32.2k|  std::unique_ptr<MemoryBuffer> Buf =
  119|  32.2k|      getNewUninitMemBuffer(InputData.size(), BufferName);
  120|  32.2k|  if (!Buf)
  ------------------
  |  Branch (120:7): [True: 0, False: 32.2k]
  ------------------
  121|      0|    return nullptr;
  122|  32.2k|  memcpy(const_cast<char*>(Buf->getBufferStart()), InputData.data(),
  123|  32.2k|         InputData.size());
  124|  32.2k|  return Buf;
  125|  32.2k|}
_ZN7llvm_ks12MemoryBuffer21getNewUninitMemBufferEmRKNS_5TwineE:
  128|  32.2k|MemoryBuffer::getNewUninitMemBuffer(size_t Size, const Twine &BufferName) {
  129|       |  // Allocate space for the MemoryBuffer, the data and the name. It is important
  130|       |  // that MemoryBuffer and data are aligned so PointerIntPair works with them.
  131|       |  // TODO: Is 16-byte alignment enough?  We copy small object files with large
  132|       |  // alignment expectations into this buffer.
  133|  32.2k|  SmallString<256> NameBuf;
  134|  32.2k|  StringRef NameRef = BufferName.toStringRef(NameBuf);
  135|  32.2k|  size_t AlignedStringLen =
  136|  32.2k|      alignTo(sizeof(MemoryBufferMem) + NameRef.size() + 1, 16);
  137|  32.2k|  size_t RealLen = AlignedStringLen + Size + 1;
  138|  32.2k|  char *Mem = static_cast<char*>(operator new(RealLen, std::nothrow));
  139|  32.2k|  if (!Mem)
  ------------------
  |  Branch (139:7): [True: 0, False: 32.2k]
  ------------------
  140|      0|    return nullptr;
  141|       |
  142|       |  // The name is stored after the class itself.
  143|  32.2k|  CopyStringRef(Mem + sizeof(MemoryBufferMem), NameRef);
  144|       |
  145|       |  // The buffer begins after the name and must be aligned.
  146|  32.2k|  char *Buf = Mem + AlignedStringLen;
  147|  32.2k|  Buf[Size] = 0; // Null terminate buffer.
  148|       |
  149|  32.2k|  auto *Ret = new (Mem) MemoryBufferMem(StringRef(Buf, Size), true);
  150|  32.2k|  return std::unique_ptr<MemoryBuffer>(Ret);
  151|  32.2k|}
_ZN7llvm_ks12MemoryBuffer7getFileERKNS_5TwineElbb:
  247|      9|                      bool RequiresNullTerminator, bool IsVolatileSize) {
  248|      9|  return getFileAux(Filename, FileSize, FileSize, 0,
  249|      9|                    RequiresNullTerminator, IsVolatileSize);
  250|      9|}
MemoryBuffer.cpp:_ZN12_GLOBAL__N_116NamedBufferAllocC2ERKN7llvm_ks5TwineE:
   66|  13.6k|  NamedBufferAlloc(const Twine &Name) : Name(Name) {}
MemoryBuffer.cpp:_ZnwmRKN12_GLOBAL__N_116NamedBufferAllocE:
   70|  13.6k|void *operator new(size_t N, const NamedBufferAlloc &Alloc) {
   71|  13.6k|  SmallString<256> NameBuf;
   72|  13.6k|  StringRef NameRef = Alloc.Name.toStringRef(NameBuf);
   73|       |
   74|  13.6k|  char *Mem = static_cast<char *>(operator new(N + NameRef.size() + 1));
   75|  13.6k|  CopyStringRef(Mem + N, NameRef);
   76|  13.6k|  return Mem;
   77|  13.6k|}
MemoryBuffer.cpp:_ZN12_GLOBAL__N_115MemoryBufferMemC2EN7llvm_ks9StringRefEb:
   83|  45.8k|  MemoryBufferMem(StringRef InputData, bool RequiresNullTerminator) {
   84|  45.8k|    init(InputData.begin(), InputData.end(), RequiresNullTerminator);
   85|  45.8k|  }
MemoryBuffer.cpp:_ZNK12_GLOBAL__N_115MemoryBufferMem19getBufferIdentifierEv:
   87|  21.7k|  const char *getBufferIdentifier() const override {
   88|       |     // The name is stored after the class itself.
   89|  21.7k|    return reinterpret_cast<const char*>(this + 1);
   90|  21.7k|  }
MemoryBuffer.cpp:_ZL13CopyStringRefPcN7llvm_ks9StringRefE:
   57|  45.8k|static void CopyStringRef(char *Memory, StringRef Data) {
   58|  45.8k|  if (!Data.empty())
  ------------------
  |  Branch (58:7): [True: 32.2k, False: 13.6k]
  ------------------
   59|  32.2k|    memcpy(Memory, Data.data(), Data.size());
   60|  45.8k|  Memory[Data.size()] = 0; // Null terminate string.
   61|  45.8k|}
MemoryBuffer.cpp:_ZL10getFileAuxRKN7llvm_ks5TwineElmmbb:
  259|      9|           uint64_t Offset, bool RequiresNullTerminator, bool IsVolatileSize) {
  260|      9|  int FD;
  261|      9|  std::error_code EC = sys::fs::openFileForRead(Filename, FD);
  262|      9|  if (EC)
  ------------------
  |  Branch (262:7): [True: 8, False: 1]
  ------------------
  263|      8|    return EC;
  264|       |
  265|      1|  ErrorOr<std::unique_ptr<MemoryBuffer>> Ret =
  266|      1|      getOpenFileImpl(FD, Filename, FileSize, MapSize, Offset,
  267|      1|                      RequiresNullTerminator, IsVolatileSize);
  268|      1|  close(FD);
  269|      1|  return Ret;
  270|      9|}
MemoryBuffer.cpp:_ZL15getOpenFileImpliRKN7llvm_ks5TwineEmmlbb:
  331|      1|                bool IsVolatileSize) {
  332|      1|  static int PageSize = 4096;
  333|       |
  334|       |  // Default is to map the full file.
  335|      1|  if (MapSize == uint64_t(-1)) {
  ------------------
  |  Branch (335:7): [True: 1, False: 0]
  ------------------
  336|       |    // If we don't know the file size, use fstat to find out.  fstat on an open
  337|       |    // file descriptor is cheaper than stat on a random path.
  338|      1|    if (FileSize == uint64_t(-1)) {
  ------------------
  |  Branch (338:9): [True: 1, False: 0]
  ------------------
  339|      1|      sys::fs::file_status Status;
  340|      1|      std::error_code EC = sys::fs::status(FD, Status);
  341|      1|      if (EC)
  ------------------
  |  Branch (341:11): [True: 0, False: 1]
  ------------------
  342|      0|        return EC;
  343|       |
  344|       |      // If this not a file or a block device (e.g. it's a named pipe
  345|       |      // or character device), we can't trust the size. Create the memory
  346|       |      // buffer by copying off the stream.
  347|      1|      sys::fs::file_type Type = Status.type();
  348|      1|      if (Type != sys::fs::file_type::regular_file &&
  ------------------
  |  Branch (348:11): [True: 1, False: 0]
  ------------------
  349|      1|          Type != sys::fs::file_type::block_file)
  ------------------
  |  Branch (349:11): [True: 1, False: 0]
  ------------------
  350|      1|        return getMemoryBufferForStream(FD, Filename);
  351|       |
  352|      0|      FileSize = Status.getSize();
  353|      0|    }
  354|      0|    MapSize = FileSize;
  355|      0|  }
  356|       |
  357|      0|  if (shouldUseMmap(FD, FileSize, MapSize, Offset, RequiresNullTerminator,
  ------------------
  |  Branch (357:7): [True: 0, False: 0]
  ------------------
  358|      0|                    PageSize, IsVolatileSize)) {
  359|      0|    std::error_code EC;
  360|      0|    std::unique_ptr<MemoryBuffer> Result(
  361|      0|        new (NamedBufferAlloc(Filename))
  362|      0|        MemoryBufferMMapFile(RequiresNullTerminator, FD, MapSize, Offset, EC));
  363|      0|    if (!EC)
  ------------------
  |  Branch (363:9): [True: 0, False: 0]
  ------------------
  364|      0|      return std::move(Result);
  365|      0|  }
  366|       |
  367|      0|  std::unique_ptr<MemoryBuffer> Buf =
  368|      0|      MemoryBuffer::getNewUninitMemBuffer(MapSize, Filename);
  369|      0|  if (!Buf) {
  ------------------
  |  Branch (369:7): [True: 0, False: 0]
  ------------------
  370|       |    // Failed to create a buffer. The only way it can fail is if
  371|       |    // new(std::nothrow) returns 0.
  372|      0|    return make_error_code(errc::not_enough_memory);
  373|      0|  }
  374|       |
  375|      0|  char *BufPtr = const_cast<char *>(Buf->getBufferStart());
  376|       |
  377|      0|  size_t BytesLeft = MapSize;
  378|       |#ifndef HAVE_PREAD
  379|       |  if (lseek(FD, Offset, SEEK_SET) == -1)
  380|       |    return std::error_code(errno, std::generic_category());
  381|       |#endif
  382|       |
  383|      0|  while (BytesLeft) {
  ------------------
  |  Branch (383:10): [True: 0, False: 0]
  ------------------
  384|      0|#ifdef HAVE_PREAD
  385|      0|    ssize_t NumRead = ::pread(FD, BufPtr, BytesLeft, MapSize-BytesLeft+Offset);
  386|       |#else
  387|       |    ssize_t NumRead = ::read(FD, BufPtr, BytesLeft);
  388|       |#endif
  389|      0|    if (NumRead == -1) {
  ------------------
  |  Branch (389:9): [True: 0, False: 0]
  ------------------
  390|      0|      if (errno == EINTR)
  ------------------
  |  Branch (390:11): [True: 0, False: 0]
  ------------------
  391|      0|        continue;
  392|       |      // Error while reading.
  393|      0|      return std::error_code(errno, std::generic_category());
  394|      0|    }
  395|      0|    if (NumRead == 0) {
  ------------------
  |  Branch (395:9): [True: 0, False: 0]
  ------------------
  396|      0|      memset(BufPtr, 0, BytesLeft); // zero-initialize rest of the buffer.
  397|      0|      break;
  398|      0|    }
  399|      0|    BytesLeft -= NumRead;
  400|      0|    BufPtr += NumRead;
  401|      0|  }
  402|       |
  403|      0|  return std::move(Buf);
  404|      0|}
MemoryBuffer.cpp:_ZL24getMemoryBufferForStreamiRKN7llvm_ks5TwineE:
  226|      1|getMemoryBufferForStream(int FD, const Twine &BufferName) {
  227|      1|  const ssize_t ChunkSize = 4096*4;
  228|      1|  SmallString<ChunkSize> Buffer;
  229|      1|  ssize_t ReadBytes;
  230|       |  // Read into Buffer until we hit EOF.
  231|      1|  do {
  232|      1|    Buffer.reserve(Buffer.size() + ChunkSize);
  233|      1|    ReadBytes = read(FD, Buffer.end(), ChunkSize);
  234|      1|    if (ReadBytes == -1) {
  ------------------
  |  Branch (234:9): [True: 1, False: 0]
  ------------------
  235|      1|      if (errno == EINTR) continue;
  ------------------
  |  Branch (235:11): [True: 0, False: 1]
  ------------------
  236|      1|      return std::error_code(errno, std::generic_category());
  237|      1|    }
  238|      0|    Buffer.set_size(Buffer.size() + ReadBytes);
  239|      0|  } while (ReadBytes != 0);
  ------------------
  |  Branch (239:12): [True: 0, False: 0]
  ------------------
  240|       |
  241|      0|  return MemoryBuffer::getMemBufferCopy(Buffer, BufferName);
  242|      1|}

_ZN7llvm_ks3sys4path5beginENS_9StringRefE:
  232|  13.6k|const_iterator begin(StringRef path) {
  233|  13.6k|  const_iterator i;
  234|  13.6k|  i.Path      = path;
  235|  13.6k|  i.Component = find_first_component(path);
  236|  13.6k|  i.Position  = 0;
  237|  13.6k|  return i;
  238|  13.6k|}
_ZN7llvm_ks3sys4path3endENS_9StringRefE:
  240|  13.6k|const_iterator end(StringRef path) {
  241|  13.6k|  const_iterator i;
  242|  13.6k|  i.Path      = path;
  243|  13.6k|  i.Position  = path.size();
  244|  13.6k|  return i;
  245|  13.6k|}
_ZNK7llvm_ks3sys4path14const_iteratoreqERKS2_:
  300|  13.6k|bool const_iterator::operator==(const const_iterator &RHS) const {
  301|  13.6k|  return Path.begin() == RHS.Path.begin() && Position == RHS.Position;
  ------------------
  |  Branch (301:10): [True: 13.6k, False: 0]
  |  Branch (301:46): [True: 0, False: 13.6k]
  ------------------
  302|  13.6k|}
_ZN7llvm_ks3sys4path14root_directoryENS_9StringRefE:
  409|  13.6k|StringRef root_directory(StringRef path) {
  410|  13.6k|  const_iterator b = begin(path),
  411|  13.6k|                 pos = b,
  412|  13.6k|                 e = end(path);
  413|  13.6k|  if (b != e) {
  ------------------
  |  Branch (413:7): [True: 13.6k, False: 0]
  ------------------
  414|  13.6k|    bool has_net = b->size() > 2 && is_separator((*b)[0]) && (*b)[1] == (*b)[0];
  ------------------
  |  Branch (414:20): [True: 0, False: 13.6k]
  |  Branch (414:37): [True: 0, False: 0]
  |  Branch (414:62): [True: 0, False: 0]
  ------------------
  415|  13.6k|    bool has_drive =
  416|       |#ifdef LLVM_ON_WIN32
  417|       |      b->endswith(":");
  418|       |#else
  419|  13.6k|      false;
  420|  13.6k|#endif
  421|       |
  422|  13.6k|    if ((has_net || has_drive) &&
  ------------------
  |  Branch (422:10): [True: 0, False: 13.6k]
  |  Branch (422:21): [True: 0, False: 13.6k]
  ------------------
  423|       |        // {C:,//net}, skip to the next component.
  424|      0|        (++pos != e) && is_separator((*pos)[0])) {
  ------------------
  |  Branch (424:9): [True: 0, False: 0]
  |  Branch (424:25): [True: 0, False: 0]
  ------------------
  425|      0|      return *pos;
  426|      0|    }
  427|       |
  428|       |    // POSIX style root directory.
  429|  13.6k|    if (!has_net && is_separator((*b)[0])) {
  ------------------
  |  Branch (429:9): [True: 13.6k, False: 0]
  |  Branch (429:21): [True: 13.6k, False: 0]
  ------------------
  430|  13.6k|      return *b;
  431|  13.6k|    }
  432|  13.6k|  }
  433|       |
  434|       |  // No path or no root.
  435|      0|  return StringRef();
  436|  13.6k|}
_ZN7llvm_ks3sys4path12is_separatorEc:
  576|  40.8k|bool is_separator(char value) {
  577|  40.8k|  switch(value) {
  578|       |#ifdef LLVM_ON_WIN32
  579|       |    case '\\': // fall through
  580|       |#endif
  581|  40.8k|    case '/': return true;
  ------------------
  |  Branch (581:5): [True: 40.8k, False: 0]
  ------------------
  582|      0|    default: return false;
  ------------------
  |  Branch (582:5): [True: 0, False: 40.8k]
  ------------------
  583|  40.8k|  }
  584|  40.8k|}
_ZN7llvm_ks3sys4path18has_root_directoryERKNS_5TwineE:
  599|  13.6k|bool has_root_directory(const Twine &path) {
  600|  13.6k|  SmallString<128> path_storage;
  601|  13.6k|  StringRef p = path.toStringRef(path_storage);
  602|       |
  603|  13.6k|  return !root_directory(p).empty();
  604|  13.6k|}
_ZN7llvm_ks3sys4path11is_absoluteERKNS_5TwineE:
  648|  13.6k|bool is_absolute(const Twine &path) {
  649|  13.6k|  SmallString<128> path_storage;
  650|  13.6k|  StringRef p = path.toStringRef(path_storage);
  651|       |
  652|  13.6k|  bool rootDir = has_root_directory(p),
  653|       |#ifdef LLVM_ON_WIN32
  654|       |       rootName = has_root_name(p);
  655|       |#else
  656|  13.6k|       rootName = true;
  657|  13.6k|#endif
  658|       |
  659|  13.6k|  return rootDir && rootName;
  ------------------
  |  Branch (659:10): [True: 13.6k, False: 0]
  |  Branch (659:21): [True: 13.6k, False: 0]
  ------------------
  660|  13.6k|}
Path.cpp:_ZN12_GLOBAL__N_120find_first_componentEN7llvm_ks9StringRefE:
   45|  13.6k|  StringRef find_first_component(StringRef path) {
   46|       |    // Look for this first component in the following order.
   47|       |    // * empty (in this case we return an empty string)
   48|       |    // * either C: or {//,\\}net.
   49|       |    // * {/,\}
   50|       |    // * {file,directory}name
   51|       |
   52|  13.6k|    if (path.empty())
  ------------------
  |  Branch (52:9): [True: 0, False: 13.6k]
  ------------------
   53|      0|      return path;
   54|       |
   55|       |#ifdef LLVM_ON_WIN32
   56|       |    // C:
   57|       |    if (path.size() >= 2 && std::isalpha(static_cast<unsigned char>(path[0])) &&
   58|       |        path[1] == ':')
   59|       |      return path.substr(0, 2);
   60|       |#endif
   61|       |
   62|       |    // //net
   63|  13.6k|    if ((path.size() > 2) &&
  ------------------
  |  Branch (63:9): [True: 13.6k, False: 0]
  ------------------
   64|  13.6k|        is_separator(path[0]) &&
  ------------------
  |  Branch (64:9): [True: 13.6k, False: 0]
  ------------------
   65|  13.6k|        path[0] == path[1] &&
  ------------------
  |  Branch (65:9): [True: 0, False: 13.6k]
  ------------------
   66|      0|        !is_separator(path[2])) {
  ------------------
  |  Branch (66:9): [True: 0, False: 0]
  ------------------
   67|       |      // Find the next directory separator.
   68|      0|      size_t end = path.find_first_of(separators, 2);
   69|      0|      return path.substr(0, end);
   70|      0|    }
   71|       |
   72|       |    // {/,\}
   73|  13.6k|    if (is_separator(path[0]))
  ------------------
  |  Branch (73:9): [True: 13.6k, False: 0]
  ------------------
   74|  13.6k|      return path.substr(0, 1);
   75|       |
   76|       |    // * {file,directory}name
   77|      0|    size_t end = path.find_first_of(separators);
   78|      0|    return path.substr(0, end);
   79|  13.6k|  }

_ZN7llvm_ks15SmallVectorBase8grow_podEPvmm:
   20|  14.6k|                               size_t TSize) {
   21|  14.6k|  size_t CurSizeBytes = size_in_bytes();
   22|  14.6k|  size_t NewCapacityInBytes = 2 * capacity_in_bytes() + TSize; // Always grow.
   23|  14.6k|  if (NewCapacityInBytes < MinSizeInBytes)
  ------------------
  |  Branch (23:7): [True: 733, False: 13.8k]
  ------------------
   24|    733|    NewCapacityInBytes = MinSizeInBytes;
   25|       |
   26|  14.6k|  void *NewElts;
   27|  14.6k|  if (BeginX == FirstEl) {
  ------------------
  |  Branch (27:7): [True: 8.07k, False: 6.53k]
  ------------------
   28|  8.07k|    NewElts = malloc(NewCapacityInBytes);
   29|       |
   30|       |    // Copy the elements over.  No need to run dtors on PODs.
   31|  8.07k|    memcpy(NewElts, this->BeginX, CurSizeBytes);
   32|  8.07k|  } else {
   33|       |    // If this wasn't grown from the inline copy, grow the allocated space.
   34|  6.53k|    NewElts = realloc(this->BeginX, NewCapacityInBytes);
   35|  6.53k|  }
   36|  14.6k|  assert(NewElts && "Out of memory");
  ------------------
  |  Branch (36:3): [True: 14.6k, False: 0]
  |  Branch (36:3): [True: 14.6k, Folded]
  |  Branch (36:3): [True: 14.6k, False: 0]
  ------------------
   37|       |
   38|  14.6k|  this->EndX = (char*)NewElts+CurSizeBytes;
   39|  14.6k|  this->BeginX = NewElts;
   40|  14.6k|  this->CapacityX = (char*)this->BeginX + NewCapacityInBytes;
   41|  14.6k|}

_ZN7llvm_ks9SourceMgrD2Ev:
   38|  13.6k|SourceMgr::~SourceMgr() {
   39|       |  // Delete the line # cache if allocated.
   40|  13.6k|  if (LineNoCacheTy *Cache = getCache(LineNoCache))
  ------------------
  |  Branch (40:22): [True: 4.50k, False: 9.12k]
  ------------------
   41|  4.50k|    delete Cache;
   42|  13.6k|}
_ZN7llvm_ks9SourceMgr14AddIncludeFileERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5SMLocERS7_:
   46|      9|                                   std::string &IncludedFile) {
   47|      9|  IncludedFile = Filename;
   48|      9|  ErrorOr<std::unique_ptr<MemoryBuffer>> NewBufOrErr =
   49|      9|    MemoryBuffer::getFile(IncludedFile);
   50|       |
   51|       |  // If the file didn't exist directly, see if it's in an include path.
   52|      9|  for (unsigned i = 0, e = IncludeDirectories.size(); i != e && !NewBufOrErr;
  ------------------
  |  Branch (52:55): [True: 0, False: 9]
  |  Branch (52:65): [True: 0, False: 0]
  ------------------
   53|      9|       ++i) {
   54|      0|    IncludedFile =
   55|      0|        IncludeDirectories[i] + sys::path::get_separator().data() + Filename;
   56|      0|    NewBufOrErr = MemoryBuffer::getFile(IncludedFile);
   57|      0|  }
   58|       |
   59|      9|  if (!NewBufOrErr)
  ------------------
  |  Branch (59:7): [True: 9, False: 0]
  ------------------
   60|      9|    return 0;
   61|       |
   62|      0|  return AddNewSourceBuffer(std::move(*NewBufOrErr), IncludeLoc);
   63|      9|}
_ZNK7llvm_ks9SourceMgr23FindBufferContainingLocENS_5SMLocE:
   65|  87.1k|unsigned SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
   66|  1.35M|  for (unsigned i = 0, e = Buffers.size(); i != e; ++i)
  ------------------
  |  Branch (66:44): [True: 1.33M, False: 20.0k]
  ------------------
   67|  1.33M|    if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() &&
  ------------------
  |  Branch (67:9): [True: 676k, False: 657k]
  ------------------
   68|       |        // Use <= here so that a pointer to the null at the end of the buffer
   69|       |        // is included as part of the buffer.
   70|   676k|        Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd())
  ------------------
  |  Branch (70:9): [True: 67.0k, False: 609k]
  ------------------
   71|  67.0k|      return i + 1;
   72|  20.0k|  return 0;
   73|  87.1k|}
_ZNK7llvm_ks9SourceMgr16getLineAndColumnENS_5SMLocEj:
   76|  23.4k|SourceMgr::getLineAndColumn(SMLoc Loc, unsigned BufferID) const {
   77|  23.4k|  if (!BufferID)
  ------------------
  |  Branch (77:7): [True: 0, False: 23.4k]
  ------------------
   78|      0|    BufferID = FindBufferContainingLoc(Loc);
   79|  23.4k|  assert(BufferID && "Invalid Location!");
  ------------------
  |  Branch (79:3): [True: 23.4k, False: 0]
  |  Branch (79:3): [True: 23.4k, Folded]
  |  Branch (79:3): [True: 23.4k, False: 0]
  ------------------
   80|       |
   81|  23.4k|  const MemoryBuffer *Buff = getMemoryBuffer(BufferID);
   82|       |
   83|       |  // Count the number of \n's between the start of the file and the specified
   84|       |  // location.
   85|  23.4k|  unsigned LineNo = 1;
   86|       |
   87|  23.4k|  const char *BufStart = Buff->getBufferStart();
   88|  23.4k|  const char *Ptr = BufStart;
   89|       |
   90|       |  // If we have a line number cache, and if the query is to a later point in the
   91|       |  // same file, start searching from the last query location.  This optimizes
   92|       |  // for the case when multiple diagnostics come out of one file in order.
   93|  23.4k|  if (LineNoCacheTy *Cache = getCache(LineNoCache))
  ------------------
  |  Branch (93:22): [True: 18.9k, False: 4.50k]
  ------------------
   94|  18.9k|    if (Cache->LastQueryBufferID == BufferID &&
  ------------------
  |  Branch (94:9): [True: 8.29k, False: 10.6k]
  ------------------
   95|  8.29k|        Cache->LastQuery <= Loc.getPointer()) {
  ------------------
  |  Branch (95:9): [True: 7.47k, False: 820]
  ------------------
   96|  7.47k|      Ptr = Cache->LastQuery;
   97|  7.47k|      LineNo = Cache->LineNoOfQuery;
   98|  7.47k|    }
   99|       |
  100|       |  // Scan for the location being queried, keeping track of the number of lines
  101|       |  // we see.
  102|  7.34M|  for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr)
  ------------------
  |  Branch (102:10): [True: 7.32M, False: 23.4k]
  ------------------
  103|  7.32M|    if (*Ptr == '\n') ++LineNo;
  ------------------
  |  Branch (103:9): [True: 277k, False: 7.04M]
  ------------------
  104|       |
  105|       |  // Allocate the line number cache if it doesn't exist.
  106|  23.4k|  if (!LineNoCache)
  ------------------
  |  Branch (106:7): [True: 4.50k, False: 18.9k]
  ------------------
  107|  4.50k|    LineNoCache = new LineNoCacheTy();
  108|       |
  109|       |  // Update the line # cache.
  110|  23.4k|  LineNoCacheTy &Cache = *getCache(LineNoCache);
  111|  23.4k|  Cache.LastQueryBufferID = BufferID;
  112|  23.4k|  Cache.LastQuery = Ptr;
  113|  23.4k|  Cache.LineNoOfQuery = LineNo;
  114|       |  
  115|  23.4k|  size_t NewlineOffs = StringRef(BufStart, Ptr-BufStart).find_last_of("\n\r");
  116|  23.4k|  if (NewlineOffs == StringRef::npos) NewlineOffs = ~(size_t)0;
  ------------------
  |  Branch (116:7): [True: 13.9k, False: 9.50k]
  ------------------
  117|  23.4k|  return std::make_pair(LineNo, Ptr-BufStart-NewlineOffs);
  118|  23.4k|}
_ZNK7llvm_ks9SourceMgr17PrintIncludeStackENS_5SMLocERNS_11raw_ostreamE:
  120|  9.36k|void SourceMgr::PrintIncludeStack(SMLoc IncludeLoc, raw_ostream &OS) const {
  121|  9.36k|  if (IncludeLoc == SMLoc()) return;  // Top of stack.
  ------------------
  |  Branch (121:7): [True: 9.36k, False: 0]
  ------------------
  122|       |
  123|      0|  unsigned CurBuf = FindBufferContainingLoc(IncludeLoc);
  124|      0|  assert(CurBuf && "Invalid or unspecified location!");
  ------------------
  |  Branch (124:3): [True: 0, False: 0]
  |  Branch (124:3): [True: 0, Folded]
  |  Branch (124:3): [True: 0, False: 0]
  ------------------
  125|       |
  126|      0|  PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS);
  127|       |
  128|      0|  OS << "Included from "
  129|      0|     << getBufferInfo(CurBuf).Buffer->getBufferIdentifier()
  130|      0|     << ":" << FindLineNumber(IncludeLoc, CurBuf) << ":\n";
  131|      0|}
_ZNK7llvm_ks9SourceMgr10GetMessageENS_5SMLocENS0_8DiagKindERKNS_5TwineENS_8ArrayRefINS_7SMRangeEEENS6_INS_7SMFixItEEE:
  137|  21.7k|                                   ArrayRef<SMFixIt> FixIts) const {
  138|       |
  139|       |  // First thing to do: find the current buffer containing the specified
  140|       |  // location to pull out the source line.
  141|  21.7k|  SmallVector<std::pair<unsigned, unsigned>, 4> ColRanges;
  142|  21.7k|  std::pair<unsigned, unsigned> LineAndCol;
  143|  21.7k|  const char *BufferID = "<unknown>";
  144|  21.7k|  std::string LineStr;
  145|       |  
  146|  21.7k|  if (Loc.isValid()) {
  ------------------
  |  Branch (146:7): [True: 21.7k, False: 0]
  ------------------
  147|  21.7k|    unsigned CurBuf = FindBufferContainingLoc(Loc);
  148|  21.7k|    assert(CurBuf && "Invalid or unspecified location!");
  ------------------
  |  Branch (148:5): [True: 21.7k, False: 0]
  |  Branch (148:5): [True: 21.7k, Folded]
  |  Branch (148:5): [True: 21.7k, False: 0]
  ------------------
  149|       |
  150|  21.7k|    const MemoryBuffer *CurMB = getMemoryBuffer(CurBuf);
  151|  21.7k|    BufferID = CurMB->getBufferIdentifier();
  152|       |    
  153|       |    // Scan backward to find the start of the line.
  154|  21.7k|    const char *LineStart = Loc.getPointer();
  155|  21.7k|    const char *BufStart = CurMB->getBufferStart();
  156|   687k|    while (LineStart != BufStart && LineStart[-1] != '\n' &&
  ------------------
  |  Branch (156:12): [True: 674k, False: 13.1k]
  |  Branch (156:37): [True: 668k, False: 5.83k]
  ------------------
  157|   668k|           LineStart[-1] != '\r')
  ------------------
  |  Branch (157:12): [True: 665k, False: 2.78k]
  ------------------
  158|   665k|      --LineStart;
  159|       |
  160|       |    // Get the end of the line.
  161|  21.7k|    const char *LineEnd = Loc.getPointer();
  162|  21.7k|    const char *BufEnd = CurMB->getBufferEnd();
  163|   637k|    while (LineEnd != BufEnd && LineEnd[0] != '\n' && LineEnd[0] != '\r')
  ------------------
  |  Branch (163:12): [True: 632k, False: 5.34k]
  |  Branch (163:33): [True: 619k, False: 12.9k]
  |  Branch (163:55): [True: 615k, False: 3.52k]
  ------------------
  164|   615k|      ++LineEnd;
  165|  21.7k|    LineStr = std::string(LineStart, LineEnd);
  166|       |
  167|       |    // Convert any ranges to column ranges that only intersect the line of the
  168|       |    // location.
  169|  21.8k|    for (unsigned i = 0, e = Ranges.size(); i != e; ++i) {
  ------------------
  |  Branch (169:45): [True: 50, False: 21.7k]
  ------------------
  170|     50|      SMRange R = Ranges[i];
  171|     50|      if (!R.isValid()) continue;
  ------------------
  |  Branch (171:11): [True: 0, False: 50]
  ------------------
  172|       |      
  173|       |      // If the line doesn't contain any part of the range, then ignore it.
  174|     50|      if (R.Start.getPointer() > LineEnd || R.End.getPointer() < LineStart)
  ------------------
  |  Branch (174:11): [True: 0, False: 50]
  |  Branch (174:45): [True: 0, False: 50]
  ------------------
  175|      0|        continue;
  176|       |     
  177|       |      // Ignore pieces of the range that go onto other lines.
  178|     50|      if (R.Start.getPointer() < LineStart)
  ------------------
  |  Branch (178:11): [True: 0, False: 50]
  ------------------
  179|      0|        R.Start = SMLoc::getFromPointer(LineStart);
  180|     50|      if (R.End.getPointer() > LineEnd)
  ------------------
  |  Branch (180:11): [True: 38, False: 12]
  ------------------
  181|     38|        R.End = SMLoc::getFromPointer(LineEnd);
  182|       |      
  183|       |      // Translate from SMLoc ranges to column ranges.
  184|       |      // FIXME: Handle multibyte characters.
  185|     50|      ColRanges.push_back(std::make_pair(R.Start.getPointer()-LineStart,
  186|     50|                                         R.End.getPointer()-LineStart));
  187|     50|    }
  188|       |
  189|  21.7k|    LineAndCol = getLineAndColumn(Loc, CurBuf);
  190|  21.7k|  }
  191|       |    
  192|  21.7k|  return SMDiagnostic(*this, Loc, BufferID, LineAndCol.first,
  193|  21.7k|                      LineAndCol.second-1, Kind, Msg.str(),
  194|  21.7k|                      LineStr, ColRanges, FixIts);
  195|  21.7k|}
_ZNK7llvm_ks9SourceMgr12PrintMessageERNS_11raw_ostreamERKNS_12SMDiagnosticEb:
  198|  21.7k|                             bool ShowColors) const {
  199|       |  // Report the message with the diagnostic handler if present.
  200|  21.7k|  if (DiagHandler) {
  ------------------
  |  Branch (200:7): [True: 21.7k, False: 0]
  ------------------
  201|  21.7k|    DiagHandler(Diagnostic, DiagContext);
  202|  21.7k|    return;
  203|  21.7k|  }
  204|       |
  205|      0|  if (Diagnostic.getLoc().isValid()) {
  ------------------
  |  Branch (205:7): [True: 0, False: 0]
  ------------------
  206|      0|    unsigned CurBuf = FindBufferContainingLoc(Diagnostic.getLoc());
  207|      0|    assert(CurBuf && "Invalid or unspecified location!");
  ------------------
  |  Branch (207:5): [True: 0, False: 0]
  |  Branch (207:5): [True: 0, Folded]
  |  Branch (207:5): [True: 0, False: 0]
  ------------------
  208|      0|    PrintIncludeStack(getBufferInfo(CurBuf).IncludeLoc, OS);
  209|      0|  }
  210|       |
  211|      0|  Diagnostic.print(nullptr, OS, ShowColors);
  212|      0|}
_ZNK7llvm_ks9SourceMgr12PrintMessageERNS_11raw_ostreamENS_5SMLocENS0_8DiagKindERKNS_5TwineENS_8ArrayRefINS_7SMRangeEEENS8_INS_7SMFixItEEEb:
  217|  21.7k|                             ArrayRef<SMFixIt> FixIts, bool ShowColors) const {
  218|  21.7k|  PrintMessage(OS, GetMessage(Loc, Kind, Msg, Ranges, FixIts), ShowColors);
  219|  21.7k|}
_ZNK7llvm_ks9SourceMgr12PrintMessageENS_5SMLocENS0_8DiagKindERKNS_5TwineENS_8ArrayRefINS_7SMRangeEEENS6_INS_7SMFixItEEEb:
  223|  21.7k|                             ArrayRef<SMFixIt> FixIts, bool ShowColors) const {
  224|  21.7k|  PrintMessage(llvm_ks::errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors);
  225|  21.7k|}
_ZN7llvm_ks12SMDiagnosticC2ERKNS_9SourceMgrENS_5SMLocENS_9StringRefEiiNS1_8DiagKindES5_S5_NS_8ArrayRefINSt3__14pairIjjEEEENS7_INS_7SMFixItEEE:
  236|  22.6k|  : SM(&sm), Loc(L), Filename(FN), LineNo(Line), ColumnNo(Col), Kind(Kind),
  237|  22.6k|    Message(Msg), LineContents(LineStr), Ranges(Ranges.vec()),
  238|  22.6k|    FixIts(Hints.begin(), Hints.end()) {
  239|  22.6k|  std::sort(FixIts.begin(), FixIts.end());
  240|  22.6k|}
_ZNK7llvm_ks12SMDiagnostic5printEPKcRNS_11raw_ostreamEbb:
  329|  21.7k|                         bool ShowKindLabel) const {
  330|       |  // Display colors only if OS supports colors.
  331|  21.7k|  ShowColors &= S.has_colors();
  332|       |
  333|  21.7k|  if (ShowColors)
  ------------------
  |  Branch (333:7): [True: 21.7k, False: 0]
  ------------------
  334|  21.7k|    S.changeColor(raw_ostream::SAVEDCOLOR, true);
  335|       |
  336|  21.7k|  if (ProgName && ProgName[0])
  ------------------
  |  Branch (336:7): [True: 0, False: 21.7k]
  |  Branch (336:19): [True: 0, False: 0]
  ------------------
  337|      0|    S << ProgName << ": ";
  338|       |
  339|  21.7k|  if (!Filename.empty()) {
  ------------------
  |  Branch (339:7): [True: 9.92k, False: 11.8k]
  ------------------
  340|  9.92k|    if (Filename == "-")
  ------------------
  |  Branch (340:9): [True: 173, False: 9.74k]
  ------------------
  341|    173|      S << "<stdin>";
  342|  9.74k|    else
  343|  9.74k|      S << Filename;
  344|       |
  345|  9.92k|    if (LineNo != -1) {
  ------------------
  |  Branch (345:9): [True: 9.89k, False: 26]
  ------------------
  346|  9.89k|      S << ':' << LineNo;
  347|  9.89k|      if (ColumnNo != -1)
  ------------------
  |  Branch (347:11): [True: 9.89k, False: 0]
  ------------------
  348|  9.89k|        S << ':' << (ColumnNo+1);
  349|  9.89k|    }
  350|  9.92k|    S << ": ";
  351|  9.92k|  }
  352|       |
  353|  21.7k|  if (ShowKindLabel) {
  ------------------
  |  Branch (353:7): [True: 21.7k, False: 0]
  ------------------
  354|  21.7k|    switch (Kind) {
  ------------------
  |  Branch (354:13): [True: 21.7k, False: 0]
  ------------------
  355|  8.79k|    case SourceMgr::DK_Error:
  ------------------
  |  Branch (355:5): [True: 8.79k, False: 13.0k]
  ------------------
  356|  8.79k|      if (ShowColors)
  ------------------
  |  Branch (356:11): [True: 8.79k, False: 0]
  ------------------
  357|  8.79k|        S.changeColor(raw_ostream::RED, true);
  358|  8.79k|      S << "error: ";
  359|  8.79k|      break;
  360|  4.52k|    case SourceMgr::DK_Warning:
  ------------------
  |  Branch (360:5): [True: 4.52k, False: 17.2k]
  ------------------
  361|  4.52k|      if (ShowColors)
  ------------------
  |  Branch (361:11): [True: 4.52k, False: 0]
  ------------------
  362|  4.52k|        S.changeColor(raw_ostream::MAGENTA, true);
  363|  4.52k|      S << "warning: ";
  364|  4.52k|      break;
  365|  8.47k|    case SourceMgr::DK_Note:
  ------------------
  |  Branch (365:5): [True: 8.47k, False: 13.3k]
  ------------------
  366|  8.47k|      if (ShowColors)
  ------------------
  |  Branch (366:11): [True: 8.47k, False: 0]
  ------------------
  367|  8.47k|        S.changeColor(raw_ostream::BLACK, true);
  368|  8.47k|      S << "note: ";
  369|  8.47k|      break;
  370|  21.7k|    }
  371|       |
  372|  21.7k|    if (ShowColors) {
  ------------------
  |  Branch (372:9): [True: 21.7k, False: 0]
  ------------------
  373|  21.7k|      S.resetColor();
  374|  21.7k|      S.changeColor(raw_ostream::SAVEDCOLOR, true);
  375|  21.7k|    }
  376|  21.7k|  }
  377|       |
  378|  21.7k|  S << Message << '\n';
  379|       |
  380|  21.7k|  if (ShowColors)
  ------------------
  |  Branch (380:7): [True: 21.7k, False: 0]
  ------------------
  381|  21.7k|    S.resetColor();
  382|       |
  383|  21.7k|  if (LineNo == -1 || ColumnNo == -1)
  ------------------
  |  Branch (383:7): [True: 26, False: 21.7k]
  |  Branch (383:23): [True: 0, False: 21.7k]
  ------------------
  384|     26|    return;
  385|       |
  386|       |  // FIXME: If there are multibyte or multi-column characters in the source, all
  387|       |  // our ranges will be wrong. To do this properly, we'll need a byte-to-column
  388|       |  // map like Clang's TextDiagnostic. For now, we'll just handle tabs by
  389|       |  // expanding them later, and bail out rather than show incorrect ranges and
  390|       |  // misaligned fixits for any other odd characters.
  391|  21.7k|  if (std::find_if(LineContents.begin(), LineContents.end(), isNonASCII) !=
  ------------------
  |  Branch (391:7): [True: 3.40k, False: 18.3k]
  ------------------
  392|  21.7k|      LineContents.end()) {
  393|  3.40k|    printSourceLine(S, LineContents);
  394|  3.40k|    return;
  395|  3.40k|  }
  396|  18.3k|  size_t NumColumns = LineContents.size();
  397|       |
  398|       |  // Build the line with the caret and ranges.
  399|  18.3k|  std::string CaretLine(NumColumns+1, ' ');
  400|       |  
  401|       |  // Expand any ranges.
  402|  18.4k|  for (unsigned r = 0, e = Ranges.size(); r != e; ++r) {
  ------------------
  |  Branch (402:43): [True: 46, False: 18.3k]
  ------------------
  403|     46|    std::pair<unsigned, unsigned> R = Ranges[r];
  404|     46|    std::fill(&CaretLine[R.first],
  405|     46|              &CaretLine[std::min((size_t)R.second, CaretLine.size())],
  406|     46|              '~');
  407|     46|  }
  408|       |
  409|       |  // Add any fix-its.
  410|       |  // FIXME: Find the beginning of the line properly for multibyte characters.
  411|  18.3k|  std::string FixItInsertionLine;
  412|  18.3k|  buildFixItLine(CaretLine, FixItInsertionLine, FixIts,
  413|  18.3k|                 makeArrayRef(Loc.getPointer() - ColumnNo,
  414|  18.3k|                              LineContents.size()));
  415|       |
  416|       |  // Finally, plop on the caret.
  417|  18.3k|  if (unsigned(ColumnNo) <= NumColumns)
  ------------------
  |  Branch (417:7): [True: 18.3k, False: 0]
  ------------------
  418|  18.3k|    CaretLine[ColumnNo] = '^';
  419|      0|  else 
  420|      0|    CaretLine[NumColumns] = '^';
  421|       |  
  422|       |  // ... and remove trailing whitespace so the output doesn't wrap for it.  We
  423|       |  // know that the line isn't completely empty because it has the caret in it at
  424|       |  // least.
  425|  18.3k|  CaretLine.erase(CaretLine.find_last_not_of(' ')+1);
  426|       |  
  427|  18.3k|  printSourceLine(S, LineContents);
  428|       |
  429|  18.3k|  if (ShowColors)
  ------------------
  |  Branch (429:7): [True: 18.3k, False: 0]
  ------------------
  430|  18.3k|    S.changeColor(raw_ostream::GREEN, true);
  431|       |
  432|       |  // Print out the caret line, matching tabs in the source line.
  433|   590k|  for (unsigned i = 0, e = CaretLine.size(), OutCol = 0; i != e; ++i) {
  ------------------
  |  Branch (433:58): [True: 572k, False: 18.3k]
  ------------------
  434|   572k|    if (i >= LineContents.size() || LineContents[i] != '\t') {
  ------------------
  |  Branch (434:9): [True: 2.83k, False: 569k]
  |  Branch (434:37): [True: 566k, False: 2.81k]
  ------------------
  435|   569k|      S << CaretLine[i];
  436|   569k|      ++OutCol;
  437|   569k|      continue;
  438|   569k|    }
  439|       |    
  440|       |    // Okay, we have a tab.  Insert the appropriate number of characters.
  441|  14.2k|    do {
  442|  14.2k|      S << CaretLine[i];
  443|  14.2k|      ++OutCol;
  444|  14.2k|    } while ((OutCol % TabStop) != 0);
  ------------------
  |  Branch (444:14): [True: 11.3k, False: 2.81k]
  ------------------
  445|  2.81k|  }
  446|  18.3k|  S << '\n';
  447|       |
  448|  18.3k|  if (ShowColors)
  ------------------
  |  Branch (448:7): [True: 18.3k, False: 0]
  ------------------
  449|  18.3k|    S.resetColor();
  450|       |
  451|       |  // Print out the replacement line, matching tabs in the source line.
  452|  18.3k|  if (FixItInsertionLine.empty())
  ------------------
  |  Branch (452:7): [True: 18.3k, False: 0]
  ------------------
  453|  18.3k|    return;
  454|       |  
  455|      0|  for (size_t i = 0, e = FixItInsertionLine.size(), OutCol = 0; i < e; ++i) {
  ------------------
  |  Branch (455:65): [True: 0, False: 0]
  ------------------
  456|      0|    if (i >= LineContents.size() || LineContents[i] != '\t') {
  ------------------
  |  Branch (456:9): [True: 0, False: 0]
  |  Branch (456:37): [True: 0, False: 0]
  ------------------
  457|      0|      S << FixItInsertionLine[i];
  458|      0|      ++OutCol;
  459|      0|      continue;
  460|      0|    }
  461|       |
  462|       |    // Okay, we have a tab.  Insert the appropriate number of characters.
  463|      0|    do {
  464|      0|      S << FixItInsertionLine[i];
  465|       |      // FIXME: This is trying not to break up replacements, but then to re-sync
  466|       |      // with the tabs between replacements. This will fail, though, if two
  467|       |      // fix-it replacements are exactly adjacent, or if a fix-it contains a
  468|       |      // space. Really we should be precomputing column widths, which we'll
  469|       |      // need anyway for multibyte chars.
  470|      0|      if (FixItInsertionLine[i] != ' ')
  ------------------
  |  Branch (470:11): [True: 0, False: 0]
  ------------------
  471|      0|        ++i;
  472|      0|      ++OutCol;
  473|      0|    } while (((OutCol % TabStop) != 0) && i != e);
  ------------------
  |  Branch (473:14): [True: 0, False: 0]
  |  Branch (473:43): [True: 0, False: 0]
  ------------------
  474|      0|  }
  475|      0|  S << '\n';
  476|      0|}
SourceMgr.cpp:_ZL8getCachePv:
   33|  60.5k|static LineNoCacheTy *getCache(void *Ptr) {
   34|  60.5k|  return (LineNoCacheTy*)Ptr;
   35|  60.5k|}
SourceMgr.cpp:_ZL10isNonASCIIc:
  324|  1.10M|static bool isNonASCII(char c) {
  325|  1.10M|  return c & 0x80;
  326|  1.10M|}
SourceMgr.cpp:_ZL15printSourceLineRN7llvm_ks11raw_ostreamENS_9StringRefE:
  306|  21.7k|static void printSourceLine(raw_ostream &S, StringRef LineContents) {
  307|       |  // Print out the source line one character at a time, so we can expand tabs.
  308|  1.30M|  for (unsigned i = 0, e = LineContents.size(), OutCol = 0; i != e; ++i) {
  ------------------
  |  Branch (308:61): [True: 1.28M, False: 21.7k]
  ------------------
  309|  1.28M|    if (LineContents[i] != '\t') {
  ------------------
  |  Branch (309:9): [True: 1.27M, False: 7.89k]
  ------------------
  310|  1.27M|      S << LineContents[i];
  311|  1.27M|      ++OutCol;
  312|  1.27M|      continue;
  313|  1.27M|    }
  314|       |
  315|       |    // If we have a tab, emit at least one space, then round up to 8 columns.
  316|  35.1k|    do {
  317|  35.1k|      S << ' ';
  318|  35.1k|      ++OutCol;
  319|  35.1k|    } while ((OutCol % TabStop) != 0);
  ------------------
  |  Branch (319:14): [True: 27.2k, False: 7.89k]
  ------------------
  320|  7.89k|  }
  321|  21.7k|  S << '\n';
  322|  21.7k|}
SourceMgr.cpp:_ZL14buildFixItLineRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES6_N7llvm_ks8ArrayRefINS7_7SMFixItEEENS8_IcEE:
  243|  18.3k|                           ArrayRef<SMFixIt> FixIts, ArrayRef<char> SourceLine){
  244|  18.3k|  if (FixIts.empty())
  ------------------
  |  Branch (244:7): [True: 18.3k, False: 0]
  ------------------
  245|  18.3k|    return;
  246|       |
  247|      0|  const char *LineStart = SourceLine.begin();
  248|      0|  const char *LineEnd = SourceLine.end();
  249|       |
  250|      0|  size_t PrevHintEndCol = 0;
  251|       |
  252|      0|  for (ArrayRef<SMFixIt>::iterator I = FixIts.begin(), E = FixIts.end();
  253|      0|       I != E; ++I) {
  ------------------
  |  Branch (253:8): [True: 0, False: 0]
  ------------------
  254|       |    // If the fixit contains a newline or tab, ignore it.
  255|      0|    if (I->getText().find_first_of("\n\r\t") != StringRef::npos)
  ------------------
  |  Branch (255:9): [True: 0, False: 0]
  ------------------
  256|      0|      continue;
  257|       |
  258|      0|    SMRange R = I->getRange();
  259|       |
  260|       |    // If the line doesn't contain any part of the range, then ignore it.
  261|      0|    if (R.Start.getPointer() > LineEnd || R.End.getPointer() < LineStart)
  ------------------
  |  Branch (261:9): [True: 0, False: 0]
  |  Branch (261:43): [True: 0, False: 0]
  ------------------
  262|      0|      continue;
  263|       |
  264|       |    // Translate from SMLoc to column.
  265|       |    // Ignore pieces of the range that go onto other lines.
  266|       |    // FIXME: Handle multibyte characters in the source line.
  267|      0|    unsigned FirstCol;
  268|      0|    if (R.Start.getPointer() < LineStart)
  ------------------
  |  Branch (268:9): [True: 0, False: 0]
  ------------------
  269|      0|      FirstCol = 0;
  270|      0|    else
  271|      0|      FirstCol = R.Start.getPointer() - LineStart;
  272|       |
  273|       |    // If we inserted a long previous hint, push this one forwards, and add
  274|       |    // an extra space to show that this is not part of the previous
  275|       |    // completion. This is sort of the best we can do when two hints appear
  276|       |    // to overlap.
  277|       |    //
  278|       |    // Note that if this hint is located immediately after the previous
  279|       |    // hint, no space will be added, since the location is more important.
  280|      0|    unsigned HintCol = FirstCol;
  281|      0|    if (HintCol < PrevHintEndCol)
  ------------------
  |  Branch (281:9): [True: 0, False: 0]
  ------------------
  282|      0|      HintCol = PrevHintEndCol + 1;
  283|       |
  284|       |    // This relies on one byte per column in our fixit hints.
  285|      0|    unsigned LastColumnModified = HintCol + I->getText().size();
  286|      0|    if (LastColumnModified > FixItLine.size())
  ------------------
  |  Branch (286:9): [True: 0, False: 0]
  ------------------
  287|      0|      FixItLine.resize(LastColumnModified, ' ');
  288|       |
  289|      0|    std::copy(I->getText().begin(), I->getText().end(),
  290|      0|              FixItLine.begin() + HintCol);
  291|       |
  292|      0|    PrevHintEndCol = LastColumnModified;
  293|       |
  294|       |    // For replacements, mark the removal range with '~'.
  295|       |    // FIXME: Handle multibyte characters in the source line.
  296|      0|    unsigned LastCol;
  297|      0|    if (R.End.getPointer() >= LineEnd)
  ------------------
  |  Branch (297:9): [True: 0, False: 0]
  ------------------
  298|      0|      LastCol = LineEnd - LineStart;
  299|      0|    else
  300|      0|      LastCol = R.End.getPointer() - LineStart;
  301|       |
  302|      0|    std::fill(&CaretLine[FirstCol], &CaretLine[LastCol], '~');
  303|      0|  }
  304|      0|}

_ZN7llvm_ks13StringMapImpl4initEj:
   36|  69.1k|void StringMapImpl::init(unsigned InitSize) {
   37|  69.1k|  assert((InitSize & (InitSize-1)) == 0 &&
  ------------------
  |  Branch (37:3): [True: 69.1k, False: 0]
  |  Branch (37:3): [True: 69.1k, Folded]
  |  Branch (37:3): [True: 69.1k, False: 0]
  ------------------
   38|  69.1k|         "Init Size must be a power of 2 or zero!");
   39|  69.1k|  NumBuckets = InitSize ? InitSize : 16;
  ------------------
  |  Branch (39:16): [True: 69.1k, False: 0]
  ------------------
   40|  69.1k|  NumItems = 0;
   41|  69.1k|  NumTombstones = 0;
   42|       |  
   43|  69.1k|  TheTable = (StringMapEntryBase **)calloc(NumBuckets+1,
   44|  69.1k|                                           sizeof(StringMapEntryBase **) +
   45|  69.1k|                                           sizeof(unsigned));
   46|       |
   47|       |  // Allocate one extra bucket, set it to look filled so the iterators stop at
   48|       |  // end.
   49|  69.1k|  TheTable[NumBuckets] = (StringMapEntryBase*)2;
   50|  69.1k|}
_ZN7llvm_ks13StringMapImpl15LookupBucketForENS_9StringRefE:
   58|  3.23M|unsigned StringMapImpl::LookupBucketFor(StringRef Name) {
   59|  3.23M|  unsigned HTSize = NumBuckets;
   60|  3.23M|  if (HTSize == 0) {  // Hash table unallocated so far?
  ------------------
  |  Branch (60:7): [True: 69.1k, False: 3.16M]
  ------------------
   61|  69.1k|    init(16);
   62|  69.1k|    HTSize = NumBuckets;
   63|  69.1k|  }
   64|  3.23M|  unsigned FullHashValue = HashString(Name);
   65|  3.23M|  unsigned BucketNo = FullHashValue & (HTSize-1);
   66|  3.23M|  unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1);
   67|       |
   68|  3.23M|  unsigned ProbeAmt = 1;
   69|  3.23M|  int FirstTombstone = -1;
   70|  7.50M|  while (1) {
  ------------------
  |  Branch (70:10): [True: 7.50M, Folded]
  ------------------
   71|  7.50M|    StringMapEntryBase *BucketItem = TheTable[BucketNo];
   72|       |    // If we found an empty bucket, this key isn't in the table yet, return it.
   73|  7.50M|    if (LLVM_LIKELY(!BucketItem)) {
  ------------------
  |  |  170|  7.50M|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 3.01M, False: 4.48M]
  |  |  ------------------
  ------------------
   74|       |      // If we found a tombstone, we want to reuse the tombstone instead of an
   75|       |      // empty bucket.  This reduces probing.
   76|  3.01M|      if (FirstTombstone != -1) {
  ------------------
  |  Branch (76:11): [True: 0, False: 3.01M]
  ------------------
   77|      0|        HashTable[FirstTombstone] = FullHashValue;
   78|      0|        return FirstTombstone;
   79|      0|      }
   80|       |      
   81|  3.01M|      HashTable[BucketNo] = FullHashValue;
   82|  3.01M|      return BucketNo;
   83|  3.01M|    }
   84|       |    
   85|  4.48M|    if (BucketItem == getTombstoneVal()) {
  ------------------
  |  Branch (85:9): [True: 0, False: 4.48M]
  ------------------
   86|       |      // Skip over tombstones.  However, remember the first one we see.
   87|      0|      if (FirstTombstone == -1) FirstTombstone = BucketNo;
  ------------------
  |  Branch (87:11): [True: 0, False: 0]
  ------------------
   88|  4.48M|    } else if (LLVM_LIKELY(HashTable[BucketNo] == FullHashValue)) {
  ------------------
  |  |  170|  4.48M|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 218k, False: 4.27M]
  |  |  ------------------
  ------------------
   89|       |      // If the full hash value matches, check deeply for a match.  The common
   90|       |      // case here is that we are only looking at the buckets (for item info
   91|       |      // being non-null and for the full hash value) not at the items.  This
   92|       |      // is important for cache locality.
   93|       |      
   94|       |      // Do the comparison like this because Name isn't necessarily
   95|       |      // null-terminated!
   96|   218k|      char *ItemStr = (char*)BucketItem+ItemSize;
   97|   218k|      if (Name == StringRef(ItemStr, BucketItem->getKeyLength())) {
  ------------------
  |  Branch (97:11): [True: 217k, False: 610]
  ------------------
   98|       |        // We found a match!
   99|   217k|        return BucketNo;
  100|   217k|      }
  101|   218k|    }
  102|       |    
  103|       |    // Okay, we didn't find the item.  Probe to the next bucket.
  104|  4.27M|    BucketNo = (BucketNo+ProbeAmt) & (HTSize-1);
  105|       |    
  106|       |    // Use quadratic probing, it has fewer clumping artifacts than linear
  107|       |    // probing and has good cache behavior in the common case.
  108|  4.27M|    ++ProbeAmt;
  109|  4.27M|  }
  110|  3.23M|}
_ZNK7llvm_ks13StringMapImpl7FindKeyENS_9StringRefE:
  116|  2.01M|int StringMapImpl::FindKey(StringRef Key) const {
  117|  2.01M|  unsigned HTSize = NumBuckets;
  118|  2.01M|  if (HTSize == 0) return -1;  // Really empty table?
  ------------------
  |  Branch (118:7): [True: 443k, False: 1.56M]
  ------------------
  119|  1.56M|  unsigned FullHashValue = HashString(Key);
  120|  1.56M|  unsigned BucketNo = FullHashValue & (HTSize-1);
  121|  1.56M|  unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1);
  122|       |
  123|  1.56M|  unsigned ProbeAmt = 1;
  124|  3.25M|  while (1) {
  ------------------
  |  Branch (124:10): [True: 3.25M, Folded]
  ------------------
  125|  3.25M|    StringMapEntryBase *BucketItem = TheTable[BucketNo];
  126|       |    // If we found an empty bucket, this key isn't in the table yet, return.
  127|  3.25M|    if (LLVM_LIKELY(!BucketItem))
  ------------------
  |  |  170|  3.25M|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 1.19M, False: 2.06M]
  |  |  ------------------
  ------------------
  128|  1.19M|      return -1;
  129|       |    
  130|  2.06M|    if (BucketItem == getTombstoneVal()) {
  ------------------
  |  Branch (130:9): [True: 0, False: 2.06M]
  ------------------
  131|       |      // Ignore tombstones.
  132|  2.06M|    } else if (LLVM_LIKELY(HashTable[BucketNo] == FullHashValue)) {
  ------------------
  |  |  170|  2.06M|#define LLVM_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
  |  |  ------------------
  |  |  |  Branch (170:27): [True: 378k, False: 1.68M]
  |  |  ------------------
  ------------------
  133|       |      // If the full hash value matches, check deeply for a match.  The common
  134|       |      // case here is that we are only looking at the buckets (for item info
  135|       |      // being non-null and for the full hash value) not at the items.  This
  136|       |      // is important for cache locality.
  137|       |      
  138|       |      // Do the comparison like this because NameStart isn't necessarily
  139|       |      // null-terminated!
  140|   378k|      char *ItemStr = (char*)BucketItem+ItemSize;
  141|   378k|      if (Key == StringRef(ItemStr, BucketItem->getKeyLength())) {
  ------------------
  |  Branch (141:11): [True: 378k, False: 277]
  ------------------
  142|       |        // We found a match!
  143|   378k|        return BucketNo;
  144|   378k|      }
  145|   378k|    }
  146|       |    
  147|       |    // Okay, we didn't find the item.  Probe to the next bucket.
  148|  1.68M|    BucketNo = (BucketNo+ProbeAmt) & (HTSize-1);
  149|       |    
  150|       |    // Use quadratic probing, it has fewer clumping artifacts than linear
  151|       |    // probing and has good cache behavior in the common case.
  152|  1.68M|    ++ProbeAmt;
  153|  1.68M|  }
  154|  1.56M|}
_ZN7llvm_ks13StringMapImpl11RehashTableEj:
  184|  3.01M|unsigned StringMapImpl::RehashTable(unsigned BucketNo) {
  185|  3.01M|  unsigned NewSize;
  186|  3.01M|  unsigned *HashTable = (unsigned *)(TheTable + NumBuckets + 1);
  187|       |
  188|       |  // If the hash table is now more than 3/4 full, or if fewer than 1/8 of
  189|       |  // the buckets are empty (meaning that many are filled with tombstones),
  190|       |  // grow/rehash the table.
  191|  3.01M|  if (LLVM_UNLIKELY(NumItems * 4 > NumBuckets * 3)) {
  ------------------
  |  |  171|  3.01M|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 100k, False: 2.91M]
  |  |  ------------------
  ------------------
  192|   100k|    NewSize = NumBuckets*2;
  193|  2.91M|  } else if (LLVM_UNLIKELY(NumBuckets - (NumItems + NumTombstones) <=
  ------------------
  |  |  171|  2.91M|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 2.91M]
  |  |  ------------------
  ------------------
  194|  2.91M|                           NumBuckets / 8)) {
  195|      0|    NewSize = NumBuckets;
  196|  2.91M|  } else {
  197|  2.91M|    return BucketNo;
  198|  2.91M|  }
  199|       |
  200|   100k|  unsigned NewBucketNo = BucketNo;
  201|       |  // Allocate one extra bucket which will always be non-empty.  This allows the
  202|       |  // iterators to stop at end.
  203|   100k|  StringMapEntryBase **NewTableArray =
  204|   100k|    (StringMapEntryBase **)calloc(NewSize+1, sizeof(StringMapEntryBase *) +
  205|   100k|                                             sizeof(unsigned));
  206|   100k|  unsigned *NewHashArray = (unsigned *)(NewTableArray + NewSize + 1);
  207|   100k|  NewTableArray[NewSize] = (StringMapEntryBase*)2;
  208|       |
  209|       |  // Rehash all the items into their new buckets.  Luckily :) we already have
  210|       |  // the hash values available, so we don't have to rehash any strings.
  211|  5.09M|  for (unsigned I = 0, E = NumBuckets; I != E; ++I) {
  ------------------
  |  Branch (211:40): [True: 4.99M, False: 100k]
  ------------------
  212|  4.99M|    StringMapEntryBase *Bucket = TheTable[I];
  213|  4.99M|    if (Bucket && Bucket != getTombstoneVal()) {
  ------------------
  |  Branch (213:9): [True: 3.84M, False: 1.14M]
  |  Branch (213:19): [True: 3.84M, False: 0]
  ------------------
  214|       |      // Fast case, bucket available.
  215|  3.84M|      unsigned FullHash = HashTable[I];
  216|  3.84M|      unsigned NewBucket = FullHash & (NewSize-1);
  217|  3.84M|      if (!NewTableArray[NewBucket]) {
  ------------------
  |  Branch (217:11): [True: 3.00M, False: 836k]
  ------------------
  218|  3.00M|        NewTableArray[FullHash & (NewSize-1)] = Bucket;
  219|  3.00M|        NewHashArray[FullHash & (NewSize-1)] = FullHash;
  220|  3.00M|        if (I == BucketNo)
  ------------------
  |  Branch (220:13): [True: 85.5k, False: 2.92M]
  ------------------
  221|  85.5k|          NewBucketNo = NewBucket;
  222|  3.00M|        continue;
  223|  3.00M|      }
  224|       |      
  225|       |      // Otherwise probe for a spot.
  226|   836k|      unsigned ProbeSize = 1;
  227|  1.20M|      do {
  228|  1.20M|        NewBucket = (NewBucket + ProbeSize++) & (NewSize-1);
  229|  1.20M|      } while (NewTableArray[NewBucket]);
  ------------------
  |  Branch (229:16): [True: 371k, False: 836k]
  ------------------
  230|       |      
  231|       |      // Finally found a slot.  Fill it in.
  232|   836k|      NewTableArray[NewBucket] = Bucket;
  233|   836k|      NewHashArray[NewBucket] = FullHash;
  234|   836k|      if (I == BucketNo)
  ------------------
  |  Branch (234:11): [True: 15.0k, False: 821k]
  ------------------
  235|  15.0k|        NewBucketNo = NewBucket;
  236|   836k|    }
  237|  4.99M|  }
  238|       |  
  239|   100k|  free(TheTable);
  240|       |  
  241|   100k|  TheTable = NewTableArray;
  242|   100k|  NumBuckets = NewSize;
  243|   100k|  NumTombstones = 0;
  244|   100k|  return NewBucketNo;
  245|  3.01M|}

_ZNK7llvm_ks9StringRef13compare_lowerES0_:
   52|  4.46k|int StringRef::compare_lower(StringRef RHS) const {
   53|  4.46k|  if (int Res = ascii_strncasecmp(Data, RHS.Data, std::min(Length, RHS.Length)))
  ------------------
  |  Branch (53:11): [True: 2.28k, False: 2.17k]
  ------------------
   54|  2.28k|    return Res;
   55|  2.17k|  if (Length == RHS.Length)
  ------------------
  |  Branch (55:7): [True: 1.19k, False: 979]
  ------------------
   56|  1.19k|    return 0;
   57|    979|  return Length < RHS.Length ? -1 : 1;
  ------------------
  |  Branch (57:10): [True: 960, False: 19]
  ------------------
   58|  2.17k|}
_ZNK7llvm_ks9StringRef5lowerEv:
  117|   903k|std::string StringRef::lower() const {
  118|   903k|  std::string Result(size(), char());
  119|  14.5M|  for (size_type i = 0, e = size(); i != e; ++i) {
  ------------------
  |  Branch (119:37): [True: 13.6M, False: 903k]
  ------------------
  120|  13.6M|    Result[i] = ascii_tolower(Data[i]);
  121|  13.6M|  }
  122|   903k|  return Result;
  123|   903k|}
_ZNK7llvm_ks9StringRef5upperEv:
  125|     59|std::string StringRef::upper() const {
  126|     59|  std::string Result(size(), char());
  127|  8.77k|  for (size_type i = 0, e = size(); i != e; ++i) {
  ------------------
  |  Branch (127:37): [True: 8.71k, False: 59]
  ------------------
  128|  8.71k|    Result[i] = ascii_toupper(Data[i]);
  129|  8.71k|  }
  130|     59|  return Result;
  131|     59|}
_ZNK7llvm_ks9StringRef17find_first_not_ofES0_m:
  231|  56.1k|                                                  size_t From) const {
  232|  56.1k|  std::bitset<1 << CHAR_BIT> CharBits;
  233|   393k|  for (size_type i = 0; i != Chars.size(); ++i)
  ------------------
  |  Branch (233:25): [True: 336k, False: 56.1k]
  ------------------
  234|   336k|    CharBits.set((unsigned char)Chars[i]);
  235|       |
  236|  56.8k|  for (size_type i = std::min(From, Length), e = Length; i != e; ++i)
  ------------------
  |  Branch (236:58): [True: 54.7k, False: 2.13k]
  ------------------
  237|  54.7k|    if (!CharBits.test((unsigned char)Data[i]))
  ------------------
  |  Branch (237:9): [True: 54.0k, False: 742]
  ------------------
  238|  54.0k|      return i;
  239|  2.13k|  return npos;
  240|  56.1k|}
_ZNK7llvm_ks9StringRef12find_last_ofES0_m:
  247|  23.4k|                                             size_t From) const {
  248|  23.4k|  std::bitset<1 << CHAR_BIT> CharBits;
  249|  70.4k|  for (size_type i = 0; i != Chars.size(); ++i)
  ------------------
  |  Branch (249:25): [True: 46.9k, False: 23.4k]
  ------------------
  250|  46.9k|    CharBits.set((unsigned char)Chars[i]);
  251|       |
  252|   696k|  for (size_type i = std::min(From, Length) - 1, e = -1; i != e; --i)
  ------------------
  |  Branch (252:58): [True: 682k, False: 13.9k]
  ------------------
  253|   682k|    if (CharBits.test((unsigned char)Data[i]))
  ------------------
  |  Branch (253:9): [True: 9.50k, False: 673k]
  ------------------
  254|  9.50k|      return i;
  255|  13.9k|  return npos;
  256|  23.4k|}
_ZNK7llvm_ks9StringRef16find_last_not_ofES0_m:
  272|  56.1k|                                                 size_t From) const {
  273|  56.1k|  std::bitset<1 << CHAR_BIT> CharBits;
  274|   393k|  for (size_type i = 0, e = Chars.size(); i != e; ++i)
  ------------------
  |  Branch (274:43): [True: 336k, False: 56.1k]
  ------------------
  275|   336k|    CharBits.set((unsigned char)Chars[i]);
  276|       |
  277|  56.5k|  for (size_type i = std::min(From, Length) - 1, e = -1; i != e; --i)
  ------------------
  |  Branch (277:58): [True: 54.4k, False: 2.13k]
  ------------------
  278|  54.4k|    if (!CharBits.test((unsigned char)Data[i]))
  ------------------
  |  Branch (278:9): [True: 54.0k, False: 400]
  ------------------
  279|  54.0k|      return i;
  280|  2.13k|  return npos;
  281|  56.1k|}
_ZNK7llvm_ks9StringRef5splitERNS_15SmallVectorImplIS0_EEcib:
  311|   150k|                      int MaxSplit, bool KeepEmpty) const {
  312|   150k|  StringRef S = *this;
  313|       |
  314|       |  // Count down from MaxSplit. When MaxSplit is -1, this will just split
  315|       |  // "forever". This doesn't support splitting more than 2^31 times
  316|       |  // intentionally; if we ever want that we can make MaxSplit a 64-bit integer
  317|       |  // but that seems unlikely to be useful.
  318|   171k|  while (MaxSplit-- != 0) {
  ------------------
  |  Branch (318:10): [True: 171k, False: 0]
  ------------------
  319|   171k|    size_t Idx = S.find(Separator);
  320|   171k|    if (Idx == npos)
  ------------------
  |  Branch (320:9): [True: 150k, False: 21.1k]
  ------------------
  321|   150k|      break;
  322|       |
  323|       |    // Push this split.
  324|  21.1k|    if (KeepEmpty || Idx > 0)
  ------------------
  |  Branch (324:9): [True: 20.9k, False: 148]
  |  Branch (324:22): [True: 55, False: 93]
  ------------------
  325|  21.0k|      A.push_back(S.slice(0, Idx));
  326|       |
  327|       |    // Jump forward.
  328|  21.1k|    S = S.slice(Idx + 1, npos);
  329|  21.1k|  }
  330|       |
  331|       |  // Push the tail.
  332|   150k|  if (KeepEmpty || !S.empty())
  ------------------
  |  Branch (332:7): [True: 136k, False: 13.6k]
  |  Branch (332:20): [True: 9, False: 13.6k]
  ------------------
  333|   136k|    A.push_back(S);
  334|   150k|}
_ZNK7llvm_ks9StringRef12getAsIntegerEjRNS_5APIntE:
  445|   578k|bool StringRef::getAsInteger(unsigned Radix, APInt &Result) const {
  446|   578k|  StringRef Str = *this;
  447|       |
  448|       |  // Autosense radix if not specified.
  449|   578k|  if (Radix == 0)
  ------------------
  |  Branch (449:7): [True: 4.89k, False: 573k]
  ------------------
  450|  4.89k|    Radix = GetAutoSenseRadix(Str);
  451|       |
  452|   578k|  assert(Radix > 1 && Radix <= 36);
  ------------------
  |  Branch (452:3): [True: 578k, False: 0]
  |  Branch (452:3): [True: 578k, False: 0]
  |  Branch (452:3): [True: 578k, False: 0]
  ------------------
  453|       |
  454|       |  // Empty strings (after the radix autosense) are invalid.
  455|   578k|  if (Str.empty()) return true;
  ------------------
  |  Branch (455:7): [True: 0, False: 578k]
  ------------------
  456|       |
  457|       |  // Skip leading zeroes.  This can be a significant improvement if
  458|       |  // it means we don't need > 64 bits.
  459|   833k|  while (!Str.empty() && Str.front() == '0')
  ------------------
  |  Branch (459:10): [True: 660k, False: 172k]
  |  Branch (459:26): [True: 254k, False: 406k]
  ------------------
  460|   254k|    Str = Str.substr(1);
  461|       |
  462|       |  // If it was nothing but zeroes....
  463|   578k|  if (Str.empty()) {
  ------------------
  |  Branch (463:7): [True: 172k, False: 406k]
  ------------------
  464|   172k|    Result = APInt(64, 0);
  465|   172k|    return false;
  466|   172k|  }
  467|       |
  468|       |  // (Over-)estimate the required number of bits.
  469|   406k|  unsigned Log2Radix = 0;
  470|  1.97M|  while ((1U << Log2Radix) < Radix) Log2Radix++;
  ------------------
  |  Branch (470:10): [True: 1.57M, False: 406k]
  ------------------
  471|   406k|  bool IsPowerOf2Radix = ((1U << Log2Radix) == Radix);
  472|       |
  473|   406k|  unsigned BitWidth = Log2Radix * Str.size();
  474|   406k|  if (BitWidth < Result.getBitWidth())
  ------------------
  |  Branch (474:7): [True: 403k, False: 3.51k]
  ------------------
  475|   403k|    BitWidth = Result.getBitWidth(); // don't shrink the result
  476|  3.51k|  else if (BitWidth > Result.getBitWidth())
  ------------------
  |  Branch (476:12): [True: 2.72k, False: 788]
  ------------------
  477|  2.72k|    Result = Result.zext(BitWidth);
  478|       |
  479|   406k|  APInt RadixAP, CharAP; // unused unless !IsPowerOf2Radix
  480|   406k|  if (!IsPowerOf2Radix) {
  ------------------
  |  Branch (480:7): [True: 0, False: 406k]
  ------------------
  481|       |    // These must have the same bit-width as Result.
  482|      0|    RadixAP = APInt(BitWidth, Radix);
  483|      0|    CharAP = APInt(BitWidth, 0);
  484|      0|  }
  485|       |
  486|       |  // Parse all the bytes of the string given this radix.
  487|   406k|  Result = 0;
  488|  1.70M|  while (!Str.empty()) {
  ------------------
  |  Branch (488:10): [True: 1.30M, False: 404k]
  ------------------
  489|  1.30M|    unsigned CharVal;
  490|  1.30M|    if (Str[0] >= '0' && Str[0] <= '9')
  ------------------
  |  Branch (490:9): [True: 1.30M, False: 0]
  |  Branch (490:26): [True: 1.26M, False: 34.9k]
  ------------------
  491|  1.26M|      CharVal = Str[0]-'0';
  492|  34.9k|    else if (Str[0] >= 'a' && Str[0] <= 'z')
  ------------------
  |  Branch (492:14): [True: 32.0k, False: 2.91k]
  |  Branch (492:31): [True: 32.0k, False: 0]
  ------------------
  493|  32.0k|      CharVal = Str[0]-'a'+10;
  494|  2.91k|    else if (Str[0] >= 'A' && Str[0] <= 'Z')
  ------------------
  |  Branch (494:14): [True: 2.91k, False: 0]
  |  Branch (494:31): [True: 2.91k, False: 0]
  ------------------
  495|  2.91k|      CharVal = Str[0]-'A'+10;
  496|      0|    else
  497|      0|      return true;
  498|       |
  499|       |    // If the parsed value is larger than the integer radix, the string is
  500|       |    // invalid.
  501|  1.30M|    if (CharVal >= Radix)
  ------------------
  |  Branch (501:9): [True: 1.89k, False: 1.30M]
  ------------------
  502|  1.89k|      return true;
  503|       |
  504|       |    // Add in this character.
  505|  1.30M|    if (IsPowerOf2Radix) {
  ------------------
  |  Branch (505:9): [True: 1.30M, False: 0]
  ------------------
  506|  1.30M|      Result <<= Log2Radix;
  507|  1.30M|      Result |= CharVal;
  508|  1.30M|    } else {
  509|      0|      Result *= RadixAP;
  510|      0|      CharAP = CharVal;
  511|      0|      Result += CharAP;
  512|      0|    }
  513|       |
  514|  1.30M|    Str = Str.substr(1);
  515|  1.30M|  }
  516|       |
  517|   404k|  return false;
  518|   406k|}
_ZN7llvm_ks10hash_valueENS_9StringRefE:
  522|  11.3k|hash_code llvm_ks::hash_value(StringRef S) {
  523|  11.3k|  return hash_combine_range(S.begin(), S.end());
  524|  11.3k|}
StringRef.cpp:_ZL17ascii_strncasecmpPKcS0_m:
   41|  4.46k|static int ascii_strncasecmp(const char *LHS, const char *RHS, size_t Length) {
   42|  11.1k|  for (size_t I = 0; I < Length; ++I) {
  ------------------
  |  Branch (42:22): [True: 8.98k, False: 2.17k]
  ------------------
   43|  8.98k|    unsigned char LHC = ascii_tolower(LHS[I]);
   44|  8.98k|    unsigned char RHC = ascii_tolower(RHS[I]);
   45|  8.98k|    if (LHC != RHC)
  ------------------
  |  Branch (45:9): [True: 2.28k, False: 6.70k]
  ------------------
   46|  2.28k|      return LHC < RHC ? -1 : 1;
  ------------------
  |  Branch (46:14): [True: 1.76k, False: 518]
  ------------------
   47|  8.98k|  }
   48|  2.17k|  return 0;
   49|  4.46k|}
StringRef.cpp:_ZL13ascii_tolowerc:
   23|  13.7M|static char ascii_tolower(char x) {
   24|  13.7M|  if (x >= 'A' && x <= 'Z')
  ------------------
  |  Branch (24:7): [True: 12.3M, False: 1.32M]
  |  Branch (24:19): [True: 351k, False: 12.0M]
  ------------------
   25|   351k|    return x - 'A' + 'a';
   26|  13.3M|  return x;
   27|  13.7M|}
StringRef.cpp:_ZL13ascii_toupperc:
   29|  8.71k|static char ascii_toupper(char x) {
   30|  8.71k|  if (x >= 'a' && x <= 'z')
  ------------------
  |  Branch (30:7): [True: 545, False: 8.17k]
  |  Branch (30:19): [True: 545, False: 0]
  ------------------
   31|    545|    return x - 'a' + 'A';
   32|  8.17k|  return x;
   33|  8.71k|}
StringRef.cpp:_ZL17GetAutoSenseRadixRN7llvm_ks9StringRefE:
  353|  4.89k|static unsigned GetAutoSenseRadix(StringRef &Str) {
  354|  4.89k|  if (Str.startswith("0x") || Str.startswith("0X")) {
  ------------------
  |  Branch (354:7): [True: 4.11k, False: 783]
  |  Branch (354:7): [True: 4.89k, False: 0]
  |  Branch (354:31): [True: 783, False: 0]
  ------------------
  355|  4.89k|    Str = Str.substr(2);
  356|  4.89k|    return 16;
  357|  4.89k|  }
  358|       |  
  359|      0|  if (Str.startswith("0b")) {
  ------------------
  |  Branch (359:7): [True: 0, False: 0]
  ------------------
  360|      0|    Str = Str.substr(2);
  361|      0|    return 2;
  362|      0|  }
  363|       |
  364|      0|  if (Str.startswith("0o")) {
  ------------------
  |  Branch (364:7): [True: 0, False: 0]
  ------------------
  365|      0|    Str = Str.substr(2);
  366|      0|    return 8;
  367|      0|  }
  368|       |
  369|      0|  if (Str.startswith("0"))
  ------------------
  |  Branch (369:7): [True: 0, False: 0]
  ------------------
  370|      0|    return 8;
  371|       |  
  372|      0|  return 10;
  373|      0|}

_ZN7llvm_ks3ARM20getCanonicalArchNameENS_9StringRefE:
  423|   245k|StringRef llvm_ks::ARM::getCanonicalArchName(StringRef Arch) {
  424|   245k|  size_t offset = StringRef::npos;
  425|   245k|  StringRef A = Arch;
  426|   245k|  StringRef Error = "";
  427|       |
  428|       |  // Begins with "arm" / "thumb", move past it.
  429|   245k|  if (A.startswith("arm64"))
  ------------------
  |  Branch (429:7): [True: 0, False: 245k]
  ------------------
  430|      0|    offset = 5;
  431|   245k|  else if (A.startswith("arm"))
  ------------------
  |  Branch (431:12): [True: 0, False: 245k]
  ------------------
  432|      0|    offset = 3;
  433|   245k|  else if (A.startswith("thumb"))
  ------------------
  |  Branch (433:12): [True: 0, False: 245k]
  ------------------
  434|      0|    offset = 5;
  435|   245k|  else if (A.startswith("aarch64")) {
  ------------------
  |  Branch (435:12): [True: 0, False: 245k]
  ------------------
  436|      0|    offset = 7;
  437|       |    // AArch64 uses "_be", not "eb" suffix.
  438|      0|    if (A.find("eb") != StringRef::npos)
  ------------------
  |  Branch (438:9): [True: 0, False: 0]
  ------------------
  439|      0|      return Error;
  440|      0|    if (A.substr(offset, 3) == "_be")
  ------------------
  |  Branch (440:9): [True: 0, False: 0]
  ------------------
  441|      0|      offset += 3;
  442|      0|  }
  443|       |
  444|       |  // Ex. "armebv7", move past the "eb".
  445|   245k|  if (offset != StringRef::npos && A.substr(offset, 2) == "eb")
  ------------------
  |  Branch (445:7): [True: 0, False: 245k]
  |  Branch (445:7): [True: 0, False: 245k]
  |  Branch (445:36): [True: 0, False: 0]
  ------------------
  446|      0|    offset += 2;
  447|       |  // Or, if it ends with eb ("armv7eb"), chop it off.
  448|   245k|  else if (A.endswith("eb"))
  ------------------
  |  Branch (448:12): [True: 0, False: 245k]
  ------------------
  449|      0|    A = A.substr(0, A.size() - 2);
  450|       |  // Trim the head
  451|   245k|  if (offset != StringRef::npos)
  ------------------
  |  Branch (451:7): [True: 0, False: 245k]
  ------------------
  452|      0|    A = A.substr(offset);
  453|       |
  454|       |  // Empty string means offset reached the end, which means it's valid.
  455|   245k|  if (A.empty())
  ------------------
  |  Branch (455:7): [True: 0, False: 245k]
  ------------------
  456|      0|    return Arch;
  457|       |
  458|       |  // Only match non-marketing names
  459|   245k|  if (offset != StringRef::npos) {
  ------------------
  |  Branch (459:7): [True: 0, False: 245k]
  ------------------
  460|       |    // Must start with 'vN'.
  461|      0|    if (A[0] != 'v' || !std::isdigit(A[1]))
  ------------------
  |  Branch (461:9): [True: 0, False: 0]
  |  Branch (461:24): [True: 0, False: 0]
  ------------------
  462|      0|      return Error;
  463|       |    // Can't have an extra 'eb'.
  464|      0|    if (A.find("eb") != StringRef::npos)
  ------------------
  |  Branch (464:9): [True: 0, False: 0]
  ------------------
  465|      0|      return Error;
  466|      0|  }
  467|       |
  468|       |  // Arch will either be a 'v' name (v7a) or a marketing name (xscale).
  469|   245k|  return A;
  470|   245k|}
_ZN7llvm_ks3ARM9parseArchENS_9StringRefE:
  491|   122k|unsigned llvm_ks::ARM::parseArch(StringRef Arch) {
  492|   122k|  Arch = getCanonicalArchName(Arch);
  493|   122k|  StringRef Syn = getArchSynonym(Arch);
  494|  3.55M|  for (const auto A : ARCHNames) {
  ------------------
  |  Branch (494:21): [True: 3.55M, False: 122k]
  ------------------
  495|  3.55M|    if (A.getName().endswith(Syn))
  ------------------
  |  Branch (495:9): [True: 0, False: 3.55M]
  ------------------
  496|      0|      return A.ID;
  497|  3.55M|  }
  498|   122k|  return ARM::AK_INVALID;
  499|   122k|}
TargetParser.cpp:_ZNK12_GLOBAL__N_13$_17getNameEv:
   66|  3.55M|  StringRef getName() const { return StringRef(NameCStr, NameLength); }
TargetParser.cpp:_ZL14getArchSynonymN7llvm_ks9StringRefE:
  399|   122k|static StringRef getArchSynonym(StringRef Arch) {
  400|   122k|  return StringSwitch<StringRef>(Arch)
  401|   122k|      .Case("v5", "v5t")
  402|   122k|      .Case("v5e", "v5te")
  403|   122k|      .Case("v6j", "v6")
  404|   122k|      .Case("v6hl", "v6k")
  405|   122k|      .Cases("v6m", "v6sm", "v6s-m", "v6-m")
  406|   122k|      .Cases("v6z", "v6zk", "v6kz")
  407|   122k|      .Cases("v7", "v7a", "v7hl", "v7l", "v7-a")
  408|   122k|      .Case("v7r", "v7-r")
  409|   122k|      .Case("v7m", "v7-m")
  410|   122k|      .Case("v7em", "v7e-m")
  411|   122k|      .Cases("v8", "v8a", "aarch64", "arm64", "v8-a")
  412|   122k|      .Case("v8.1a", "v8.1-a")
  413|   122k|      .Case("v8.2a", "v8.2-a")
  414|   122k|      .Case("v8m.base", "v8-m.base")
  415|   122k|      .Case("v8m.main", "v8-m.main")
  416|   122k|      .Default(Arch);
  417|   122k|}

_ZN7llvm_ks14TargetRegistry7targetsEv:
   21|  95.4k|iterator_range<TargetRegistry::iterator> TargetRegistry::targets() {
   22|  95.4k|  return make_range(iterator(FirstTarget), iterator());
   23|  95.4k|}
_ZN7llvm_ks14TargetRegistry12lookupTargetERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERNS_6TripleERS7_:
   27|  13.6k|                                           std::string &Error) {
   28|       |  // Allocate target machine.  First, check whether the user has explicitly
   29|       |  // specified an architecture to compile for. If so we have to look it up by
   30|       |  // name, because it might be a backend that has no mapping to a target triple.
   31|  13.6k|  const Target *TheTarget = nullptr;
   32|  13.6k|  if (!ArchName.empty()) {
  ------------------
  |  Branch (32:7): [True: 0, False: 13.6k]
  ------------------
   33|      0|    auto I =
   34|      0|        std::find_if(targets().begin(), targets().end(),
   35|      0|                     [&](const Target &T) { return ArchName == T.getName(); });
   36|       |
   37|      0|    if (I == targets().end()) {
  ------------------
  |  Branch (37:9): [True: 0, False: 0]
  ------------------
   38|      0|      Error = "error: invalid target '" + ArchName + "'.\n";
   39|      0|      return nullptr;
   40|      0|    }
   41|       |
   42|      0|    TheTarget = &*I;
   43|       |
   44|       |    // Adjust the triple to match (if known), otherwise stick with the
   45|       |    // given triple.
   46|      0|    Triple::ArchType Type = Triple::getArchTypeForLLVMName(ArchName);
   47|      0|    if (Type != Triple::UnknownArch)
  ------------------
  |  Branch (47:9): [True: 0, False: 0]
  ------------------
   48|      0|      TheTriple.setArch(Type);
   49|  13.6k|  } else {
   50|       |    // Get the target specific parser.
   51|  13.6k|    std::string TempError;
   52|  13.6k|    TheTarget = TargetRegistry::lookupTarget(TheTriple.getTriple(), TempError);
   53|  13.6k|    if (!TheTarget) {
  ------------------
  |  Branch (53:9): [True: 0, False: 13.6k]
  ------------------
   54|      0|      Error = ": error: unable to get target for '"
   55|      0|            + TheTriple.getTriple()
   56|      0|            + "', see --version and --triple.\n";
   57|      0|      return nullptr;
   58|      0|    }
   59|  13.6k|  }
   60|       |
   61|  13.6k|  return TheTarget;
   62|  13.6k|}
_ZN7llvm_ks14TargetRegistry12lookupTargetERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS7_:
   65|  13.6k|                                           std::string &Error) {
   66|       |  // Provide special warning when no targets are initialized.
   67|  13.6k|  if (targets().begin() == targets().end()) {
  ------------------
  |  Branch (67:7): [True: 0, False: 13.6k]
  ------------------
   68|      0|    Error = "Unable to find target for this triple (no targets are registered)";
   69|      0|    return nullptr;
   70|      0|  }
   71|  13.6k|  Triple::ArchType Arch = Triple(TT).getArch();
   72|  13.6k|  auto ArchMatch = [&](const Target &T) { return T.ArchMatchFn(Arch); };
   73|  13.6k|  auto I = std::find_if(targets().begin(), targets().end(), ArchMatch);
   74|       |
   75|  13.6k|  if (I == targets().end()) {
  ------------------
  |  Branch (75:7): [True: 0, False: 13.6k]
  ------------------
   76|      0|    Error = "No available targets are compatible with this triple.";
   77|      0|    return nullptr;
   78|      0|  }
   79|       |
   80|  13.6k|  auto J = std::find_if(std::next(I), targets().end(), ArchMatch);
   81|  13.6k|  if (J != targets().end()) {
  ------------------
  |  Branch (81:7): [True: 0, False: 13.6k]
  ------------------
   82|      0|    Error = std::string("Cannot choose between targets \"") + I->Name +
   83|      0|            "\" and \"" + J->Name + "\"";
   84|      0|    return nullptr;
   85|      0|  }
   86|       |
   87|  13.6k|  return &*I;
   88|  13.6k|}
_ZN7llvm_ks14TargetRegistry14RegisterTargetERNS_6TargetEPKcS4_PFbNS_6Triple8ArchTypeEE:
   93|     23|                                    Target::ArchMatchFnTy ArchMatchFn) {
   94|     23|  assert(Name && ShortDesc && ArchMatchFn &&
  ------------------
  |  Branch (94:3): [True: 23, False: 0]
  |  Branch (94:3): [True: 23, False: 0]
  |  Branch (94:3): [True: 23, False: 0]
  |  Branch (94:3): [True: 23, Folded]
  |  Branch (94:3): [True: 23, False: 0]
  ------------------
   95|     23|         "Missing required target information!");
   96|       |
   97|       |  // Check if this target has already been initialized, we allow this as a
   98|       |  // convenience to some clients.
   99|     23|  if (T.Name)
  ------------------
  |  Branch (99:7): [True: 0, False: 23]
  ------------------
  100|      0|    return;
  101|       |         
  102|       |  // Add to the list of targets.
  103|     23|  T.Next = FirstTarget;
  104|     23|  FirstTarget = &T;
  105|       |
  106|     23|  T.Name = Name;
  107|     23|  T.ShortDesc = ShortDesc;
  108|     23|  T.ArchMatchFn = ArchMatchFn;
  109|     23|}
TargetRegistry.cpp:_ZZN7llvm_ks14TargetRegistry12lookupTargetERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS7_ENK3$_0clERKNS_6TargetE:
   72|   313k|  auto ArchMatch = [&](const Target &T) { return T.ArchMatchFn(Arch); };

_ZN7llvm_ks6TripleC2ERKNS_5TwineE:
  618|   122k|    : Data(Str.str()), Arch(UnknownArch), SubArch(NoSubArch),
  619|   122k|      Vendor(UnknownVendor), OS(UnknownOS), Environment(UnknownEnvironment),
  620|   122k|      ObjectFormat(UnknownObjectFormat) {
  621|       |  // Do minimal parsing by hand here.
  622|   122k|  SmallVector<StringRef, 4> Components;
  623|   122k|  StringRef(Data).split(Components, '-', /*MaxSplit*/ 3);
  624|   122k|  if (Components.size() > 0) {
  ------------------
  |  Branch (624:7): [True: 122k, False: 0]
  ------------------
  625|   122k|    Arch = parseArch(Components[0]);
  626|   122k|    SubArch = parseSubArch(Components[0]);
  627|   122k|    if (Components.size() > 1) {
  ------------------
  |  Branch (627:9): [True: 0, False: 122k]
  ------------------
  628|      0|      Vendor = parseVendor(Components[1]);
  629|      0|      if (Components.size() > 2) {
  ------------------
  |  Branch (629:11): [True: 0, False: 0]
  ------------------
  630|      0|        OS = parseOS(Components[2]);
  631|      0|        if (Components.size() > 3) {
  ------------------
  |  Branch (631:13): [True: 0, False: 0]
  ------------------
  632|      0|          Environment = parseEnvironment(Components[3]);
  633|      0|          ObjectFormat = parseFormat(Components[3]);
  634|      0|        }
  635|      0|      }
  636|      0|    }
  637|   122k|  }
  638|   122k|  if (ObjectFormat == UnknownObjectFormat)
  ------------------
  |  Branch (638:7): [True: 122k, False: 0]
  ------------------
  639|   122k|    ObjectFormat = getDefaultFormat(*this);
  640|   122k|}
_ZN7llvm_ks6Triple9normalizeENS_9StringRefE:
  677|  13.6k|std::string Triple::normalize(StringRef Str) {
  678|  13.6k|  bool IsMinGW32 = false;
  679|  13.6k|  bool IsCygwin = false;
  680|       |
  681|       |  // Parse into components.
  682|  13.6k|  SmallVector<StringRef, 4> Components;
  683|  13.6k|  Str.split(Components, '-');
  684|       |
  685|       |  // If the first component corresponds to a known architecture, preferentially
  686|       |  // use it for the architecture.  If the second component corresponds to a
  687|       |  // known vendor, preferentially use it for the vendor, etc.  This avoids silly
  688|       |  // component movement when a component parses as (eg) both a valid arch and a
  689|       |  // valid os.
  690|  13.6k|  ArchType Arch = UnknownArch;
  691|  13.6k|  if (Components.size() > 0)
  ------------------
  |  Branch (691:7): [True: 13.6k, False: 0]
  ------------------
  692|  13.6k|    Arch = parseArch(Components[0]);
  693|  13.6k|  VendorType Vendor = UnknownVendor;
  694|  13.6k|  if (Components.size() > 1)
  ------------------
  |  Branch (694:7): [True: 0, False: 13.6k]
  ------------------
  695|      0|    Vendor = parseVendor(Components[1]);
  696|  13.6k|  OSType OS = UnknownOS;
  697|  13.6k|  if (Components.size() > 2) {
  ------------------
  |  Branch (697:7): [True: 0, False: 13.6k]
  ------------------
  698|      0|    OS = parseOS(Components[2]);
  699|      0|    IsCygwin = Components[2].startswith("cygwin");
  700|      0|    IsMinGW32 = Components[2].startswith("mingw");
  701|      0|  }
  702|  13.6k|  EnvironmentType Environment = UnknownEnvironment;
  703|  13.6k|  if (Components.size() > 3)
  ------------------
  |  Branch (703:7): [True: 0, False: 13.6k]
  ------------------
  704|      0|    Environment = parseEnvironment(Components[3]);
  705|  13.6k|  ObjectFormatType ObjectFormat = UnknownObjectFormat;
  706|  13.6k|  if (Components.size() > 4)
  ------------------
  |  Branch (706:7): [True: 0, False: 13.6k]
  ------------------
  707|      0|    ObjectFormat = parseFormat(Components[4]);
  708|       |
  709|       |  // Note which components are already in their final position.  These will not
  710|       |  // be moved.
  711|  13.6k|  bool Found[4];
  712|  13.6k|  Found[0] = Arch != UnknownArch;
  713|  13.6k|  Found[1] = Vendor != UnknownVendor;
  714|  13.6k|  Found[2] = OS != UnknownOS;
  715|  13.6k|  Found[3] = Environment != UnknownEnvironment;
  716|       |
  717|       |  // If they are not there already, permute the components into their canonical
  718|       |  // positions by seeing if they parse as a valid architecture, and if so moving
  719|       |  // the component to the architecture position etc.
  720|  68.1k|  for (unsigned Pos = 0; Pos != array_lengthof(Found); ++Pos) {
  ------------------
  |  Branch (720:26): [True: 54.5k, False: 13.6k]
  ------------------
  721|  54.5k|    if (Found[Pos])
  ------------------
  |  Branch (721:9): [True: 13.6k, False: 40.8k]
  ------------------
  722|  13.6k|      continue; // Already in the canonical position.
  723|       |
  724|  81.7k|    for (unsigned Idx = 0; Idx != Components.size(); ++Idx) {
  ------------------
  |  Branch (724:28): [True: 40.8k, False: 40.8k]
  ------------------
  725|       |      // Do not reparse any components that already matched.
  726|  40.8k|      if (Idx < array_lengthof(Found) && Found[Idx])
  ------------------
  |  Branch (726:11): [True: 40.8k, False: 0]
  |  Branch (726:42): [True: 40.8k, False: 0]
  ------------------
  727|  40.8k|        continue;
  728|       |
  729|       |      // Does this component parse as valid for the target position?
  730|      0|      bool Valid = false;
  731|      0|      StringRef Comp = Components[Idx];
  732|      0|      switch (Pos) {
  733|      0|      default: llvm_unreachable("unexpected component type!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  |  Branch (733:7): [True: 0, False: 0]
  ------------------
  734|      0|      case 0:
  ------------------
  |  Branch (734:7): [True: 0, False: 0]
  ------------------
  735|      0|        Arch = parseArch(Comp);
  736|      0|        Valid = Arch != UnknownArch;
  737|      0|        break;
  738|      0|      case 1:
  ------------------
  |  Branch (738:7): [True: 0, False: 0]
  ------------------
  739|      0|        Vendor = parseVendor(Comp);
  740|      0|        Valid = Vendor != UnknownVendor;
  741|      0|        break;
  742|      0|      case 2:
  ------------------
  |  Branch (742:7): [True: 0, False: 0]
  ------------------
  743|      0|        OS = parseOS(Comp);
  744|      0|        IsCygwin = Comp.startswith("cygwin");
  745|      0|        IsMinGW32 = Comp.startswith("mingw");
  746|      0|        Valid = OS != UnknownOS || IsCygwin || IsMinGW32;
  ------------------
  |  Branch (746:17): [True: 0, False: 0]
  |  Branch (746:36): [True: 0, False: 0]
  |  Branch (746:48): [True: 0, False: 0]
  ------------------
  747|      0|        break;
  748|      0|      case 3:
  ------------------
  |  Branch (748:7): [True: 0, False: 0]
  ------------------
  749|      0|        Environment = parseEnvironment(Comp);
  750|      0|        Valid = Environment != UnknownEnvironment;
  751|      0|        if (!Valid) {
  ------------------
  |  Branch (751:13): [True: 0, False: 0]
  ------------------
  752|      0|          ObjectFormat = parseFormat(Comp);
  753|      0|          Valid = ObjectFormat != UnknownObjectFormat;
  754|      0|        }
  755|      0|        break;
  756|      0|      }
  757|      0|      if (!Valid)
  ------------------
  |  Branch (757:11): [True: 0, False: 0]
  ------------------
  758|      0|        continue; // Nope, try the next component.
  759|       |
  760|       |      // Move the component to the target position, pushing any non-fixed
  761|       |      // components that are in the way to the right.  This tends to give
  762|       |      // good results in the common cases of a forgotten vendor component
  763|       |      // or a wrongly positioned environment.
  764|      0|      if (Pos < Idx) {
  ------------------
  |  Branch (764:11): [True: 0, False: 0]
  ------------------
  765|       |        // Insert left, pushing the existing components to the right.  For
  766|       |        // example, a-b-i386 -> i386-a-b when moving i386 to the front.
  767|      0|        StringRef CurrentComponent(""); // The empty component.
  768|       |        // Replace the component we are moving with an empty component.
  769|      0|        std::swap(CurrentComponent, Components[Idx]);
  770|       |        // Insert the component being moved at Pos, displacing any existing
  771|       |        // components to the right.
  772|      0|        for (unsigned i = Pos; !CurrentComponent.empty(); ++i) {
  ------------------
  |  Branch (772:32): [True: 0, False: 0]
  ------------------
  773|       |          // Skip over any fixed components.
  774|      0|          while (i < array_lengthof(Found) && Found[i])
  ------------------
  |  Branch (774:18): [True: 0, False: 0]
  |  Branch (774:47): [True: 0, False: 0]
  ------------------
  775|      0|            ++i;
  776|       |          // Place the component at the new position, getting the component
  777|       |          // that was at this position - it will be moved right.
  778|      0|          std::swap(CurrentComponent, Components[i]);
  779|      0|        }
  780|      0|      } else if (Pos > Idx) {
  ------------------
  |  Branch (780:18): [True: 0, False: 0]
  ------------------
  781|       |        // Push right by inserting empty components until the component at Idx
  782|       |        // reaches the target position Pos.  For example, pc-a -> -pc-a when
  783|       |        // moving pc to the second position.
  784|      0|        do {
  785|       |          // Insert one empty component at Idx.
  786|      0|          StringRef CurrentComponent(""); // The empty component.
  787|      0|          for (unsigned i = Idx; i < Components.size();) {
  ------------------
  |  Branch (787:34): [True: 0, False: 0]
  ------------------
  788|       |            // Place the component at the new position, getting the component
  789|       |            // that was at this position - it will be moved right.
  790|      0|            std::swap(CurrentComponent, Components[i]);
  791|       |            // If it was placed on top of an empty component then we are done.
  792|      0|            if (CurrentComponent.empty())
  ------------------
  |  Branch (792:17): [True: 0, False: 0]
  ------------------
  793|      0|              break;
  794|       |            // Advance to the next component, skipping any fixed components.
  795|      0|            while (++i < array_lengthof(Found) && Found[i])
  ------------------
  |  Branch (795:20): [True: 0, False: 0]
  |  Branch (795:51): [True: 0, False: 0]
  ------------------
  796|      0|              ;
  797|      0|          }
  798|       |          // The last component was pushed off the end - append it.
  799|      0|          if (!CurrentComponent.empty())
  ------------------
  |  Branch (799:15): [True: 0, False: 0]
  ------------------
  800|      0|            Components.push_back(CurrentComponent);
  801|       |
  802|       |          // Advance Idx to the component's new position.
  803|      0|          while (++Idx < array_lengthof(Found) && Found[Idx])
  ------------------
  |  Branch (803:18): [True: 0, False: 0]
  |  Branch (803:51): [True: 0, False: 0]
  ------------------
  804|      0|            ;
  805|      0|        } while (Idx < Pos); // Add more until the final position is reached.
  ------------------
  |  Branch (805:18): [True: 0, False: 0]
  ------------------
  806|      0|      }
  807|      0|      assert(Pos < Components.size() && Components[Pos] == Comp &&
  ------------------
  |  Branch (807:7): [True: 0, False: 0]
  |  Branch (807:7): [True: 0, False: 0]
  |  Branch (807:7): [True: 0, Folded]
  |  Branch (807:7): [True: 0, False: 0]
  ------------------
  808|      0|             "Component moved wrong!");
  809|      0|      Found[Pos] = true;
  810|      0|      break;
  811|      0|    }
  812|  40.8k|  }
  813|       |
  814|       |  // Special case logic goes here.  At this point Arch, Vendor and OS have the
  815|       |  // correct values for the computed components.
  816|  13.6k|  std::string NormalizedEnvironment;
  817|  13.6k|  if (Environment == Triple::Android && Components[3].startswith("androideabi")) {
  ------------------
  |  Branch (817:7): [True: 0, False: 13.6k]
  |  Branch (817:7): [True: 0, False: 13.6k]
  |  Branch (817:41): [True: 0, False: 0]
  ------------------
  818|      0|    StringRef AndroidVersion = Components[3].drop_front(strlen("androideabi"));
  819|      0|    if (AndroidVersion.empty()) {
  ------------------
  |  Branch (819:9): [True: 0, False: 0]
  ------------------
  820|      0|      Components[3] = "android";
  821|      0|    } else {
  822|      0|      NormalizedEnvironment = Twine("android", AndroidVersion).str();
  823|      0|      Components[3] = NormalizedEnvironment;
  824|      0|    }
  825|      0|  }
  826|       |
  827|  13.6k|  if (OS == Triple::Win32) {
  ------------------
  |  Branch (827:7): [True: 0, False: 13.6k]
  ------------------
  828|      0|    Components.resize(4);
  829|      0|    Components[2] = "windows";
  830|      0|    if (Environment == UnknownEnvironment) {
  ------------------
  |  Branch (830:9): [True: 0, False: 0]
  ------------------
  831|      0|      if (ObjectFormat == UnknownObjectFormat || ObjectFormat == Triple::COFF)
  ------------------
  |  Branch (831:11): [True: 0, False: 0]
  |  Branch (831:50): [True: 0, False: 0]
  ------------------
  832|      0|        Components[3] = "msvc";
  833|      0|      else
  834|      0|        Components[3] = getObjectFormatTypeName(ObjectFormat);
  835|      0|    }
  836|  13.6k|  } else if (IsMinGW32) {
  ------------------
  |  Branch (836:14): [True: 0, False: 13.6k]
  ------------------
  837|      0|    Components.resize(4);
  838|      0|    Components[2] = "windows";
  839|      0|    Components[3] = "gnu";
  840|  13.6k|  } else if (IsCygwin) {
  ------------------
  |  Branch (840:14): [True: 0, False: 13.6k]
  ------------------
  841|      0|    Components.resize(4);
  842|      0|    Components[2] = "windows";
  843|      0|    Components[3] = "cygnus";
  844|      0|  }
  845|  13.6k|  if (IsMinGW32 || IsCygwin ||
  ------------------
  |  Branch (845:7): [True: 0, False: 13.6k]
  |  Branch (845:20): [True: 0, False: 13.6k]
  ------------------
  846|  13.6k|      (OS == Triple::Win32 && Environment != UnknownEnvironment)) {
  ------------------
  |  Branch (846:8): [True: 0, False: 13.6k]
  |  Branch (846:31): [True: 0, False: 0]
  ------------------
  847|      0|    if (ObjectFormat != UnknownObjectFormat && ObjectFormat != Triple::COFF) {
  ------------------
  |  Branch (847:9): [True: 0, False: 0]
  |  Branch (847:48): [True: 0, False: 0]
  ------------------
  848|      0|      Components.resize(5);
  849|      0|      Components[4] = getObjectFormatTypeName(ObjectFormat);
  850|      0|    }
  851|      0|  }
  852|       |
  853|       |  // Stick the corrected components back together to form the normalized string.
  854|  13.6k|  std::string Normalized;
  855|  27.2k|  for (unsigned i = 0, e = Components.size(); i != e; ++i) {
  ------------------
  |  Branch (855:47): [True: 13.6k, False: 13.6k]
  ------------------
  856|  13.6k|    if (i) Normalized += '-';
  ------------------
  |  Branch (856:9): [True: 0, False: 13.6k]
  ------------------
  857|  13.6k|    Normalized += Components[i];
  858|  13.6k|  }
  859|  13.6k|  return Normalized;
  860|  13.6k|}
_ZNK7llvm_ks6Triple11isArch64BitEv:
 1157|  81.7k|bool Triple::isArch64Bit() const {
 1158|  81.7k|  return getArchPointerBitWidth(getArch()) == 64;
 1159|  81.7k|}
Triple.cpp:_ZL9parseArchN7llvm_ks9StringRefE:
  341|   136k|static Triple::ArchType parseArch(StringRef ArchName) {
  342|   136k|  auto AT = StringSwitch<Triple::ArchType>(ArchName)
  343|   136k|    .Cases("i386", "i486", "i586", "i686", Triple::x86)
  344|       |    // FIXME: Do we need to support these?
  345|   136k|    .Cases("i786", "i886", "i986", Triple::x86)
  346|   136k|    .Cases("amd64", "x86_64", "x86_64h", Triple::x86_64)
  347|   136k|    .Cases("powerpc", "ppc32", Triple::ppc)
  348|   136k|    .Cases("powerpc64", "ppu", "ppc64", Triple::ppc64)
  349|   136k|    .Cases("powerpc64le", "ppc64le", Triple::ppc64le)
  350|   136k|    .Case("xscale", Triple::arm)
  351|   136k|    .Case("xscaleeb", Triple::armeb)
  352|   136k|    .Case("aarch64", Triple::aarch64)
  353|   136k|    .Case("aarch64_be", Triple::aarch64_be)
  354|   136k|    .Case("arm64", Triple::aarch64)
  355|   136k|    .Case("arm", Triple::arm)
  356|   136k|    .Case("armeb", Triple::armeb)
  357|   136k|    .Case("thumb", Triple::thumb)
  358|   136k|    .Case("thumbeb", Triple::thumbeb)
  359|   136k|    .Case("avr", Triple::avr)
  360|   136k|    .Case("msp430", Triple::msp430)
  361|   136k|    .Cases("mips", "mipseb", "mipsallegrex", Triple::mips)
  362|   136k|    .Cases("mipsel", "mipsallegrexel", Triple::mipsel)
  363|   136k|    .Cases("mips64", "mips64eb", Triple::mips64)
  364|   136k|    .Case("mips64el", Triple::mips64el)
  365|   136k|    .Case("r600", Triple::r600)
  366|   136k|    .Case("amdgcn", Triple::amdgcn)
  367|   136k|    .Case("riscv32", Triple::riscv32)
  368|   136k|    .Case("riscv64", Triple::riscv64)
  369|   136k|    .Case("hexagon", Triple::hexagon)
  370|   136k|    .Cases("s390x", "systemz", Triple::systemz)
  371|   136k|    .Case("sparc", Triple::sparc)
  372|   136k|    .Case("sparcel", Triple::sparcel)
  373|   136k|    .Cases("sparcv9", "sparc64", Triple::sparcv9)
  374|   136k|    .Case("tce", Triple::tce)
  375|   136k|    .Case("xcore", Triple::xcore)
  376|   136k|    .Case("nvptx", Triple::nvptx)
  377|   136k|    .Case("nvptx64", Triple::nvptx64)
  378|   136k|    .Case("le32", Triple::le32)
  379|   136k|    .Case("le64", Triple::le64)
  380|   136k|    .Case("amdil", Triple::amdil)
  381|   136k|    .Case("amdil64", Triple::amdil64)
  382|   136k|    .Case("hsail", Triple::hsail)
  383|   136k|    .Case("hsail64", Triple::hsail64)
  384|   136k|    .Case("spir", Triple::spir)
  385|   136k|    .Case("spir64", Triple::spir64)
  386|   136k|    .StartsWith("kalimba", Triple::kalimba)
  387|   136k|    .Case("shave", Triple::shave)
  388|   136k|    .Case("wasm32", Triple::wasm32)
  389|   136k|    .Case("wasm64", Triple::wasm64)
  390|   136k|    .Default(Triple::UnknownArch);
  391|       |
  392|       |  // Some architectures require special parsing logic just to compute the
  393|       |  // ArchType result.
  394|   136k|  if (AT == Triple::UnknownArch) {
  ------------------
  |  Branch (394:7): [True: 0, False: 136k]
  ------------------
  395|      0|    if (ArchName.startswith("arm") || ArchName.startswith("thumb") ||
  ------------------
  |  Branch (395:9): [True: 0, False: 0]
  |  Branch (395:9): [True: 0, False: 0]
  |  Branch (395:39): [True: 0, False: 0]
  ------------------
  396|      0|        ArchName.startswith("aarch64"))
  ------------------
  |  Branch (396:9): [True: 0, False: 0]
  ------------------
  397|      0|      return parseARMArch(ArchName);
  398|      0|    if (ArchName.startswith("bpf"))
  ------------------
  |  Branch (398:9): [True: 0, False: 0]
  ------------------
  399|      0|      return parseBPFArch(ArchName);
  400|      0|  }
  401|       |
  402|   136k|  return AT;
  403|   136k|}
Triple.cpp:_ZL12parseSubArchN7llvm_ks9StringRefE:
  481|   122k|static Triple::SubArchType parseSubArch(StringRef SubArchName) {
  482|   122k|  StringRef ARMSubArch = ARM::getCanonicalArchName(SubArchName);
  483|       |
  484|       |  // For now, this is the small part. Early return.
  485|   122k|  if (ARMSubArch.empty())
  ------------------
  |  Branch (485:7): [True: 0, False: 122k]
  ------------------
  486|      0|    return StringSwitch<Triple::SubArchType>(SubArchName)
  487|      0|      .EndsWith("kalimba3", Triple::KalimbaSubArch_v3)
  488|      0|      .EndsWith("kalimba4", Triple::KalimbaSubArch_v4)
  489|      0|      .EndsWith("kalimba5", Triple::KalimbaSubArch_v5)
  490|      0|      .Default(Triple::NoSubArch);
  491|       |
  492|       |  // ARM sub arch.
  493|   122k|  switch(ARM::parseArch(ARMSubArch)) {
  494|      0|  case ARM::AK_ARMV4:
  ------------------
  |  Branch (494:3): [True: 0, False: 122k]
  ------------------
  495|      0|    return Triple::NoSubArch;
  496|      0|  case ARM::AK_ARMV4T:
  ------------------
  |  Branch (496:3): [True: 0, False: 122k]
  ------------------
  497|      0|    return Triple::ARMSubArch_v4t;
  498|      0|  case ARM::AK_ARMV5T:
  ------------------
  |  Branch (498:3): [True: 0, False: 122k]
  ------------------
  499|      0|    return Triple::ARMSubArch_v5;
  500|      0|  case ARM::AK_ARMV5TE:
  ------------------
  |  Branch (500:3): [True: 0, False: 122k]
  ------------------
  501|      0|  case ARM::AK_IWMMXT:
  ------------------
  |  Branch (501:3): [True: 0, False: 122k]
  ------------------
  502|      0|  case ARM::AK_IWMMXT2:
  ------------------
  |  Branch (502:3): [True: 0, False: 122k]
  ------------------
  503|      0|  case ARM::AK_XSCALE:
  ------------------
  |  Branch (503:3): [True: 0, False: 122k]
  ------------------
  504|      0|  case ARM::AK_ARMV5TEJ:
  ------------------
  |  Branch (504:3): [True: 0, False: 122k]
  ------------------
  505|      0|    return Triple::ARMSubArch_v5te;
  506|      0|  case ARM::AK_ARMV6:
  ------------------
  |  Branch (506:3): [True: 0, False: 122k]
  ------------------
  507|      0|    return Triple::ARMSubArch_v6;
  508|      0|  case ARM::AK_ARMV6K:
  ------------------
  |  Branch (508:3): [True: 0, False: 122k]
  ------------------
  509|      0|  case ARM::AK_ARMV6KZ:
  ------------------
  |  Branch (509:3): [True: 0, False: 122k]
  ------------------
  510|      0|    return Triple::ARMSubArch_v6k;
  511|      0|  case ARM::AK_ARMV6T2:
  ------------------
  |  Branch (511:3): [True: 0, False: 122k]
  ------------------
  512|      0|    return Triple::ARMSubArch_v6t2;
  513|      0|  case ARM::AK_ARMV6M:
  ------------------
  |  Branch (513:3): [True: 0, False: 122k]
  ------------------
  514|      0|    return Triple::ARMSubArch_v6m;
  515|      0|  case ARM::AK_ARMV7A:
  ------------------
  |  Branch (515:3): [True: 0, False: 122k]
  ------------------
  516|      0|  case ARM::AK_ARMV7R:
  ------------------
  |  Branch (516:3): [True: 0, False: 122k]
  ------------------
  517|      0|    return Triple::ARMSubArch_v7;
  518|      0|  case ARM::AK_ARMV7K:
  ------------------
  |  Branch (518:3): [True: 0, False: 122k]
  ------------------
  519|      0|    return Triple::ARMSubArch_v7k;
  520|      0|  case ARM::AK_ARMV7M:
  ------------------
  |  Branch (520:3): [True: 0, False: 122k]
  ------------------
  521|      0|    return Triple::ARMSubArch_v7m;
  522|      0|  case ARM::AK_ARMV7S:
  ------------------
  |  Branch (522:3): [True: 0, False: 122k]
  ------------------
  523|      0|    return Triple::ARMSubArch_v7s;
  524|      0|  case ARM::AK_ARMV7EM:
  ------------------
  |  Branch (524:3): [True: 0, False: 122k]
  ------------------
  525|      0|    return Triple::ARMSubArch_v7em;
  526|      0|  case ARM::AK_ARMV8A:
  ------------------
  |  Branch (526:3): [True: 0, False: 122k]
  ------------------
  527|      0|    return Triple::ARMSubArch_v8;
  528|      0|  case ARM::AK_ARMV8_1A:
  ------------------
  |  Branch (528:3): [True: 0, False: 122k]
  ------------------
  529|      0|    return Triple::ARMSubArch_v8_1a;
  530|      0|  case ARM::AK_ARMV8_2A:
  ------------------
  |  Branch (530:3): [True: 0, False: 122k]
  ------------------
  531|      0|    return Triple::ARMSubArch_v8_2a;
  532|      0|  case ARM::AK_ARMV8MBaseline:
  ------------------
  |  Branch (532:3): [True: 0, False: 122k]
  ------------------
  533|      0|    return Triple::ARMSubArch_v8m_baseline;
  534|      0|  case ARM::AK_ARMV8MMainline:
  ------------------
  |  Branch (534:3): [True: 0, False: 122k]
  ------------------
  535|      0|    return Triple::ARMSubArch_v8m_mainline;
  536|   122k|  default:
  ------------------
  |  Branch (536:3): [True: 122k, False: 0]
  ------------------
  537|   122k|    return Triple::NoSubArch;
  538|   122k|  }
  539|   122k|}
Triple.cpp:_ZL16getDefaultFormatRKN7llvm_ks6TripleE:
  551|   122k|static Triple::ObjectFormatType getDefaultFormat(const Triple &T) {
  552|   122k|  switch (T.getArch()) {
  ------------------
  |  Branch (552:11): [True: 122k, False: 0]
  ------------------
  553|      0|  case Triple::UnknownArch:
  ------------------
  |  Branch (553:3): [True: 0, False: 122k]
  ------------------
  554|      0|  case Triple::aarch64:
  ------------------
  |  Branch (554:3): [True: 0, False: 122k]
  ------------------
  555|      0|  case Triple::arm:
  ------------------
  |  Branch (555:3): [True: 0, False: 122k]
  ------------------
  556|      0|  case Triple::thumb:
  ------------------
  |  Branch (556:3): [True: 0, False: 122k]
  ------------------
  557|      0|  case Triple::x86:
  ------------------
  |  Branch (557:3): [True: 0, False: 122k]
  ------------------
  558|      0|  case Triple::x86_64:
  ------------------
  |  Branch (558:3): [True: 0, False: 122k]
  ------------------
  559|      0|    if (T.isOSDarwin())
  ------------------
  |  Branch (559:9): [True: 0, False: 0]
  ------------------
  560|      0|      return Triple::MachO;
  561|      0|    else if (T.isOSWindows())
  ------------------
  |  Branch (561:14): [True: 0, False: 0]
  ------------------
  562|      0|      return Triple::COFF;
  563|      0|    return Triple::ELF;
  564|       |
  565|      0|  case Triple::aarch64_be:
  ------------------
  |  Branch (565:3): [True: 0, False: 122k]
  ------------------
  566|      0|  case Triple::amdgcn:
  ------------------
  |  Branch (566:3): [True: 0, False: 122k]
  ------------------
  567|      0|  case Triple::amdil:
  ------------------
  |  Branch (567:3): [True: 0, False: 122k]
  ------------------
  568|      0|  case Triple::amdil64:
  ------------------
  |  Branch (568:3): [True: 0, False: 122k]
  ------------------
  569|      0|  case Triple::armeb:
  ------------------
  |  Branch (569:3): [True: 0, False: 122k]
  ------------------
  570|      0|  case Triple::avr:
  ------------------
  |  Branch (570:3): [True: 0, False: 122k]
  ------------------
  571|      0|  case Triple::bpfeb:
  ------------------
  |  Branch (571:3): [True: 0, False: 122k]
  ------------------
  572|      0|  case Triple::bpfel:
  ------------------
  |  Branch (572:3): [True: 0, False: 122k]
  ------------------
  573|      0|  case Triple::hexagon:
  ------------------
  |  Branch (573:3): [True: 0, False: 122k]
  ------------------
  574|      0|  case Triple::hsail:
  ------------------
  |  Branch (574:3): [True: 0, False: 122k]
  ------------------
  575|      0|  case Triple::hsail64:
  ------------------
  |  Branch (575:3): [True: 0, False: 122k]
  ------------------
  576|      0|  case Triple::kalimba:
  ------------------
  |  Branch (576:3): [True: 0, False: 122k]
  ------------------
  577|      0|  case Triple::le32:
  ------------------
  |  Branch (577:3): [True: 0, False: 122k]
  ------------------
  578|      0|  case Triple::le64:
  ------------------
  |  Branch (578:3): [True: 0, False: 122k]
  ------------------
  579|      0|  case Triple::mips:
  ------------------
  |  Branch (579:3): [True: 0, False: 122k]
  ------------------
  580|      0|  case Triple::mips64:
  ------------------
  |  Branch (580:3): [True: 0, False: 122k]
  ------------------
  581|      0|  case Triple::mips64el:
  ------------------
  |  Branch (581:3): [True: 0, False: 122k]
  ------------------
  582|      0|  case Triple::mipsel:
  ------------------
  |  Branch (582:3): [True: 0, False: 122k]
  ------------------
  583|      0|  case Triple::msp430:
  ------------------
  |  Branch (583:3): [True: 0, False: 122k]
  ------------------
  584|      0|  case Triple::nvptx:
  ------------------
  |  Branch (584:3): [True: 0, False: 122k]
  ------------------
  585|      0|  case Triple::nvptx64:
  ------------------
  |  Branch (585:3): [True: 0, False: 122k]
  ------------------
  586|      0|  case Triple::ppc64le:
  ------------------
  |  Branch (586:3): [True: 0, False: 122k]
  ------------------
  587|      0|  case Triple::r600:
  ------------------
  |  Branch (587:3): [True: 0, False: 122k]
  ------------------
  588|   122k|  case Triple::riscv32:
  ------------------
  |  Branch (588:3): [True: 122k, False: 0]
  ------------------
  589|   122k|  case Triple::riscv64:
  ------------------
  |  Branch (589:3): [True: 0, False: 122k]
  ------------------
  590|   122k|  case Triple::shave:
  ------------------
  |  Branch (590:3): [True: 0, False: 122k]
  ------------------
  591|   122k|  case Triple::sparc:
  ------------------
  |  Branch (591:3): [True: 0, False: 122k]
  ------------------
  592|   122k|  case Triple::sparcel:
  ------------------
  |  Branch (592:3): [True: 0, False: 122k]
  ------------------
  593|   122k|  case Triple::sparcv9:
  ------------------
  |  Branch (593:3): [True: 0, False: 122k]
  ------------------
  594|   122k|  case Triple::spir:
  ------------------
  |  Branch (594:3): [True: 0, False: 122k]
  ------------------
  595|   122k|  case Triple::spir64:
  ------------------
  |  Branch (595:3): [True: 0, False: 122k]
  ------------------
  596|   122k|  case Triple::systemz:
  ------------------
  |  Branch (596:3): [True: 0, False: 122k]
  ------------------
  597|   122k|  case Triple::tce:
  ------------------
  |  Branch (597:3): [True: 0, False: 122k]
  ------------------
  598|   122k|  case Triple::thumbeb:
  ------------------
  |  Branch (598:3): [True: 0, False: 122k]
  ------------------
  599|   122k|  case Triple::wasm32:
  ------------------
  |  Branch (599:3): [True: 0, False: 122k]
  ------------------
  600|   122k|  case Triple::wasm64:
  ------------------
  |  Branch (600:3): [True: 0, False: 122k]
  ------------------
  601|   122k|  case Triple::xcore:
  ------------------
  |  Branch (601:3): [True: 0, False: 122k]
  ------------------
  602|   122k|    return Triple::ELF;
  603|       |
  604|      0|  case Triple::ppc:
  ------------------
  |  Branch (604:3): [True: 0, False: 122k]
  ------------------
  605|      0|  case Triple::ppc64:
  ------------------
  |  Branch (605:3): [True: 0, False: 122k]
  ------------------
  606|      0|    if (T.isOSDarwin())
  ------------------
  |  Branch (606:9): [True: 0, False: 0]
  ------------------
  607|      0|      return Triple::MachO;
  608|      0|    return Triple::ELF;
  609|   122k|  }
  610|      0|  llvm_unreachable("unknown architecture");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  611|   122k|}
Triple.cpp:_ZL22getArchPointerBitWidthN7llvm_ks6Triple8ArchTypeE:
 1099|  81.7k|static unsigned getArchPointerBitWidth(llvm_ks::Triple::ArchType Arch) {
 1100|  81.7k|  switch (Arch) {
  ------------------
  |  Branch (1100:11): [True: 81.7k, False: 0]
  ------------------
 1101|      0|  case llvm_ks::Triple::UnknownArch:
  ------------------
  |  Branch (1101:3): [True: 0, False: 81.7k]
  ------------------
 1102|      0|    return 0;
 1103|       |
 1104|      0|  case llvm_ks::Triple::avr:
  ------------------
  |  Branch (1104:3): [True: 0, False: 81.7k]
  ------------------
 1105|      0|  case llvm_ks::Triple::msp430:
  ------------------
  |  Branch (1105:3): [True: 0, False: 81.7k]
  ------------------
 1106|      0|    return 16;
 1107|       |
 1108|      0|  case llvm_ks::Triple::arm:
  ------------------
  |  Branch (1108:3): [True: 0, False: 81.7k]
  ------------------
 1109|      0|  case llvm_ks::Triple::armeb:
  ------------------
  |  Branch (1109:3): [True: 0, False: 81.7k]
  ------------------
 1110|      0|  case llvm_ks::Triple::hexagon:
  ------------------
  |  Branch (1110:3): [True: 0, False: 81.7k]
  ------------------
 1111|      0|  case llvm_ks::Triple::le32:
  ------------------
  |  Branch (1111:3): [True: 0, False: 81.7k]
  ------------------
 1112|      0|  case llvm_ks::Triple::mips:
  ------------------
  |  Branch (1112:3): [True: 0, False: 81.7k]
  ------------------
 1113|      0|  case llvm_ks::Triple::mipsel:
  ------------------
  |  Branch (1113:3): [True: 0, False: 81.7k]
  ------------------
 1114|      0|  case llvm_ks::Triple::nvptx:
  ------------------
  |  Branch (1114:3): [True: 0, False: 81.7k]
  ------------------
 1115|      0|  case llvm_ks::Triple::ppc:
  ------------------
  |  Branch (1115:3): [True: 0, False: 81.7k]
  ------------------
 1116|      0|  case llvm_ks::Triple::r600:
  ------------------
  |  Branch (1116:3): [True: 0, False: 81.7k]
  ------------------
 1117|  81.7k|  case llvm_ks::Triple::riscv32:
  ------------------
  |  Branch (1117:3): [True: 81.7k, False: 0]
  ------------------
 1118|  81.7k|  case llvm_ks::Triple::sparc:
  ------------------
  |  Branch (1118:3): [True: 0, False: 81.7k]
  ------------------
 1119|  81.7k|  case llvm_ks::Triple::sparcel:
  ------------------
  |  Branch (1119:3): [True: 0, False: 81.7k]
  ------------------
 1120|  81.7k|  case llvm_ks::Triple::tce:
  ------------------
  |  Branch (1120:3): [True: 0, False: 81.7k]
  ------------------
 1121|  81.7k|  case llvm_ks::Triple::thumb:
  ------------------
  |  Branch (1121:3): [True: 0, False: 81.7k]
  ------------------
 1122|  81.7k|  case llvm_ks::Triple::thumbeb:
  ------------------
  |  Branch (1122:3): [True: 0, False: 81.7k]
  ------------------
 1123|  81.7k|  case llvm_ks::Triple::x86:
  ------------------
  |  Branch (1123:3): [True: 0, False: 81.7k]
  ------------------
 1124|  81.7k|  case llvm_ks::Triple::xcore:
  ------------------
  |  Branch (1124:3): [True: 0, False: 81.7k]
  ------------------
 1125|  81.7k|  case llvm_ks::Triple::amdil:
  ------------------
  |  Branch (1125:3): [True: 0, False: 81.7k]
  ------------------
 1126|  81.7k|  case llvm_ks::Triple::hsail:
  ------------------
  |  Branch (1126:3): [True: 0, False: 81.7k]
  ------------------
 1127|  81.7k|  case llvm_ks::Triple::spir:
  ------------------
  |  Branch (1127:3): [True: 0, False: 81.7k]
  ------------------
 1128|  81.7k|  case llvm_ks::Triple::kalimba:
  ------------------
  |  Branch (1128:3): [True: 0, False: 81.7k]
  ------------------
 1129|  81.7k|  case llvm_ks::Triple::shave:
  ------------------
  |  Branch (1129:3): [True: 0, False: 81.7k]
  ------------------
 1130|  81.7k|  case llvm_ks::Triple::wasm32:
  ------------------
  |  Branch (1130:3): [True: 0, False: 81.7k]
  ------------------
 1131|  81.7k|    return 32;
 1132|       |
 1133|      0|  case llvm_ks::Triple::aarch64:
  ------------------
  |  Branch (1133:3): [True: 0, False: 81.7k]
  ------------------
 1134|      0|  case llvm_ks::Triple::aarch64_be:
  ------------------
  |  Branch (1134:3): [True: 0, False: 81.7k]
  ------------------
 1135|      0|  case llvm_ks::Triple::amdgcn:
  ------------------
  |  Branch (1135:3): [True: 0, False: 81.7k]
  ------------------
 1136|      0|  case llvm_ks::Triple::bpfel:
  ------------------
  |  Branch (1136:3): [True: 0, False: 81.7k]
  ------------------
 1137|      0|  case llvm_ks::Triple::bpfeb:
  ------------------
  |  Branch (1137:3): [True: 0, False: 81.7k]
  ------------------
 1138|      0|  case llvm_ks::Triple::le64:
  ------------------
  |  Branch (1138:3): [True: 0, False: 81.7k]
  ------------------
 1139|      0|  case llvm_ks::Triple::mips64:
  ------------------
  |  Branch (1139:3): [True: 0, False: 81.7k]
  ------------------
 1140|      0|  case llvm_ks::Triple::mips64el:
  ------------------
  |  Branch (1140:3): [True: 0, False: 81.7k]
  ------------------
 1141|      0|  case llvm_ks::Triple::nvptx64:
  ------------------
  |  Branch (1141:3): [True: 0, False: 81.7k]
  ------------------
 1142|      0|  case llvm_ks::Triple::ppc64:
  ------------------
  |  Branch (1142:3): [True: 0, False: 81.7k]
  ------------------
 1143|      0|  case llvm_ks::Triple::ppc64le:
  ------------------
  |  Branch (1143:3): [True: 0, False: 81.7k]
  ------------------
 1144|      0|  case llvm_ks::Triple::riscv64:
  ------------------
  |  Branch (1144:3): [True: 0, False: 81.7k]
  ------------------
 1145|      0|  case llvm_ks::Triple::sparcv9:
  ------------------
  |  Branch (1145:3): [True: 0, False: 81.7k]
  ------------------
 1146|      0|  case llvm_ks::Triple::systemz:
  ------------------
  |  Branch (1146:3): [True: 0, False: 81.7k]
  ------------------
 1147|      0|  case llvm_ks::Triple::x86_64:
  ------------------
  |  Branch (1147:3): [True: 0, False: 81.7k]
  ------------------
 1148|      0|  case llvm_ks::Triple::amdil64:
  ------------------
  |  Branch (1148:3): [True: 0, False: 81.7k]
  ------------------
 1149|      0|  case llvm_ks::Triple::hsail64:
  ------------------
  |  Branch (1149:3): [True: 0, False: 81.7k]
  ------------------
 1150|      0|  case llvm_ks::Triple::spir64:
  ------------------
  |  Branch (1150:3): [True: 0, False: 81.7k]
  ------------------
 1151|      0|  case llvm_ks::Triple::wasm64:
  ------------------
  |  Branch (1151:3): [True: 0, False: 81.7k]
  ------------------
 1152|      0|    return 64;
 1153|  81.7k|  }
 1154|      0|  llvm_unreachable("Invalid architecture value");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 1155|  81.7k|}

_ZNK7llvm_ks5Twine3strEv:
   16|   144k|std::string Twine::str() const {
   17|       |  // If we're storing only a std::string, just return it.
   18|   144k|  if (LHSKind == StdStringKind && RHSKind == EmptyKind)
  ------------------
  |  Branch (18:7): [True: 68.1k, False: 76.3k]
  |  Branch (18:35): [True: 68.1k, False: 0]
  ------------------
   19|  68.1k|    return *LHS.stdString;
   20|       |
   21|       |  // Otherwise, flatten and copy the contents first.
   22|  76.3k|  SmallString<256> Vec;
   23|  76.3k|  return toStringRef(Vec).str();
   24|   144k|}
_ZNK7llvm_ks5Twine8toVectorERNS_15SmallVectorImplIcEE:
   26|  1.55k|void Twine::toVector(SmallVectorImpl<char> &Out) const {
   27|  1.55k|  raw_svector_ostream OS(Out);
   28|  1.55k|  print(OS);
   29|  1.55k|}
_ZNK7llvm_ks5Twine25toNullTerminatedStringRefERNS_15SmallVectorImplIcEE:
   31|  27.2k|StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const {
   32|  27.2k|  if (isUnary()) {
  ------------------
  |  Branch (32:7): [True: 27.2k, False: 0]
  ------------------
   33|  27.2k|    switch (getLHSKind()) {
   34|  27.2k|    case CStringKind:
  ------------------
  |  Branch (34:5): [True: 27.2k, False: 9]
  ------------------
   35|       |      // Already null terminated, yay!
   36|  27.2k|      return StringRef(LHS.cString);
   37|      9|    case StdStringKind: {
  ------------------
  |  Branch (37:5): [True: 9, False: 27.2k]
  ------------------
   38|      9|      const std::string *str = LHS.stdString;
   39|      9|      return StringRef(str->c_str(), str->size());
   40|      0|    }
   41|      0|    default:
  ------------------
  |  Branch (41:5): [True: 0, False: 27.2k]
  ------------------
   42|      0|      break;
   43|  27.2k|    }
   44|  27.2k|  }
   45|      0|  toVector(Out);
   46|      0|  Out.push_back(0);
   47|      0|  Out.pop_back();
   48|      0|  return StringRef(Out.data(), Out.size());
   49|  27.2k|}
_ZNK7llvm_ks5Twine13printOneChildERNS_11raw_ostreamENS0_5ChildENS0_8NodeKindE:
   52|   390k|                          NodeKind Kind) const {
   53|   390k|  switch (Kind) {
  ------------------
  |  Branch (53:11): [True: 390k, False: 0]
  ------------------
   54|      0|  case Twine::NullKind: break;
  ------------------
  |  Branch (54:3): [True: 0, False: 390k]
  ------------------
   55|   191k|  case Twine::EmptyKind: break;
  ------------------
  |  Branch (55:3): [True: 191k, False: 199k]
  ------------------
   56|  2.29k|  case Twine::TwineKind:
  ------------------
  |  Branch (56:3): [True: 2.29k, False: 388k]
  ------------------
   57|  2.29k|    Ptr.twine->print(OS);
   58|  2.29k|    break;
   59|   195k|  case Twine::CStringKind:
  ------------------
  |  Branch (59:3): [True: 195k, False: 195k]
  ------------------
   60|   195k|    OS << Ptr.cString;
   61|   195k|    break;
   62|      0|  case Twine::StdStringKind:
  ------------------
  |  Branch (62:3): [True: 0, False: 390k]
  ------------------
   63|      0|    OS << *Ptr.stdString;
   64|      0|    break;
   65|  1.30k|  case Twine::StringRefKind:
  ------------------
  |  Branch (65:3): [True: 1.30k, False: 389k]
  ------------------
   66|  1.30k|    OS << *Ptr.stringRef;
   67|  1.30k|    break;
   68|      0|  case Twine::SmallStringKind:
  ------------------
  |  Branch (68:3): [True: 0, False: 390k]
  ------------------
   69|      0|    OS << *Ptr.smallString;
   70|      0|    break;
   71|      0|  case Twine::CharKind:
  ------------------
  |  Branch (71:3): [True: 0, False: 390k]
  ------------------
   72|      0|    OS << Ptr.character;
   73|      0|    break;
   74|      0|  case Twine::DecUIKind:
  ------------------
  |  Branch (74:3): [True: 0, False: 390k]
  ------------------
   75|      0|    OS << Ptr.decUI;
   76|      0|    break;
   77|    174|  case Twine::DecIKind:
  ------------------
  |  Branch (77:3): [True: 174, False: 390k]
  ------------------
   78|    174|    OS << Ptr.decI;
   79|    174|    break;
   80|      0|  case Twine::DecULKind:
  ------------------
  |  Branch (80:3): [True: 0, False: 390k]
  ------------------
   81|      0|    OS << *Ptr.decUL;
   82|      0|    break;
   83|    322|  case Twine::DecLKind:
  ------------------
  |  Branch (83:3): [True: 322, False: 390k]
  ------------------
   84|    322|    OS << *Ptr.decL;
   85|    322|    break;
   86|      0|  case Twine::DecULLKind:
  ------------------
  |  Branch (86:3): [True: 0, False: 390k]
  ------------------
   87|      0|    OS << *Ptr.decULL;
   88|      0|    break;
   89|      0|  case Twine::DecLLKind:
  ------------------
  |  Branch (89:3): [True: 0, False: 390k]
  ------------------
   90|      0|    OS << *Ptr.decLL;
   91|      0|    break;
   92|      0|  case Twine::UHexKind:
  ------------------
  |  Branch (92:3): [True: 0, False: 390k]
  ------------------
   93|      0|    OS.write_hex(*Ptr.uHex);
   94|      0|    break;
   95|   390k|  }
   96|   390k|}
_ZNK7llvm_ks5Twine5printERNS_11raw_ostreamE:
  151|   195k|void Twine::print(raw_ostream &OS) const {
  152|   195k|  printOneChild(OS, LHS, getLHSKind());
  153|   195k|  printOneChild(OS, RHS, getRHSKind());
  154|   195k|}

_ZNK7llvm_ks3sys2fs11file_status11getUniqueIDEv:
  177|  27.2k|UniqueID file_status::getUniqueID() const {
  178|  27.2k|  return UniqueID(fs_st_dev, fs_st_ino);
  179|  27.2k|}
_ZN7llvm_ks3sys2fs12current_pathERNS_15SmallVectorImplIcEE:
  181|  13.6k|std::error_code current_path(SmallVectorImpl<char> &result) {
  182|  13.6k|  result.clear();
  183|       |
  184|  13.6k|  const char *pwd = ::getenv("PWD");
  185|  13.6k|  llvm_ks::sys::fs::file_status PWDStatus, DotStatus;
  186|  13.6k|  if (pwd && llvm_ks::sys::path::is_absolute(pwd) &&
  ------------------
  |  Branch (186:7): [True: 13.6k, False: 0]
  |  Branch (186:7): [True: 13.6k, False: 0]
  |  Branch (186:14): [True: 13.6k, False: 0]
  ------------------
  187|  13.6k|      !llvm_ks::sys::fs::status(pwd, PWDStatus) &&
  ------------------
  |  Branch (187:7): [True: 13.6k, False: 0]
  ------------------
  188|  13.6k|      !llvm_ks::sys::fs::status(".", DotStatus) &&
  ------------------
  |  Branch (188:7): [True: 13.6k, False: 0]
  ------------------
  189|  13.6k|      PWDStatus.getUniqueID() == DotStatus.getUniqueID()) {
  ------------------
  |  Branch (189:7): [True: 13.6k, False: 0]
  ------------------
  190|  13.6k|    result.append(pwd, pwd + strlen(pwd));
  191|  13.6k|    return std::error_code();
  192|  13.6k|  }
  193|       |
  194|      0|#ifdef MAXPATHLEN
  195|      0|  result.reserve(MAXPATHLEN);
  196|       |#else
  197|       |// For GNU Hurd
  198|       |  result.reserve(1024);
  199|       |#endif
  200|       |
  201|      0|  while (true) {
  ------------------
  |  Branch (201:10): [True: 0, Folded]
  ------------------
  202|      0|    if (::getcwd(result.data(), result.capacity()) == nullptr) {
  ------------------
  |  Branch (202:9): [True: 0, False: 0]
  ------------------
  203|       |      // See if there was a real error.
  204|      0|      if (errno != ENOMEM)
  ------------------
  |  Branch (204:11): [True: 0, False: 0]
  ------------------
  205|      0|        return std::error_code(errno, std::generic_category());
  206|       |      // Otherwise there just wasn't enough space.
  207|      0|      result.reserve(result.capacity() * 2);
  208|      0|    } else
  209|      0|      break;
  210|      0|  }
  211|       |
  212|      0|  result.set_size(strlen(result.data()));
  213|      0|  return std::error_code();
  214|      0|}
_ZN7llvm_ks3sys2fs6statusERKNS_5TwineERNS1_11file_statusE:
  376|  27.2k|std::error_code status(const Twine &Path, file_status &Result) {
  377|  27.2k|  SmallString<128> PathStorage;
  378|  27.2k|  StringRef P = Path.toNullTerminatedStringRef(PathStorage);
  379|       |
  380|  27.2k|  struct stat Status;
  381|  27.2k|  int StatRet = ::stat(P.begin(), &Status);
  382|  27.2k|  return fillStatus(StatRet, Status, Result);
  383|  27.2k|}
_ZN7llvm_ks3sys2fs6statusEiRNS1_11file_statusE:
  385|      1|std::error_code status(int FD, file_status &Result) {
  386|      1|  struct stat Status;
  387|      1|  int StatRet = ::fstat(FD, &Status);
  388|      1|  return fillStatus(StatRet, Status, Result);
  389|      1|}
_ZN7llvm_ks3sys2fs15openFileForReadERKNS_5TwineERi:
  480|      9|std::error_code openFileForRead(const Twine &Name, int &ResultFD) {
  481|      9|  SmallString<128> Storage;
  482|      9|  StringRef P = Name.toNullTerminatedStringRef(Storage);
  483|      9|  while ((ResultFD = open(P.begin(), O_RDONLY)) < 0) {
  ------------------
  |  Branch (483:10): [True: 8, False: 1]
  ------------------
  484|      8|    if (errno != EINTR)
  ------------------
  |  Branch (484:9): [True: 8, False: 0]
  ------------------
  485|      8|      return std::error_code(errno, std::generic_category());
  486|      8|  }
  487|      1|  return std::error_code();
  488|      9|}
Path.cpp:_ZN7llvm_ks3sys2fsL10fillStatusEiRK4statRNS1_11file_statusE:
  343|  27.2k|                             file_status &Result) {
  344|  27.2k|  if (StatRet != 0) {
  ------------------
  |  Branch (344:7): [True: 0, False: 27.2k]
  ------------------
  345|      0|    std::error_code ec(errno, std::generic_category());
  346|      0|    if (ec == errc::no_such_file_or_directory)
  ------------------
  |  Branch (346:9): [True: 0, False: 0]
  ------------------
  347|      0|      Result = file_status(file_type::file_not_found);
  348|      0|    else
  349|      0|      Result = file_status(file_type::status_error);
  350|      0|    return ec;
  351|      0|  }
  352|       |
  353|  27.2k|  file_type Type = file_type::type_unknown;
  354|       |
  355|  27.2k|  if (S_ISDIR(Status.st_mode))
  ------------------
  |  Branch (355:7): [True: 27.2k, False: 0]
  ------------------
  356|  27.2k|    Type = file_type::directory_file;
  357|      0|  else if (S_ISREG(Status.st_mode))
  ------------------
  |  Branch (357:12): [True: 0, False: 0]
  ------------------
  358|      0|    Type = file_type::regular_file;
  359|      0|  else if (S_ISBLK(Status.st_mode))
  ------------------
  |  Branch (359:12): [True: 0, False: 0]
  ------------------
  360|      0|    Type = file_type::block_file;
  361|      0|  else if (S_ISCHR(Status.st_mode))
  ------------------
  |  Branch (361:12): [True: 0, False: 0]
  ------------------
  362|      0|    Type = file_type::character_file;
  363|      0|  else if (S_ISFIFO(Status.st_mode))
  ------------------
  |  Branch (363:12): [True: 0, False: 0]
  ------------------
  364|      0|    Type = file_type::fifo_file;
  365|      0|  else if (S_ISSOCK(Status.st_mode))
  ------------------
  |  Branch (365:12): [True: 0, False: 0]
  ------------------
  366|      0|    Type = file_type::socket_file;
  367|       |
  368|  27.2k|  perms Perms = static_cast<perms>(Status.st_mode);
  369|  27.2k|  Result =
  370|  27.2k|      file_status(Type, Perms, Status.st_dev, Status.st_ino, Status.st_mtime,
  371|  27.2k|                  Status.st_uid, Status.st_gid, Status.st_size);
  372|       |
  373|  27.2k|  return std::error_code();
  374|  27.2k|}

_ZN7llvm_ks11raw_ostreamD2Ev:
   64|   295k|raw_ostream::~raw_ostream() {
   65|       |  // raw_ostream's subclasses should take care to flush the buffer
   66|       |  // in their destructors.
   67|   295k|  assert(OutBufCur == OutBufStart &&
  ------------------
  |  Branch (67:3): [True: 295k, False: 0]
  |  Branch (67:3): [True: 295k, Folded]
  |  Branch (67:3): [True: 295k, False: 0]
  ------------------
   68|   295k|         "raw_ostream destructor called with non-empty buffer!");
   69|       |
   70|   295k|  if (BufferMode == InternalBuffer)
  ------------------
  |  Branch (70:7): [True: 0, False: 295k]
  ------------------
   71|      0|    delete [] OutBufStart;
   72|   295k|}
_ZN7llvm_ks11raw_ostream16SetBufferAndModeEPcmNS0_10BufferKindE:
   92|   295k|                                   BufferKind Mode) {
   93|   295k|  assert(((Mode == Unbuffered && !BufferStart && Size == 0) ||
  ------------------
  |  Branch (93:3): [True: 295k, False: 0]
  |  Branch (93:3): [True: 295k, False: 0]
  |  Branch (93:3): [True: 295k, False: 0]
  |  Branch (93:3): [True: 0, False: 0]
  |  Branch (93:3): [True: 0, False: 0]
  |  Branch (93:3): [True: 0, False: 0]
  |  Branch (93:3): [True: 295k, Folded]
  |  Branch (93:3): [True: 295k, False: 0]
  ------------------
   94|   295k|          (Mode != Unbuffered && BufferStart && Size != 0)) &&
   95|   295k|         "stream must be unbuffered or have at least one byte");
   96|       |  // Make sure the current buffer is free of content (we can't flush here; the
   97|       |  // child buffer management logic will be in write_impl).
   98|   295k|  assert(GetNumBytesInBuffer() == 0 && "Current buffer is non-empty!");
  ------------------
  |  Branch (98:3): [True: 295k, False: 0]
  |  Branch (98:3): [True: 295k, Folded]
  |  Branch (98:3): [True: 295k, False: 0]
  ------------------
   99|       |
  100|   295k|  if (BufferMode == InternalBuffer)
  ------------------
  |  Branch (100:7): [True: 295k, False: 0]
  ------------------
  101|   295k|    delete [] OutBufStart;
  102|   295k|  OutBufStart = BufferStart;
  103|   295k|  OutBufEnd = OutBufStart+Size;
  104|   295k|  OutBufCur = OutBufStart;
  105|   295k|  BufferMode = Mode;
  106|       |
  107|       |  assert(OutBufStart <= OutBufEnd && "Invalid size!");
  ------------------
  |  Branch (107:3): [True: 295k, False: 0]
  |  Branch (107:3): [True: 295k, Folded]
  |  Branch (107:3): [True: 295k, False: 0]
  ------------------
  108|   295k|}
_ZN7llvm_ks11raw_ostreamlsEm:
  110|   349k|raw_ostream &raw_ostream::operator<<(unsigned long N) {
  111|       |  // Zero is a special case.
  112|   349k|  if (N == 0)
  ------------------
  |  Branch (112:7): [True: 275k, False: 73.9k]
  ------------------
  113|   275k|    return *this << '0';
  114|       |
  115|  73.9k|  char NumberBuffer[20];
  116|  73.9k|  char *EndPtr = NumberBuffer+sizeof(NumberBuffer);
  117|  73.9k|  char *CurPtr = EndPtr;
  118|       |
  119|   266k|  while (N) {
  ------------------
  |  Branch (119:10): [True: 192k, False: 73.9k]
  ------------------
  120|   192k|    *--CurPtr = '0' + char(N % 10);
  121|   192k|    N /= 10;
  122|   192k|  }
  123|  73.9k|  return write(CurPtr, EndPtr-CurPtr);
  124|   349k|}
_ZN7llvm_ks11raw_ostreamlsEl:
  126|  20.2k|raw_ostream &raw_ostream::operator<<(long N) {
  127|  20.2k|  if (N <  0) {
  ------------------
  |  Branch (127:7): [True: 270, False: 20.0k]
  ------------------
  128|    270|    *this << '-';
  129|       |    // Avoid undefined behavior on LONG_MIN with a cast.
  130|    270|    N = -(unsigned long)N;
  131|    270|  }
  132|       |
  133|  20.2k|  return this->operator<<(static_cast<unsigned long>(N));
  134|  20.2k|}
_ZN7llvm_ks11raw_ostream5writeEh:
  278|  90.6M|raw_ostream &raw_ostream::write(unsigned char C) {
  279|       |  // Group exceptional cases into a single branch.
  280|  90.6M|  if (LLVM_UNLIKELY(OutBufCur >= OutBufEnd)) {
  ------------------
  |  |  171|  90.6M|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 90.6M, False: 0]
  |  |  ------------------
  ------------------
  281|  90.6M|    if (LLVM_UNLIKELY(!OutBufStart)) {
  ------------------
  |  |  171|  90.6M|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 90.6M, False: 0]
  |  |  ------------------
  ------------------
  282|  90.6M|      if (BufferMode == Unbuffered) {
  ------------------
  |  Branch (282:11): [True: 90.6M, False: 0]
  ------------------
  283|  90.6M|        write_impl(reinterpret_cast<char*>(&C), 1);
  284|  90.6M|        return *this;
  285|  90.6M|      }
  286|       |      // Set up a buffer and start over.
  287|      0|      SetBuffered();
  288|      0|      return write(C);
  289|  90.6M|    }
  290|       |
  291|      0|    flush_nonempty();
  292|      0|  }
  293|       |
  294|      0|  *OutBufCur++ = C;
  295|      0|  return *this;
  296|  90.6M|}
_ZN7llvm_ks11raw_ostream5writeEPKcm:
  298|  18.0M|raw_ostream &raw_ostream::write(const char *Ptr, size_t Size) {
  299|       |  // Group exceptional cases into a single branch.
  300|  18.0M|  if (LLVM_UNLIKELY(size_t(OutBufEnd - OutBufCur) < Size)) {
  ------------------
  |  |  171|  18.0M|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 18.0M, False: 10]
  |  |  ------------------
  ------------------
  301|  18.0M|    if (LLVM_UNLIKELY(!OutBufStart)) {
  ------------------
  |  |  171|  18.0M|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 18.0M, False: 0]
  |  |  ------------------
  ------------------
  302|  18.0M|      if (BufferMode == Unbuffered) {
  ------------------
  |  Branch (302:11): [True: 18.0M, False: 0]
  ------------------
  303|  18.0M|        write_impl(Ptr, Size);
  304|  18.0M|        return *this;
  305|  18.0M|      }
  306|       |      // Set up a buffer and start over.
  307|      0|      SetBuffered();
  308|      0|      return write(Ptr, Size);
  309|  18.0M|    }
  310|       |
  311|      0|    size_t NumBytes = OutBufEnd - OutBufCur;
  312|       |
  313|       |    // If the buffer is empty at this point we have a string that is larger
  314|       |    // than the buffer. Directly write the chunk that is a multiple of the
  315|       |    // preferred buffer size and put the remainder in the buffer.
  316|      0|    if (LLVM_UNLIKELY(OutBufCur == OutBufStart)) {
  ------------------
  |  |  171|      0|#define LLVM_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
  |  |  ------------------
  |  |  |  Branch (171:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  317|      0|      assert(NumBytes != 0 && "undefined behavior");
  ------------------
  |  Branch (317:7): [True: 0, False: 0]
  |  Branch (317:7): [True: 0, Folded]
  |  Branch (317:7): [True: 0, False: 0]
  ------------------
  318|      0|      size_t BytesToWrite = Size - (Size % NumBytes);
  319|      0|      write_impl(Ptr, BytesToWrite);
  320|      0|      size_t BytesRemaining = Size - BytesToWrite;
  321|      0|      if (BytesRemaining > size_t(OutBufEnd - OutBufCur)) {
  ------------------
  |  Branch (321:11): [True: 0, False: 0]
  ------------------
  322|       |        // Too much left over to copy into our buffer.
  323|      0|        return write(Ptr + BytesToWrite, BytesRemaining);
  324|      0|      }
  325|      0|      copy_to_buffer(Ptr + BytesToWrite, BytesRemaining);
  326|      0|      return *this;
  327|      0|    }
  328|       |
  329|       |    // We don't have enough space in the buffer to fit the string in. Insert as
  330|       |    // much as possible, flush and start over with the remainder.
  331|      0|    copy_to_buffer(Ptr, NumBytes);
  332|      0|    flush_nonempty();
  333|      0|    return write(Ptr + NumBytes, Size - NumBytes);
  334|      0|  }
  335|       |
  336|     10|  copy_to_buffer(Ptr, Size);
  337|       |
  338|     10|  return *this;
  339|  18.0M|}
_ZN7llvm_ks11raw_ostream14copy_to_bufferEPKcm:
  341|     10|void raw_ostream::copy_to_buffer(const char *Ptr, size_t Size) {
  342|     10|  assert(Size <= size_t(OutBufEnd - OutBufCur) && "Buffer overrun!");
  ------------------
  |  Branch (342:3): [True: 10, False: 0]
  |  Branch (342:3): [True: 10, Folded]
  |  Branch (342:3): [True: 10, False: 0]
  ------------------
  343|       |
  344|       |  // Handle short strings specially, memcpy isn't very good at very short
  345|       |  // strings.
  346|     10|  switch (Size) {
  347|      0|  case 4: OutBufCur[3] = Ptr[3]; // FALL THROUGH
  ------------------
  |  Branch (347:3): [True: 0, False: 10]
  ------------------
  348|      0|  case 3: OutBufCur[2] = Ptr[2]; // FALL THROUGH
  ------------------
  |  Branch (348:3): [True: 0, False: 10]
  ------------------
  349|      0|  case 2: OutBufCur[1] = Ptr[1]; // FALL THROUGH
  ------------------
  |  Branch (349:3): [True: 0, False: 10]
  ------------------
  350|      0|  case 1: OutBufCur[0] = Ptr[0]; // FALL THROUGH
  ------------------
  |  Branch (350:3): [True: 0, False: 10]
  ------------------
  351|     10|  case 0: break;
  ------------------
  |  Branch (351:3): [True: 10, False: 0]
  ------------------
  352|      0|  default:
  ------------------
  |  Branch (352:3): [True: 0, False: 10]
  ------------------
  353|      0|    memcpy(OutBufCur, Ptr, Size);
  354|      0|    break;
  355|     10|  }
  356|       |
  357|     10|  OutBufCur += Size;
  358|     10|}
_ZN7llvm_ks14raw_fd_ostreamC2Eibb:
  517|      1|    : raw_pwrite_stream(unbuffered), FD(fd), ShouldClose(shouldClose),
  518|      1|      Error(false) {
  519|      1|  if (FD < 0 ) {
  ------------------
  |  Branch (519:7): [True: 0, False: 1]
  ------------------
  520|      0|    ShouldClose = false;
  521|      0|    return;
  522|      0|  }
  523|       |
  524|       |  // Get the starting position.
  525|      1|  off_t loc = ::lseek(FD, 0, SEEK_CUR);
  526|       |#ifdef LLVM_ON_WIN32
  527|       |  // MSVCRT's _lseek(SEEK_CUR) doesn't return -1 for pipes.
  528|       |  sys::fs::file_status Status;
  529|       |  std::error_code EC = status(FD, Status);
  530|       |  SupportsSeeking = !EC && Status.type() == sys::fs::file_type::regular_file;
  531|       |#else
  532|      1|  SupportsSeeking = loc != (off_t)-1;
  533|      1|#endif
  534|      1|  if (!SupportsSeeking)
  ------------------
  |  Branch (534:7): [True: 0, False: 1]
  ------------------
  535|      0|    pos = 0;
  536|      1|  else
  537|      1|    pos = static_cast<uint64_t>(loc);
  538|      1|}
_ZN7llvm_ks14raw_fd_ostreamD2Ev:
  540|      1|raw_fd_ostream::~raw_fd_ostream() {
  541|      1|  if (FD >= 0) {
  ------------------
  |  Branch (541:7): [True: 1, False: 0]
  ------------------
  542|      1|    flush();
  543|      1|  }
  544|       |
  545|       |#ifdef __MINGW32__
  546|       |  // On mingw, global dtors should not call exit().
  547|       |  // report_fatal_error() invokes exit(). We know report_fatal_error()
  548|       |  // might not write messages to stderr when any errors were detected
  549|       |  // on FD == 2.
  550|       |  if (FD == 2) return;
  551|       |#endif
  552|       |
  553|       |  // If there are any pending errors, report them now. Clients wishing
  554|       |  // to avoid report_fatal_error calls should check for errors with
  555|       |  // has_error() and clear the error flag with clear_error() before
  556|       |  // destructing raw_ostream objects which may have errors.
  557|      1|  if (has_error())
  ------------------
  |  Branch (557:7): [True: 0, False: 1]
  ------------------
  558|      0|    report_fatal_error("IO failure on output stream.", /*GenCrashDiag=*/false);
  559|      1|}
_ZN7llvm_ks14raw_fd_ostream10write_implEPKcm:
  562|  2.05M|void raw_fd_ostream::write_impl(const char *Ptr, size_t Size) {
  563|  2.05M|  assert(FD >= 0 && "File already closed.");
  ------------------
  |  Branch (563:3): [True: 2.05M, False: 0]
  |  Branch (563:3): [True: 2.05M, Folded]
  |  Branch (563:3): [True: 2.05M, False: 0]
  ------------------
  564|  2.05M|  pos += Size;
  565|       |
  566|  2.05M|#ifndef LLVM_ON_WIN32
  567|  2.05M|  bool ShouldWriteInChunks = false;
  568|       |#else
  569|       |  // Writing a large size of output to Windows console returns ENOMEM. It seems
  570|       |  // that, prior to Windows 8, WriteFile() is redirecting to WriteConsole(), and
  571|       |  // the latter has a size limit (66000 bytes or less, depending on heap usage).
  572|       |  bool ShouldWriteInChunks = !!::_isatty(FD) && !RunningWindows8OrGreater();
  573|       |#endif
  574|       |
  575|  2.05M|  do {
  576|  2.05M|    size_t ChunkSize = Size;
  577|  2.05M|    if (ChunkSize > 32767 && ShouldWriteInChunks)
  ------------------
  |  Branch (577:9): [True: 0, False: 2.05M]
  |  Branch (577:30): [True: 0, False: 0]
  ------------------
  578|      0|        ChunkSize = 32767;
  579|       |
  580|  2.05M|    ssize_t ret = ::write(FD, Ptr, ChunkSize);
  581|       |
  582|  2.05M|    if (ret < 0) {
  ------------------
  |  Branch (582:9): [True: 0, False: 2.05M]
  ------------------
  583|       |      // If it's a recoverable error, swallow it and retry the write.
  584|       |      //
  585|       |      // Ideally we wouldn't ever see EAGAIN or EWOULDBLOCK here, since
  586|       |      // raw_ostream isn't designed to do non-blocking I/O. However, some
  587|       |      // programs, such as old versions of bjam, have mistakenly used
  588|       |      // O_NONBLOCK. For compatibility, emulate blocking semantics by
  589|       |      // spinning until the write succeeds. If you don't want spinning,
  590|       |      // don't use O_NONBLOCK file descriptors with raw_ostream.
  591|      0|      if (errno == EINTR || errno == EAGAIN
  ------------------
  |  Branch (591:11): [True: 0, False: 0]
  |  Branch (591:29): [True: 0, False: 0]
  ------------------
  592|      0|#ifdef EWOULDBLOCK
  593|      0|          || errno == EWOULDBLOCK
  ------------------
  |  Branch (593:14): [True: 0, False: 0]
  ------------------
  594|      0|#endif
  595|      0|          )
  596|      0|        continue;
  597|       |
  598|       |      // Otherwise it's a non-recoverable error. Note it and quit.
  599|      0|      error_detected();
  600|      0|      break;
  601|      0|    }
  602|       |
  603|       |    // The write may have written some or all of the data. Update the
  604|       |    // size and buffer pointer to reflect the remainder that needs
  605|       |    // to be written. If there are no bytes left, we're done.
  606|  2.05M|    Ptr += ret;
  607|  2.05M|    Size -= ret;
  608|  2.05M|  } while (Size > 0);
  ------------------
  |  Branch (608:12): [True: 0, False: 2.05M]
  ------------------
  609|  2.05M|}
_ZN7llvm_ks14raw_fd_ostream11changeColorENS_11raw_ostream6ColorsEbb:
  655|  83.7k|                                         bool bg) {
  656|  83.7k|  return *this;
  657|  83.7k|}
_ZN7llvm_ks14raw_fd_ostream10resetColorEv:
  659|  61.9k|raw_ostream &raw_fd_ostream::resetColor() {
  660|  61.9k|  return *this;
  661|  61.9k|}
_ZNK7llvm_ks14raw_fd_ostream10has_colorsEv:
  671|  21.7k|bool raw_fd_ostream::has_colors() const {
  672|  21.7k|  return true;
  673|  21.7k|}
_ZN7llvm_ks4errsEv:
  693|  43.5k|raw_ostream &llvm_ks::errs() {
  694|       |  // Set standard error to be unbuffered by default.
  695|       |  static raw_fd_ostream S(STDERR_FILENO, false, true);
  696|  43.5k|  return S;
  697|  43.5k|}
_ZNK7llvm_ks19raw_svector_ostream11current_posEv:
  722|  89.6k|uint64_t raw_svector_ostream::current_pos() const { return OS.size(); }
_ZN7llvm_ks19raw_svector_ostream10write_implEPKcm:
  724|   106M|void raw_svector_ostream::write_impl(const char *Ptr, size_t Size) {
  725|   106M|  OS.append(Ptr, Ptr + Size);
  726|   106M|}

LLVMInitializeAArch64AsmParser:
 4658|      1|extern "C" void LLVMInitializeAArch64AsmParser() {
 4659|      1|  RegisterMCAsmParser<AArch64AsmParser> X(TheAArch64leTarget);
 4660|      1|  RegisterMCAsmParser<AArch64AsmParser> Y(TheAArch64beTarget);
 4661|      1|  RegisterMCAsmParser<AArch64AsmParser> Z(TheARM64Target);
 4662|      1|}

LLVMInitializeAArch64TargetMC:
   75|      1|extern "C" void LLVMInitializeAArch64TargetMC() {
   76|      1|  for (Target *T :
  ------------------
  |  Branch (76:18): [True: 3, False: 1]
  ------------------
   77|      3|       {&TheAArch64leTarget, &TheAArch64beTarget, &TheARM64Target}) {
   78|       |    // Register the MC asm info.
   79|      3|    RegisterMCAsmInfoFn X(*T, createAArch64MCAsmInfo);
   80|       |
   81|       |    // Register the MC instruction info.
   82|      3|    TargetRegistry::RegisterMCInstrInfo(*T, createAArch64MCInstrInfo);
   83|       |
   84|       |    // Register the MC register info.
   85|      3|    TargetRegistry::RegisterMCRegInfo(*T, createAArch64MCRegisterInfo);
   86|       |
   87|       |    // Register the MC subtarget info.
   88|      3|    TargetRegistry::RegisterMCSubtargetInfo(*T, createAArch64MCSubtargetInfo);
   89|       |
   90|       |    // Register the MC Code Emitter
   91|      3|    TargetRegistry::RegisterMCCodeEmitter(*T, createAArch64MCCodeEmitter);
   92|      3|  }
   93|       |
   94|       |  // Register the asm backend.
   95|      1|  for (Target *T : {&TheAArch64leTarget, &TheARM64Target})
  ------------------
  |  Branch (95:18): [True: 2, False: 1]
  ------------------
   96|      2|    TargetRegistry::RegisterMCAsmBackend(*T, createAArch64leAsmBackend);
   97|      1|  TargetRegistry::RegisterMCAsmBackend(TheAArch64beTarget,
   98|      1|                                       createAArch64beAsmBackend);
   99|      1|}

LLVMInitializeAArch64TargetInfo:
   20|      1|extern "C" void LLVMInitializeAArch64TargetInfo() {
   21|       |  // Now register the "arm64" name for use with "-march". We don't want it to
   22|       |  // take possession of the Triple::aarch64 tag though.
   23|      1|  TargetRegistry::RegisterTarget(TheARM64Target, "arm64",
   24|      1|                                 "ARM64 (little endian)",
   25|      1|                                 [](Triple::ArchType) { return false; });
   26|       |
   27|      1|  RegisterTarget<Triple::aarch64> Z(
   28|      1|      TheAArch64leTarget, "aarch64", "AArch64 (little endian)");
   29|      1|  RegisterTarget<Triple::aarch64_be> W(
   30|      1|      TheAArch64beTarget, "aarch64_be", "AArch64 (big endian)");
   31|       |
   32|      1|}
AArch64TargetInfo.cpp:_ZZ31LLVMInitializeAArch64TargetInfoENK3$_0clEN7llvm_ks6Triple8ArchTypeE:
   25|  13.6k|                                 [](Triple::ArchType) { return false; });

LLVMInitializeARMAsmParser:
10210|      1|extern "C" void LLVMInitializeARMAsmParser() {
10211|      1|  RegisterMCAsmParser<ARMAsmParser> X(TheARMLETarget);
10212|      1|  RegisterMCAsmParser<ARMAsmParser> Y(TheARMBETarget);
10213|      1|  RegisterMCAsmParser<ARMAsmParser> A(TheThumbLETarget);
10214|      1|  RegisterMCAsmParser<ARMAsmParser> B(TheThumbBETarget);
10215|      1|}

LLVMInitializeARMTargetMC:
  199|      1|extern "C" void LLVMInitializeARMTargetMC() {
  200|      1|  for (Target *T : {&TheARMLETarget, &TheARMBETarget, &TheThumbLETarget,
  ------------------
  |  Branch (200:18): [True: 4, False: 1]
  ------------------
  201|      4|                    &TheThumbBETarget}) {
  202|       |    // Register the MC asm info.
  203|      4|    RegisterMCAsmInfoFn X(*T, createARMMCAsmInfo);
  204|       |
  205|       |    // Register the MC instruction info.
  206|      4|    TargetRegistry::RegisterMCInstrInfo(*T, createARMMCInstrInfo);
  207|       |
  208|       |    // Register the MC register info.
  209|      4|    TargetRegistry::RegisterMCRegInfo(*T, createARMMCRegisterInfo);
  210|       |
  211|       |    // Register the MC subtarget info.
  212|      4|    TargetRegistry::RegisterMCSubtargetInfo(*T,
  213|      4|                                            ARM_MC::createARMMCSubtargetInfo);
  214|      4|  }
  215|       |
  216|       |  // Register the MC Code Emitter
  217|      1|  for (Target *T : {&TheARMLETarget, &TheThumbLETarget})
  ------------------
  |  Branch (217:18): [True: 2, False: 1]
  ------------------
  218|      2|    TargetRegistry::RegisterMCCodeEmitter(*T, createARMLEMCCodeEmitter);
  219|      1|  for (Target *T : {&TheARMBETarget, &TheThumbBETarget})
  ------------------
  |  Branch (219:18): [True: 2, False: 1]
  ------------------
  220|      2|    TargetRegistry::RegisterMCCodeEmitter(*T, createARMBEMCCodeEmitter);
  221|       |
  222|       |  // Register the asm backend.
  223|      1|  TargetRegistry::RegisterMCAsmBackend(TheARMLETarget, createARMLEAsmBackend);
  224|      1|  TargetRegistry::RegisterMCAsmBackend(TheARMBETarget, createARMBEAsmBackend);
  225|      1|  TargetRegistry::RegisterMCAsmBackend(TheThumbLETarget,
  226|      1|                                       createThumbLEAsmBackend);
  227|      1|  TargetRegistry::RegisterMCAsmBackend(TheThumbBETarget,
  228|      1|                                       createThumbBEAsmBackend);
  229|      1|}

LLVMInitializeARMTargetInfo:
   17|      1|extern "C" void LLVMInitializeARMTargetInfo() {
   18|      1|  RegisterTarget<Triple::arm>
   19|      1|    X(TheARMLETarget, "arm", "ARM");
   20|      1|  RegisterTarget<Triple::armeb>
   21|      1|    Y(TheARMBETarget, "armeb", "ARM (big endian)");
   22|       |
   23|      1|  RegisterTarget<Triple::thumb>
   24|      1|    A(TheThumbLETarget, "thumb", "Thumb");
   25|      1|  RegisterTarget<Triple::thumbeb>
   26|      1|    B(TheThumbBETarget, "thumbeb", "Thumb (big endian)");
   27|      1|}

LLVMInitializeHexagonAsmParser:
 1104|      1|extern "C" void LLVMInitializeHexagonAsmParser() {
 1105|      1|  RegisterMCAsmParser<HexagonAsmParser> X(TheHexagonTarget);
 1106|      1|}

LLVMInitializeHexagonTargetMC:
  118|      1|extern "C" void LLVMInitializeHexagonTargetMC() {
  119|       |  // Register the MC asm info.
  120|      1|  RegisterMCAsmInfoFn X(TheHexagonTarget, createHexagonMCAsmInfo);
  121|       |
  122|       |  // Register the MC instruction info.
  123|      1|  TargetRegistry::RegisterMCInstrInfo(TheHexagonTarget,
  124|      1|                                      createHexagonMCInstrInfo);
  125|       |
  126|       |  // Register the MC register info.
  127|      1|  TargetRegistry::RegisterMCRegInfo(TheHexagonTarget,
  128|      1|                                    createHexagonMCRegisterInfo);
  129|       |
  130|       |  // Register the MC subtarget info.
  131|      1|  TargetRegistry::RegisterMCSubtargetInfo(TheHexagonTarget,
  132|      1|                                          createHexagonMCSubtargetInfo);
  133|       |
  134|       |  // Register the MC Code Emitter
  135|      1|  TargetRegistry::RegisterMCCodeEmitter(TheHexagonTarget,
  136|      1|                                        createHexagonMCCodeEmitter);
  137|       |
  138|       |  // Register the asm backend
  139|      1|  TargetRegistry::RegisterMCAsmBackend(TheHexagonTarget,
  140|      1|                                       createHexagonAsmBackend);
  141|      1|}

LLVMInitializeHexagonTargetInfo:
   16|      1|extern "C" void LLVMInitializeHexagonTargetInfo() {
   17|      1|  RegisterTarget<Triple::hexagon>  X(TheHexagonTarget, "hexagon", "Hexagon");
   18|      1|}

LLVMInitializeMipsAsmParser:
 6345|      1|extern "C" void LLVMInitializeMipsAsmParser() {
 6346|      1|  RegisterMCAsmParser<MipsAsmParser> X(TheMipsTarget);
 6347|      1|  RegisterMCAsmParser<MipsAsmParser> Y(TheMipselTarget);
 6348|      1|  RegisterMCAsmParser<MipsAsmParser> A(TheMips64Target);
 6349|      1|  RegisterMCAsmParser<MipsAsmParser> B(TheMips64elTarget);
 6350|      1|}

LLVMInitializeMipsTargetMC:
   83|      1|extern "C" void LLVMInitializeMipsTargetMC() {
   84|      1|  for (Target *T : {&TheMipsTarget, &TheMipselTarget, &TheMips64Target,
  ------------------
  |  Branch (84:18): [True: 4, False: 1]
  ------------------
   85|      4|                    &TheMips64elTarget}) {
   86|       |    // Register the MC asm info.
   87|      4|    RegisterMCAsmInfoFn X(*T, createMipsMCAsmInfo);
   88|       |
   89|       |    // Register the MC instruction info.
   90|      4|    TargetRegistry::RegisterMCInstrInfo(*T, createMipsMCInstrInfo);
   91|       |
   92|       |    // Register the MC register info.
   93|      4|    TargetRegistry::RegisterMCRegInfo(*T, createMipsMCRegisterInfo);
   94|       |
   95|       |    // Register the MC subtarget info.
   96|      4|    TargetRegistry::RegisterMCSubtargetInfo(*T, createMipsMCSubtargetInfo);
   97|      4|  }
   98|       |
   99|       |  // Register the MC Code Emitter
  100|      1|  for (Target *T : {&TheMipsTarget, &TheMips64Target})
  ------------------
  |  Branch (100:18): [True: 2, False: 1]
  ------------------
  101|      2|    TargetRegistry::RegisterMCCodeEmitter(*T, createMipsMCCodeEmitterEB);
  102|       |
  103|      1|  for (Target *T : {&TheMipselTarget, &TheMips64elTarget})
  ------------------
  |  Branch (103:18): [True: 2, False: 1]
  ------------------
  104|      2|    TargetRegistry::RegisterMCCodeEmitter(*T, createMipsMCCodeEmitterEL);
  105|       |
  106|       |  // Register the asm backend.
  107|      1|  TargetRegistry::RegisterMCAsmBackend(TheMipsTarget,
  108|      1|                                       createMipsAsmBackendEB32);
  109|      1|  TargetRegistry::RegisterMCAsmBackend(TheMipselTarget,
  110|      1|                                       createMipsAsmBackendEL32);
  111|      1|  TargetRegistry::RegisterMCAsmBackend(TheMips64Target,
  112|      1|                                       createMipsAsmBackendEB64);
  113|      1|  TargetRegistry::RegisterMCAsmBackend(TheMips64elTarget,
  114|      1|                                       createMipsAsmBackendEL64);
  115|       |
  116|      1|}

LLVMInitializeMipsTargetInfo:
   17|      1|extern "C" void LLVMInitializeMipsTargetInfo() {
   18|      1|  RegisterTarget<Triple::mips> X(TheMipsTarget, "mips", "Mips");
   19|       |
   20|      1|  RegisterTarget<Triple::mipsel> Y(TheMipselTarget, "mipsel", "Mipsel");
   21|       |
   22|      1|  RegisterTarget<Triple::mips64> A(TheMips64Target, "mips64", "Mips64 [experimental]");
   23|       |
   24|      1|  RegisterTarget<Triple::mips64el> B(TheMips64elTarget,
   25|      1|                            "mips64el", "Mips64el [experimental]");
   26|      1|}

LLVMInitializePowerPCAsmParser:
 1922|      1|extern "C" void LLVMInitializePowerPCAsmParser() {
 1923|      1|  RegisterMCAsmParser<PPCAsmParser> A(ThePPC32Target);
 1924|      1|  RegisterMCAsmParser<PPCAsmParser> B(ThePPC64Target);
 1925|      1|  RegisterMCAsmParser<PPCAsmParser> C(ThePPC64LETarget);
 1926|      1|}

LLVMInitializePowerPCTargetMC:
  198|      1|extern "C" void LLVMInitializePowerPCTargetMC() {
  199|      3|  for (Target *T : {&ThePPC32Target, &ThePPC64Target, &ThePPC64LETarget}) {
  ------------------
  |  Branch (199:18): [True: 3, False: 1]
  ------------------
  200|       |    // Register the MC asm info.
  201|      3|    RegisterMCAsmInfoFn C(*T, createPPCMCAsmInfo);
  202|       |
  203|       |    // Register the MC instruction info.
  204|      3|    TargetRegistry::RegisterMCInstrInfo(*T, createPPCMCInstrInfo);
  205|       |
  206|       |    // Register the MC register info.
  207|      3|    TargetRegistry::RegisterMCRegInfo(*T, createPPCMCRegisterInfo);
  208|       |
  209|       |    // Register the MC subtarget info.
  210|      3|    TargetRegistry::RegisterMCSubtargetInfo(*T, createPPCMCSubtargetInfo);
  211|       |
  212|       |    // Register the MC Code Emitter
  213|      3|    TargetRegistry::RegisterMCCodeEmitter(*T, createPPCMCCodeEmitter);
  214|       |
  215|       |    // Register the asm backend.
  216|      3|    TargetRegistry::RegisterMCAsmBackend(*T, createPPCAsmBackend);
  217|      3|  }
  218|      1|}

LLVMInitializePowerPCTargetInfo:
   16|      1|extern "C" void LLVMInitializePowerPCTargetInfo() {
   17|      1|  RegisterTarget<Triple::ppc>
   18|      1|    X(ThePPC32Target, "ppc32", "PowerPC 32");
   19|       |
   20|      1|  RegisterTarget<Triple::ppc64>
   21|      1|    Y(ThePPC64Target, "ppc64", "PowerPC 64");
   22|       |
   23|      1|  RegisterTarget<Triple::ppc64le>
   24|      1|    Z(ThePPC64LETarget, "ppc64le", "PowerPC 64 LE");
   25|      1|}

_ZN7llvm_ks14RISCVAsmParser26validateTargetOperandClassERNS_18MCParsedAsmOperandEj:
  781|    581|                                                    unsigned Kind) {
  782|    581|  RISCVOperand &Op = static_cast<RISCVOperand &>(AsmOp);
  783|    581|  if (!Op.isReg())
  ------------------
  |  Branch (783:7): [True: 554, False: 27]
  ------------------
  784|    554|    return Match_InvalidOperand;
  785|       |
  786|     27|  unsigned Reg = Op.getReg();
  787|     27|  bool IsRegFPR32 =
  788|     27|      RISCVMCRegisterClasses[RISCV::FPR32RegClassID].contains(Reg);
  789|     27|  bool IsRegFPR32C =
  790|     27|      RISCVMCRegisterClasses[RISCV::FPR32CRegClassID].contains(Reg);
  791|       |
  792|       |  // As the parser couldn't differentiate an FPR32 from an FPR64, coerce the
  793|       |  // register from FPR32 to FPR64 or FPR32C to FPR64C if necessary.
  794|     27|  if ((IsRegFPR32 && Kind == MCK_FPR64) ||
  ------------------
  |  Branch (794:8): [True: 19, False: 8]
  |  Branch (794:22): [True: 0, False: 19]
  ------------------
  795|     27|      (IsRegFPR32C && Kind == MCK_FPR64C)) {
  ------------------
  |  Branch (795:8): [True: 5, False: 22]
  |  Branch (795:23): [True: 0, False: 5]
  ------------------
  796|      0|    Op.Reg.RegNum = convertFPR32ToFPR64(Reg);
  797|      0|    return Match_Success;
  798|      0|  }
  799|     27|  return Match_InvalidOperand;
  800|     27|}
_ZN7llvm_ks14RISCVAsmParser26generateImmOutOfRangeErrorERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEEmllNS_5TwineE:
  804|    161|    Twine Msg = "immediate must be an integer in the range") {
  805|    161|  SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  806|    161|  return Error(ErrorLoc, Msg + " [" + Twine(Lower) + ", " + Twine(Upper) + "]");
  807|       |  //FIXME: gracefully return error to keystone
  808|    161|}
_ZN7llvm_ks14RISCVAsmParser23MatchAndEmitInstructionENS_5SMLocERjRNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS4_14default_deleteIS6_EEEEEERNS_10MCStreamerERmbS2_SE_:
  814|  3.35k|                                             bool MatchingInlineAsm, unsigned int &ErrorCode, uint64_t &Address) {
  815|  3.35k|  MCInst Inst(Address);
  816|  3.35k|  unsigned Result =
  817|  3.35k|    MatchInstructionImpl(Operands, Inst, ErrorInfo, MatchingInlineAsm);
  818|  3.35k|  switch (Result) {
  819|    171|  default:
  ------------------
  |  Branch (819:3): [True: 171, False: 3.18k]
  ------------------
  820|    171|    break;
  821|  1.21k|  case Match_Success:
  ------------------
  |  Branch (821:3): [True: 1.21k, False: 2.13k]
  ------------------
  822|  1.21k|    return processInstruction(Inst, IDLoc, Operands, Out);
  823|      3|  case Match_MissingFeature:
  ------------------
  |  Branch (823:3): [True: 3, False: 3.35k]
  ------------------
  824|       |    // Return error to Keystone 
  825|      3|    ErrorCode = KS_ERR_ASM_RISCV_MISSINGFEATURE;
  826|      3|    return true;
  827|  1.78k|  case Match_MnemonicFail:
  ------------------
  |  Branch (827:3): [True: 1.78k, False: 1.57k]
  ------------------
  828|       |    // Return error to Keystone
  829|  1.78k|    ErrorCode = KS_ERR_ASM_RISCV_MNEMONICFAIL;
  830|  1.78k|    return true;
  831|    182|  case Match_InvalidOperand: {
  ------------------
  |  Branch (831:3): [True: 182, False: 3.17k]
  ------------------
  832|    182|    SMLoc ErrorLoc = IDLoc;
  833|    182|    if (ErrorInfo != ~0U) {
  ------------------
  |  Branch (833:9): [True: 182, False: 0]
  ------------------
  834|    182|      if (ErrorInfo >= Operands.size())
  ------------------
  |  Branch (834:11): [True: 0, False: 182]
  ------------------
  835|       |        // Return error to Keystone
  836|      0|        ErrorCode = KS_ERR_ASM_RISCV_INVALIDOPERAND;
  837|       |
  838|    182|      ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  839|    182|      if (ErrorLoc == SMLoc())
  ------------------
  |  Branch (839:11): [True: 0, False: 182]
  ------------------
  840|      0|        ErrorLoc = IDLoc;
  841|    182|    }
  842|       |    // Return error to Keystone
  843|    182|    ErrorCode = KS_ERR_ASM_RISCV_INVALIDOPERAND;
  844|    182|    return true;
  845|      0|  }
  846|  3.35k|  }
  847|       |
  848|       |  // Handle the case when the error message is of specific type
  849|       |  // other than the generic Match_InvalidOperand, and the
  850|       |  // corresponding operand is missing.
  851|    171|  if (Result > FIRST_TARGET_MATCH_RESULT_TY) {
  ------------------
  |  Branch (851:7): [True: 171, False: 0]
  ------------------
  852|    171|    SMLoc ErrorLoc = IDLoc;
  853|    171|    if (ErrorInfo != ~0U && ErrorInfo >= Operands.size())
  ------------------
  |  Branch (853:9): [True: 171, False: 0]
  |  Branch (853:29): [True: 0, False: 171]
  ------------------
  854|      0|        return Error(ErrorLoc, "too few operands for instruction");
  855|       |        // throw a separate error, since there is no errorcode in Keystone
  856|       |        // FIXME: add situation specific error to indicate this and avoid throwing errors in favor of gracefully returning keystone error code
  857|    171|  }
  858|       |
  859|    171|  switch(Result) {
  860|      0|  default:
  ------------------
  |  Branch (860:3): [True: 0, False: 171]
  ------------------
  861|      0|    break;
  862|      0|  case Match_InvalidImmXLenLI:
  ------------------
  |  Branch (862:3): [True: 0, False: 171]
  ------------------
  863|      0|    if (isRV64()) {
  ------------------
  |  Branch (863:9): [True: 0, False: 0]
  ------------------
  864|      0|      SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  865|      0|      return Error(ErrorLoc, "operand must be a constant 64-bit integer");
  866|       |      //FIXME: gracefully return error to keystone
  867|      0|    }
  868|      0|    return generateImmOutOfRangeError(Operands, ErrorInfo,
  869|      0|                                      std::numeric_limits<int32_t>::min(),
  870|      0|                                      std::numeric_limits<uint32_t>::max());
  871|      0|  case Match_InvalidUImmLog2XLen:
  ------------------
  |  Branch (871:3): [True: 0, False: 171]
  ------------------
  872|      0|    if (isRV64())
  ------------------
  |  Branch (872:9): [True: 0, False: 0]
  ------------------
  873|      0|      return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 6) - 1);
  874|      0|    return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 5) - 1);
  875|      0|  case Match_InvalidUImmLog2XLenNonZero:
  ------------------
  |  Branch (875:3): [True: 0, False: 171]
  ------------------
  876|      0|    if (isRV64())
  ------------------
  |  Branch (876:9): [True: 0, False: 0]
  ------------------
  877|      0|      return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 6) - 1);
  878|      0|    return generateImmOutOfRangeError(Operands, ErrorInfo, 1, (1 << 5) - 1);
  879|      3|  case Match_InvalidUImm5:
  ------------------
  |  Branch (879:3): [True: 3, False: 168]
  ------------------
  880|      3|    return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 5) - 1);
  881|      0|  case Match_InvalidSImm6:
  ------------------
  |  Branch (881:3): [True: 0, False: 171]
  ------------------
  882|      0|    return generateImmOutOfRangeError(Operands, ErrorInfo, -(1 << 5),
  883|      0|                                      (1 << 5) - 1);
  884|      0|  case Match_InvalidSImm6NonZero:
  ------------------
  |  Branch (884:3): [True: 0, False: 171]
  ------------------
  885|      0|    return generateImmOutOfRangeError(
  886|      0|        Operands, ErrorInfo, -(1 << 5), (1 << 5) - 1,
  887|      0|        "immediate must be non-zero in the range");
  888|      0|  case Match_InvalidCLUIImm:
  ------------------
  |  Branch (888:3): [True: 0, False: 171]
  ------------------
  889|      0|    return generateImmOutOfRangeError(
  890|      0|        Operands, ErrorInfo, 1, (1 << 5) - 1,
  891|      0|        "immediate must be in [0xfffe0, 0xfffff] or");
  892|      0|  case Match_InvalidUImm7Lsb00:
  ------------------
  |  Branch (892:3): [True: 0, False: 171]
  ------------------
  893|      0|    return generateImmOutOfRangeError(
  894|      0|        Operands, ErrorInfo, 0, (1 << 7) - 4,
  895|      0|        "immediate must be a multiple of 4 bytes in the range");
  896|      0|  case Match_InvalidUImm8Lsb00:
  ------------------
  |  Branch (896:3): [True: 0, False: 171]
  ------------------
  897|      0|    return generateImmOutOfRangeError(
  898|      0|        Operands, ErrorInfo, 0, (1 << 8) - 4,
  899|      0|        "immediate must be a multiple of 4 bytes in the range");
  900|      0|  case Match_InvalidUImm8Lsb000:
  ------------------
  |  Branch (900:3): [True: 0, False: 171]
  ------------------
  901|      0|    return generateImmOutOfRangeError(
  902|      0|        Operands, ErrorInfo, 0, (1 << 8) - 8,
  903|      0|        "immediate must be a multiple of 8 bytes in the range");
  904|      0|  case Match_InvalidSImm9Lsb0:
  ------------------
  |  Branch (904:3): [True: 0, False: 171]
  ------------------
  905|      0|    return generateImmOutOfRangeError(
  906|      0|        Operands, ErrorInfo, -(1 << 8), (1 << 8) - 2,
  907|      0|        "immediate must be a multiple of 2 bytes in the range");
  908|      0|  case Match_InvalidUImm9Lsb000:
  ------------------
  |  Branch (908:3): [True: 0, False: 171]
  ------------------
  909|      0|    return generateImmOutOfRangeError(
  910|      0|        Operands, ErrorInfo, 0, (1 << 9) - 8,
  911|      0|        "immediate must be a multiple of 8 bytes in the range");
  912|      0|  case Match_InvalidUImm10Lsb00NonZero:
  ------------------
  |  Branch (912:3): [True: 0, False: 171]
  ------------------
  913|      0|    return generateImmOutOfRangeError(
  914|      0|        Operands, ErrorInfo, 4, (1 << 10) - 4,
  915|      0|        "immediate must be a multiple of 4 bytes in the range");
  916|      0|  case Match_InvalidSImm10Lsb0000NonZero:
  ------------------
  |  Branch (916:3): [True: 0, False: 171]
  ------------------
  917|      0|    return generateImmOutOfRangeError(
  918|      0|        Operands, ErrorInfo, -(1 << 9), (1 << 9) - 16,
  919|      0|        "immediate must be a multiple of 16 bytes and non-zero in the range");
  920|     42|  case Match_InvalidSImm12:
  ------------------
  |  Branch (920:3): [True: 42, False: 129]
  ------------------
  921|     42|    return generateImmOutOfRangeError(
  922|     42|        Operands, ErrorInfo, -(1 << 11), (1 << 11) - 1,
  923|     42|        "operand must be a symbol with %lo/%pcrel_lo/%tprel_lo modifier or an "
  924|     42|        "integer in the range");
  925|      3|  case Match_InvalidSImm12Lsb0:
  ------------------
  |  Branch (925:3): [True: 3, False: 168]
  ------------------
  926|      3|    return generateImmOutOfRangeError(
  927|      3|        Operands, ErrorInfo, -(1 << 11), (1 << 11) - 2,
  928|      3|        "immediate must be a multiple of 2 bytes in the range");
  929|      0|  case Match_InvalidSImm13Lsb0:
  ------------------
  |  Branch (929:3): [True: 0, False: 171]
  ------------------
  930|      0|    return generateImmOutOfRangeError(
  931|      0|        Operands, ErrorInfo, -(1 << 12), (1 << 12) - 2,
  932|      0|        "immediate must be a multiple of 2 bytes in the range");
  933|      0|  case Match_InvalidUImm20LUI:
  ------------------
  |  Branch (933:3): [True: 0, False: 171]
  ------------------
  934|      0|    return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 20) - 1,
  935|      0|                                      "operand must be a symbol with "
  936|      0|                                      "%hi/%tprel_hi modifier or an integer in "
  937|      0|                                      "the range");
  938|      0|  case Match_InvalidUImm20AUIPC:
  ------------------
  |  Branch (938:3): [True: 0, False: 171]
  ------------------
  939|      0|    return generateImmOutOfRangeError(
  940|      0|        Operands, ErrorInfo, 0, (1 << 20) - 1,
  941|      0|        "operand must be a symbol with a "
  942|      0|        "%pcrel_hi/%got_pcrel_hi/%tls_ie_pcrel_hi/%tls_gd_pcrel_hi modifier or "
  943|      0|        "an integer in the range");
  944|    112|  case Match_InvalidSImm21Lsb0JAL:
  ------------------
  |  Branch (944:3): [True: 112, False: 59]
  ------------------
  945|    112|    return generateImmOutOfRangeError(
  946|    112|        Operands, ErrorInfo, -(1 << 20), (1 << 20) - 2,
  947|    112|        "immediate must be a multiple of 2 bytes in the range");
  948|      1|  case Match_InvalidCSRSystemRegister: {
  ------------------
  |  Branch (948:3): [True: 1, False: 170]
  ------------------
  949|      1|    return generateImmOutOfRangeError(Operands, ErrorInfo, 0, (1 << 12) - 1,
  950|      1|                                      "operand must be a valid system register "
  951|      1|                                      "name or an integer in the range");
  952|      0|  }
  953|      2|  case Match_InvalidFenceArg: {
  ------------------
  |  Branch (953:3): [True: 2, False: 169]
  ------------------
  954|      2|    SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  955|      2|    return Error(
  956|      2|        ErrorLoc,
  957|      2|        "operand must be formed of letters selected in-order from 'iorw'");
  958|      0|  }
  959|      0|  case Match_InvalidFRMArg: {
  ------------------
  |  Branch (959:3): [True: 0, False: 171]
  ------------------
  960|      0|    SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  961|      0|    return Error(
  962|      0|        ErrorLoc,
  963|      0|        "operand must be a valid floating point rounding mode mnemonic");
  964|      0|  }
  965|      0|  case Match_InvalidBareSymbol: {
  ------------------
  |  Branch (965:3): [True: 0, False: 171]
  ------------------
  966|      0|    SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  967|      0|    return Error(ErrorLoc, "operand must be a bare symbol name");
  968|      0|  }
  969|      8|  case Match_InvalidCallSymbol: {
  ------------------
  |  Branch (969:3): [True: 8, False: 163]
  ------------------
  970|      8|    SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  971|      8|    return Error(ErrorLoc, "operand must be a bare symbol name");
  972|      0|  }
  973|      0|  case Match_InvalidTPRelAddSymbol: {
  ------------------
  |  Branch (973:3): [True: 0, False: 171]
  ------------------
  974|      0|    SMLoc ErrorLoc = ((RISCVOperand &)*Operands[ErrorInfo]).getStartLoc();
  975|      0|    return Error(ErrorLoc, "operand must be a symbol with %tprel_add modifier");
  976|      0|  }
  977|    171|  }
  978|       |
  979|      0|  llvm_unreachable("Unknown match type detected!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  980|    171|}
_ZN7llvm_ks14RISCVAsmParser13parseRegisterERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEEbRj:
 1012|  23.3k|                                                   bool AllowParens, unsigned int &KsError) {
 1013|  23.3k|  SMLoc FirstS = getLoc();
 1014|  23.3k|  bool HadParens = false;
 1015|  23.3k|  AsmToken LParen;
 1016|       |
 1017|       |  // If this is an LParen and a parenthesised register name is allowed, parse it
 1018|       |  // atomically.
 1019|  23.3k|  if (AllowParens && getLexer().is(AsmToken::LParen)) {
  ------------------
  |  Branch (1019:7): [True: 23.1k, False: 159]
  |  Branch (1019:22): [True: 1.19k, False: 21.9k]
  ------------------
 1020|  1.19k|    AsmToken Buf[2];
 1021|  1.19k|    size_t ReadCount = getLexer().peekTokens(Buf);
 1022|  1.19k|    if (ReadCount == 2 && Buf[1].getKind() == AsmToken::RParen) {
  ------------------
  |  Branch (1022:9): [True: 1.16k, False: 27]
  |  Branch (1022:27): [True: 214, False: 954]
  ------------------
 1023|    214|      HadParens = true;
 1024|    214|      LParen = getParser().getTok();
 1025|    214|      getParser().Lex(); // Eat '('
 1026|    214|    }
 1027|  1.19k|  }
 1028|       |
 1029|  23.3k|  switch (getLexer().getKind()) {
 1030|  9.00k|  default:
  ------------------
  |  Branch (1030:3): [True: 9.00k, False: 14.3k]
  ------------------
 1031|  9.00k|    if (HadParens)
  ------------------
  |  Branch (1031:9): [True: 11, False: 8.99k]
  ------------------
 1032|     11|      getLexer().UnLex(LParen);
 1033|  9.00k|    return MatchOperand_NoMatch;
 1034|  14.3k|  case AsmToken::Identifier:
  ------------------
  |  Branch (1034:3): [True: 14.3k, False: 9.00k]
  ------------------
 1035|  14.3k|    StringRef Name = getLexer().getTok().getIdentifier();
 1036|  14.3k|    unsigned RegNo;
 1037|  14.3k|    matchRegisterNameHelper(isRV32E(), RegNo, Name);
 1038|       |
 1039|  14.3k|    if (RegNo == 0) {
  ------------------
  |  Branch (1039:9): [True: 11.0k, False: 3.24k]
  ------------------
 1040|  11.0k|      if (HadParens)
  ------------------
  |  Branch (1040:11): [True: 96, False: 10.9k]
  ------------------
 1041|     96|        getLexer().UnLex(LParen);
 1042|  11.0k|      return MatchOperand_NoMatch;
 1043|  11.0k|    }
 1044|  3.24k|    if (HadParens)
  ------------------
  |  Branch (1044:9): [True: 107, False: 3.13k]
  ------------------
 1045|    107|      Operands.push_back(RISCVOperand::createToken("(", FirstS, isRV64()));
 1046|  3.24k|    SMLoc S = getLoc();
 1047|  3.24k|    SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1);
 1048|  3.24k|    getLexer().Lex();
 1049|  3.24k|    Operands.push_back(RISCVOperand::createReg(RegNo, S, E, isRV64()));
 1050|  23.3k|  }
 1051|       |
 1052|  3.24k|  if (HadParens) {
  ------------------
  |  Branch (1052:7): [True: 107, False: 3.13k]
  ------------------
 1053|    107|    getParser().Lex(); // Eat ')'
 1054|    107|    Operands.push_back(RISCVOperand::createToken(")", getLoc(), isRV64()));
 1055|    107|  }
 1056|       |
 1057|  3.24k|  return MatchOperand_Success;
 1058|  23.3k|}
_ZN7llvm_ks14RISCVAsmParser22parseCSRSystemRegisterERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEE:
 1061|    124|RISCVAsmParser::parseCSRSystemRegister(OperandVector &Operands) {
 1062|    124|  SMLoc S = getLoc();
 1063|    124|  const MCExpr *Res;
 1064|       |
 1065|    124|  switch (getLexer().getKind()) {
 1066|     19|  default:
  ------------------
  |  Branch (1066:3): [True: 19, False: 105]
  ------------------
 1067|     19|    return MatchOperand_NoMatch;
 1068|      1|  case AsmToken::LParen:
  ------------------
  |  Branch (1068:3): [True: 1, False: 123]
  ------------------
 1069|     16|  case AsmToken::Minus:
  ------------------
  |  Branch (1069:3): [True: 15, False: 109]
  ------------------
 1070|     19|  case AsmToken::Plus:
  ------------------
  |  Branch (1070:3): [True: 3, False: 121]
  ------------------
 1071|     21|  case AsmToken::Exclaim:
  ------------------
  |  Branch (1071:3): [True: 2, False: 122]
  ------------------
 1072|     23|  case AsmToken::Tilde:
  ------------------
  |  Branch (1072:3): [True: 2, False: 122]
  ------------------
 1073|     44|  case AsmToken::Integer:
  ------------------
  |  Branch (1073:3): [True: 21, False: 103]
  ------------------
 1074|     45|  case AsmToken::String: {
  ------------------
  |  Branch (1074:3): [True: 1, False: 123]
  ------------------
 1075|     45|    if (getParser().parseExpression(Res))
  ------------------
  |  Branch (1075:9): [True: 5, False: 40]
  ------------------
 1076|      5|      return MatchOperand_ParseFail;
 1077|       |
 1078|     40|    auto *CE = dyn_cast<MCConstantExpr>(Res);
 1079|     40|    if (CE) {
  ------------------
  |  Branch (1079:9): [True: 38, False: 2]
  ------------------
 1080|     38|      int64_t Imm = CE->getValue();
 1081|     38|      if (isUInt<12>(Imm)) {
  ------------------
  |  Branch (1081:11): [True: 12, False: 26]
  ------------------
 1082|     12|        auto SysReg = RISCVSysReg::lookupSysRegByEncoding(Imm);
 1083|       |        // Accept an immediate representing a named or un-named Sys Reg
 1084|       |        // if the range is valid, regardless of the required features.
 1085|     12|        Operands.push_back(RISCVOperand::createSysReg(
 1086|     12|            SysReg ? SysReg->Name : "", S, Imm, isRV64()));
  ------------------
  |  Branch (1086:13): [True: 7, False: 5]
  ------------------
 1087|     12|        return MatchOperand_Success;
 1088|     12|      }
 1089|     38|    }
 1090|       |
 1091|     28|    Twine Msg = "immediate must be an integer in the range";
 1092|     28|    Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
 1093|     28|    return MatchOperand_ParseFail;
 1094|     40|  }
 1095|     59|  case AsmToken::Identifier: {
  ------------------
  |  Branch (1095:3): [True: 59, False: 65]
  ------------------
 1096|     59|    StringRef Identifier;
 1097|     59|    if (getParser().parseIdentifier(Identifier))
  ------------------
  |  Branch (1097:9): [True: 0, False: 59]
  ------------------
 1098|      0|      return MatchOperand_ParseFail;
 1099|       |
 1100|     59|    auto SysReg = RISCVSysReg::lookupSysRegByName(Identifier);
 1101|       |    // Accept a named Sys Reg if the required features are present.
 1102|     59|    if (SysReg) {
  ------------------
  |  Branch (1102:9): [True: 1, False: 58]
  ------------------
 1103|      1|      if (!SysReg->haveRequiredFeatures(getSTI().getFeatureBits())) {
  ------------------
  |  Branch (1103:11): [True: 0, False: 1]
  ------------------
 1104|      0|        Error(S, "system register use requires an option to be enabled");
 1105|      0|        return MatchOperand_ParseFail;
 1106|      0|      }
 1107|      1|      Operands.push_back(RISCVOperand::createSysReg(
 1108|      1|          Identifier, S, SysReg->Encoding, isRV64()));
 1109|      1|      return MatchOperand_Success;
 1110|      1|    }
 1111|       |
 1112|     58|    Twine Msg = "operand must be a valid system register name "
 1113|     58|                "or an integer in the range";
 1114|     58|    Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
 1115|     58|    return MatchOperand_ParseFail;
 1116|     59|  }
 1117|      1|  case AsmToken::Percent: {
  ------------------
  |  Branch (1117:3): [True: 1, False: 123]
  ------------------
 1118|       |    // Discard operand with modifier.
 1119|      1|    Twine Msg = "immediate must be an integer in the range";
 1120|      1|    Error(S, Msg + " [" + Twine(0) + ", " + Twine((1 << 12) - 1) + "]");
 1121|      1|    return MatchOperand_ParseFail;
 1122|     59|  }
 1123|    124|  }
 1124|       |
 1125|      0|  return MatchOperand_NoMatch;
 1126|    124|}
_ZN7llvm_ks14RISCVAsmParser14parseImmediateERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEE:
 1128|  21.0k|RISCVAsmParser::OperandMatchResultTy RISCVAsmParser::parseImmediate(OperandVector &Operands) {
 1129|  21.0k|  SMLoc S = getLoc();
 1130|  21.0k|  SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1);
 1131|  21.0k|  const MCExpr *Res;
 1132|       |
 1133|  21.0k|  switch (getLexer().getKind()) {
 1134|    712|  default:
  ------------------
  |  Branch (1134:3): [True: 712, False: 20.3k]
  ------------------
 1135|    712|    return MatchOperand_NoMatch;
 1136|  1.09k|  case AsmToken::LParen:
  ------------------
  |  Branch (1136:3): [True: 1.09k, False: 20.0k]
  ------------------
 1137|  1.78k|  case AsmToken::Dot:
  ------------------
  |  Branch (1137:3): [True: 692, False: 20.4k]
  ------------------
 1138|  4.20k|  case AsmToken::Minus:
  ------------------
  |  Branch (1138:3): [True: 2.41k, False: 18.6k]
  ------------------
 1139|  5.20k|  case AsmToken::Plus:
  ------------------
  |  Branch (1139:3): [True: 1.00k, False: 20.0k]
  ------------------
 1140|  5.53k|  case AsmToken::Exclaim:
  ------------------
  |  Branch (1140:3): [True: 331, False: 20.7k]
  ------------------
 1141|  6.17k|  case AsmToken::Tilde:
  ------------------
  |  Branch (1141:3): [True: 642, False: 20.4k]
  ------------------
 1142|  8.73k|  case AsmToken::Integer:
  ------------------
  |  Branch (1142:3): [True: 2.55k, False: 18.5k]
  ------------------
 1143|  8.99k|  case AsmToken::String:
  ------------------
  |  Branch (1143:3): [True: 266, False: 20.8k]
  ------------------
 1144|  20.2k|  case AsmToken::Identifier:
  ------------------
  |  Branch (1144:3): [True: 11.2k, False: 9.87k]
  ------------------
 1145|  20.2k|    if (getParser().parseExpression(Res))
  ------------------
  |  Branch (1145:9): [True: 4.90k, False: 15.3k]
  ------------------
 1146|  4.90k|      return MatchOperand_ParseFail;
 1147|  15.3k|    break;
 1148|  15.3k|  case AsmToken::Percent:
  ------------------
  |  Branch (1148:3): [True: 165, False: 20.9k]
  ------------------
 1149|    165|    return parseOperandWithModifier(Operands);
 1150|  21.0k|  }
 1151|       |
 1152|  15.3k|  Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
 1153|  15.3k|  return MatchOperand_Success;
 1154|  21.0k|}
_ZN7llvm_ks14RISCVAsmParser24parseOperandWithModifierERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEE:
 1157|    171|RISCVAsmParser::parseOperandWithModifier(OperandVector &Operands) {
 1158|    171|  SMLoc S = getLoc();
 1159|    171|  SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1);
 1160|       |
 1161|    171|  if (getLexer().getKind() != AsmToken::Percent) {
  ------------------
  |  Branch (1161:7): [True: 6, False: 165]
  ------------------
 1162|      6|    Error(getLoc(), "expected '%' for operand modifier");
 1163|      6|    return MatchOperand_ParseFail;
 1164|      6|  }
 1165|       |
 1166|    165|  getParser().Lex(); // Eat '%'
 1167|       |
 1168|    165|  if (getLexer().getKind() != AsmToken::Identifier) {
  ------------------
  |  Branch (1168:7): [True: 26, False: 139]
  ------------------
 1169|     26|    Error(getLoc(), "expected valid identifier for operand modifier");
 1170|     26|    return MatchOperand_ParseFail;
 1171|     26|  }
 1172|    139|  StringRef Identifier = getParser().getTok().getIdentifier();
 1173|    139|  RISCVMCExpr::VariantKind VK = RISCVMCExpr::getVariantKindForName(Identifier);
 1174|    139|  if (VK == RISCVMCExpr::VK_RISCV_Invalid) {
  ------------------
  |  Branch (1174:7): [True: 54, False: 85]
  ------------------
 1175|     54|    Error(getLoc(), "unrecognized operand modifier");
 1176|     54|    return MatchOperand_ParseFail;
 1177|     54|  }
 1178|       |
 1179|     85|  getParser().Lex(); // Eat the identifier
 1180|     85|  if (getLexer().getKind() != AsmToken::LParen) {
  ------------------
  |  Branch (1180:7): [True: 2, False: 83]
  ------------------
 1181|      2|    Error(getLoc(), "expected '('");
 1182|      2|    return MatchOperand_ParseFail;
 1183|      2|  }
 1184|     83|  getParser().Lex(); // Eat '('
 1185|       |
 1186|     83|  const MCExpr *SubExpr;
 1187|     83|  if (getParser().parseParenExpression(SubExpr, E)) {
  ------------------
  |  Branch (1187:7): [True: 82, False: 1]
  ------------------
 1188|     82|    return MatchOperand_ParseFail;
 1189|     82|  }
 1190|       |
 1191|      1|  const MCExpr *ModExpr = RISCVMCExpr::create(SubExpr, VK, getContext());
 1192|      1|  Operands.push_back(RISCVOperand::createImm(ModExpr, S, E, isRV64()));
 1193|      1|  return MatchOperand_Success;
 1194|     83|}
_ZN7llvm_ks14RISCVAsmParser15parseBareSymbolERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEE:
 1196|    146|RISCVAsmParser::OperandMatchResultTy RISCVAsmParser::parseBareSymbol(OperandVector &Operands) {
 1197|    146|  SMLoc S = getLoc();
 1198|    146|  SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1);
 1199|    146|  const MCExpr *Res;
 1200|       |
 1201|    146|  if (getLexer().getKind() != AsmToken::Identifier)
  ------------------
  |  Branch (1201:7): [True: 16, False: 130]
  ------------------
 1202|     16|    return MatchOperand_NoMatch;
 1203|       |
 1204|    130|  StringRef Identifier;
 1205|    130|  AsmToken Tok = getLexer().getTok();
 1206|       |
 1207|    130|  if (getParser().parseIdentifier(Identifier))
  ------------------
  |  Branch (1207:7): [True: 0, False: 130]
  ------------------
 1208|      0|    return MatchOperand_ParseFail;
 1209|       |
 1210|    130|  if (Identifier.consume_back("@plt")) {
  ------------------
  |  Branch (1210:7): [True: 1, False: 129]
  ------------------
 1211|      1|    Error(getLoc(), "'@plt' operand not valid for instruction");
 1212|      1|    return MatchOperand_ParseFail;
 1213|      1|  }
 1214|       |
 1215|    129|  MCSymbol *Sym = getContext().getOrCreateSymbol(Identifier);
 1216|       |
 1217|    129|  if (Sym->isVariable()) {
  ------------------
  |  Branch (1217:7): [True: 1, False: 128]
  ------------------
 1218|      1|    const MCExpr *V = Sym->getVariableValue(/*SetUsed=*/false);
 1219|      1|    if (!isa<MCSymbolRefExpr>(V)) {
  ------------------
  |  Branch (1219:9): [True: 0, False: 1]
  ------------------
 1220|      0|      getLexer().UnLex(Tok); // Put back if it's not a bare symbol.
 1221|      0|      return MatchOperand_NoMatch;
 1222|      0|    }
 1223|      1|    Res = V;
 1224|      1|  } else
 1225|    128|    Res = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_None, getContext());
 1226|       |
 1227|    129|  MCBinaryExpr::Opcode Opcode;
 1228|    129|  switch (getLexer().getKind()) {
 1229|    123|  default:
  ------------------
  |  Branch (1229:3): [True: 123, False: 6]
  ------------------
 1230|    123|    Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
 1231|    123|    return MatchOperand_Success;
 1232|      1|  case AsmToken::Plus:
  ------------------
  |  Branch (1232:3): [True: 1, False: 128]
  ------------------
 1233|      1|    Opcode = MCBinaryExpr::Add;
 1234|      1|    break;
 1235|      5|  case AsmToken::Minus:
  ------------------
  |  Branch (1235:3): [True: 5, False: 124]
  ------------------
 1236|      5|    Opcode = MCBinaryExpr::Sub;
 1237|      5|    break;
 1238|    129|  }
 1239|       |
 1240|      6|  const MCExpr *Expr;
 1241|      6|  if (getParser().parseExpression(Expr))
  ------------------
  |  Branch (1241:7): [True: 1, False: 5]
  ------------------
 1242|      1|    return MatchOperand_ParseFail;
 1243|      5|  Res = MCBinaryExpr::create(Opcode, Res, Expr, getContext());
 1244|      5|  Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
 1245|      5|  return MatchOperand_Success;
 1246|      6|}
_ZN7llvm_ks14RISCVAsmParser15parseCallSymbolERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEE:
 1248|     41|RISCVAsmParser::OperandMatchResultTy RISCVAsmParser::parseCallSymbol(OperandVector &Operands) {
 1249|     41|  SMLoc S = getLoc();
 1250|     41|  SMLoc E = SMLoc::getFromPointer(S.getPointer() - 1);
 1251|     41|  const MCExpr *Res;
 1252|       |
 1253|     41|  if (getLexer().getKind() != AsmToken::Identifier)
  ------------------
  |  Branch (1253:7): [True: 20, False: 21]
  ------------------
 1254|     20|    return MatchOperand_NoMatch;
 1255|       |
 1256|       |  // Avoid parsing the register in `call rd, foo` as a call symbol.
 1257|     21|  if (getLexer().peekTok().getKind() != AsmToken::EndOfStatement)
  ------------------
  |  Branch (1257:7): [True: 12, False: 9]
  ------------------
 1258|     12|    return MatchOperand_NoMatch;
 1259|       |
 1260|      9|  StringRef Identifier;
 1261|      9|  if (getParser().parseIdentifier(Identifier))
  ------------------
  |  Branch (1261:7): [True: 0, False: 9]
  ------------------
 1262|      0|    return MatchOperand_ParseFail;
 1263|       |
 1264|      9|  RISCVMCExpr::VariantKind Kind = RISCVMCExpr::VK_RISCV_CALL;
 1265|      9|  if (Identifier.consume_back("@plt"))
  ------------------
  |  Branch (1265:7): [True: 0, False: 9]
  ------------------
 1266|      0|    Kind = RISCVMCExpr::VK_RISCV_CALL_PLT;
 1267|       |
 1268|      9|  MCSymbol *Sym = getContext().getOrCreateSymbol(Identifier);
 1269|      9|  Res = MCSymbolRefExpr::create(Sym, MCSymbolRefExpr::VK_None, getContext());
 1270|      9|  Res = RISCVMCExpr::create(Res, Kind, getContext());
 1271|      9|  Operands.push_back(RISCVOperand::createImm(Res, S, E, isRV64()));
 1272|      9|  return MatchOperand_Success;
 1273|      9|}
_ZN7llvm_ks14RISCVAsmParser14parseJALOffsetERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEE:
 1275|  1.08k|RISCVAsmParser::OperandMatchResultTy RISCVAsmParser::parseJALOffset(OperandVector &Operands) {
 1276|       |  // Parsing jal operands is fiddly due to the `jal foo` and `jal ra, foo`
 1277|       |  // both being acceptable forms. When parsing `jal ra, foo` this function
 1278|       |  // will be called for the `ra` register operand in an attempt to match the
 1279|       |  // single-operand alias. parseJALOffset must fail for this case. It would
 1280|       |  // seem logical to try parse the operand using parseImmediate and return
 1281|       |  // NoMatch if the next token is a comma (meaning we must be parsing a jal in
 1282|       |  // the second form rather than the first). We can't do this as there's no
 1283|       |  // way of rewinding the lexer state. Instead, return NoMatch if this operand
 1284|       |  // is an identifier and is followed by a comma.
 1285|  1.08k|  if (getLexer().is(AsmToken::Identifier) &&
  ------------------
  |  Branch (1285:7): [True: 293, False: 795]
  |  Branch (1285:7): [True: 17, False: 1.07k]
  ------------------
 1286|    293|      getLexer().peekTok().is(AsmToken::Comma))
  ------------------
  |  Branch (1286:7): [True: 17, False: 276]
  ------------------
 1287|     17|    return MatchOperand_NoMatch;
 1288|       |
 1289|  1.07k|  return parseImmediate(Operands);
 1290|  1.08k|}
_ZN7llvm_ks14RISCVAsmParser17parseMemOpBaseRegERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEE:
 1293|    159|RISCVAsmParser::parseMemOpBaseReg(OperandVector &Operands) {
 1294|    159|  if (getLexer().isNot(AsmToken::LParen)) {
  ------------------
  |  Branch (1294:7): [True: 0, False: 159]
  ------------------
 1295|      0|    Error(getLoc(), "expected '('");
 1296|      0|    return MatchOperand_ParseFail;
 1297|      0|  }
 1298|       |
 1299|    159|  getParser().Lex(); // Eat '('
 1300|    159|  Operands.push_back(RISCVOperand::createToken("(", getLoc(), isRV64()));
 1301|       |
 1302|    159|  if (parseRegister(Operands) != MatchOperand_Success) {
  ------------------
  |  Branch (1302:7): [True: 40, False: 119]
  ------------------
 1303|     40|    Error(getLoc(), "expected register");
 1304|     40|    return MatchOperand_ParseFail;
 1305|     40|  }
 1306|       |
 1307|    119|  if (getLexer().isNot(AsmToken::RParen)) {
  ------------------
  |  Branch (1307:7): [True: 7, False: 112]
  ------------------
 1308|      7|    Error(getLoc(), "expected ')'");
 1309|      7|    return MatchOperand_ParseFail;
 1310|      7|  }
 1311|       |
 1312|    112|  getParser().Lex(); // Eat ')'
 1313|    112|  Operands.push_back(RISCVOperand::createToken(")", getLoc(), isRV64()));
 1314|       |
 1315|    112|  return MatchOperand_Success;
 1316|    119|}
_ZN7llvm_ks14RISCVAsmParser12parseOperandERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEENS_9StringRefE:
 1321|  24.4k|bool RISCVAsmParser::parseOperand(OperandVector &Operands, StringRef Mnemonic) {
 1322|       |  // Check if the current operand has a custom associated parser, if so, try to
 1323|       |  // custom parse the operand, or fallback to the general approach.
 1324|  24.4k|  OperandMatchResultTy Result =
 1325|  24.4k|      MatchOperandParserImpl(Operands, Mnemonic);
 1326|  24.4k|  if (Result == MatchOperand_Success)
  ------------------
  |  Branch (1326:7): [True: 1.11k, False: 23.3k]
  ------------------
 1327|  1.11k|    return false;
 1328|  23.3k|  if (Result == MatchOperand_ParseFail)
  ------------------
  |  Branch (1328:7): [True: 193, False: 23.1k]
  ------------------
 1329|    193|    return true;
 1330|       |
 1331|       |  // Attempt to parse token as a register.
 1332|  23.1k|  if (parseRegister(Operands, true) == MatchOperand_Success)
  ------------------
  |  Branch (1332:7): [True: 3.12k, False: 20.0k]
  ------------------
 1333|  3.12k|    return false;
 1334|       |
 1335|       |  // Attempt to parse token as an immediate
 1336|  20.0k|  if (parseImmediate(Operands) == MatchOperand_Success) {
  ------------------
  |  Branch (1336:7): [True: 14.3k, False: 5.66k]
  ------------------
 1337|       |    // Parse memory base register if present
 1338|  14.3k|    if (getLexer().is(AsmToken::LParen))
  ------------------
  |  Branch (1338:9): [True: 159, False: 14.2k]
  ------------------
 1339|    159|      return parseMemOpBaseReg(Operands) != MatchOperand_Success;
 1340|  14.2k|    return false;
 1341|  14.3k|  }
 1342|       |
 1343|       |  // Finally we have exhausted all options and must declare defeat.
 1344|  5.66k|  Error(getLoc(), "unknown operand");
 1345|  5.66k|  return true;
 1346|  20.0k|}
_ZN7llvm_ks14RISCVAsmParser16ParseInstructionERNS_20ParseInstructionInfoENS_9StringRefENS_5SMLocERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS6_14default_deleteIS8_EEEEEERj:
 1350|  10.2k|                                      OperandVector &Operands, unsigned int &ErrorCode) {
 1351|       |  
 1352|  10.2k|  DEBUG(dbgs() << "ParseInstruction\n");
 1353|       |  // Ensure that if the instruction occurs when relaxation is enabled,
 1354|       |  // relocations are forced for the file. Ideally this would be done when there
 1355|       |  // is enough information to reliably determine if the instruction itself may
 1356|       |  // cause relaxations. Unfortunately instruction processing stage occurs in the
 1357|       |  // same pass as relocation emission, so it's too late to set a 'sticky bit'
 1358|       |  // for the entire file.
 1359|  10.2k|  if (getSTI().getFeatureBits()[RISCV::FeatureRelax]) {
  ------------------
  |  Branch (1359:7): [True: 10.2k, False: 0]
  ------------------
 1360|  10.2k|    MCAssembler &Assembler = static_cast<MCELFStreamer &>(getStreamer()).getAssembler();
 1361|  10.2k|    auto *AssemblerPtr = &Assembler;
 1362|  10.2k|    if (AssemblerPtr != nullptr) {
  ------------------
  |  Branch (1362:9): [True: 10.2k, False: 0]
  ------------------
 1363|  10.2k|      RISCVAsmBackend &MAB =
 1364|  10.2k|          static_cast<RISCVAsmBackend &>(AssemblerPtr->getBackend());
 1365|  10.2k|      MAB.setForceRelocs();
 1366|  10.2k|    }
 1367|  10.2k|  }
 1368|       |
 1369|       |  // First operand is token for instruction
 1370|  10.2k|  Operands.push_back(RISCVOperand::createToken(Name, NameLoc, isRV64()));
 1371|       |
 1372|       |  // If there are no more operands, then finish
 1373|  10.2k|  if (getLexer().is(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1373:7): [True: 1.06k, False: 9.23k]
  ------------------
 1374|  1.06k|    return false;
 1375|       |
 1376|       |  // Parse first operand
 1377|  9.23k|  if (parseOperand(Operands, Name))
  ------------------
  |  Branch (1377:7): [True: 5.11k, False: 4.12k]
  ------------------
 1378|  5.11k|    return true;
 1379|       |
 1380|       |  // Parse until end of statement, consuming commas between operands
 1381|  4.12k|  unsigned OperandIdx = 1;
 1382|  18.5k|  while (getLexer().is(AsmToken::Comma)) {
  ------------------
  |  Branch (1382:10): [True: 15.2k, False: 3.32k]
  ------------------
 1383|       |    // Consume comma token
 1384|  15.2k|    getLexer().Lex();
 1385|       |
 1386|       |    // Parse next operand
 1387|  15.2k|    if (parseOperand(Operands, Name))
  ------------------
  |  Branch (1387:9): [True: 791, False: 14.4k]
  ------------------
 1388|    791|      return true;
 1389|       |
 1390|  14.4k|    ++OperandIdx;
 1391|  14.4k|  }
 1392|       |
 1393|  3.32k|  if (getLexer().isNot(AsmToken::EndOfStatement)) {
  ------------------
  |  Branch (1393:7): [True: 1.03k, False: 2.29k]
  ------------------
 1394|  1.03k|    SMLoc Loc = getLexer().getLoc();
 1395|  1.03k|    getParser().eatToEndOfStatement();
 1396|  1.03k|    return Error(Loc, "unexpected token");
 1397|  1.03k|  }
 1398|       |
 1399|  2.29k|  getParser().Lex(); // Consume the EndOfStatement.
 1400|  2.29k|  return false;
 1401|  3.32k|}
_ZN7llvm_ks14RISCVAsmParser17classifySymbolRefEPKNS_6MCExprERNS_11RISCVMCExpr11VariantKindERl:
 1405|    395|                                       int64_t &Addend) {
 1406|    395|  Kind = RISCVMCExpr::VK_RISCV_None;
 1407|    395|  Addend = 0;
 1408|       |
 1409|    395|  if (const RISCVMCExpr *RE = dyn_cast<RISCVMCExpr>(Expr)) {
  ------------------
  |  Branch (1409:26): [True: 8, False: 387]
  ------------------
 1410|      8|    Kind = RE->getKind();
 1411|      8|    Expr = RE->getSubExpr();
 1412|      8|  }
 1413|       |
 1414|       |  // It's a simple symbol reference or constant with no addend.
 1415|    395|  if (isa<MCConstantExpr>(Expr) || isa<MCSymbolRefExpr>(Expr))
  ------------------
  |  Branch (1415:7): [True: 0, False: 395]
  |  Branch (1415:36): [True: 348, False: 47]
  ------------------
 1416|    348|    return true;
 1417|       |
 1418|     47|  const MCBinaryExpr *BE = dyn_cast<MCBinaryExpr>(Expr);
 1419|     47|  if (!BE)
  ------------------
  |  Branch (1419:7): [True: 11, False: 36]
  ------------------
 1420|     11|    return false;
 1421|       |
 1422|     36|  if (!isa<MCSymbolRefExpr>(BE->getLHS()))
  ------------------
  |  Branch (1422:7): [True: 24, False: 12]
  ------------------
 1423|     24|    return false;
 1424|       |
 1425|     12|  if (BE->getOpcode() != MCBinaryExpr::Add &&
  ------------------
  |  Branch (1425:7): [True: 10, False: 2]
  ------------------
 1426|     10|      BE->getOpcode() != MCBinaryExpr::Sub)
  ------------------
  |  Branch (1426:7): [True: 5, False: 5]
  ------------------
 1427|      5|    return false;
 1428|       |
 1429|       |  // We are able to support the subtraction of two symbol references
 1430|      7|  if (BE->getOpcode() == MCBinaryExpr::Sub &&
  ------------------
  |  Branch (1430:7): [True: 5, False: 2]
  |  Branch (1430:7): [True: 1, False: 6]
  ------------------
 1431|      5|      isa<MCSymbolRefExpr>(BE->getRHS()))
  ------------------
  |  Branch (1431:7): [True: 1, False: 4]
  ------------------
 1432|      1|    return true;
 1433|       |
 1434|       |  // See if the addend is a constant, otherwise there's more going
 1435|       |  // on here than we can deal with.
 1436|      6|  auto AddendExpr = dyn_cast<MCConstantExpr>(BE->getRHS());
 1437|      6|  if (!AddendExpr)
  ------------------
  |  Branch (1437:7): [True: 2, False: 4]
  ------------------
 1438|      2|    return false;
 1439|       |
 1440|      4|  Addend = AddendExpr->getValue();
 1441|      4|  if (BE->getOpcode() == MCBinaryExpr::Sub)
  ------------------
  |  Branch (1441:7): [True: 3, False: 1]
  ------------------
 1442|      3|    Addend = -Addend;
 1443|       |
 1444|       |  // It's some symbol reference + a constant addend
 1445|      4|  return Kind != RISCVMCExpr::VK_RISCV_Invalid;
 1446|      6|}
_ZN7llvm_ks14RISCVAsmParser14ParseDirectiveENS_8AsmTokenE:
 1448|   521k|bool RISCVAsmParser::ParseDirective(AsmToken DirectiveID) {
 1449|       |  // This returns false if this function recognizes the directive
 1450|       |  // regardless of whether it is successfully handles or reports an
 1451|       |  // error. Otherwise it returns true to give the generic parser a
 1452|       |  // chance at recognizing it.
 1453|   521k|  StringRef IDVal = DirectiveID.getString();
 1454|       |
 1455|   521k|  if (IDVal == ".option")
  ------------------
  |  Branch (1455:7): [True: 102, False: 521k]
  ------------------
 1456|    102|    return parseDirectiveOption();
 1457|       |
 1458|   521k|  return true;
 1459|   521k|}
_ZN7llvm_ks14RISCVAsmParser20parseDirectiveOptionEv:
 1461|    102|bool RISCVAsmParser::parseDirectiveOption() {
 1462|    102|  MCAsmParser &Parser = getParser();
 1463|       |  // Get the option token.
 1464|    102|  AsmToken Tok = Parser.getTok();
 1465|       |  // At the moment only identifiers are supported.
 1466|    102|  if (Tok.isNot(AsmToken::Identifier))
  ------------------
  |  Branch (1466:7): [True: 2, False: 100]
  ------------------
 1467|      2|    return Error(Parser.getTok().getLoc(),
 1468|      2|                 "unexpected token, expected identifier");
 1469|       |
 1470|    100|  StringRef Option = Tok.getIdentifier();
 1471|       |
 1472|    100|  if (Option == "push") {
  ------------------
  |  Branch (1472:7): [True: 0, False: 100]
  ------------------
 1473|      0|    getTargetStreamer().emitDirectiveOptionPush();
 1474|       |
 1475|      0|    Parser.Lex();
 1476|      0|    if (Parser.getTok().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1476:9): [True: 0, False: 0]
  ------------------
 1477|      0|      return Error(Parser.getTok().getLoc(),
 1478|      0|                   "unexpected token, expected end of statement");
 1479|       |
 1480|      0|    pushFeatureBits();
 1481|      0|    return false;
 1482|      0|  }
 1483|       |
 1484|    100|  if (Option == "pop") {
  ------------------
  |  Branch (1484:7): [True: 0, False: 100]
  ------------------
 1485|      0|    SMLoc StartLoc = Parser.getTok().getLoc();
 1486|      0|    getTargetStreamer().emitDirectiveOptionPop();
 1487|       |
 1488|      0|    Parser.Lex();
 1489|      0|    if (Parser.getTok().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1489:9): [True: 0, False: 0]
  ------------------
 1490|      0|      return Error(Parser.getTok().getLoc(),
 1491|      0|                   "unexpected token, expected end of statement");
 1492|       |
 1493|      0|    if (popFeatureBits())
  ------------------
  |  Branch (1493:9): [True: 0, False: 0]
  ------------------
 1494|      0|      return Error(StartLoc, ".option pop with no .option push");
 1495|       |
 1496|      0|    return false;
 1497|      0|  }
 1498|       |
 1499|    100|  if (Option == "rvc") {
  ------------------
  |  Branch (1499:7): [True: 0, False: 100]
  ------------------
 1500|      0|    getTargetStreamer().emitDirectiveOptionRVC();
 1501|       |
 1502|      0|    Parser.Lex();
 1503|      0|    if (Parser.getTok().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1503:9): [True: 0, False: 0]
  ------------------
 1504|      0|      return Error(Parser.getTok().getLoc(),
 1505|      0|                   "unexpected token, expected end of statement");
 1506|       |
 1507|      0|    setFeatureBits(RISCV::FeatureStdExtC, "c");
 1508|      0|    return false;
 1509|      0|  }
 1510|       |
 1511|    100|  if (Option == "norvc") {
  ------------------
  |  Branch (1511:7): [True: 0, False: 100]
  ------------------
 1512|      0|    getTargetStreamer().emitDirectiveOptionNoRVC();
 1513|       |
 1514|      0|    Parser.Lex();
 1515|      0|    if (Parser.getTok().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1515:9): [True: 0, False: 0]
  ------------------
 1516|      0|      return Error(Parser.getTok().getLoc(),
 1517|      0|                   "unexpected token, expected end of statement");
 1518|       |
 1519|      0|    clearFeatureBits(RISCV::FeatureStdExtC, "c");
 1520|      0|    return false;
 1521|      0|  }
 1522|       |
 1523|    100|  if (Option == "relax") {
  ------------------
  |  Branch (1523:7): [True: 0, False: 100]
  ------------------
 1524|      0|    getTargetStreamer().emitDirectiveOptionRelax();
 1525|       |
 1526|      0|    Parser.Lex();
 1527|      0|    if (Parser.getTok().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1527:9): [True: 0, False: 0]
  ------------------
 1528|      0|      return Error(Parser.getTok().getLoc(),
 1529|      0|                   "unexpected token, expected end of statement");
 1530|       |
 1531|      0|    setFeatureBits(RISCV::FeatureRelax, "relax");
 1532|      0|    return false;
 1533|      0|  }
 1534|       |
 1535|    100|  if (Option == "norelax") {
  ------------------
  |  Branch (1535:7): [True: 0, False: 100]
  ------------------
 1536|      0|    getTargetStreamer().emitDirectiveOptionNoRelax();
 1537|       |
 1538|      0|    Parser.Lex();
 1539|      0|    if (Parser.getTok().isNot(AsmToken::EndOfStatement))
  ------------------
  |  Branch (1539:9): [True: 0, False: 0]
  ------------------
 1540|      0|      return Error(Parser.getTok().getLoc(),
 1541|      0|                   "unexpected token, expected end of statement");
 1542|       |
 1543|      0|    clearFeatureBits(RISCV::FeatureRelax, "relax");
 1544|      0|    return false;
 1545|      0|  }
 1546|       |
 1547|       |  // Unknown option.
 1548|    100|  Warning(Parser.getTok().getLoc(),
 1549|    100|          "unknown option, expected 'push', 'pop', 'rvc', 'norvc', 'relax' or "
 1550|    100|          "'norelax'");
 1551|    100|  Parser.eatToEndOfStatement();
 1552|    100|  return false;
 1553|    100|}
_ZN7llvm_ks14RISCVAsmParser14emitToStreamerERNS_10MCStreamerERNS_6MCInstE:
 1555|  1.21k|void RISCVAsmParser::emitToStreamer(MCStreamer &S, MCInst &Inst) {
 1556|  1.21k|  MCInst CInst;
 1557|  1.21k|  bool Res = compressInst(CInst, Inst, getSTI(), S.getContext());
 1558|  1.21k|  CInst.setLoc(Inst.getLoc());
 1559|  1.21k|  unsigned int ErrorCode = 0;
 1560|  1.21k|  S.EmitInstruction((Res ? CInst : Inst), getSTI(),ErrorCode);
  ------------------
  |  Branch (1560:22): [True: 963, False: 255]
  ------------------
 1561|  1.21k|}
_ZN7llvm_ks14RISCVAsmParser17emitAuipcInstPairENS_9MCOperandES1_PKNS_6MCExprENS_11RISCVMCExpr11VariantKindEjNS_5SMLocERNS_10MCStreamerE:
 1588|      1|                                       MCStreamer &Out) {
 1589|       |  // A pair of instructions for PC-relative addressing; expands to
 1590|       |  //   TmpLabel: AUIPC TmpReg, VKHi(symbol)
 1591|       |  //             OP DestReg, TmpReg, %pcrel_lo(TmpLabel)
 1592|      1|  MCContext &Ctx = getContext();
 1593|       |
 1594|      1|  MCSymbol *TmpLabel = Ctx.createTempSymbol(
 1595|      1|      "pcrel_hi", /* AlwaysAddSuffix */ true, /* CanBeUnnamed */ false);
 1596|      1|  Out.EmitLabel(TmpLabel);
 1597|       |
 1598|      1|  const RISCVMCExpr *SymbolHi = RISCVMCExpr::create(Symbol, VKHi, Ctx);
 1599|      1|  emitToStreamer(
 1600|      1|      Out, MCInstBuilder(RISCV::AUIPC).addOperand(TmpReg).addExpr(SymbolHi));
 1601|       |
 1602|      1|  const MCExpr *RefToLinkTmpLabel =
 1603|      1|      RISCVMCExpr::create(MCSymbolRefExpr::create(TmpLabel, Ctx),
 1604|      1|                          RISCVMCExpr::VK_RISCV_PCREL_LO, Ctx);
 1605|       |
 1606|      1|  emitToStreamer(Out, MCInstBuilder(SecondOpcode)
 1607|      1|                          .addOperand(DestReg)
 1608|      1|                          .addOperand(TmpReg)
 1609|      1|                          .addExpr(RefToLinkTmpLabel));
 1610|      1|}
_ZN7llvm_ks14RISCVAsmParser19emitLoadStoreSymbolERNS_6MCInstEjNS_5SMLocERNS_10MCStreamerEb:
 1683|      1|                                         bool HasTmpReg) {
 1684|       |  // The load/store pseudo-instruction does a pc-relative load with
 1685|       |  // a symbol.
 1686|       |  //
 1687|       |  // The expansion looks like this
 1688|       |  //
 1689|       |  //   TmpLabel: AUIPC tmp, %pcrel_hi(symbol)
 1690|       |  //             [S|L]X    rd, %pcrel_lo(TmpLabel)(tmp)
 1691|      1|  MCOperand DestReg = Inst.getOperand(0);
 1692|      1|  unsigned SymbolOpIdx = HasTmpReg ? 2 : 1;
  ------------------
  |  Branch (1692:26): [True: 0, False: 1]
  ------------------
 1693|      1|  unsigned TmpRegOpIdx = HasTmpReg ? 1 : 0;
  ------------------
  |  Branch (1693:26): [True: 0, False: 1]
  ------------------
 1694|      1|  MCOperand TmpReg = Inst.getOperand(TmpRegOpIdx);
 1695|      1|  const MCExpr *Symbol = Inst.getOperand(SymbolOpIdx).getExpr();
 1696|      1|  emitAuipcInstPair(DestReg, TmpReg, Symbol, RISCVMCExpr::VK_RISCV_PCREL_HI,
 1697|      1|                    Opcode, IDLoc, Out);
 1698|      1|}
_ZN7llvm_ks14RISCVAsmParser18processInstructionERNS_6MCInstENS_5SMLocERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS5_14default_deleteIS7_EEEEEERNS_10MCStreamerE:
 1715|  1.21k|                                        MCStreamer &Out) {
 1716|  1.21k|  Inst.setLoc(IDLoc);
 1717|       |
 1718|  1.21k|  switch (Inst.getOpcode()) {
 1719|  1.21k|  default:
  ------------------
  |  Branch (1719:3): [True: 1.21k, False: 1]
  ------------------
 1720|  1.21k|    break;
 1721|  1.21k|  case RISCV::PseudoLI: {
  ------------------
  |  Branch (1721:3): [True: 0, False: 1.21k]
  ------------------
 1722|      0|    unsigned Reg = Inst.getOperand(0).getReg();
 1723|      0|    const MCOperand &Op1 = Inst.getOperand(1);
 1724|      0|    if (Op1.isExpr()) {
  ------------------
  |  Branch (1724:9): [True: 0, False: 0]
  ------------------
 1725|       |      // We must have li reg, %lo(sym) or li reg, %pcrel_lo(sym) or similar.
 1726|       |      // Just convert to an addi. This allows compatibility with gas.
 1727|      0|      emitToStreamer(Out, MCInstBuilder(RISCV::ADDI)
 1728|      0|                              .addReg(Reg)
 1729|      0|                              .addReg(RISCV::X0)
 1730|      0|                              .addExpr(Op1.getExpr()));
 1731|      0|      return false;
 1732|      0|    }
 1733|      0|    int64_t Imm = Inst.getOperand(1).getImm();
 1734|       |    // On RV32 the immediate here can either be a signed or an unsigned
 1735|       |    // 32-bit number. Sign extension has to be performed to ensure that Imm
 1736|       |    // represents the expected signed 64-bit number.
 1737|      0|    if (!isRV64())
  ------------------
  |  Branch (1737:9): [True: 0, False: 0]
  ------------------
 1738|      0|      Imm = SignExtend64<32>(Imm);
 1739|      0|    emitLoadImm(Reg, Imm, Out);
 1740|      0|    return false;
 1741|      0|  }
 1742|      0|  case RISCV::PseudoLLA:
  ------------------
  |  Branch (1742:3): [True: 0, False: 1.21k]
  ------------------
 1743|      0|    emitLoadLocalAddress(Inst, IDLoc, Out);
 1744|      0|    return false;
 1745|      0|  case RISCV::PseudoLA:
  ------------------
  |  Branch (1745:3): [True: 0, False: 1.21k]
  ------------------
 1746|      0|    emitLoadAddress(Inst, IDLoc, Out);
 1747|      0|    return false;
 1748|      0|  case RISCV::PseudoLA_TLS_IE:
  ------------------
  |  Branch (1748:3): [True: 0, False: 1.21k]
  ------------------
 1749|      0|    emitLoadTLSIEAddress(Inst, IDLoc, Out);
 1750|      0|    return false;
 1751|      0|  case RISCV::PseudoLA_TLS_GD:
  ------------------
  |  Branch (1751:3): [True: 0, False: 1.21k]
  ------------------
 1752|      0|    emitLoadTLSGDAddress(Inst, IDLoc, Out);
 1753|      0|    return false;
 1754|      0|  case RISCV::PseudoLB:
  ------------------
  |  Branch (1754:3): [True: 0, False: 1.21k]
  ------------------
 1755|      0|    emitLoadStoreSymbol(Inst, RISCV::LB, IDLoc, Out, /*HasTmpReg=*/false);
 1756|      0|    return false;
 1757|      0|  case RISCV::PseudoLBU:
  ------------------
  |  Branch (1757:3): [True: 0, False: 1.21k]
  ------------------
 1758|      0|    emitLoadStoreSymbol(Inst, RISCV::LBU, IDLoc, Out, /*HasTmpReg=*/false);
 1759|      0|    return false;
 1760|      1|  case RISCV::PseudoLH:
  ------------------
  |  Branch (1760:3): [True: 1, False: 1.21k]
  ------------------
 1761|      1|    emitLoadStoreSymbol(Inst, RISCV::LH, IDLoc, Out, /*HasTmpReg=*/false);
 1762|      1|    return false;
 1763|      0|  case RISCV::PseudoLHU:
  ------------------
  |  Branch (1763:3): [True: 0, False: 1.21k]
  ------------------
 1764|      0|    emitLoadStoreSymbol(Inst, RISCV::LHU, IDLoc, Out, /*HasTmpReg=*/false);
 1765|      0|    return false;
 1766|      0|  case RISCV::PseudoLW:
  ------------------
  |  Branch (1766:3): [True: 0, False: 1.21k]
  ------------------
 1767|      0|    emitLoadStoreSymbol(Inst, RISCV::LW, IDLoc, Out, /*HasTmpReg=*/false);
 1768|      0|    return false;
 1769|      0|  case RISCV::PseudoLWU:
  ------------------
  |  Branch (1769:3): [True: 0, False: 1.21k]
  ------------------
 1770|      0|    emitLoadStoreSymbol(Inst, RISCV::LWU, IDLoc, Out, /*HasTmpReg=*/false);
 1771|      0|    return false;
 1772|      0|  case RISCV::PseudoLD:
  ------------------
  |  Branch (1772:3): [True: 0, False: 1.21k]
  ------------------
 1773|      0|    emitLoadStoreSymbol(Inst, RISCV::LD, IDLoc, Out, /*HasTmpReg=*/false);
 1774|      0|    return false;
 1775|      0|  case RISCV::PseudoFLW:
  ------------------
  |  Branch (1775:3): [True: 0, False: 1.21k]
  ------------------
 1776|      0|    emitLoadStoreSymbol(Inst, RISCV::FLW, IDLoc, Out, /*HasTmpReg=*/true);
 1777|      0|    return false;
 1778|      0|  case RISCV::PseudoFLD:
  ------------------
  |  Branch (1778:3): [True: 0, False: 1.21k]
  ------------------
 1779|      0|    emitLoadStoreSymbol(Inst, RISCV::FLD, IDLoc, Out, /*HasTmpReg=*/true);
 1780|      0|    return false;
 1781|      0|  case RISCV::PseudoSB:
  ------------------
  |  Branch (1781:3): [True: 0, False: 1.21k]
  ------------------
 1782|      0|    emitLoadStoreSymbol(Inst, RISCV::SB, IDLoc, Out, /*HasTmpReg=*/true);
 1783|      0|    return false;
 1784|      0|  case RISCV::PseudoSH:
  ------------------
  |  Branch (1784:3): [True: 0, False: 1.21k]
  ------------------
 1785|      0|    emitLoadStoreSymbol(Inst, RISCV::SH, IDLoc, Out, /*HasTmpReg=*/true);
 1786|      0|    return false;
 1787|      0|  case RISCV::PseudoSW:
  ------------------
  |  Branch (1787:3): [True: 0, False: 1.21k]
  ------------------
 1788|      0|    emitLoadStoreSymbol(Inst, RISCV::SW, IDLoc, Out, /*HasTmpReg=*/true);
 1789|      0|    return false;
 1790|      0|  case RISCV::PseudoSD:
  ------------------
  |  Branch (1790:3): [True: 0, False: 1.21k]
  ------------------
 1791|      0|    emitLoadStoreSymbol(Inst, RISCV::SD, IDLoc, Out, /*HasTmpReg=*/true);
 1792|      0|    return false;
 1793|      0|  case RISCV::PseudoFSW:
  ------------------
  |  Branch (1793:3): [True: 0, False: 1.21k]
  ------------------
 1794|      0|    emitLoadStoreSymbol(Inst, RISCV::FSW, IDLoc, Out, /*HasTmpReg=*/true);
 1795|      0|    return false;
 1796|      0|  case RISCV::PseudoFSD:
  ------------------
  |  Branch (1796:3): [True: 0, False: 1.21k]
  ------------------
 1797|      0|    emitLoadStoreSymbol(Inst, RISCV::FSD, IDLoc, Out, /*HasTmpReg=*/true);
 1798|      0|    return false;
 1799|      0|  case RISCV::PseudoAddTPRel:
  ------------------
  |  Branch (1799:3): [True: 0, False: 1.21k]
  ------------------
 1800|      0|    if (checkPseudoAddTPRel(Inst, Operands))
  ------------------
  |  Branch (1800:9): [True: 0, False: 0]
  ------------------
 1801|      0|      return true;
 1802|      0|    break;
 1803|  1.21k|  }
 1804|       |
 1805|  1.21k|  emitToStreamer(Out, Inst);
 1806|  1.21k|  return false;
 1807|  1.21k|}
LLVMInitializeRISCVAsmParser:
 1809|      1|extern "C" void LLVMInitializeRISCVAsmParser() {
 1810|      1|  RegisterMCAsmParser<RISCVAsmParser> X(TheRISCV32Target);
 1811|      1|  RegisterMCAsmParser<RISCVAsmParser> Y(TheRISCV64Target);
 1812|      1|}
_ZNK7llvm_ks12RISCVOperand14addRegOperandsERNS_6MCInstEj:
  682|    337|  void addRegOperands(MCInst &Inst, unsigned N) const {
  683|    337|    assert(N == 1 && "Invalid number of operands!");
  ------------------
  |  Branch (683:5): [True: 337, False: 0]
  |  Branch (683:5): [True: 337, Folded]
  |  Branch (683:5): [True: 337, False: 0]
  ------------------
  684|    337|    Inst.addOperand(MCOperand::createReg(getReg()));
  685|    337|  }
_ZNK7llvm_ks12RISCVOperand14addImmOperandsERNS_6MCInstEj:
  687|    860|  void addImmOperands(MCInst &Inst, unsigned N) const {
  688|    860|    assert(N == 1 && "Invalid number of operands!");
  ------------------
  |  Branch (688:5): [True: 860, False: 0]
  |  Branch (688:5): [True: 860, Folded]
  |  Branch (688:5): [True: 860, False: 0]
  ------------------
  689|    860|    addExpr(Inst, getImm());
  690|    860|  }
_ZNK7llvm_ks12RISCVOperand7addExprERNS_6MCInstEPKNS_6MCExprE:
  669|    860|  void addExpr(MCInst &Inst, const MCExpr *Expr) const {
  670|    860|    assert(Expr && "Expr shouldn't be null!");
  ------------------
  |  Branch (670:5): [True: 860, False: 0]
  |  Branch (670:5): [True: 860, Folded]
  |  Branch (670:5): [True: 860, False: 0]
  ------------------
  671|    860|    int64_t Imm = 0;
  672|    860|    RISCVMCExpr::VariantKind VK;
  673|    860|    bool IsConstant = evaluateConstantImm(Expr, Imm, VK);
  674|       |
  675|    860|    if (IsConstant)
  ------------------
  |  Branch (675:9): [True: 525, False: 335]
  ------------------
  676|    525|      Inst.addOperand(MCOperand::createImm(Imm));
  677|    335|    else
  678|    335|      Inst.addOperand(MCOperand::createExpr(Expr));
  679|    860|  }
_ZN7llvm_ks12RISCVOperand19evaluateConstantImmEPKNS_6MCExprERlRNS_11RISCVMCExpr11VariantKindE:
  265|  1.90k|                                  RISCVMCExpr::VariantKind &VK) {
  266|  1.90k|    if (auto *RE = dyn_cast<RISCVMCExpr>(Expr)) {
  ------------------
  |  Branch (266:15): [True: 16, False: 1.88k]
  ------------------
  267|     16|      VK = RE->getKind();
  268|     16|      return RE->evaluateAsConstant(Imm);
  269|     16|    }
  270|       |
  271|  1.88k|    if (auto CE = dyn_cast<MCConstantExpr>(Expr)) {
  ------------------
  |  Branch (271:14): [True: 1.17k, False: 715]
  ------------------
  272|  1.17k|      VK = RISCVMCExpr::VK_RISCV_None;
  273|  1.17k|      Imm = CE->getValue();
  274|  1.17k|      return true;
  275|  1.17k|    }
  276|       |
  277|    715|    return false;
  278|  1.88k|  }
_ZNK7llvm_ks12RISCVOperand6getImmEv:
  600|  2.29k|  const MCExpr *getImm() const {
  601|  2.29k|    assert(Kind == Immediate && "Invalid type access!");
  ------------------
  |  Branch (601:5): [True: 2.29k, False: 0]
  |  Branch (601:5): [True: 2.29k, Folded]
  |  Branch (601:5): [True: 2.29k, False: 0]
  ------------------
  602|  2.29k|    return Imm.Val;
  603|  2.29k|  }
_ZNK7llvm_ks12RISCVOperand28addCSRSystemRegisterOperandsERNS_6MCInstEj:
  711|      3|  void addCSRSystemRegisterOperands(MCInst &Inst, unsigned N) const {
  712|      3|    assert(N == 1 && "Invalid number of operands!");
  ------------------
  |  Branch (712:5): [True: 3, False: 0]
  |  Branch (712:5): [True: 3, Folded]
  |  Branch (712:5): [True: 3, False: 0]
  ------------------
  713|      3|    Inst.addOperand(MCOperand::createImm(SysReg.Encoding));
  714|      3|  }
_ZNK7llvm_ks12RISCVOperand8getTokenEv:
  605|  3.23k|  StringRef getToken() const {
  606|  3.23k|    assert(Kind == Token && "Invalid type access!");
  ------------------
  |  Branch (606:5): [True: 3.23k, False: 0]
  |  Branch (606:5): [True: 3.23k, Folded]
  |  Branch (606:5): [True: 3.23k, False: 0]
  ------------------
  607|  3.23k|    return Tok;
  608|  3.23k|  }
_ZNK7llvm_ks12RISCVOperand12isBareSymbolEv:
  298|      8|  bool isBareSymbol() const {
  299|      8|    int64_t Imm;
  300|      8|    RISCVMCExpr::VariantKind VK;
  301|       |    // Must be of 'immediate' type but not a constant.
  302|      8|    if (!isImm() || evaluateConstantImm(getImm(), Imm, VK))
  ------------------
  |  Branch (302:9): [True: 1, False: 7]
  |  Branch (302:21): [True: 1, False: 6]
  ------------------
  303|      2|      return false;
  304|      6|    return RISCVAsmParser::classifySymbolRef(getImm(), VK, Imm) &&
  ------------------
  |  Branch (304:12): [True: 3, False: 3]
  ------------------
  305|      3|           VK == RISCVMCExpr::VK_RISCV_None;
  ------------------
  |  Branch (305:12): [True: 3, False: 0]
  ------------------
  306|      8|  }
_ZNK7llvm_ks12RISCVOperand19isCSRSystemRegisterEv:
  329|     14|  bool isCSRSystemRegister() const { return isSystemRegister(); }
_ZNK7llvm_ks12RISCVOperand16isSystemRegisterEv:
  262|     14|  bool isSystemRegister() const { return Kind == SystemRegister; }
_ZNK7llvm_ks12RISCVOperand12isCallSymbolEv:
  308|     16|  bool isCallSymbol() const {
  309|     16|    int64_t Imm;
  310|     16|    RISCVMCExpr::VariantKind VK;
  311|       |    // Must be of 'immediate' type but not a constant.
  312|     16|    if (!isImm() || evaluateConstantImm(getImm(), Imm, VK))
  ------------------
  |  Branch (312:9): [True: 1, False: 15]
  |  Branch (312:21): [True: 1, False: 14]
  ------------------
  313|      2|      return false;
  314|     14|    return RISCVAsmParser::classifySymbolRef(getImm(), VK, Imm) &&
  ------------------
  |  Branch (314:12): [True: 13, False: 1]
  ------------------
  315|     13|           (VK == RISCVMCExpr::VK_RISCV_CALL ||
  ------------------
  |  Branch (315:13): [True: 8, False: 5]
  ------------------
  316|      5|            VK == RISCVMCExpr::VK_RISCV_CALL_PLT);
  ------------------
  |  Branch (316:13): [True: 0, False: 5]
  ------------------
  317|     16|  }
_ZNK7llvm_ks12RISCVOperand10isFenceArgEv:
  333|      2|  bool isFenceArg() const {
  334|      2|    if (!isImm())
  ------------------
  |  Branch (334:9): [True: 0, False: 2]
  ------------------
  335|      0|      return false;
  336|      2|    const MCExpr *Val = getImm();
  337|      2|    auto *SVal = dyn_cast<MCSymbolRefExpr>(Val);
  338|      2|    if (!SVal || SVal->getKind() != MCSymbolRefExpr::VK_None)
  ------------------
  |  Branch (338:9): [True: 1, False: 1]
  |  Branch (338:18): [True: 0, False: 1]
  ------------------
  339|      1|      return false;
  340|       |
  341|      1|    StringRef Str = SVal->getSymbol().getName();
  342|       |    // Letters must be unique, taken from 'iorw', and in ascending order. This
  343|       |    // holds as long as each individual character is one of 'iorw' and is
  344|       |    // greater than the previous character.
  345|      1|    char Prev = '\0';
  346|      1|    for (char c : Str) {
  ------------------
  |  Branch (346:17): [True: 1, False: 0]
  ------------------
  347|      1|      if (c != 'i' && c != 'o' && c != 'r' && c != 'w')
  ------------------
  |  Branch (347:11): [True: 1, False: 0]
  |  Branch (347:23): [True: 1, False: 0]
  |  Branch (347:35): [True: 1, False: 0]
  |  Branch (347:47): [True: 1, False: 0]
  ------------------
  348|      1|        return false;
  349|      0|      if (c <= Prev)
  ------------------
  |  Branch (349:11): [True: 0, False: 0]
  ------------------
  350|      0|        return false;
  351|      0|      Prev = c;
  352|      0|    }
  353|      0|    return true;
  354|      1|  }
_ZNK7llvm_ks12RISCVOperand15isSImm21Lsb0JALEv:
  581|    808|  bool isSImm21Lsb0JAL() const { return isBareSimmNLsb0<21>(); }
_ZNK7llvm_ks12RISCVOperand15isBareSimmNLsb0ILi21EEEbv:
  282|    808|  template <int N> bool isBareSimmNLsb0() const {
  283|    808|    int64_t Imm;
  284|    808|    RISCVMCExpr::VariantKind VK;
  285|    808|    if (!isImm())
  ------------------
  |  Branch (285:9): [True: 1, False: 807]
  ------------------
  286|      1|      return false;
  287|    807|    bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
  288|    807|    bool IsValid;
  289|    807|    if (!IsConstantImm)
  ------------------
  |  Branch (289:9): [True: 360, False: 447]
  ------------------
  290|    360|      IsValid = RISCVAsmParser::classifySymbolRef(getImm(), VK, Imm);
  291|    447|    else
  292|    447|      IsValid = isShiftedInt<N - 1, 1>(Imm);
  293|    807|    return IsValid && VK == RISCVMCExpr::VK_RISCV_None;
  ------------------
  |  Branch (293:12): [True: 696, False: 111]
  |  Branch (293:23): [True: 696, False: 0]
  ------------------
  294|    808|  }
_ZNK7llvm_ks12RISCVOperand7isUImm5Ev:
  408|      6|  bool isUImm5() const {
  409|      6|    int64_t Imm;
  410|      6|    RISCVMCExpr::VariantKind VK;
  411|      6|    if (!isImm())
  ------------------
  |  Branch (411:9): [True: 0, False: 6]
  ------------------
  412|      0|      return false;
  413|      6|    bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
  414|      6|    return IsConstantImm && isUInt<5>(Imm) && VK == RISCVMCExpr::VK_RISCV_None;
  ------------------
  |  Branch (414:12): [True: 5, False: 1]
  |  Branch (414:29): [True: 3, False: 2]
  |  Branch (414:47): [True: 3, False: 0]
  ------------------
  415|      6|  }
_ZNK7llvm_ks12RISCVOperand8isSImm12Ev:
  510|    206|  bool isSImm12() const {
  511|    206|    RISCVMCExpr::VariantKind VK;
  512|    206|    int64_t Imm;
  513|    206|    bool IsValid;
  514|    206|    if (!isImm())
  ------------------
  |  Branch (514:9): [True: 3, False: 203]
  ------------------
  515|      3|      return false;
  516|    203|    bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
  517|    203|    if (!IsConstantImm)
  ------------------
  |  Branch (517:9): [True: 14, False: 189]
  ------------------
  518|     14|      IsValid = RISCVAsmParser::classifySymbolRef(getImm(), VK, Imm);
  519|    189|    else
  520|    189|      IsValid = isInt<12>(Imm);
  521|    203|    return IsValid && ((IsConstantImm && VK == RISCVMCExpr::VK_RISCV_None) ||
  ------------------
  |  Branch (521:12): [True: 165, False: 38]
  |  Branch (521:25): [True: 156, False: 9]
  |  Branch (521:42): [True: 156, False: 0]
  ------------------
  522|      9|                       VK == RISCVMCExpr::VK_RISCV_LO ||
  ------------------
  |  Branch (522:24): [True: 0, False: 9]
  ------------------
  523|      9|                       VK == RISCVMCExpr::VK_RISCV_PCREL_LO ||
  ------------------
  |  Branch (523:24): [True: 0, False: 9]
  ------------------
  524|      9|                       VK == RISCVMCExpr::VK_RISCV_TPREL_LO);
  ------------------
  |  Branch (524:24): [True: 0, False: 9]
  ------------------
  525|    206|  }
_ZNK7llvm_ks12RISCVOperand12isSImm12Lsb0Ev:
  527|      4|  bool isSImm12Lsb0() const { return isBareSimmNLsb0<12>(); }
_ZNK7llvm_ks12RISCVOperand15isBareSimmNLsb0ILi12EEEbv:
  282|      4|  template <int N> bool isBareSimmNLsb0() const {
  283|      4|    int64_t Imm;
  284|      4|    RISCVMCExpr::VariantKind VK;
  285|      4|    if (!isImm())
  ------------------
  |  Branch (285:9): [True: 0, False: 4]
  ------------------
  286|      0|      return false;
  287|      4|    bool IsConstantImm = evaluateConstantImm(getImm(), Imm, VK);
  288|      4|    bool IsValid;
  289|      4|    if (!IsConstantImm)
  ------------------
  |  Branch (289:9): [True: 1, False: 3]
  ------------------
  290|      1|      IsValid = RISCVAsmParser::classifySymbolRef(getImm(), VK, Imm);
  291|      3|    else
  292|      3|      IsValid = isShiftedInt<N - 1, 1>(Imm);
  293|      4|    return IsValid && VK == RISCVMCExpr::VK_RISCV_None;
  ------------------
  |  Branch (293:12): [True: 1, False: 3]
  |  Branch (293:23): [True: 1, False: 0]
  ------------------
  294|      4|  }
_ZNK7llvm_ks14RISCVAsmParser6isRV64Ev:
   54|  29.4k|  bool isRV64() const { return getSTI().hasFeature(RISCV::Feature64Bit); }
RISCVAsmParser.cpp:_ZL23matchRegisterNameHelperbRjN7llvm_ks9StringRefE:
  987|  14.3k|                                    StringRef Name) {
  988|  14.3k|  RegNo = MatchRegisterName(Name);
  989|  14.3k|  if (RegNo == 0)
  ------------------
  |  Branch (989:7): [True: 13.7k, False: 536]
  ------------------
  990|  13.7k|    RegNo = MatchRegisterAltName(Name);
  991|  14.3k|  if (IsRV32E && RegNo >= RISCV::X16 && RegNo <= RISCV::X31)
  ------------------
  |  Branch (991:7): [True: 0, False: 14.3k]
  |  Branch (991:18): [True: 0, False: 0]
  |  Branch (991:41): [True: 0, False: 0]
  ------------------
  992|      0|    RegNo = 0;
  993|  14.3k|  return RegNo == 0;
  994|  14.3k|}
_ZNK7llvm_ks14RISCVAsmParser7isRV32EEv:
   55|  14.3k|  bool isRV32E() const { return getSTI().hasFeature(RISCV::FeatureRV32E); }
_ZNK7llvm_ks14RISCVAsmParser6getLocEv:
   52|  54.3k|  SMLoc getLoc() const { return getParser().getTok().getLoc(); }
_ZN7llvm_ks12RISCVOperand11createTokenENS_9StringRefENS_5SMLocEb:
  629|  10.7k|                                                   bool IsRV64) {
  630|  10.7k|    auto Op = make_unique<RISCVOperand>(Token);
  631|  10.7k|    Op->Tok = Str;
  632|  10.7k|    Op->StartLoc = S;
  633|  10.7k|    Op->EndLoc = S;
  634|  10.7k|    Op->IsRV64 = IsRV64;
  635|  10.7k|    return Op;
  636|  10.7k|  }
_ZN7llvm_ks12RISCVOperandC2ENS0_6KindTyE:
  234|  29.4k|  RISCVOperand(KindTy K) : MCParsedAsmOperand(), Kind(K) {}
_ZNK7llvm_ks12RISCVOperand7isTokenEv:
  258|  2.42k|  bool isToken() const override { return Kind == Token; }
_ZNK7llvm_ks12RISCVOperand5isImmEv:
  260|  1.05k|  bool isImm() const override { return Kind == Immediate; }
_ZNK7llvm_ks12RISCVOperand5isRegEv:
  259|  1.94k|  bool isReg() const override { return Kind == Register; }
_ZNK7llvm_ks12RISCVOperand6getRegEv:
  590|  1.36k|  unsigned getReg() const override {
  591|  1.36k|    assert(Kind == Register && "Invalid type access!");
  ------------------
  |  Branch (591:5): [True: 1.36k, False: 0]
  |  Branch (591:5): [True: 1.36k, Folded]
  |  Branch (591:5): [True: 1.36k, False: 0]
  ------------------
  592|  1.36k|    return Reg.RegNum;
  593|  1.36k|  }
_ZNK7llvm_ks12RISCVOperand11getStartLocEv:
  584|    353|  SMLoc getStartLoc() const override { return StartLoc; }
_ZN7llvm_ks12RISCVOperand9createRegEjNS_5SMLocES1_b:
  639|  3.24k|                                                 SMLoc E, bool IsRV64) {
  640|  3.24k|    auto Op = make_unique<RISCVOperand>(Register);
  641|  3.24k|    Op->Reg.RegNum = RegNo;
  642|  3.24k|    Op->StartLoc = S;
  643|  3.24k|    Op->EndLoc = E;
  644|  3.24k|    Op->IsRV64 = IsRV64;
  645|  3.24k|    return Op;
  646|  3.24k|  }
_ZN7llvm_ks12RISCVOperand12createSysRegENS_9StringRefENS_5SMLocEjb:
  659|     13|  createSysReg(StringRef Str, SMLoc S, unsigned Encoding, bool IsRV64) {
  660|     13|    auto Op = make_unique<RISCVOperand>(SystemRegister);
  661|     13|    Op->SysReg.Data = Str.data();
  662|     13|    Op->SysReg.Length = Str.size();
  663|     13|    Op->SysReg.Encoding = Encoding;
  664|     13|    Op->StartLoc = S;
  665|     13|    Op->IsRV64 = IsRV64;
  666|     13|    return Op;
  667|     13|  }
_ZN7llvm_ks12RISCVOperand9createImmEPKNS_6MCExprENS_5SMLocES4_b:
  649|  15.4k|                                                 SMLoc E, bool IsRV64) {
  650|  15.4k|    auto Op = make_unique<RISCVOperand>(Immediate);
  651|  15.4k|    Op->Imm.Val = Val;
  652|  15.4k|    Op->StartLoc = S;
  653|  15.4k|    Op->EndLoc = E;
  654|  15.4k|    Op->IsRV64 = IsRV64;
  655|  15.4k|    return Op;
  656|  15.4k|  }
_ZN7llvm_ks14RISCVAsmParserC2ERKNS_15MCSubtargetInfoERNS_11MCAsmParserERKNS_11MCInstrInfoERKNS_15MCTargetOptionsE:
  188|  13.6k|      : MCTargetAsmParser(Options, STI) {
  189|  13.6k|    Parser.addAliasForDirective(".half", ".2byte");
  190|  13.6k|    Parser.addAliasForDirective(".hword", ".2byte");
  191|  13.6k|    Parser.addAliasForDirective(".word", ".4byte");
  192|  13.6k|    Parser.addAliasForDirective(".dword", ".8byte");
  193|  13.6k|    setAvailableFeaturesFB(ComputeAvailableFeaturesFB(STI.getFeatureBits()));
  194|  13.6k|  }

_ZNK7llvm_ks15RISCVAsmBackend28fixupNeedsRelaxationAdvancedERKNS_7MCFixupEbmPKNS_19MCRelaxableFragmentERKNS_11MCAsmLayoutE:
   76|     88|                                                   const MCAsmLayout &Layout) const {
   77|       |  // Return true if the symbol is actually unresolved.
   78|       |  // Resolved could be always false when shouldForceRelocation return true.
   79|       |  // ~We use !WasForced to indicate that the symbol is unresolved and not forced
   80|       |  // by shouldForceRelocation.~ - removed for backport compatibility
   81|     88|  if (!Resolved)
  ------------------
  |  Branch (81:7): [True: 0, False: 88]
  ------------------
   82|      0|    return true;
   83|       |
   84|     88|  int64_t Offset = int64_t(Value);
   85|     88|  switch ((unsigned)Fixup.getKind()) {
   86|      0|  default:
  ------------------
  |  Branch (86:3): [True: 0, False: 88]
  ------------------
   87|      0|    return false;
   88|      0|  case RISCV::fixup_riscv_rvc_branch:
  ------------------
  |  Branch (88:3): [True: 0, False: 88]
  ------------------
   89|       |    // For compressed branch instructions the immediate must be
   90|       |    // in the range [-256, 254].
   91|      0|    return Offset > 254 || Offset < -256;
  ------------------
  |  Branch (91:12): [True: 0, False: 0]
  |  Branch (91:28): [True: 0, False: 0]
  ------------------
   92|     88|  case RISCV::fixup_riscv_rvc_jump:
  ------------------
  |  Branch (92:3): [True: 88, False: 0]
  ------------------
   93|       |    // For compressed jump instructions the immediate must be
   94|       |    // in the range [-2048, 2046].
   95|     88|    return Offset > 2046 || Offset < -2048;
  ------------------
  |  Branch (95:12): [True: 0, False: 88]
  |  Branch (95:29): [True: 0, False: 88]
  ------------------
   96|     88|  }
   97|     88|}
_ZNK7llvm_ks15RISCVAsmBackend16getRelaxedOpcodeEj:
  136|  1.69k|unsigned RISCVAsmBackend::getRelaxedOpcode(unsigned Op) const {
  137|  1.69k|  switch (Op) {
  138|    541|  default:
  ------------------
  |  Branch (138:3): [True: 541, False: 1.15k]
  ------------------
  139|    541|    return Op;
  140|      0|  case RISCV::C_BEQZ:
  ------------------
  |  Branch (140:3): [True: 0, False: 1.69k]
  ------------------
  141|      0|    return RISCV::BEQ;
  142|      0|  case RISCV::C_BNEZ:
  ------------------
  |  Branch (142:3): [True: 0, False: 1.69k]
  ------------------
  143|      0|    return RISCV::BNE;
  144|  1.12k|  case RISCV::C_J:
  ------------------
  |  Branch (144:3): [True: 1.12k, False: 568]
  ------------------
  145|  1.15k|  case RISCV::C_JAL: // fall through.
  ------------------
  |  Branch (145:3): [True: 27, False: 1.66k]
  ------------------
  146|  1.15k|    return RISCV::JAL;
  147|  1.69k|  }
  148|  1.69k|}
_ZNK7llvm_ks15RISCVAsmBackend17mayNeedRelaxationERKNS_6MCInstE:
  150|  1.69k|bool RISCVAsmBackend::mayNeedRelaxation(const MCInst &Inst) const {
  151|  1.69k|  return getRelaxedOpcode(Inst.getOpcode()) != Inst.getOpcode();
  152|  1.69k|}
_ZNK7llvm_ks15RISCVAsmBackend12writeNopDataEmPNS_14MCObjectWriterE:
  154|  1.97k|bool RISCVAsmBackend::writeNopData(uint64_t Count, MCObjectWriter * OW) const {
  155|  1.97k|  bool HasStdExtC = STI.getFeatureBits()[RISCV::FeatureStdExtC];
  156|  1.97k|  unsigned MinNopLen = HasStdExtC ? 2 : 4;
  ------------------
  |  Branch (156:24): [True: 1.97k, False: 0]
  ------------------
  157|       |
  158|  1.97k|  if ((Count % MinNopLen) != 0)
  ------------------
  |  Branch (158:7): [True: 0, False: 1.97k]
  ------------------
  159|      0|    return false;
  160|       |
  161|       |  // The canonical nop on RISC-V is addi x0, x0, 0.
  162|  6.29M|  for (; Count >= 4; Count -= 4)
  ------------------
  |  Branch (162:10): [True: 6.29M, False: 1.97k]
  ------------------
  163|  6.29M|    OW->write32(0x00000013);
  164|       |
  165|       |  // The canonical nop on RVC is c.nop.
  166|  1.97k|  if (Count && HasStdExtC)
  ------------------
  |  Branch (166:7): [True: 2, False: 1.97k]
  |  Branch (166:16): [True: 2, False: 0]
  ------------------
  167|      2|    OW->write16(0x0001);
  168|       |
  169|  1.97k|  return true;
  170|  1.97k|}
_ZNK7llvm_ks15RISCVAsmBackend10applyFixupERKNS_7MCFixupEPcjmbRj:
  284|  7.04k|                          uint64_t Value, bool IsPCRel, unsigned int &KsError) const {
  285|       |
  286|  7.04k|  MCFixupKindInfo Info = getFixupKindInfo(Fixup.getKind());
  287|  7.04k|  if (!Value)
  ------------------
  |  Branch (287:7): [True: 1.98k, False: 5.06k]
  ------------------
  288|  1.98k|    return; // Doesn't change encoding.
  289|       |  // Apply any target-specific value adjustments.
  290|  5.06k|  Value = adjustFixupValue(Fixup, Value, KsError);
  291|       |
  292|       |  // Shift the value into position.
  293|  5.06k|  Value <<= Info.TargetOffset;
  294|       |
  295|  5.06k|  unsigned Offset = Fixup.getOffset();
  296|  5.06k|  unsigned NumBytes = alignTo(Info.TargetSize + Info.TargetOffset, 8) / 8;
  297|       |
  298|  5.06k|  assert(Offset + NumBytes <= DataSize && "Invalid fixup offset!");
  ------------------
  |  Branch (298:3): [True: 5.06k, False: 0]
  |  Branch (298:3): [True: 5.06k, Folded]
  |  Branch (298:3): [True: 5.06k, False: 0]
  ------------------
  299|       |
  300|       |  // For each byte of the fragment that the fixup touches, mask in the
  301|       |  // bits from the fixup value.
  302|  25.2k|  for (unsigned i = 0; i != NumBytes; ++i) {
  ------------------
  |  Branch (302:24): [True: 20.1k, False: 5.06k]
  ------------------
  303|  20.1k|    Data[Offset + i] |= uint8_t((Value >> (i * 8)) & 0xff);
  304|  20.1k|  }
  305|  5.06k|}
_ZNK7llvm_ks15RISCVAsmBackend18createObjectWriterERNS_17raw_pwrite_streamE:
  363|  13.6k|MCObjectWriter* RISCVAsmBackend::createObjectWriter(raw_pwrite_stream &OS) const {
  364|  13.6k|  uint8_t OSABI = MCELFObjectTargetWriter::getOSABI(STI.getTargetTriple().getOS());
  365|  13.6k|  return createRISCVELFObjectWriter(OS, OSABI, Is64Bit);
  366|  13.6k|}
_ZN7llvm_ks21createRISCVAsmBackendERKNS_6TargetERKNS_14MCRegisterInfoERKNS_6TripleENS_9StringRefERKNS_15MCSubtargetInfoERKNS_15MCTargetOptionsE:
  370|  13.6k|                                             const Triple &TT, StringRef CPU, const MCSubtargetInfo &STI, const MCTargetOptions &Options) {
  371|  13.6k|  return new RISCVAsmBackend(T, TT.getOS(), /*IsLittle*/ true, /*Is64Bit*/ TT.isArch64Bit(), STI, Options);
  372|  13.6k|}
RISCVAsmBackend.cpp:_ZL16adjustFixupValueRKN7llvm_ks7MCFixupEmj:
  172|  5.06k|static uint64_t adjustFixupValue(const MCFixup &Fixup, uint64_t Value, unsigned int KsError) {
  173|       |                                  
  174|  5.06k|  unsigned Kind = Fixup.getKind();
  175|  5.06k|  switch (Kind) {
  176|      0|  default:
  ------------------
  |  Branch (176:3): [True: 0, False: 5.06k]
  ------------------
  177|      0|    llvm_unreachable("Unknown fixup kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  178|      0|  case RISCV::fixup_riscv_got_hi20:
  ------------------
  |  Branch (178:3): [True: 0, False: 5.06k]
  ------------------
  179|      0|  case RISCV::fixup_riscv_tls_got_hi20:
  ------------------
  |  Branch (179:3): [True: 0, False: 5.06k]
  ------------------
  180|      0|  case RISCV::fixup_riscv_tls_gd_hi20:
  ------------------
  |  Branch (180:3): [True: 0, False: 5.06k]
  ------------------
  181|      0|    llvm_unreachable("Relocation should be unconditionally forced\n");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  182|     29|  case FK_Data_1:
  ------------------
  |  Branch (182:3): [True: 29, False: 5.03k]
  ------------------
  183|     40|  case FK_Data_2:
  ------------------
  |  Branch (183:3): [True: 11, False: 5.05k]
  ------------------
  184|  5.02k|  case FK_Data_4:
  ------------------
  |  Branch (184:3): [True: 4.98k, False: 80]
  ------------------
  185|  5.03k|  case FK_Data_8:
  ------------------
  |  Branch (185:3): [True: 15, False: 5.04k]
  ------------------
  186|  5.03k|    return Value;
  187|      0|  case RISCV::fixup_riscv_lo12_i:
  ------------------
  |  Branch (187:3): [True: 0, False: 5.06k]
  ------------------
  188|      0|  case RISCV::fixup_riscv_pcrel_lo12_i:
  ------------------
  |  Branch (188:3): [True: 0, False: 5.06k]
  ------------------
  189|      0|  case RISCV::fixup_riscv_tprel_lo12_i:
  ------------------
  |  Branch (189:3): [True: 0, False: 5.06k]
  ------------------
  190|      0|    return Value & 0xfff;
  191|      0|  case RISCV::fixup_riscv_lo12_s:
  ------------------
  |  Branch (191:3): [True: 0, False: 5.06k]
  ------------------
  192|      0|  case RISCV::fixup_riscv_pcrel_lo12_s:
  ------------------
  |  Branch (192:3): [True: 0, False: 5.06k]
  ------------------
  193|      0|  case RISCV::fixup_riscv_tprel_lo12_s:
  ------------------
  |  Branch (193:3): [True: 0, False: 5.06k]
  ------------------
  194|      0|    return (((Value >> 5) & 0x7f) << 25) | ((Value & 0x1f) << 7);
  195|      0|  case RISCV::fixup_riscv_hi20:
  ------------------
  |  Branch (195:3): [True: 0, False: 5.06k]
  ------------------
  196|      0|  case RISCV::fixup_riscv_pcrel_hi20:
  ------------------
  |  Branch (196:3): [True: 0, False: 5.06k]
  ------------------
  197|      0|  case RISCV::fixup_riscv_tprel_hi20:
  ------------------
  |  Branch (197:3): [True: 0, False: 5.06k]
  ------------------
  198|       |    // Add 1 if bit 11 is 1, to compensate for low 12 bits being negative.
  199|      0|    return ((Value + 0x800) >> 12) & 0xfffff;
  200|      0|  case RISCV::fixup_riscv_jal: {
  ------------------
  |  Branch (200:3): [True: 0, False: 5.06k]
  ------------------
  201|      0|    if (!isInt<21>(Value))
  ------------------
  |  Branch (201:9): [True: 0, False: 0]
  ------------------
  202|       |      //Ctx.reportError(Fixup.getLoc(), "fixup value out of range");
  203|       |      // FIXME: report a more specific error to keystone
  204|      0|      KsError = KS_ERR_ASM_FIXUP_INVALID;
  205|      0|      return -1;
  206|      0|    if (Value & 0x1)
  ------------------
  |  Branch (206:9): [True: 0, False: 0]
  ------------------
  207|       |      //Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned");
  208|       |      // FIXME: report a more specific error to keystone
  209|      0|      KsError = KS_ERR_ASM_FIXUP_INVALID;
  210|      0|      return -1;
  211|       |    // Need to produce imm[19|10:1|11|19:12] from the 21-bit Value.
  212|      0|    unsigned Sbit = (Value >> 20) & 0x1;
  213|      0|    unsigned Hi8 = (Value >> 12) & 0xff;
  214|      0|    unsigned Mid1 = (Value >> 11) & 0x1;
  215|      0|    unsigned Lo10 = (Value >> 1) & 0x3ff;
  216|       |    // Inst{31} = Sbit;
  217|       |    // Inst{30-21} = Lo10;
  218|       |    // Inst{20} = Mid1;
  219|       |    // Inst{19-12} = Hi8;
  220|      0|    Value = (Sbit << 19) | (Lo10 << 9) | (Mid1 << 8) | Hi8;
  221|      0|    return Value;
  222|      0|  }
  223|      0|  case RISCV::fixup_riscv_branch: {
  ------------------
  |  Branch (223:3): [True: 0, False: 5.06k]
  ------------------
  224|      0|    if (!isInt<13>(Value))
  ------------------
  |  Branch (224:9): [True: 0, False: 0]
  ------------------
  225|       |      //Ctx.reportError(Fixup.getLoc(), "fixup value out of range");
  226|      0|      KsError = KS_ERR_ASM_FIXUP_INVALID;
  227|      0|      return -1;
  228|      0|    if (Value & 0x1)
  ------------------
  |  Branch (228:9): [True: 0, False: 0]
  ------------------
  229|       |      //Ctx.reportError(Fixup.getLoc(), "fixup value must be 2-byte aligned");
  230|      0|      KsError = KS_ERR_ASM_FIXUP_INVALID;
  231|      0|      return -1;
  232|       |    // Need to extract imm[12], imm[10:5], imm[4:1], imm[11] from the 13-bit
  233|       |    // Value.
  234|      0|    unsigned Sbit = (Value >> 12) & 0x1;
  235|      0|    unsigned Hi1 = (Value >> 11) & 0x1;
  236|      0|    unsigned Mid6 = (Value >> 5) & 0x3f;
  237|      0|    unsigned Lo4 = (Value >> 1) & 0xf;
  238|       |    // Inst{31} = Sbit;
  239|       |    // Inst{30-25} = Mid6;
  240|       |    // Inst{11-8} = Lo4;
  241|       |    // Inst{7} = Hi1;
  242|      0|    Value = (Sbit << 31) | (Mid6 << 25) | (Lo4 << 8) | (Hi1 << 7);
  243|      0|    return Value;
  244|      0|  }
  245|      0|  case RISCV::fixup_riscv_call:
  ------------------
  |  Branch (245:3): [True: 0, False: 5.06k]
  ------------------
  246|      0|  case RISCV::fixup_riscv_call_plt: {
  ------------------
  |  Branch (246:3): [True: 0, False: 5.06k]
  ------------------
  247|       |    // Jalr will add UpperImm with the sign-extended 12-bit LowerImm,
  248|       |    // we need to add 0x800ULL before extract upper bits to reflect the
  249|       |    // effect of the sign extension.
  250|      0|    uint64_t UpperImm = (Value + 0x800ULL) & 0xfffff000ULL;
  251|      0|    uint64_t LowerImm = Value & 0xfffULL;
  252|      0|    return UpperImm | ((LowerImm << 20) << 32);
  253|      0|  }
  254|     25|  case RISCV::fixup_riscv_rvc_jump: {
  ------------------
  |  Branch (254:3): [True: 25, False: 5.03k]
  ------------------
  255|       |    // Need to produce offset[11|4|9:8|10|6|7|3:1|5] from the 11-bit Value.
  256|     25|    unsigned Bit11  = (Value >> 11) & 0x1;
  257|     25|    unsigned Bit4   = (Value >> 4) & 0x1;
  258|     25|    unsigned Bit9_8 = (Value >> 8) & 0x3;
  259|     25|    unsigned Bit10  = (Value >> 10) & 0x1;
  260|     25|    unsigned Bit6   = (Value >> 6) & 0x1;
  261|     25|    unsigned Bit7   = (Value >> 7) & 0x1;
  262|     25|    unsigned Bit3_1 = (Value >> 1) & 0x7;
  263|     25|    unsigned Bit5   = (Value >> 5) & 0x1;
  264|     25|    Value = (Bit11 << 10) | (Bit4 << 9) | (Bit9_8 << 7) | (Bit10 << 6) |
  265|     25|            (Bit6 << 5) | (Bit7 << 4) | (Bit3_1 << 1) | Bit5;
  266|     25|    return Value;
  267|      0|  }
  268|      0|  case RISCV::fixup_riscv_rvc_branch: {
  ------------------
  |  Branch (268:3): [True: 0, False: 5.06k]
  ------------------
  269|       |    // Need to produce offset[8|4:3], [reg 3 bit], offset[7:6|2:1|5]
  270|      0|    unsigned Bit8   = (Value >> 8) & 0x1;
  271|      0|    unsigned Bit7_6 = (Value >> 6) & 0x3;
  272|      0|    unsigned Bit5   = (Value >> 5) & 0x1;
  273|      0|    unsigned Bit4_3 = (Value >> 3) & 0x3;
  274|      0|    unsigned Bit2_1 = (Value >> 1) & 0x3;
  275|      0|    Value = (Bit8 << 12) | (Bit4_3 << 10) | (Bit7_6 << 5) | (Bit2_1 << 3) |
  276|      0|            (Bit5 << 2);
  277|      0|    return Value;
  278|      0|  }
  279|       |
  280|  5.06k|  }
  281|  5.06k|}

_ZN7llvm_ks15RISCVAsmBackend14setForceRelocsEv:
   49|  10.2k|  void setForceRelocs() { ForceRelocs = true; }
_ZN7llvm_ks15RISCVAsmBackendC2ERKNS_6TargetENS_6Triple6OSTypeEbbRKNS_15MCSubtargetInfoERKNS_15MCTargetOptionsE:
   41|  13.6k|      : MCAsmBackend(), OSType(OSType), IsLittle(IsLittle), Is64Bit(Is64Bit),STI(STI), TargetOptions(Options){
   42|  13.6k|    TargetABI = RISCVABI::computeTargetABI(
   43|  13.6k|        STI.getTargetTriple(), STI.getFeatureBits(), Options.getABIName());
   44|  13.6k|    RISCVFeatures::validate(STI.getTargetTriple(), STI.getFeatureBits());
   45|       |    
   46|  13.6k|  }
_ZNK7llvm_ks15RISCVAsmBackend16getNumFixupKindsEv:
   93|    621|  unsigned getNumFixupKinds() const override {
   94|    621|    return RISCV::NumTargetFixupKinds;
   95|    621|  }
_ZNK7llvm_ks15RISCVAsmBackend16getFixupKindInfoENS_11MCFixupKindE:
   97|  28.9k|  const MCFixupKindInfo &getFixupKindInfo(MCFixupKind Kind) const override {
   98|  28.9k|    const static MCFixupKindInfo Infos[] = {
   99|       |      // This table *must* be in the order that the fixup_* kinds are defined in
  100|       |      // RISCVFixupKinds.h.
  101|       |      //
  102|       |      // name                      offset bits  flags
  103|  28.9k|      { "fixup_riscv_hi20",         12,     20,  0 },
  104|  28.9k|      { "fixup_riscv_lo12_i",       20,     12,  0 },
  105|  28.9k|      { "fixup_riscv_lo12_s",        0,     32,  0 },
  106|  28.9k|      { "fixup_riscv_pcrel_hi20",   12,     20,  MCFixupKindInfo::FKF_IsPCRel },
  107|  28.9k|      { "fixup_riscv_pcrel_lo12_i", 20,     12,  MCFixupKindInfo::FKF_IsPCRel },
  108|  28.9k|      { "fixup_riscv_pcrel_lo12_s",  0,     32,  MCFixupKindInfo::FKF_IsPCRel },
  109|  28.9k|      { "fixup_riscv_got_hi20",     12,     20,  MCFixupKindInfo::FKF_IsPCRel },
  110|  28.9k|      { "fixup_riscv_tprel_hi20",   12,     20,  0 },
  111|  28.9k|      { "fixup_riscv_tprel_lo12_i", 20,     12,  0 },
  112|  28.9k|      { "fixup_riscv_tprel_lo12_s",  0,     32,  0 },
  113|  28.9k|      { "fixup_riscv_tprel_add",     0,      0,  0 },
  114|  28.9k|      { "fixup_riscv_tls_got_hi20", 12,     20,  MCFixupKindInfo::FKF_IsPCRel },
  115|  28.9k|      { "fixup_riscv_tls_gd_hi20",  12,     20,  MCFixupKindInfo::FKF_IsPCRel },
  116|  28.9k|      { "fixup_riscv_jal",          12,     20,  MCFixupKindInfo::FKF_IsPCRel },
  117|  28.9k|      { "fixup_riscv_branch",        0,     32,  MCFixupKindInfo::FKF_IsPCRel },
  118|  28.9k|      { "fixup_riscv_rvc_jump",      2,     11,  MCFixupKindInfo::FKF_IsPCRel },
  119|  28.9k|      { "fixup_riscv_rvc_branch",    0,     16,  MCFixupKindInfo::FKF_IsPCRel },
  120|  28.9k|      { "fixup_riscv_call",          0,     64,  MCFixupKindInfo::FKF_IsPCRel },
  121|  28.9k|      { "fixup_riscv_call_plt",      0,     64,  MCFixupKindInfo::FKF_IsPCRel },
  122|  28.9k|      { "fixup_riscv_relax",         0,      0,  0 },
  123|  28.9k|      { "fixup_riscv_align",         0,      0,  0 }
  124|  28.9k|    };
  125|  28.9k|    static_assert((array_lengthof(Infos)) == RISCV::NumTargetFixupKinds,
  126|  28.9k|                  "Not all fixup kinds added to Infos array");
  127|       |
  128|  28.9k|    if (Kind < FirstTargetFixupKind)
  ------------------
  |  Branch (128:9): [True: 28.3k, False: 621]
  ------------------
  129|  28.3k|      return MCAsmBackend::getFixupKindInfo(Kind);
  130|       |
  131|  28.9k|    assert(unsigned(Kind - FirstTargetFixupKind) < getNumFixupKinds() &&
  ------------------
  |  Branch (131:5): [True: 621, False: 0]
  |  Branch (131:5): [True: 621, Folded]
  |  Branch (131:5): [True: 621, False: 0]
  ------------------
  132|    621|           "Invalid kind!");
  133|    621|    return Infos[Kind - FirstTargetFixupKind];
  134|    621|  }
_ZNK7llvm_ks15RISCVAsmBackend12getTargetABIEv:
  146|  13.6k|  RISCVABI::ABI getTargetABI() const { return TargetABI; }

_ZN7llvm_ks26createRISCVELFObjectWriterERNS_17raw_pwrite_streamEhb:
  131|  13.6k|MCObjectWriter *llvm_ks::createRISCVELFObjectWriter(raw_pwrite_stream &OS, uint8_t OSABI, bool Is64Bit) {
  132|  13.6k|  MCELFObjectTargetWriter *MOTW = new RISCVELFObjectWriter(OSABI, Is64Bit);
  133|  13.6k|  return createELFObjectWriter(MOTW, OS, /*isLittleEndian*/ true);
  134|  13.6k|}
RISCVELFObjectWriter.cpp:_ZN12_GLOBAL__N_120RISCVELFObjectWriterC2Ehb:
   42|  13.6k|    : MCELFObjectTargetWriter(Is64Bit, OSABI, ELF::EM_RISCV,
   43|  13.6k|                              /*HasRelocationAddend*/ true) {}
RISCVELFObjectWriter.cpp:_ZNK12_GLOBAL__N_120RISCVELFObjectWriter12getRelocTypeERN7llvm_ks9MCContextERKNS1_7MCValueERKNS1_7MCFixupEb:
   50|  5.57k|                                            bool IsPCRel) const {
   51|       |  // Determine the type of the relocation
   52|  5.57k|  unsigned Kind = Fixup.getKind();
   53|  5.57k|  if (IsPCRel) {
  ------------------
  |  Branch (53:7): [True: 809, False: 4.76k]
  ------------------
   54|    809|    switch (Kind) {
   55|      0|    default:
  ------------------
  |  Branch (55:5): [True: 0, False: 809]
  ------------------
   56|      0|      llvm_unreachable("invalid fixup kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
   57|    809|    case FK_Data_4:
  ------------------
  |  Branch (57:5): [True: 809, False: 0]
  ------------------
   58|    809|    case FK_PCRel_4:
  ------------------
  |  Branch (58:5): [True: 0, False: 809]
  ------------------
   59|    809|      return ELF::R_RISCV_32_PCREL;
   60|      0|    case RISCV::fixup_riscv_pcrel_hi20:
  ------------------
  |  Branch (60:5): [True: 0, False: 809]
  ------------------
   61|      0|      return ELF::R_RISCV_PCREL_HI20;
   62|      0|    case RISCV::fixup_riscv_pcrel_lo12_i:
  ------------------
  |  Branch (62:5): [True: 0, False: 809]
  ------------------
   63|      0|      return ELF::R_RISCV_PCREL_LO12_I;
   64|      0|    case RISCV::fixup_riscv_pcrel_lo12_s:
  ------------------
  |  Branch (64:5): [True: 0, False: 809]
  ------------------
   65|      0|      return ELF::R_RISCV_PCREL_LO12_S;
   66|      0|    case RISCV::fixup_riscv_got_hi20:
  ------------------
  |  Branch (66:5): [True: 0, False: 809]
  ------------------
   67|      0|      return ELF::R_RISCV_GOT_HI20;
   68|      0|    case RISCV::fixup_riscv_tls_got_hi20:
  ------------------
  |  Branch (68:5): [True: 0, False: 809]
  ------------------
   69|      0|      return ELF::R_RISCV_TLS_GOT_HI20;
   70|      0|    case RISCV::fixup_riscv_tls_gd_hi20:
  ------------------
  |  Branch (70:5): [True: 0, False: 809]
  ------------------
   71|      0|      return ELF::R_RISCV_TLS_GD_HI20;
   72|      0|    case RISCV::fixup_riscv_jal:
  ------------------
  |  Branch (72:5): [True: 0, False: 809]
  ------------------
   73|      0|      return ELF::R_RISCV_JAL;
   74|      0|    case RISCV::fixup_riscv_branch:
  ------------------
  |  Branch (74:5): [True: 0, False: 809]
  ------------------
   75|      0|      return ELF::R_RISCV_BRANCH;
   76|      0|    case RISCV::fixup_riscv_rvc_jump:
  ------------------
  |  Branch (76:5): [True: 0, False: 809]
  ------------------
   77|      0|      return ELF::R_RISCV_RVC_JUMP;
   78|      0|    case RISCV::fixup_riscv_rvc_branch:
  ------------------
  |  Branch (78:5): [True: 0, False: 809]
  ------------------
   79|      0|      return ELF::R_RISCV_RVC_BRANCH;
   80|      0|    case RISCV::fixup_riscv_call:
  ------------------
  |  Branch (80:5): [True: 0, False: 809]
  ------------------
   81|      0|      return ELF::R_RISCV_CALL;
   82|      0|    case RISCV::fixup_riscv_call_plt:
  ------------------
  |  Branch (82:5): [True: 0, False: 809]
  ------------------
   83|      0|      return ELF::R_RISCV_CALL_PLT;
   84|    809|    }
   85|    809|  }
   86|       |
   87|  4.76k|  switch (Kind) {
   88|      0|  default:
  ------------------
  |  Branch (88:3): [True: 0, False: 4.76k]
  ------------------
   89|      0|    llvm_unreachable("invalid fixup kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
   90|  4.67k|  case FK_Data_4:
  ------------------
  |  Branch (90:3): [True: 4.67k, False: 95]
  ------------------
   91|  4.67k|    return ELF::R_RISCV_32;
   92|     95|  case FK_Data_8:
  ------------------
  |  Branch (92:3): [True: 95, False: 4.67k]
  ------------------
   93|     95|    return ELF::R_RISCV_64;
   94|      0|  case FK_Data_Add_1:
  ------------------
  |  Branch (94:3): [True: 0, False: 4.76k]
  ------------------
   95|      0|    return ELF::R_RISCV_ADD8;
   96|      0|  case FK_Data_Add_2:
  ------------------
  |  Branch (96:3): [True: 0, False: 4.76k]
  ------------------
   97|      0|    return ELF::R_RISCV_ADD16;
   98|      0|  case FK_Data_Add_4:
  ------------------
  |  Branch (98:3): [True: 0, False: 4.76k]
  ------------------
   99|      0|    return ELF::R_RISCV_ADD32;
  100|      0|  case FK_Data_Add_8:
  ------------------
  |  Branch (100:3): [True: 0, False: 4.76k]
  ------------------
  101|      0|    return ELF::R_RISCV_ADD64;
  102|      0|  case FK_Data_Sub_1:
  ------------------
  |  Branch (102:3): [True: 0, False: 4.76k]
  ------------------
  103|      0|    return ELF::R_RISCV_SUB8;
  104|      0|  case FK_Data_Sub_2:
  ------------------
  |  Branch (104:3): [True: 0, False: 4.76k]
  ------------------
  105|      0|    return ELF::R_RISCV_SUB16;
  106|      0|  case FK_Data_Sub_4:
  ------------------
  |  Branch (106:3): [True: 0, False: 4.76k]
  ------------------
  107|      0|    return ELF::R_RISCV_SUB32;
  108|      0|  case FK_Data_Sub_8:
  ------------------
  |  Branch (108:3): [True: 0, False: 4.76k]
  ------------------
  109|      0|    return ELF::R_RISCV_SUB64;
  110|      0|  case RISCV::fixup_riscv_hi20:
  ------------------
  |  Branch (110:3): [True: 0, False: 4.76k]
  ------------------
  111|      0|    return ELF::R_RISCV_HI20;
  112|      0|  case RISCV::fixup_riscv_lo12_i:
  ------------------
  |  Branch (112:3): [True: 0, False: 4.76k]
  ------------------
  113|      0|    return ELF::R_RISCV_LO12_I;
  114|      0|  case RISCV::fixup_riscv_lo12_s:
  ------------------
  |  Branch (114:3): [True: 0, False: 4.76k]
  ------------------
  115|      0|    return ELF::R_RISCV_LO12_S;
  116|      0|  case RISCV::fixup_riscv_tprel_hi20:
  ------------------
  |  Branch (116:3): [True: 0, False: 4.76k]
  ------------------
  117|      0|    return ELF::R_RISCV_TPREL_HI20;
  118|      0|  case RISCV::fixup_riscv_tprel_lo12_i:
  ------------------
  |  Branch (118:3): [True: 0, False: 4.76k]
  ------------------
  119|      0|    return ELF::R_RISCV_TPREL_LO12_I;
  120|      0|  case RISCV::fixup_riscv_tprel_lo12_s:
  ------------------
  |  Branch (120:3): [True: 0, False: 4.76k]
  ------------------
  121|      0|    return ELF::R_RISCV_TPREL_LO12_S;
  122|      0|  case RISCV::fixup_riscv_tprel_add:
  ------------------
  |  Branch (122:3): [True: 0, False: 4.76k]
  ------------------
  123|      0|    return ELF::R_RISCV_TPREL_ADD;
  124|      0|  case RISCV::fixup_riscv_relax:
  ------------------
  |  Branch (124:3): [True: 0, False: 4.76k]
  ------------------
  125|      0|    return ELF::R_RISCV_RELAX;
  126|      0|  case RISCV::fixup_riscv_align:
  ------------------
  |  Branch (126:3): [True: 0, False: 4.76k]
  ------------------
  127|      0|    return ELF::R_RISCV_ALIGN;
  128|  4.76k|  }
  129|  4.76k|}
RISCVELFObjectWriter.cpp:_ZNK12_GLOBAL__N_120RISCVELFObjectWriter23needsRelocateWithSymbolERKN7llvm_ks8MCSymbolEj:
   29|  4.74k|                               unsigned Type) const override {
   30|       |    // TODO: this is very conservative, update once RISC-V psABI requirements
   31|       |    //       are clarified.
   32|  4.74k|    return true;
   33|  4.74k|  }

_ZN7llvm_ks22RISCVTargetELFStreamerC2ERNS_10MCStreamerERKNS_15MCSubtargetInfoE:
   25|  13.6k|    : RISCVTargetStreamer(S) {
   26|  13.6k|  MCAssembler &MCA = getStreamer().getAssembler();
   27|  13.6k|  const FeatureBitset &Features = STI.getFeatureBits();
   28|  13.6k|  auto &MAB = static_cast<RISCVAsmBackend &>(MCA.getBackend());
   29|  13.6k|  RISCVABI::ABI ABI = MAB.getTargetABI();
   30|  13.6k|  assert(ABI != RISCVABI::ABI_Unknown && "Improperly initialised target ABI");
  ------------------
  |  Branch (30:3): [True: 13.6k, False: 0]
  |  Branch (30:3): [True: 13.6k, Folded]
  |  Branch (30:3): [True: 13.6k, False: 0]
  ------------------
   31|  13.6k|  RISCVFeatures::validate(STI.getTargetTriple(), STI.getFeatureBits()); 
   32|       |
   33|  13.6k|  unsigned EFlags = MCA.getELFHeaderEFlags();
   34|       |
   35|  13.6k|  if (Features[RISCV::FeatureStdExtC])
  ------------------
  |  Branch (35:7): [True: 13.6k, False: 0]
  ------------------
   36|  13.6k|    EFlags |= ELF::EF_RISCV_RVC;
   37|       |
   38|  13.6k|  switch (ABI) {
  ------------------
  |  Branch (38:11): [True: 13.6k, False: 0]
  ------------------
   39|  13.6k|  case RISCVABI::ABI_ILP32:
  ------------------
  |  Branch (39:3): [True: 13.6k, False: 0]
  ------------------
   40|  13.6k|  case RISCVABI::ABI_LP64:
  ------------------
  |  Branch (40:3): [True: 0, False: 13.6k]
  ------------------
   41|  13.6k|    break;
   42|      0|  case RISCVABI::ABI_ILP32F:
  ------------------
  |  Branch (42:3): [True: 0, False: 13.6k]
  ------------------
   43|      0|  case RISCVABI::ABI_LP64F:
  ------------------
  |  Branch (43:3): [True: 0, False: 13.6k]
  ------------------
   44|      0|    EFlags |= ELF::EF_RISCV_FLOAT_ABI_SINGLE;
   45|      0|    break;
   46|      0|  case RISCVABI::ABI_ILP32D:
  ------------------
  |  Branch (46:3): [True: 0, False: 13.6k]
  ------------------
   47|      0|  case RISCVABI::ABI_LP64D:
  ------------------
  |  Branch (47:3): [True: 0, False: 13.6k]
  ------------------
   48|      0|    EFlags |= ELF::EF_RISCV_FLOAT_ABI_DOUBLE;
   49|      0|    break;
   50|      0|  case RISCVABI::ABI_ILP32E:
  ------------------
  |  Branch (50:3): [True: 0, False: 13.6k]
  ------------------
   51|      0|    EFlags |= ELF::EF_RISCV_RVE;
   52|      0|    break;
   53|      0|  case RISCVABI::ABI_Unknown:
  ------------------
  |  Branch (53:3): [True: 0, False: 13.6k]
  ------------------
   54|      0|    llvm_unreachable("Improperly initialised target ABI");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
   55|  13.6k|  }
   56|       |
   57|  13.6k|  MCA.setELFHeaderEFlags(EFlags);
   58|  13.6k|}
_ZN7llvm_ks22RISCVTargetELFStreamer11getStreamerEv:
   60|  13.6k|MCELFStreamer &RISCVTargetELFStreamer::getStreamer() {
   61|  13.6k|  return static_cast<MCELFStreamer &>(Streamer);
   62|  13.6k|}

_ZN7llvm_ks14RISCVMCAsmInfoC2ERKNS_6TripleE:
   17|  13.6k|RISCVMCAsmInfo::RISCVMCAsmInfo(const Triple &TT) {
   18|  13.6k|  PointerSize = CalleeSaveStackSlotSize = TT.isArch64Bit() ? 8 : 4;
  ------------------
  |  Branch (18:43): [True: 0, False: 13.6k]
  ------------------
   19|  13.6k|  CommentString = "#";
   20|  13.6k|  AlignmentIsInBytes = false;
   21|  13.6k|  SupportsDebugInformation = true;
   22|  13.6k|  ExceptionsType = ExceptionHandling::DwarfCFI;
   23|  13.6k|  Data16bitsDirective = "\t.half\t";
   24|  13.6k|  Data32bitsDirective = "\t.word\t";
   25|  13.6k|  PrivateGlobalPrefix = "L";
   26|  13.6k|  PrivateLabelPrefix = "L";
   27|       |
   28|  13.6k|}

_ZN7llvm_ks24createRISCVMCCodeEmitterERKNS_11MCInstrInfoERKNS_14MCRegisterInfoERNS_9MCContextE:
   85|  13.6k|                                              MCContext &Ctx) {
   86|  13.6k|  return new RISCVMCCodeEmitter(Ctx, MCII);
   87|  13.6k|}
RISCVMCCodeEmitter.cpp:_ZN12_GLOBAL__N_118RISCVMCCodeEmitterC2ERN7llvm_ks9MCContextERKNS1_11MCInstrInfoE:
   44|  13.6k|      : Ctx(ctx), MCII(MCII) {}
RISCVMCCodeEmitter.cpp:_ZNK12_GLOBAL__N_118RISCVMCCodeEmitter17encodeInstructionERN7llvm_ks6MCInstERNS1_11raw_ostreamERNS1_15SmallVectorImplINS1_7MCFixupEEERKNS1_15MCSubtargetInfoERj:
  176|  1.21k|                                 unsigned int &KsError) const {
  177|  1.21k|  KsError = 0;
  178|  1.21k|  const MCInstrDesc &Desc = MCII.get(Inst.getOpcode());
  179|       |  // Get byte count of instruction.
  180|  1.21k|  unsigned Size = Desc.getSize();
  181|       |
  182|  1.21k|  if (Inst.getOpcode() == RISCV::PseudoCALLReg ||
  ------------------
  |  Branch (182:7): [True: 0, False: 1.21k]
  ------------------
  183|  1.21k|      Inst.getOpcode() == RISCV::PseudoCALL ||
  ------------------
  |  Branch (183:7): [True: 1, False: 1.21k]
  ------------------
  184|  1.21k|      Inst.getOpcode() == RISCV::PseudoTAIL) {
  ------------------
  |  Branch (184:7): [True: 7, False: 1.21k]
  ------------------
  185|      8|    expandFunctionCall(Inst, OS, Fixups, STI);
  186|      8|    return;
  187|      8|  }
  188|       |
  189|  1.21k|  if (Inst.getOpcode() == RISCV::PseudoAddTPRel) {
  ------------------
  |  Branch (189:7): [True: 0, False: 1.21k]
  ------------------
  190|      0|    expandAddTPRel(Inst, OS, Fixups, STI);
  191|      0|    return;
  192|      0|  }
  193|       |
  194|  1.21k|  switch (Size) {
  195|      0|  default:
  ------------------
  |  Branch (195:3): [True: 0, False: 1.21k]
  ------------------
  196|      0|    llvm_unreachable("Unhandled encodeInstruction length!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  197|    964|  case 2: {
  ------------------
  |  Branch (197:3): [True: 964, False: 246]
  ------------------
  198|    964|    uint16_t Bits = getBinaryCodeForInstr(Inst, Fixups, STI);
  199|    964|    support::endian::Writer<support::little>(OS).write<uint16_t>(Bits);
  200|    964|    break;
  201|      0|  }
  202|    246|  case 4: {
  ------------------
  |  Branch (202:3): [True: 246, False: 964]
  ------------------
  203|    246|    uint32_t Bits = getBinaryCodeForInstr(Inst, Fixups, STI);
  204|    246|    support::endian::Writer<support::little>(OS).write<uint32_t>(Bits);
  205|       |
  206|    246|    break;
  207|      0|  }
  208|  1.21k|  }
  209|       |
  210|  1.21k|}
RISCVMCCodeEmitter.cpp:_ZNK12_GLOBAL__N_118RISCVMCCodeEmitter18expandFunctionCallERKN7llvm_ks6MCInstERNS1_11raw_ostreamERNS1_15SmallVectorImplINS1_7MCFixupEEERKNS1_15MCSubtargetInfoE:
   98|      8|                                            const MCSubtargetInfo &STI) const {
   99|      8|  MCInst TmpInst;
  100|      8|  MCOperand Func;
  101|      8|  unsigned Ra;
  102|      8|  if (MI.getOpcode() == RISCV::PseudoTAIL) {
  ------------------
  |  Branch (102:7): [True: 7, False: 1]
  ------------------
  103|      7|    Func = MI.getOperand(0);
  104|      7|    Ra = RISCV::X6;
  105|      7|  } else if (MI.getOpcode() == RISCV::PseudoCALLReg) {
  ------------------
  |  Branch (105:14): [True: 0, False: 1]
  ------------------
  106|      0|    Func = MI.getOperand(1);
  107|      0|    Ra = MI.getOperand(0).getReg();
  108|      1|  } else {
  109|      1|    Func = MI.getOperand(0);
  110|      1|    Ra = RISCV::X1;
  111|      1|  }
  112|      8|  uint32_t Binary;
  113|       |
  114|      8|  assert(Func.isExpr() && "Expected expression");
  ------------------
  |  Branch (114:3): [True: 8, False: 0]
  |  Branch (114:3): [True: 8, Folded]
  |  Branch (114:3): [True: 8, False: 0]
  ------------------
  115|       |
  116|      8|  const MCExpr *CallExpr = Func.getExpr();
  117|       |
  118|       |  // Emit AUIPC Ra, Func with R_RISCV_CALL relocation type.
  119|      8|  TmpInst = MCInstBuilder(RISCV::AUIPC)
  120|      8|                .addReg(Ra)
  121|      8|                .addOperand(MCOperand::createExpr(CallExpr));
  122|      8|  Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI);
  123|      8|  support::endian::Writer<support::little>(OS).write<uint32_t>(Binary);
  124|       |
  125|      8|  if (MI.getOpcode() == RISCV::PseudoTAIL)
  ------------------
  |  Branch (125:7): [True: 7, False: 1]
  ------------------
  126|       |    // Emit JALR X0, X6, 0
  127|      7|    TmpInst = MCInstBuilder(RISCV::JALR).addReg(RISCV::X0).addReg(Ra).addImm(0);
  128|      1|  else
  129|       |    // Emit JALR Ra, Ra, 0
  130|      1|    TmpInst = MCInstBuilder(RISCV::JALR).addReg(Ra).addReg(Ra).addImm(0);
  131|      8|  Binary = getBinaryCodeForInstr(TmpInst, Fixups, STI);
  132|      8|  support::endian::Writer<support::little>(OS).write<uint32_t>(Binary);
  133|      8|}
RISCVMCCodeEmitter.cpp:_ZNK12_GLOBAL__N_118RISCVMCCodeEmitter13getImmOpValueERKN7llvm_ks6MCInstEjRNS1_15SmallVectorImplINS1_7MCFixupEEERKNS1_15MCSubtargetInfoE:
  244|    493|                                           const MCSubtargetInfo &STI) const {
  245|    493|  bool EnableRelax = STI.getFeatureBits()[RISCV::FeatureRelax];
  246|    493|  const MCOperand &MO = MI.getOperand(OpNo);
  247|       |
  248|    493|  MCInstrDesc const &Desc = MCII.get(MI.getOpcode());
  249|    493|  unsigned MIFrm = Desc.TSFlags & RISCVII::InstFormatMask;
  250|       |
  251|       |  // If the destination is an immediate, there is nothing to do.
  252|    493|  if (MO.isImm())
  ------------------
  |  Branch (252:7): [True: 157, False: 336]
  ------------------
  253|    157|    return MO.getImm();
  254|       |
  255|    493|  assert(MO.isExpr() &&
  ------------------
  |  Branch (255:3): [True: 336, False: 0]
  |  Branch (255:3): [True: 336, Folded]
  |  Branch (255:3): [True: 336, False: 0]
  ------------------
  256|    336|         "getImmOpValue expects only expressions or immediates");
  257|    336|  const MCExpr *Expr = MO.getExpr();
  258|    336|  MCExpr::ExprKind Kind = Expr->getKind();
  259|    336|  RISCV::Fixups FixupKind = RISCV::fixup_riscv_invalid;
  260|    336|  bool RelaxCandidate = false;
  261|    336|  if (Kind == MCExpr::Target) {
  ------------------
  |  Branch (261:7): [True: 10, False: 326]
  ------------------
  262|     10|    const RISCVMCExpr *RVExpr = cast<RISCVMCExpr>(Expr);
  263|       |
  264|     10|    switch (RVExpr->getKind()) {
  ------------------
  |  Branch (264:13): [True: 10, False: 0]
  ------------------
  265|      0|    case RISCVMCExpr::VK_RISCV_None:
  ------------------
  |  Branch (265:5): [True: 0, False: 10]
  ------------------
  266|      0|    case RISCVMCExpr::VK_RISCV_Invalid:
  ------------------
  |  Branch (266:5): [True: 0, False: 10]
  ------------------
  267|      0|      llvm_unreachable("Unhandled fixup kind!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  268|      0|    case RISCVMCExpr::VK_RISCV_TPREL_ADD:
  ------------------
  |  Branch (268:5): [True: 0, False: 10]
  ------------------
  269|       |      // tprel_add is only used to indicate that a relocation should be emitted
  270|       |      // for an add instruction used in TP-relative addressing. It should not be
  271|       |      // expanded as if representing an actual instruction operand and so to
  272|       |      // encounter it here is an error.
  273|      0|      llvm_unreachable(
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  274|      0|          "VK_RISCV_TPREL_ADD should not represent an instruction operand");
  275|      0|    case RISCVMCExpr::VK_RISCV_LO:
  ------------------
  |  Branch (275:5): [True: 0, False: 10]
  ------------------
  276|      0|      if (MIFrm == RISCVII::InstFormatI)
  ------------------
  |  Branch (276:11): [True: 0, False: 0]
  ------------------
  277|      0|        FixupKind = RISCV::fixup_riscv_lo12_i;
  278|      0|      else if (MIFrm == RISCVII::InstFormatS)
  ------------------
  |  Branch (278:16): [True: 0, False: 0]
  ------------------
  279|      0|        FixupKind = RISCV::fixup_riscv_lo12_s;
  280|      0|      else
  281|      0|        llvm_unreachable("VK_RISCV_LO used with unexpected instruction format");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  282|      0|      RelaxCandidate = true;
  283|      0|      break;
  284|      0|    case RISCVMCExpr::VK_RISCV_HI:
  ------------------
  |  Branch (284:5): [True: 0, False: 10]
  ------------------
  285|      0|      FixupKind = RISCV::fixup_riscv_hi20;
  286|      0|      RelaxCandidate = true;
  287|      0|      break;
  288|      1|    case RISCVMCExpr::VK_RISCV_PCREL_LO:
  ------------------
  |  Branch (288:5): [True: 1, False: 9]
  ------------------
  289|      1|      if (MIFrm == RISCVII::InstFormatI)
  ------------------
  |  Branch (289:11): [True: 1, False: 0]
  ------------------
  290|      1|        FixupKind = RISCV::fixup_riscv_pcrel_lo12_i;
  291|      0|      else if (MIFrm == RISCVII::InstFormatS)
  ------------------
  |  Branch (291:16): [True: 0, False: 0]
  ------------------
  292|      0|        FixupKind = RISCV::fixup_riscv_pcrel_lo12_s;
  293|      0|      else
  294|      0|        llvm_unreachable(
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  295|      1|            "VK_RISCV_PCREL_LO used with unexpected instruction format");
  296|      1|      RelaxCandidate = true;
  297|      1|      break;
  298|      1|    case RISCVMCExpr::VK_RISCV_PCREL_HI:
  ------------------
  |  Branch (298:5): [True: 1, False: 9]
  ------------------
  299|      1|      FixupKind = RISCV::fixup_riscv_pcrel_hi20;
  300|      1|      RelaxCandidate = true;
  301|      1|      break;
  302|      0|    case RISCVMCExpr::VK_RISCV_GOT_HI:
  ------------------
  |  Branch (302:5): [True: 0, False: 10]
  ------------------
  303|      0|      FixupKind = RISCV::fixup_riscv_got_hi20;
  304|      0|      break;
  305|      0|    case RISCVMCExpr::VK_RISCV_TPREL_LO:
  ------------------
  |  Branch (305:5): [True: 0, False: 10]
  ------------------
  306|      0|      if (MIFrm == RISCVII::InstFormatI)
  ------------------
  |  Branch (306:11): [True: 0, False: 0]
  ------------------
  307|      0|        FixupKind = RISCV::fixup_riscv_tprel_lo12_i;
  308|      0|      else if (MIFrm == RISCVII::InstFormatS)
  ------------------
  |  Branch (308:16): [True: 0, False: 0]
  ------------------
  309|      0|        FixupKind = RISCV::fixup_riscv_tprel_lo12_s;
  310|      0|      else
  311|      0|        llvm_unreachable(
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  312|      0|            "VK_RISCV_TPREL_LO used with unexpected instruction format");
  313|      0|      RelaxCandidate = true;
  314|      0|      break;
  315|      0|    case RISCVMCExpr::VK_RISCV_TPREL_HI:
  ------------------
  |  Branch (315:5): [True: 0, False: 10]
  ------------------
  316|      0|      FixupKind = RISCV::fixup_riscv_tprel_hi20;
  317|      0|      RelaxCandidate = true;
  318|      0|      break;
  319|      0|    case RISCVMCExpr::VK_RISCV_TLS_GOT_HI:
  ------------------
  |  Branch (319:5): [True: 0, False: 10]
  ------------------
  320|      0|      FixupKind = RISCV::fixup_riscv_tls_got_hi20;
  321|      0|      break;
  322|      0|    case RISCVMCExpr::VK_RISCV_TLS_GD_HI:
  ------------------
  |  Branch (322:5): [True: 0, False: 10]
  ------------------
  323|      0|      FixupKind = RISCV::fixup_riscv_tls_gd_hi20;
  324|      0|      break;
  325|      8|    case RISCVMCExpr::VK_RISCV_CALL:
  ------------------
  |  Branch (325:5): [True: 8, False: 2]
  ------------------
  326|      8|      FixupKind = RISCV::fixup_riscv_call;
  327|      8|      RelaxCandidate = true;
  328|      8|      break;
  329|      0|    case RISCVMCExpr::VK_RISCV_CALL_PLT:
  ------------------
  |  Branch (329:5): [True: 0, False: 10]
  ------------------
  330|      0|      FixupKind = RISCV::fixup_riscv_call_plt;
  331|      0|      RelaxCandidate = true;
  332|      0|      break;
  333|     10|    }
  334|    326|  } else if (Kind == MCExpr::SymbolRef &&
  ------------------
  |  Branch (334:14): [True: 326, False: 0]
  ------------------
  335|    326|             cast<MCSymbolRefExpr>(Expr)->getKind() == MCSymbolRefExpr::VK_None) {
  ------------------
  |  Branch (335:14): [True: 326, False: 0]
  ------------------
  336|    326|    if (Desc.getOpcode() == RISCV::JAL) {
  ------------------
  |  Branch (336:9): [True: 0, False: 326]
  ------------------
  337|      0|      FixupKind = RISCV::fixup_riscv_jal;
  338|    326|    } else if (MIFrm == RISCVII::InstFormatB) {
  ------------------
  |  Branch (338:16): [True: 0, False: 326]
  ------------------
  339|      0|      FixupKind = RISCV::fixup_riscv_branch;
  340|    326|    } else if (MIFrm == RISCVII::InstFormatCJ) {
  ------------------
  |  Branch (340:16): [True: 326, False: 0]
  ------------------
  341|    326|      FixupKind = RISCV::fixup_riscv_rvc_jump;
  342|    326|    } else if (MIFrm == RISCVII::InstFormatCB) {
  ------------------
  |  Branch (342:16): [True: 0, False: 0]
  ------------------
  343|      0|      FixupKind = RISCV::fixup_riscv_rvc_branch;
  344|      0|    }
  345|    326|  }
  346|       |
  347|    336|  assert(FixupKind != RISCV::fixup_riscv_invalid && "Unhandled expression!");
  ------------------
  |  Branch (347:3): [True: 336, False: 0]
  |  Branch (347:3): [True: 336, Folded]
  |  Branch (347:3): [True: 336, False: 0]
  ------------------
  348|       |
  349|    336|  Fixups.push_back(
  350|    336|      MCFixup::create(0, Expr, MCFixupKind(FixupKind), MI.getLoc()));
  351|       |
  352|       |
  353|       |  // Ensure an R_RISCV_RELAX relocation will be emitted if linker relaxation is
  354|       |  // enabled and the current fixup will result in a relocation that may be
  355|       |  // relaxed.
  356|    336|  if (EnableRelax && RelaxCandidate) {
  ------------------
  |  Branch (356:7): [True: 336, False: 0]
  |  Branch (356:22): [True: 10, False: 326]
  ------------------
  357|     10|    const MCConstantExpr *Dummy = MCConstantExpr::create(0, Ctx);
  358|     10|    Fixups.push_back(
  359|     10|    MCFixup::create(0, Dummy, MCFixupKind(RISCV::fixup_riscv_relax),
  360|     10|                    MI.getLoc()));
  361|       |
  362|     10|  }
  363|       |
  364|    336|  return 0;
  365|    336|}
RISCVMCCodeEmitter.cpp:_ZNK12_GLOBAL__N_118RISCVMCCodeEmitter17getMachineOpValueERKN7llvm_ks6MCInstERKNS1_9MCOperandERNS1_15SmallVectorImplINS1_7MCFixupEEERKNS1_15MCSubtargetInfoE:
  215|    316|                                      const MCSubtargetInfo &STI) const {
  216|       |
  217|    316|  if (MO.isReg())
  ------------------
  |  Branch (217:7): [True: 308, False: 8]
  ------------------
  218|    308|    return Ctx.getRegisterInfo()->getEncodingValue(MO.getReg());
  219|       |
  220|      8|  if (MO.isImm())
  ------------------
  |  Branch (220:7): [True: 8, False: 0]
  ------------------
  221|      8|    return static_cast<unsigned>(MO.getImm());
  222|       |
  223|      8|  llvm_unreachable("Unhandled expression!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  224|      0|  return 0;
  225|      8|}
RISCVMCCodeEmitter.cpp:_ZNK12_GLOBAL__N_118RISCVMCCodeEmitter17getImmOpValueAsr1ERKN7llvm_ks6MCInstEjRNS1_15SmallVectorImplINS1_7MCFixupEEERKNS1_15MCSubtargetInfoE:
  230|    695|                                      const MCSubtargetInfo &STI) const {
  231|    695|  const MCOperand &MO = MI.getOperand(OpNo);
  232|       |
  233|    695|  if (MO.isImm()) {
  ------------------
  |  Branch (233:7): [True: 369, False: 326]
  ------------------
  234|    369|    unsigned Res = MO.getImm();
  235|    369|    assert((Res & 1) == 0 && "LSB is non-zero");
  ------------------
  |  Branch (235:5): [True: 369, False: 0]
  |  Branch (235:5): [True: 369, Folded]
  |  Branch (235:5): [True: 369, False: 0]
  ------------------
  236|    369|    return Res >> 1;
  237|    369|  }
  238|       |
  239|    326|  return getImmOpValue(MI, OpNo, Fixups, STI);
  240|    695|}

_ZN7llvm_ks11RISCVMCExpr6createEPKNS_6MCExprENS0_11VariantKindERNS_9MCContextE:
   32|     12|                                       MCContext &Ctx) {
   33|     12|  return new (Ctx) RISCVMCExpr(Expr, Kind);
   34|     12|}
_ZNK7llvm_ks11RISCVMCExpr25evaluateAsRelocatableImplERNS_7MCValueEPKNS_11MCAsmLayoutEPKNS_7MCFixupE:
  151|      3|                                            const MCFixup *Fixup) const {
  152|      3|  if (Kind == VK_RISCV_PCREL_LO && evaluatePCRelLo(Res, Layout, Fixup))
  ------------------
  |  Branch (152:7): [True: 0, False: 3]
  |  Branch (152:36): [True: 0, False: 0]
  ------------------
  153|      0|    return true;
  154|       |
  155|      3|  if (!getSubExpr()->evaluateAsRelocatable(Res, Layout, Fixup))
  ------------------
  |  Branch (155:7): [True: 0, False: 3]
  ------------------
  156|      0|    return false;
  157|       |
  158|       |  // Some custom fixup types are not valid with symbol difference expressions
  159|      3|  if (Res.getSymA() && Res.getSymB()) {
  ------------------
  |  Branch (159:7): [True: 3, False: 0]
  |  Branch (159:24): [True: 0, False: 3]
  ------------------
  160|      0|    switch (getKind()) {
  161|      0|    default:
  ------------------
  |  Branch (161:5): [True: 0, False: 0]
  ------------------
  162|      0|      return true;
  163|      0|    case VK_RISCV_LO:
  ------------------
  |  Branch (163:5): [True: 0, False: 0]
  ------------------
  164|      0|    case VK_RISCV_HI:
  ------------------
  |  Branch (164:5): [True: 0, False: 0]
  ------------------
  165|      0|    case VK_RISCV_PCREL_LO:
  ------------------
  |  Branch (165:5): [True: 0, False: 0]
  ------------------
  166|      0|    case VK_RISCV_PCREL_HI:
  ------------------
  |  Branch (166:5): [True: 0, False: 0]
  ------------------
  167|      0|    case VK_RISCV_GOT_HI:
  ------------------
  |  Branch (167:5): [True: 0, False: 0]
  ------------------
  168|      0|    case VK_RISCV_TPREL_LO:
  ------------------
  |  Branch (168:5): [True: 0, False: 0]
  ------------------
  169|      0|    case VK_RISCV_TPREL_HI:
  ------------------
  |  Branch (169:5): [True: 0, False: 0]
  ------------------
  170|      0|    case VK_RISCV_TPREL_ADD:
  ------------------
  |  Branch (170:5): [True: 0, False: 0]
  ------------------
  171|      0|    case VK_RISCV_TLS_GOT_HI:
  ------------------
  |  Branch (171:5): [True: 0, False: 0]
  ------------------
  172|      0|    case VK_RISCV_TLS_GD_HI:
  ------------------
  |  Branch (172:5): [True: 0, False: 0]
  ------------------
  173|      0|      return false;
  174|      0|    }
  175|      0|  }
  176|       |
  177|      3|  return true;
  178|      3|}
_ZNK7llvm_ks11RISCVMCExpr13visitUsedExprERNS_10MCStreamerE:
  180|     10|void RISCVMCExpr::visitUsedExpr(MCStreamer &Streamer) const {
  181|     10|  Streamer.visitUsedExpr(*getSubExpr());
  182|     10|}
_ZN7llvm_ks11RISCVMCExpr21getVariantKindForNameENS_9StringRefE:
  184|    139|RISCVMCExpr::VariantKind RISCVMCExpr::getVariantKindForName(StringRef name) {
  185|    139|  return StringSwitch<RISCVMCExpr::VariantKind>(name)
  186|    139|      .Case("lo", VK_RISCV_LO)
  187|    139|      .Case("hi", VK_RISCV_HI)
  188|    139|      .Case("pcrel_lo", VK_RISCV_PCREL_LO)
  189|    139|      .Case("pcrel_hi", VK_RISCV_PCREL_HI)
  190|    139|      .Case("got_pcrel_hi", VK_RISCV_GOT_HI)
  191|    139|      .Case("tprel_lo", VK_RISCV_TPREL_LO)
  192|    139|      .Case("tprel_hi", VK_RISCV_TPREL_HI)
  193|    139|      .Case("tprel_add", VK_RISCV_TPREL_ADD)
  194|    139|      .Case("tls_ie_pcrel_hi", VK_RISCV_TLS_GOT_HI)
  195|    139|      .Case("tls_gd_pcrel_hi", VK_RISCV_TLS_GD_HI)
  196|    139|      .Default(VK_RISCV_Invalid);
  197|    139|}
_ZNK7llvm_ks11RISCVMCExpr24fixELFSymbolsInTLSFixupsERNS_11MCAssemblerE:
  255|     10|void RISCVMCExpr::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const {
  256|     10|  switch (getKind()) {
  257|     10|  default:
  ------------------
  |  Branch (257:3): [True: 10, False: 0]
  ------------------
  258|     10|    return;
  259|     10|  case VK_RISCV_TPREL_HI:
  ------------------
  |  Branch (259:3): [True: 0, False: 10]
  ------------------
  260|      0|  case VK_RISCV_TLS_GOT_HI:
  ------------------
  |  Branch (260:3): [True: 0, False: 10]
  ------------------
  261|      0|  case VK_RISCV_TLS_GD_HI:
  ------------------
  |  Branch (261:3): [True: 0, False: 10]
  ------------------
  262|      0|    break;
  263|     10|  }
  264|       |
  265|      0|  fixELFSymbolsInTLSFixupsImpl(getSubExpr(), Asm);
  266|      0|}
_ZNK7llvm_ks11RISCVMCExpr18evaluateAsConstantERl:
  268|     16|bool RISCVMCExpr::evaluateAsConstant(int64_t &Res) const {
  269|     16|  MCValue Value;
  270|       |
  271|     16|  if (Kind == VK_RISCV_PCREL_HI || Kind == VK_RISCV_PCREL_LO ||
  ------------------
  |  Branch (271:7): [True: 0, False: 16]
  |  Branch (271:36): [True: 0, False: 16]
  ------------------
  272|     16|      Kind == VK_RISCV_GOT_HI || Kind == VK_RISCV_TPREL_HI ||
  ------------------
  |  Branch (272:7): [True: 0, False: 16]
  |  Branch (272:34): [True: 0, False: 16]
  ------------------
  273|     16|      Kind == VK_RISCV_TPREL_LO || Kind == VK_RISCV_TPREL_ADD ||
  ------------------
  |  Branch (273:7): [True: 0, False: 16]
  |  Branch (273:36): [True: 0, False: 16]
  ------------------
  274|     16|      Kind == VK_RISCV_TLS_GOT_HI || Kind == VK_RISCV_TLS_GD_HI ||
  ------------------
  |  Branch (274:7): [True: 0, False: 16]
  |  Branch (274:38): [True: 0, False: 16]
  ------------------
  275|     16|      Kind == VK_RISCV_CALL || Kind == VK_RISCV_CALL_PLT)
  ------------------
  |  Branch (275:7): [True: 16, False: 0]
  |  Branch (275:32): [True: 0, False: 0]
  ------------------
  276|     16|    return false;
  277|       |
  278|      0|  if (!getSubExpr()->evaluateAsRelocatable(Value, nullptr, nullptr))
  ------------------
  |  Branch (278:7): [True: 0, False: 0]
  ------------------
  279|      0|    return false;
  280|       |
  281|      0|  if (!Value.isAbsolute())
  ------------------
  |  Branch (281:7): [True: 0, False: 0]
  ------------------
  282|      0|    return false;
  283|       |
  284|      0|  Res = evaluateAsInt64(Value.getConstant());
  285|      0|  return true;
  286|      0|}

_ZNK7llvm_ks11RISCVMCExpr7getKindEv:
   58|     44|  VariantKind getKind() const { return Kind; }
_ZNK7llvm_ks11RISCVMCExpr10getSubExprEv:
   60|     21|  const MCExpr *getSubExpr() const { return Expr; }
_ZN7llvm_ks11RISCVMCExpr7classofEPKNS_6MCExprE:
   81|  2.33k|  static bool classof(const MCExpr *E) {
   82|  2.33k|    return E->getKind() == MCExpr::Target;
   83|  2.33k|  }
_ZN7llvm_ks11RISCVMCExprC2EPKNS_6MCExprENS0_11VariantKindE:
   52|     12|      : Expr(Expr), Kind(Kind) {}

LLVMInitializeRISCVTargetMC:
   83|      1|extern "C" void LLVMInitializeRISCVTargetMC() {
   84|      2|  for (Target *T : {&TheRISCV32Target, &TheRISCV64Target}) {
  ------------------
  |  Branch (84:18): [True: 2, False: 1]
  ------------------
   85|      2|    TargetRegistry::RegisterMCAsmInfo(*T, createRISCVMCAsmInfo);
   86|      2|    TargetRegistry::RegisterMCInstrInfo(*T, createRISCVMCInstrInfo);
   87|      2|    TargetRegistry::RegisterMCRegInfo(*T, createRISCVMCRegisterInfo);
   88|       |    // TargetRegistry::RegisterMCAsmBackend(*T, createRISCVAsmBackend);
   89|      2|    TargetRegistry::RegisterMCAsmBackend2(*T, createRISCVAsmBackend);
   90|      2|    TargetRegistry::RegisterMCCodeEmitter(*T, createRISCVMCCodeEmitter);
   91|      2|    TargetRegistry::RegisterMCSubtargetInfo(*T, createRISCVMCSubtargetInfo);
   92|      2|    TargetRegistry::RegisterObjectTargetStreamer(
   93|      2|        *T, createRISCVObjectTargetStreamer);
   94|       |
   95|       |    // Register the asm target streamer.
   96|      2|    TargetRegistry::RegisterAsmTargetStreamer(*T, createRISCVAsmTargetStreamer);
   97|      2|  }
   98|      1|}
RISCVMCTargetDesc.cpp:_ZL20createRISCVMCAsmInfoRKN7llvm_ks14MCRegisterInfoERKNS_6TripleE:
   51|  13.6k|                                       const Triple &TT) {
   52|  13.6k|  MCAsmInfo *MAI = new RISCVMCAsmInfo(TT);
   53|       |
   54|  13.6k|  unsigned SP = MRI.getDwarfRegNum(RISCV::X2, true);
   55|  13.6k|  MCCFIInstruction Inst = MCCFIInstruction::createDefCfa(nullptr, SP, 0);
   56|  13.6k|  MAI->addInitialFrameState(Inst);
   57|       |
   58|  13.6k|  return MAI;
   59|  13.6k|}
RISCVMCTargetDesc.cpp:_ZL22createRISCVMCInstrInfov:
   38|  13.6k|static MCInstrInfo *createRISCVMCInstrInfo() {
   39|  13.6k|  MCInstrInfo *X = new MCInstrInfo();
   40|  13.6k|  InitRISCVMCInstrInfo(X);
   41|  13.6k|  return X;
   42|  13.6k|}
RISCVMCTargetDesc.cpp:_ZL25createRISCVMCRegisterInfoRKN7llvm_ks6TripleE:
   44|  13.6k|static MCRegisterInfo *createRISCVMCRegisterInfo(const Triple &TT) {
   45|  13.6k|  MCRegisterInfo *X = new MCRegisterInfo();
   46|  13.6k|  InitRISCVMCRegisterInfo(X, RISCV::X1);
   47|  13.6k|  return X;
   48|  13.6k|}
RISCVMCTargetDesc.cpp:_ZL26createRISCVMCSubtargetInfoRKN7llvm_ks6TripleENS_9StringRefES3_:
   62|  13.6k|                                                   StringRef CPU, StringRef FS) {
   63|  13.6k|  std::string CPUName = CPU;
   64|  13.6k|  if (CPUName.empty())
  ------------------
  |  Branch (64:7): [True: 13.6k, False: 0]
  ------------------
   65|  13.6k|    CPUName = TT.isArch64Bit() ? "generic-rv64" : "generic-rv32";
  ------------------
  |  Branch (65:15): [True: 0, False: 13.6k]
  ------------------
   66|  13.6k|  return createRISCVMCSubtargetInfoImpl(TT, CPUName, FS);
   67|  13.6k|}
RISCVMCTargetDesc.cpp:_ZL31createRISCVObjectTargetStreamerRN7llvm_ks10MCStreamerERKNS_15MCSubtargetInfoE:
   71|  13.6k|createRISCVObjectTargetStreamer(MCStreamer &S, const MCSubtargetInfo &STI) {
   72|  13.6k|  const Triple &TT = STI.getTargetTriple();
   73|  13.6k|  if (TT.isOSBinFormatELF())
  ------------------
  |  Branch (73:7): [True: 13.6k, False: 0]
  ------------------
   74|  13.6k|    return new RISCVTargetELFStreamer(S, STI);
   75|      0|  return nullptr;
   76|  13.6k|}

_ZN7llvm_ks19RISCVTargetStreamerC2ERNS_10MCStreamerE:
   18|  13.6k|RISCVTargetStreamer::RISCVTargetStreamer(MCStreamer &S) : MCTargetStreamer(S) {}

_ZN7llvm_ks14RISCVAsmParser15convertToMCInstEjRNS_6MCInstEjRKNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS4_14default_deleteIS6_EEEEEE:
  939|  1.21k|                const OperandVector &Operands) {
  940|  1.21k|  assert(Kind < CVT_NUM_SIGNATURES && "Invalid signature!");
  ------------------
  |  Branch (940:3): [True: 1.21k, False: 0]
  |  Branch (940:3): [True: 1.21k, Folded]
  |  Branch (940:3): [True: 1.21k, False: 0]
  ------------------
  941|  1.21k|  const uint8_t *Converter = ConversionTable[Kind];
  942|  1.21k|  unsigned OpIdx;
  943|  1.21k|  Inst.setOpcode(Opcode);
  944|  3.97k|  for (const uint8_t *p = Converter; *p; p+= 2) {
  ------------------
  |  Branch (944:38): [True: 2.75k, False: 1.21k]
  ------------------
  945|  2.75k|    OpIdx = *(p + 1);
  946|  2.75k|    switch (*p) {
  947|      0|    default: llvm_unreachable("invalid conversion entry!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  |  Branch (947:5): [True: 0, False: 2.75k]
  ------------------
  948|      0|    case CVT_Reg:
  ------------------
  |  Branch (948:5): [True: 0, False: 2.75k]
  ------------------
  949|      0|      static_cast<RISCVOperand&>(*Operands[OpIdx]).addRegOperands(Inst, 1);
  950|      0|      break;
  951|      0|    case CVT_Tied: {
  ------------------
  |  Branch (951:5): [True: 0, False: 2.75k]
  ------------------
  952|      0|      assert(OpIdx < (size_t)(std::end(TiedAsmOperandTable) -
  ------------------
  |  Branch (952:7): [True: 0, False: 0]
  |  Branch (952:7): [True: 0, Folded]
  |  Branch (952:7): [True: 0, False: 0]
  ------------------
  953|      0|                          std::begin(TiedAsmOperandTable)) &&
  954|      0|             "Tied operand not found");
  955|      0|      unsigned TiedResOpnd = TiedAsmOperandTable[OpIdx][0];
  956|      0|      if (TiedResOpnd != (uint8_t) -1)
  ------------------
  |  Branch (956:11): [True: 0, False: 0]
  ------------------
  957|      0|        Inst.addOperand(Inst.getOperand(TiedResOpnd));
  958|      0|      break;
  959|      0|    }
  960|    337|    case CVT_95_Reg:
  ------------------
  |  Branch (960:5): [True: 337, False: 2.41k]
  ------------------
  961|    337|      static_cast<RISCVOperand&>(*Operands[OpIdx]).addRegOperands(Inst, 1);
  962|    337|      break;
  963|    860|    case CVT_95_addImmOperands:
  ------------------
  |  Branch (963:5): [True: 860, False: 1.89k]
  ------------------
  964|    860|      static_cast<RISCVOperand&>(*Operands[OpIdx]).addImmOperands(Inst, 1);
  965|    860|      break;
  966|  1.08k|    case CVT_regX0:
  ------------------
  |  Branch (966:5): [True: 1.08k, False: 1.67k]
  ------------------
  967|  1.08k|      Inst.addOperand(MCOperand::createReg(RISCV::X0));
  968|  1.08k|      break;
  969|    443|    case CVT_imm_95_0:
  ------------------
  |  Branch (969:5): [True: 443, False: 2.31k]
  ------------------
  970|    443|      Inst.addOperand(MCOperand::createImm(0));
  971|    443|      break;
  972|      3|    case CVT_95_addCSRSystemRegisterOperands:
  ------------------
  |  Branch (972:5): [True: 3, False: 2.75k]
  ------------------
  973|      3|      static_cast<RISCVOperand&>(*Operands[OpIdx]).addCSRSystemRegisterOperands(Inst, 1);
  974|      3|      break;
  975|      0|    case CVT_imm_95_7:
  ------------------
  |  Branch (975:5): [True: 0, False: 2.75k]
  ------------------
  976|      0|      Inst.addOperand(MCOperand::createImm(7));
  977|      0|      break;
  978|      0|    case CVT_95_addFRMArgOperands:
  ------------------
  |  Branch (978:5): [True: 0, False: 2.75k]
  ------------------
  979|      0|      static_cast<RISCVOperand&>(*Operands[OpIdx]).addFRMArgOperands(Inst, 1);
  980|      0|      break;
  981|      2|    case CVT_imm_95_15:
  ------------------
  |  Branch (981:5): [True: 2, False: 2.75k]
  ------------------
  982|      2|      Inst.addOperand(MCOperand::createImm(15));
  983|      2|      break;
  984|      0|    case CVT_95_addFenceArgOperands:
  ------------------
  |  Branch (984:5): [True: 0, False: 2.75k]
  ------------------
  985|      0|      static_cast<RISCVOperand&>(*Operands[OpIdx]).addFenceArgOperands(Inst, 1);
  986|      0|      break;
  987|      0|    case CVT_imm_95_3:
  ------------------
  |  Branch (987:5): [True: 0, False: 2.75k]
  ------------------
  988|      0|      Inst.addOperand(MCOperand::createImm(3));
  989|      0|      break;
  990|      0|    case CVT_imm_95_1:
  ------------------
  |  Branch (990:5): [True: 0, False: 2.75k]
  ------------------
  991|      0|      Inst.addOperand(MCOperand::createImm(1));
  992|      0|      break;
  993|      0|    case CVT_imm_95_2:
  ------------------
  |  Branch (993:5): [True: 0, False: 2.75k]
  ------------------
  994|      0|      Inst.addOperand(MCOperand::createImm(2));
  995|      0|      break;
  996|     25|    case CVT_regX1:
  ------------------
  |  Branch (996:5): [True: 25, False: 2.73k]
  ------------------
  997|     25|      Inst.addOperand(MCOperand::createReg(RISCV::X1));
  998|     25|      break;
  999|      0|    case CVT_imm_95__MINUS_1:
  ------------------
  |  Branch (999:5): [True: 0, False: 2.75k]
  ------------------
 1000|      0|      Inst.addOperand(MCOperand::createImm(-1));
 1001|      0|      break;
 1002|      0|    case CVT_imm_95_3072:
  ------------------
  |  Branch (1002:5): [True: 0, False: 2.75k]
  ------------------
 1003|      0|      Inst.addOperand(MCOperand::createImm(3072));
 1004|      0|      break;
 1005|      0|    case CVT_imm_95_3200:
  ------------------
  |  Branch (1005:5): [True: 0, False: 2.75k]
  ------------------
 1006|      0|      Inst.addOperand(MCOperand::createImm(3200));
 1007|      0|      break;
 1008|      0|    case CVT_imm_95_3074:
  ------------------
  |  Branch (1008:5): [True: 0, False: 2.75k]
  ------------------
 1009|      0|      Inst.addOperand(MCOperand::createImm(3074));
 1010|      0|      break;
 1011|      0|    case CVT_imm_95_3202:
  ------------------
  |  Branch (1011:5): [True: 0, False: 2.75k]
  ------------------
 1012|      0|      Inst.addOperand(MCOperand::createImm(3202));
 1013|      0|      break;
 1014|      0|    case CVT_imm_95_3073:
  ------------------
  |  Branch (1014:5): [True: 0, False: 2.75k]
  ------------------
 1015|      0|      Inst.addOperand(MCOperand::createImm(3073));
 1016|      0|      break;
 1017|      0|    case CVT_imm_95_3201:
  ------------------
  |  Branch (1017:5): [True: 0, False: 2.75k]
  ------------------
 1018|      0|      Inst.addOperand(MCOperand::createImm(3201));
 1019|      0|      break;
 1020|  2.75k|    }
 1021|  2.75k|  }
 1022|  1.21k|}
_ZNK7llvm_ks14RISCVAsmParser26ComputeAvailableFeaturesFBERKNS_13FeatureBitsetE:
 1697|  16.8k|ComputeAvailableFeaturesFB(const FeatureBitset& FB) const {
 1698|  16.8k|  FeatureBitset Features;
 1699|  16.8k|  if ((FB[RISCV::FeatureStdExtM]))
  ------------------
  |  Branch (1699:7): [True: 13.6k, False: 3.23k]
  ------------------
 1700|  13.6k|    Features[Feature_HasStdExtMBit] = 1;
 1701|  16.8k|  if ((FB[RISCV::FeatureStdExtA]))
  ------------------
  |  Branch (1701:7): [True: 16.8k, False: 0]
  ------------------
 1702|  16.8k|    Features[Feature_HasStdExtABit] = 1;
 1703|  16.8k|  if ((FB[RISCV::FeatureStdExtF]))
  ------------------
  |  Branch (1703:7): [True: 13.6k, False: 3.23k]
  ------------------
 1704|  13.6k|    Features[Feature_HasStdExtFBit] = 1;
 1705|  16.8k|  if ((FB[RISCV::FeatureStdExtD]))
  ------------------
  |  Branch (1705:7): [True: 16.8k, False: 0]
  ------------------
 1706|  16.8k|    Features[Feature_HasStdExtDBit] = 1;
 1707|  16.8k|  if ((FB[RISCV::FeatureStdExtC]))
  ------------------
  |  Branch (1707:7): [True: 16.8k, False: 0]
  ------------------
 1708|  16.8k|    Features[Feature_HasStdExtCBit] = 1;
 1709|  16.8k|  if ((FB[RISCV::Feature64Bit]))
  ------------------
  |  Branch (1709:7): [True: 3.23k, False: 13.6k]
  ------------------
 1710|  3.23k|    Features[Feature_IsRV64Bit] = 1;
 1711|  16.8k|  if ((!FB[RISCV::Feature64Bit]))
  ------------------
  |  Branch (1711:7): [True: 13.6k, False: 3.23k]
  ------------------
 1712|  13.6k|    Features[Feature_IsRV32Bit] = 1;
 1713|  16.8k|  if ((FB[RISCV::FeatureRV32E]))
  ------------------
  |  Branch (1713:7): [True: 3.23k, False: 13.6k]
  ------------------
 1714|  3.23k|    Features[Feature_IsRV32EBit] = 1;
 1715|  16.8k|  return Features;
 1716|  16.8k|}
_ZN7llvm_ks14RISCVAsmParser20MatchInstructionImplERKNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEERNS_6MCInstERmNS_13FeatureBitsetEbj:
 2331|  3.35k|                     bool matchingInlineAsm, unsigned VariantID) {
 2332|       |  // Eliminate obvious mismatches.
 2333|  3.35k|  if (Operands.size() > 6) {
  ------------------
  |  Branch (2333:7): [True: 118, False: 3.23k]
  ------------------
 2334|    118|    ErrorInfo = 6;
 2335|    118|    return Match_InvalidOperand;
 2336|    118|  }
 2337|       |
 2338|       |  // Get the current feature set.
 2339|  3.23k|  const FeatureBitset &AvailableFeaturesFB = getAvailableFeaturesFB();
 2340|  3.23k|  ComputeAvailableFeaturesFB(AvailableFeaturesFB);
 2341|       |
 2342|       |  // Get the instruction mnemonic, which is the first token.
 2343|  3.23k|  StringRef Mnemonic = ((RISCVOperand&)*Operands[0]).getToken();
 2344|       |
 2345|       |  // Process all MnemonicAliases to remap the mnemonic.
 2346|  3.23k|  applyMnemonicAliases(Mnemonic, AvailableFeaturesFB, VariantID);
 2347|       |
 2348|       |  // Some state to try to produce better error messages.
 2349|  3.23k|  bool HadMatchOtherThanFeatures = false;
 2350|  3.23k|  bool HadMatchOtherThanPredicate = false;
 2351|  3.23k|  unsigned RetCode = Match_InvalidOperand;
 2352|       |
 2353|  3.23k|  MissingFeatures.set();
 2354|       |  // Set ErrorInfo to the operand that mismatches if it is
 2355|       |  // wrong for all instances of the instruction.
 2356|  3.23k|  ErrorInfo = ~0ULL;
 2357|       |  // Find the appropriate table for this asm variant.
 2358|  3.23k|  const MatchEntry *Start, *End;
 2359|  3.23k|  switch (VariantID) {
 2360|      0|  default: llvm_unreachable("invalid variant!");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
  |  Branch (2360:3): [True: 0, False: 3.23k]
  ------------------
 2361|  3.23k|  case 0: Start = std::begin(MatchTable0); End = std::end(MatchTable0); break;
  ------------------
  |  Branch (2361:3): [True: 3.23k, False: 0]
  ------------------
 2362|  3.23k|  }
 2363|       |  // Search the table.
 2364|  3.23k|  auto MnemonicRange = std::equal_range(Start, End, Mnemonic, LessOpcode());
 2365|       |
 2366|  3.23k|  DEBUG_WITH_TYPE("asm-matcher", dbgs() << "AsmMatcher: found " <<
 2367|  3.23k|  std::distance(MnemonicRange.first, MnemonicRange.second) << 
 2368|  3.23k|  " encodings with mnemonic '" << Mnemonic << "'\n");
 2369|       |
 2370|       |  // Return a more specific error code if no mnemonics match.
 2371|  3.23k|  if (MnemonicRange.first == MnemonicRange.second)
  ------------------
  |  Branch (2371:7): [True: 1.78k, False: 1.45k]
  ------------------
 2372|  1.78k|    return Match_MnemonicFail;
 2373|       |
 2374|  1.45k|  for (const MatchEntry *it = MnemonicRange.first, *ie = MnemonicRange.second;
 2375|  2.03k|       it != ie; ++it) {
  ------------------
  |  Branch (2375:8): [True: 1.80k, False: 238]
  ------------------
 2376|  1.80k|    const FeatureBitset &RequiredFeatures = FeatureBitsets[it->RequiredFeaturesIdx];
 2377|  1.80k|    bool HasRequiredFeatures =
 2378|  1.80k|      (AvailableFeaturesFB & RequiredFeatures) == RequiredFeatures;
 2379|  1.80k|    DEBUG_WITH_TYPE("asm-matcher", dbgs() << "Trying to match opcode "
 2380|  1.80k|                                          << MII.getName(it->Opcode) << "\n");
 2381|       |    // equal_range guarantees that instruction mnemonic matches.
 2382|  1.80k|    assert(Mnemonic == it->getMnemonic());
  ------------------
  |  Branch (2382:5): [True: 1.80k, False: 0]
  ------------------
 2383|  1.80k|    bool OperandsValid = true;
 2384|  3.65k|    for (unsigned FormalIdx = 0, ActualIdx = 1; FormalIdx != 5; ++FormalIdx) {
  ------------------
  |  Branch (2384:49): [True: 3.65k, False: 0]
  ------------------
 2385|  3.65k|      auto Formal = static_cast<MatchClassKind>(it->Classes[FormalIdx]);
 2386|  3.65k|      DEBUG_WITH_TYPE("asm-matcher",
 2387|  3.65k|                      dbgs() << "  Matching formal operand class " << getMatchClassName(Formal)
 2388|  3.65k|                             << " against actual operand at index " << ActualIdx);
 2389|  3.65k|      if (ActualIdx < Operands.size())
  ------------------
  |  Branch (2389:11): [True: 2.43k, False: 1.22k]
  ------------------
 2390|  2.43k|        DEBUG_WITH_TYPE("asm-matcher", dbgs() << " (";
 2391|  2.43k|                        Operands[ActualIdx]->print(dbgs()); dbgs() << "): ");
 2392|  1.22k|      else
 2393|  1.22k|        DEBUG_WITH_TYPE("asm-matcher", dbgs() << ": ");
 2394|  3.65k|      if (ActualIdx >= Operands.size()) {
  ------------------
  |  Branch (2394:11): [True: 1.22k, False: 2.43k]
  ------------------
 2395|  1.22k|        DEBUG_WITH_TYPE("asm-matcher", dbgs() << "actual operand index out of range ");
 2396|  1.22k|        OperandsValid = (Formal == InvalidMatchClass) || isSubclass(Formal, OptionalMatchClass);
  ------------------
  |  Branch (2396:25): [True: 1.22k, False: 0]
  |  Branch (2396:58): [True: 0, False: 0]
  ------------------
 2397|  1.22k|        if (!OperandsValid) ErrorInfo = ActualIdx;
  ------------------
  |  Branch (2397:13): [True: 0, False: 1.22k]
  ------------------
 2398|  1.22k|        break;
 2399|  1.22k|      }
 2400|  2.43k|      MCParsedAsmOperand &Actual = *Operands[ActualIdx];
 2401|  2.43k|      unsigned Diag = validateOperandClass(Actual, Formal);
 2402|  2.43k|      if (Diag == Match_Success) {
  ------------------
  |  Branch (2402:11): [True: 1.85k, False: 581]
  ------------------
 2403|  1.85k|        DEBUG_WITH_TYPE("asm-matcher",
 2404|  1.85k|                        dbgs() << "match success using generic matcher\n");
 2405|  1.85k|        ++ActualIdx;
 2406|  1.85k|        continue;
 2407|  1.85k|      }
 2408|       |      // If the generic handler indicates an invalid operand
 2409|       |      // failure, check for a special case.
 2410|    581|      if (Diag != Match_Success) {
  ------------------
  |  Branch (2410:11): [True: 581, False: 0]
  ------------------
 2411|    581|        unsigned TargetDiag = validateTargetOperandClass(Actual, Formal);
 2412|    581|        if (TargetDiag == Match_Success) {
  ------------------
  |  Branch (2412:13): [True: 0, False: 581]
  ------------------
 2413|      0|          DEBUG_WITH_TYPE("asm-matcher",
 2414|      0|                          dbgs() << "match success using target matcher\n");
 2415|      0|          ++ActualIdx;
 2416|      0|          continue;
 2417|      0|        }
 2418|       |        // If the target matcher returned a specific error code use
 2419|       |        // that, else use the one from the generic matcher.
 2420|    581|        if (TargetDiag != Match_InvalidOperand && HasRequiredFeatures)
  ------------------
  |  Branch (2420:13): [True: 0, False: 581]
  |  Branch (2420:51): [True: 0, False: 0]
  ------------------
 2421|      0|          Diag = TargetDiag;
 2422|    581|      }
 2423|       |      // If current formal operand wasn't matched and it is optional
 2424|       |      // then try to match next formal operand
 2425|    581|      if (Diag == Match_InvalidOperand && isSubclass(Formal, OptionalMatchClass)) {
  ------------------
  |  Branch (2425:11): [True: 396, False: 185]
  |  Branch (2425:43): [True: 0, False: 396]
  ------------------
 2426|      0|        DEBUG_WITH_TYPE("asm-matcher", dbgs() << "ignoring optional operand\n");
 2427|      0|        continue;
 2428|      0|      }
 2429|       |      // If this operand is broken for all of the instances of this
 2430|       |      // mnemonic, keep track of it so we can report loc info.
 2431|       |      // If we already had a match that only failed due to a
 2432|       |      // target predicate, that diagnostic is preferred.
 2433|    581|      if (!HadMatchOtherThanPredicate &&
  ------------------
  |  Branch (2433:11): [True: 581, False: 0]
  ------------------
 2434|    581|          (it == MnemonicRange.first || ErrorInfo <= ActualIdx)) {
  ------------------
  |  Branch (2434:12): [True: 392, False: 189]
  |  Branch (2434:41): [True: 182, False: 7]
  ------------------
 2435|    574|        if (HasRequiredFeatures && (ErrorInfo != ActualIdx || Diag != Match_InvalidOperand))
  ------------------
  |  Branch (2435:13): [True: 550, False: 24]
  |  Branch (2435:37): [True: 384, False: 166]
  |  Branch (2435:63): [True: 48, False: 118]
  ------------------
 2436|    432|          RetCode = Diag;
 2437|    574|        ErrorInfo = ActualIdx;
 2438|    574|      }
 2439|       |      // Otherwise, just reject this instance of the mnemonic.
 2440|    581|      OperandsValid = false;
 2441|    581|      break;
 2442|    581|    }
 2443|       |
 2444|  1.80k|    if (!OperandsValid) {
  ------------------
  |  Branch (2444:9): [True: 581, False: 1.22k]
  ------------------
 2445|    581|      DEBUG_WITH_TYPE("asm-matcher", dbgs() << "Opcode result: multiple "
 2446|    581|                                               "operand mismatches, ignoring "
 2447|    581|                                               "this opcode\n");
 2448|    581|      continue;
 2449|    581|    }
 2450|  1.22k|    if (!HasRequiredFeatures) {
  ------------------
  |  Branch (2450:9): [True: 3, False: 1.21k]
  ------------------
 2451|      3|      HadMatchOtherThanFeatures = true;
 2452|      3|      FeatureBitset NewMissingFeatures = RequiredFeatures & ~AvailableFeaturesFB;
 2453|      3|      DEBUG_WITH_TYPE("asm-matcher", dbgs() << "Missing target features:";
 2454|      3|                       for (unsigned I = 0, E = NewMissingFeatures.size(); I != E; ++I)
 2455|      3|                         if (NewMissingFeatures[I])
 2456|      3|                           dbgs() << ' ' << I;
 2457|      3|                       dbgs() << "\n");
 2458|      3|      if (NewMissingFeatures.count() <=
  ------------------
  |  Branch (2458:11): [True: 3, False: 0]
  ------------------
 2459|      3|          MissingFeatures.count())
 2460|      3|        MissingFeatures = NewMissingFeatures;
 2461|      3|      continue;
 2462|      3|    }
 2463|       |
 2464|  1.21k|    Inst.clear();
 2465|       |
 2466|  1.21k|    Inst.setOpcode(it->Opcode);
 2467|       |    // We have a potential match but have not rendered the operands.
 2468|       |    // Check the target predicate to handle any context sensitive
 2469|       |    // constraints.
 2470|       |    // For example, Ties that are referenced multiple times must be
 2471|       |    // checked here to ensure the input is the same for each match
 2472|       |    // constraints. If we leave it any later the ties will have been
 2473|       |    // canonicalized
 2474|  1.21k|    unsigned MatchResult;
 2475|  1.21k|    if ((MatchResult = checkTargetMatchPredicate(Inst)) != Match_Success) {
  ------------------
  |  Branch (2475:9): [True: 0, False: 1.21k]
  ------------------
 2476|      0|      Inst.clear();
 2477|      0|      DEBUG_WITH_TYPE(
 2478|      0|          "asm-matcher",
 2479|      0|          dbgs() << "Early target match predicate failed with diag code "
 2480|      0|                 << MatchResult << "\n");
 2481|      0|      RetCode = MatchResult;
 2482|      0|      HadMatchOtherThanPredicate = true;
 2483|      0|      continue;
 2484|      0|    }
 2485|       |
 2486|  1.21k|    if (matchingInlineAsm) {
  ------------------
  |  Branch (2486:9): [True: 0, False: 1.21k]
  ------------------
 2487|      0|      convertToMapAndConstraints(it->ConvertFn, Operands);
 2488|      0|      if (!checkAsmTiedOperandConstraints(*this, it->ConvertFn, Operands, ErrorInfo))
  ------------------
  |  Branch (2488:11): [True: 0, False: 0]
  ------------------
 2489|      0|        return Match_InvalidOperand;
 2490|       |
 2491|      0|      return Match_Success;
 2492|      0|    }
 2493|       |
 2494|       |    // We have selected a definite instruction, convert the parsed
 2495|       |    // operands into the appropriate MCInst.
 2496|  1.21k|    convertToMCInst(it->ConvertFn, Inst, it->Opcode, Operands);
 2497|       |
 2498|       |    // We have a potential match. Check the target predicate to
 2499|       |    // handle any context sensitive constraints.
 2500|  1.21k|    if ((MatchResult = checkTargetMatchPredicate(Inst)) != Match_Success) {
  ------------------
  |  Branch (2500:9): [True: 0, False: 1.21k]
  ------------------
 2501|      0|      DEBUG_WITH_TYPE("asm-matcher",
 2502|      0|                      dbgs() << "Target match predicate failed with diag code "
 2503|      0|                             << MatchResult << "\n");
 2504|      0|      Inst.clear();
 2505|      0|      RetCode = MatchResult;
 2506|      0|      HadMatchOtherThanPredicate = true;
 2507|      0|      continue;
 2508|      0|    }
 2509|       |
 2510|  1.21k|    if (!checkAsmTiedOperandConstraints(*this, it->ConvertFn, Operands, ErrorInfo))
  ------------------
  |  Branch (2510:9): [True: 0, False: 1.21k]
  ------------------
 2511|      0|      return Match_InvalidOperand;
 2512|       |
 2513|  1.21k|    DEBUG_WITH_TYPE(
 2514|  1.21k|        "asm-matcher",
 2515|  1.21k|        dbgs() << "Opcode result: complete match, selecting this opcode\n");
 2516|  1.21k|    return Match_Success;
 2517|  1.21k|  }
 2518|       |
 2519|       |  // Okay, we had no match.  Try to return a useful error code.
 2520|    238|  if (HadMatchOtherThanPredicate || !HadMatchOtherThanFeatures)
  ------------------
  |  Branch (2520:7): [True: 0, False: 238]
  |  Branch (2520:37): [True: 235, False: 3]
  ------------------
 2521|    235|    return RetCode;
 2522|       |
 2523|      3|  ErrorInfo = 0;
 2524|      3|  return Match_MissingFeature;
 2525|    238|}
_ZN7llvm_ks14RISCVAsmParser21tryCustomParseOperandERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEEj:
 2605|  1.40k|                      unsigned MCK) {
 2606|       |
 2607|  1.40k|  switch(MCK) {
 2608|    146|  case MCK_BareSymbol:
  ------------------
  |  Branch (2608:3): [True: 146, False: 1.25k]
  ------------------
 2609|    146|    return parseBareSymbol(Operands);
 2610|    124|  case MCK_CSRSystemRegister:
  ------------------
  |  Branch (2610:3): [True: 124, False: 1.28k]
  ------------------
 2611|    124|    return parseCSRSystemRegister(Operands);
 2612|     41|  case MCK_CallSymbol:
  ------------------
  |  Branch (2612:3): [True: 41, False: 1.36k]
  ------------------
 2613|     41|    return parseCallSymbol(Operands);
 2614|  1.08k|  case MCK_SImm21Lsb0JAL:
  ------------------
  |  Branch (2614:3): [True: 1.08k, False: 317]
  ------------------
 2615|  1.08k|    return parseJALOffset(Operands);
 2616|      6|  case MCK_TPRelAddSymbol:
  ------------------
  |  Branch (2616:3): [True: 6, False: 1.39k]
  ------------------
 2617|      6|    return parseOperandWithModifier(Operands);
 2618|      0|  default:
  ------------------
  |  Branch (2618:3): [True: 0, False: 1.40k]
  ------------------
 2619|      0|    return MatchOperand_NoMatch;
 2620|  1.40k|  }
 2621|      0|  return MatchOperand_NoMatch;
 2622|  1.40k|}
_ZN7llvm_ks14RISCVAsmParser22MatchOperandParserImplERNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEENS_9StringRefE:
 2626|  24.4k|                       StringRef Mnemonic) {
 2627|       |  // Get the current feature set.
 2628|  24.4k|  const FeatureBitset &AvailableFeaturesFB = getAvailableFeaturesFB();
 2629|       |
 2630|       |  // Get the next operand index.
 2631|  24.4k|  unsigned NextOpNum = Operands.size() - 1;
 2632|       |  // Search the table.
 2633|  24.4k|  auto MnemonicRange =
 2634|  24.4k|    std::equal_range(std::begin(OperandMatchTable), std::end(OperandMatchTable),
 2635|  24.4k|                     Mnemonic, LessOpcodeOperand());
 2636|       |
 2637|  24.4k|  if (MnemonicRange.first == MnemonicRange.second)
  ------------------
  |  Branch (2637:7): [True: 18.1k, False: 6.34k]
  ------------------
 2638|  18.1k|    return MatchOperand_NoMatch;
 2639|       |
 2640|  6.34k|  for (const OperandMatchEntry *it = MnemonicRange.first,
 2641|  11.5k|       *ie = MnemonicRange.second; it != ie; ++it) {
  ------------------
  |  Branch (2641:36): [True: 6.47k, False: 5.03k]
  ------------------
 2642|       |    // equal_range guarantees that instruction mnemonic matches.
 2643|  6.47k|    assert(Mnemonic == it->getMnemonic());
  ------------------
  |  Branch (2643:5): [True: 6.47k, False: 0]
  ------------------
 2644|       |
 2645|       |    // check if the available features match
 2646|  6.47k|    const FeatureBitset &RequiredFeatures = FeatureBitsets[it->RequiredFeaturesIdx];
 2647|  6.47k|    if ((AvailableFeaturesFB & RequiredFeatures) != RequiredFeatures)
  ------------------
  |  Branch (2647:9): [True: 234, False: 6.23k]
  ------------------
 2648|    234|        continue;
 2649|       |
 2650|       |    // check if the operand in question has a custom parser.
 2651|  6.23k|    if (!(it->OperandMask & (1 << NextOpNum)))
  ------------------
  |  Branch (2651:9): [True: 4.83k, False: 1.40k]
  ------------------
 2652|  4.83k|      continue;
 2653|       |
 2654|       |    // call custom parse method to handle the operand
 2655|  1.40k|    OperandMatchResultTy Result = tryCustomParseOperand(Operands, it->Class);
 2656|  1.40k|    if (Result != MatchOperand_NoMatch)
  ------------------
  |  Branch (2656:9): [True: 1.30k, False: 102]
  ------------------
 2657|  1.30k|      return Result;
 2658|  1.40k|  }
 2659|       |
 2660|       |  // Okay, we had no match.
 2661|  5.03k|  return MatchOperand_NoMatch;
 2662|  6.34k|}
RISCVAsmParser.cpp:_ZL20applyMnemonicAliasesRN7llvm_ks9StringRefERKNS_13FeatureBitsetEj:
  541|  3.23k|static void applyMnemonicAliases(StringRef &Mnemonic, const FeatureBitset &Features, unsigned VariantID) {
  542|  3.23k|  switch (VariantID) {
  ------------------
  |  Branch (542:11): [True: 3.23k, False: 0]
  ------------------
  543|  3.23k|    case 0:
  ------------------
  |  Branch (543:5): [True: 3.23k, False: 0]
  ------------------
  544|  3.23k|      switch (Mnemonic.size()) {
  545|  3.00k|      default: break;
  ------------------
  |  Branch (545:7): [True: 3.00k, False: 235]
  ------------------
  546|  3.00k|      case 4:	 // 1 string to match.
  ------------------
  |  Branch (546:7): [True: 111, False: 3.12k]
  ------------------
  547|    111|        if (memcmp(Mnemonic.data()+0, "move", 4) != 0)
  ------------------
  |  Branch (547:13): [True: 110, False: 1]
  ------------------
  548|    110|          break;
  549|      1|        Mnemonic = "mv";	 // "move"
  550|      1|        return;
  551|     58|      case 5:	 // 1 string to match.
  ------------------
  |  Branch (551:7): [True: 58, False: 3.17k]
  ------------------
  552|     58|        if (memcmp(Mnemonic.data()+0, "scall", 5) != 0)
  ------------------
  |  Branch (552:13): [True: 40, False: 18]
  ------------------
  553|     40|          break;
  554|     18|        Mnemonic = "ecall";	 // "scall"
  555|     18|        return;
  556|     40|      case 6:	 // 1 string to match.
  ------------------
  |  Branch (556:7): [True: 40, False: 3.19k]
  ------------------
  557|     40|        if (memcmp(Mnemonic.data()+0, "sbreak", 6) != 0)
  ------------------
  |  Branch (557:13): [True: 39, False: 1]
  ------------------
  558|     39|          break;
  559|      1|        Mnemonic = "ebreak";	 // "sbreak"
  560|      1|        return;
  561|     26|      case 7:	 // 2 strings to match.
  ------------------
  |  Branch (561:7): [True: 26, False: 3.21k]
  ------------------
  562|     26|        if (memcmp(Mnemonic.data()+0, "fmv.", 4) != 0)
  ------------------
  |  Branch (562:13): [True: 23, False: 3]
  ------------------
  563|     23|          break;
  564|      3|        switch (Mnemonic[4]) {
  565|      1|        default: break;
  ------------------
  |  Branch (565:9): [True: 1, False: 2]
  ------------------
  566|      1|        case 's':	 // 1 string to match.
  ------------------
  |  Branch (566:9): [True: 1, False: 2]
  ------------------
  567|      1|          if (memcmp(Mnemonic.data()+5, ".x", 2) != 0)
  ------------------
  |  Branch (567:15): [True: 1, False: 0]
  ------------------
  568|      1|            break;
  569|      0|          if (Features.test(Feature_HasStdExtFBit))	 // "fmv.s.x"
  ------------------
  |  Branch (569:15): [True: 0, False: 0]
  ------------------
  570|      0|            Mnemonic = "fmv.w.x";
  571|      0|          return;
  572|      1|        case 'x':	 // 1 string to match.
  ------------------
  |  Branch (572:9): [True: 1, False: 2]
  ------------------
  573|      1|          if (memcmp(Mnemonic.data()+5, ".s", 2) != 0)
  ------------------
  |  Branch (573:15): [True: 1, False: 0]
  ------------------
  574|      1|            break;// if ((Features & Feature_HasStdExtFBit) == Feature_HasStdExtFBit)	 // "fmv.x.s"
  575|      0|          if (Features.test(Feature_HasStdExtFBit))	 // "fmv.x.s"
  ------------------
  |  Branch (575:15): [True: 0, False: 0]
  ------------------
  576|      0|            Mnemonic = "fmv.x.w";
  577|      0|          return;
  578|      3|        }
  579|      3|        break;
  580|  3.23k|      }
  581|  3.21k|    break;
  582|  3.23k|  }
  583|  3.21k|  switch (Mnemonic.size()) {
  584|  3.00k|  default: break;
  ------------------
  |  Branch (584:3): [True: 3.00k, False: 215]
  ------------------
  585|  3.00k|  case 4:	 // 1 string to match.
  ------------------
  |  Branch (585:3): [True: 110, False: 3.10k]
  ------------------
  586|    110|    if (memcmp(Mnemonic.data()+0, "move", 4) != 0)
  ------------------
  |  Branch (586:9): [True: 110, False: 0]
  ------------------
  587|    110|      break;
  588|      0|    Mnemonic = "mv";	 // "move"
  589|      0|    return;
  590|     40|  case 5:	 // 1 string to match.
  ------------------
  |  Branch (590:3): [True: 40, False: 3.17k]
  ------------------
  591|     40|    if (memcmp(Mnemonic.data()+0, "scall", 5) != 0)
  ------------------
  |  Branch (591:9): [True: 40, False: 0]
  ------------------
  592|     40|      break;
  593|      0|    Mnemonic = "ecall";	 // "scall"
  594|      0|    return;
  595|     39|  case 6:	 // 1 string to match.
  ------------------
  |  Branch (595:3): [True: 39, False: 3.17k]
  ------------------
  596|     39|    if (memcmp(Mnemonic.data()+0, "sbreak", 6) != 0)
  ------------------
  |  Branch (596:9): [True: 39, False: 0]
  ------------------
  597|     39|      break;
  598|      0|    Mnemonic = "ebreak";	 // "sbreak"
  599|      0|    return;
  600|     26|  case 7:	 // 2 strings to match.
  ------------------
  |  Branch (600:3): [True: 26, False: 3.19k]
  ------------------
  601|     26|    if (memcmp(Mnemonic.data()+0, "fmv.", 4) != 0)
  ------------------
  |  Branch (601:9): [True: 23, False: 3]
  ------------------
  602|     23|      break;
  603|      3|    switch (Mnemonic[4]) {
  604|      1|    default: break;
  ------------------
  |  Branch (604:5): [True: 1, False: 2]
  ------------------
  605|      1|    case 's':	 // 1 string to match.
  ------------------
  |  Branch (605:5): [True: 1, False: 2]
  ------------------
  606|      1|      if (memcmp(Mnemonic.data()+5, ".x", 2) != 0)
  ------------------
  |  Branch (606:11): [True: 1, False: 0]
  ------------------
  607|      1|        break;
  608|      0|      if (Features.test(Feature_HasStdExtFBit))	 // "fmv.s.x"
  ------------------
  |  Branch (608:11): [True: 0, False: 0]
  ------------------
  609|      0|        Mnemonic = "fmv.w.x";
  610|      0|      return;
  611|      1|    case 'x':	 // 1 string to match.
  ------------------
  |  Branch (611:5): [True: 1, False: 2]
  ------------------
  612|      1|      if (memcmp(Mnemonic.data()+5, ".s", 2) != 0)
  ------------------
  |  Branch (612:11): [True: 1, False: 0]
  ------------------
  613|      1|        break;
  614|      0|      if (Features.test(Feature_HasStdExtFBit))	 // "fmv.x.s"
  ------------------
  |  Branch (614:11): [True: 0, False: 0]
  ------------------
  615|      0|        Mnemonic = "fmv.x.w";
  616|      0|      return;
  617|      3|    }
  618|      3|    break;
  619|  3.21k|  }
  620|  3.21k|}
RISCVAsmParser.cpp:_ZNK12_GLOBAL__N_110MatchEntry11getMnemonicEv:
 1849|  45.0k|    StringRef getMnemonic() const {
 1850|  45.0k|      return StringRef(MnemonicTable + Mnemonic + 1,
 1851|  45.0k|                       MnemonicTable[Mnemonic]);
 1852|  45.0k|    }
RISCVAsmParser.cpp:_ZL10isSubclassN12_GLOBAL__N_114MatchClassKindES0_:
 1220|  1.39k|static bool isSubclass(MatchClassKind A, MatchClassKind B) {
 1221|  1.39k|  if (A == B)
  ------------------
  |  Branch (1221:7): [True: 17, False: 1.37k]
  ------------------
 1222|     17|    return true;
 1223|       |
 1224|  1.37k|  switch (A) {
 1225|    410|  default:
  ------------------
  |  Branch (1225:3): [True: 410, False: 965]
  ------------------
 1226|    410|    return false;
 1227|       |
 1228|    795|  case MCK_SP:
  ------------------
  |  Branch (1228:3): [True: 795, False: 580]
  ------------------
 1229|    795|    switch (B) {
 1230|      0|    default: return false;
  ------------------
  |  Branch (1230:5): [True: 0, False: 795]
  ------------------
 1231|      0|    case MCK_GPRNoX0: return true;
  ------------------
  |  Branch (1231:5): [True: 0, False: 795]
  ------------------
 1232|    795|    case MCK_GPR: return true;
  ------------------
  |  Branch (1232:5): [True: 795, False: 0]
  ------------------
 1233|    795|    }
 1234|       |
 1235|      9|  case MCK_Reg6:
  ------------------
  |  Branch (1235:3): [True: 9, False: 1.36k]
  ------------------
 1236|      9|    switch (B) {
 1237|      0|    default: return false;
  ------------------
  |  Branch (1237:5): [True: 0, False: 9]
  ------------------
 1238|      0|    case MCK_GPRC: return true;
  ------------------
  |  Branch (1238:5): [True: 0, False: 9]
  ------------------
 1239|      0|    case MCK_GPRTC: return true;
  ------------------
  |  Branch (1239:5): [True: 0, False: 9]
  ------------------
 1240|      0|    case MCK_GPRNoX0X2: return true;
  ------------------
  |  Branch (1240:5): [True: 0, False: 9]
  ------------------
 1241|      0|    case MCK_GPRNoX0: return true;
  ------------------
  |  Branch (1241:5): [True: 0, False: 9]
  ------------------
 1242|      9|    case MCK_GPR: return true;
  ------------------
  |  Branch (1242:5): [True: 9, False: 0]
  ------------------
 1243|      9|    }
 1244|       |
 1245|      5|  case MCK_FPR32C:
  ------------------
  |  Branch (1245:3): [True: 5, False: 1.37k]
  ------------------
 1246|      5|    return B == MCK_FPR32;
 1247|       |
 1248|      0|  case MCK_FPR64C:
  ------------------
  |  Branch (1248:3): [True: 0, False: 1.37k]
  ------------------
 1249|      0|    return B == MCK_FPR64;
 1250|       |
 1251|     37|  case MCK_GPRC:
  ------------------
  |  Branch (1251:3): [True: 37, False: 1.33k]
  ------------------
 1252|     37|    switch (B) {
 1253|      0|    default: return false;
  ------------------
  |  Branch (1253:5): [True: 0, False: 37]
  ------------------
 1254|      0|    case MCK_GPRNoX0X2: return true;
  ------------------
  |  Branch (1254:5): [True: 0, False: 37]
  ------------------
 1255|      0|    case MCK_GPRNoX0: return true;
  ------------------
  |  Branch (1255:5): [True: 0, False: 37]
  ------------------
 1256|     37|    case MCK_GPR: return true;
  ------------------
  |  Branch (1256:5): [True: 37, False: 0]
  ------------------
 1257|     37|    }
 1258|       |
 1259|     28|  case MCK_GPRTC:
  ------------------
  |  Branch (1259:3): [True: 28, False: 1.34k]
  ------------------
 1260|     28|    switch (B) {
 1261|      0|    default: return false;
  ------------------
  |  Branch (1261:5): [True: 0, False: 28]
  ------------------
 1262|      0|    case MCK_GPRNoX0X2: return true;
  ------------------
  |  Branch (1262:5): [True: 0, False: 28]
  ------------------
 1263|      0|    case MCK_GPRNoX0: return true;
  ------------------
  |  Branch (1263:5): [True: 0, False: 28]
  ------------------
 1264|     28|    case MCK_GPR: return true;
  ------------------
  |  Branch (1264:5): [True: 28, False: 0]
  ------------------
 1265|     28|    }
 1266|       |
 1267|     91|  case MCK_GPRNoX0X2:
  ------------------
  |  Branch (1267:3): [True: 91, False: 1.28k]
  ------------------
 1268|     91|    switch (B) {
 1269|      1|    default: return false;
  ------------------
  |  Branch (1269:5): [True: 1, False: 90]
  ------------------
 1270|      0|    case MCK_GPRNoX0: return true;
  ------------------
  |  Branch (1270:5): [True: 0, False: 91]
  ------------------
 1271|     90|    case MCK_GPR: return true;
  ------------------
  |  Branch (1271:5): [True: 90, False: 1]
  ------------------
 1272|     91|    }
 1273|       |
 1274|      0|  case MCK_GPRNoX0:
  ------------------
  |  Branch (1274:3): [True: 0, False: 1.37k]
  ------------------
 1275|      0|    return B == MCK_GPR;
 1276|  1.37k|  }
 1277|  1.37k|}
RISCVAsmParser.cpp:_ZL20validateOperandClassRN7llvm_ks18MCParsedAsmOperandEN12_GLOBAL__N_114MatchClassKindE:
 1279|  2.43k|static unsigned validateOperandClass(MCParsedAsmOperand &GOp, MatchClassKind Kind) {
 1280|  2.43k|  RISCVOperand &Operand = (RISCVOperand&)GOp;
 1281|  2.43k|  if (Kind == InvalidMatchClass)
  ------------------
  |  Branch (1281:7): [True: 7, False: 2.42k]
  ------------------
 1282|      7|    return MCTargetAsmParser::Match_InvalidOperand;
 1283|       |
 1284|  2.42k|  if (Operand.isToken() && Kind <= MCK_LAST_TOKEN)
  ------------------
  |  Branch (1284:7): [True: 1, False: 2.42k]
  |  Branch (1284:28): [True: 0, False: 1]
  ------------------
 1285|      0|    return isSubclass(matchTokenString(Operand.getToken()), Kind) ?
  ------------------
  |  Branch (1285:12): [True: 0, False: 0]
  ------------------
 1286|      0|             MCTargetAsmParser::Match_Success :
 1287|      0|             MCTargetAsmParser::Match_InvalidOperand;
 1288|       |
 1289|  2.42k|  switch (Kind) {
 1290|  1.36k|  default: break;
  ------------------
  |  Branch (1290:3): [True: 1.36k, False: 1.06k]
  ------------------
 1291|       |  // 'BareSymbol' class
 1292|  1.36k|  case MCK_BareSymbol: {
  ------------------
  |  Branch (1292:3): [True: 8, False: 2.42k]
  ------------------
 1293|      8|    DiagnosticPredicate DP(Operand.isBareSymbol());
 1294|      8|    if (DP.isMatch())
  ------------------
  |  Branch (1294:9): [True: 3, False: 5]
  ------------------
 1295|      3|      return MCTargetAsmParser::Match_Success;
 1296|      5|    if (DP.isNearMatch())
  ------------------
  |  Branch (1296:9): [True: 5, False: 0]
  ------------------
 1297|      5|      return RISCVAsmParser::Match_InvalidBareSymbol;
 1298|      0|    break;
 1299|      5|    }
 1300|       |  // 'CLUIImm' class
 1301|      0|  case MCK_CLUIImm: {
  ------------------
  |  Branch (1301:3): [True: 0, False: 2.42k]
  ------------------
 1302|      0|    DiagnosticPredicate DP(Operand.isCLUIImm());
 1303|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1303:9): [True: 0, False: 0]
  ------------------
 1304|      0|      return MCTargetAsmParser::Match_Success;
 1305|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1305:9): [True: 0, False: 0]
  ------------------
 1306|      0|      return RISCVAsmParser::Match_InvalidCLUIImm;
 1307|      0|    break;
 1308|      0|    }
 1309|       |  // 'CSRSystemRegister' class
 1310|     14|  case MCK_CSRSystemRegister: {
  ------------------
  |  Branch (1310:3): [True: 14, False: 2.41k]
  ------------------
 1311|     14|    DiagnosticPredicate DP(Operand.isCSRSystemRegister());
 1312|     14|    if (DP.isMatch())
  ------------------
  |  Branch (1312:9): [True: 12, False: 2]
  ------------------
 1313|     12|      return MCTargetAsmParser::Match_Success;
 1314|      2|    if (DP.isNearMatch())
  ------------------
  |  Branch (1314:9): [True: 2, False: 0]
  ------------------
 1315|      2|      return RISCVAsmParser::Match_InvalidCSRSystemRegister;
 1316|      0|    break;
 1317|      2|    }
 1318|       |  // 'CallSymbol' class
 1319|     16|  case MCK_CallSymbol: {
  ------------------
  |  Branch (1319:3): [True: 16, False: 2.41k]
  ------------------
 1320|     16|    DiagnosticPredicate DP(Operand.isCallSymbol());
 1321|     16|    if (DP.isMatch())
  ------------------
  |  Branch (1321:9): [True: 8, False: 8]
  ------------------
 1322|      8|      return MCTargetAsmParser::Match_Success;
 1323|      8|    if (DP.isNearMatch())
  ------------------
  |  Branch (1323:9): [True: 8, False: 0]
  ------------------
 1324|      8|      return RISCVAsmParser::Match_InvalidCallSymbol;
 1325|      0|    break;
 1326|      8|    }
 1327|       |  // 'FRMArg' class
 1328|      0|  case MCK_FRMArg: {
  ------------------
  |  Branch (1328:3): [True: 0, False: 2.42k]
  ------------------
 1329|      0|    DiagnosticPredicate DP(Operand.isFRMArg());
 1330|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1330:9): [True: 0, False: 0]
  ------------------
 1331|      0|      return MCTargetAsmParser::Match_Success;
 1332|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1332:9): [True: 0, False: 0]
  ------------------
 1333|      0|      return RISCVAsmParser::Match_InvalidFRMArg;
 1334|      0|    break;
 1335|      0|    }
 1336|       |  // 'FenceArg' class
 1337|      2|  case MCK_FenceArg: {
  ------------------
  |  Branch (1337:3): [True: 2, False: 2.42k]
  ------------------
 1338|      2|    DiagnosticPredicate DP(Operand.isFenceArg());
 1339|      2|    if (DP.isMatch())
  ------------------
  |  Branch (1339:9): [True: 0, False: 2]
  ------------------
 1340|      0|      return MCTargetAsmParser::Match_Success;
 1341|      2|    if (DP.isNearMatch())
  ------------------
  |  Branch (1341:9): [True: 2, False: 0]
  ------------------
 1342|      2|      return RISCVAsmParser::Match_InvalidFenceArg;
 1343|      0|    break;
 1344|      2|    }
 1345|       |  // 'Imm' class
 1346|      0|  case MCK_Imm: {
  ------------------
  |  Branch (1346:3): [True: 0, False: 2.42k]
  ------------------
 1347|      0|    DiagnosticPredicate DP(Operand.isImm());
 1348|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1348:9): [True: 0, False: 0]
  ------------------
 1349|      0|      return MCTargetAsmParser::Match_Success;
 1350|      0|    break;
 1351|      0|    }
 1352|       |  // 'SImm21Lsb0JAL' class
 1353|    808|  case MCK_SImm21Lsb0JAL: {
  ------------------
  |  Branch (1353:3): [True: 808, False: 1.62k]
  ------------------
 1354|    808|    DiagnosticPredicate DP(Operand.isSImm21Lsb0JAL());
 1355|    808|    if (DP.isMatch())
  ------------------
  |  Branch (1355:9): [True: 696, False: 112]
  ------------------
 1356|    696|      return MCTargetAsmParser::Match_Success;
 1357|    112|    if (DP.isNearMatch())
  ------------------
  |  Branch (1357:9): [True: 112, False: 0]
  ------------------
 1358|    112|      return RISCVAsmParser::Match_InvalidSImm21Lsb0JAL;
 1359|      0|    break;
 1360|    112|    }
 1361|       |  // 'TPRelAddSymbol' class
 1362|      0|  case MCK_TPRelAddSymbol: {
  ------------------
  |  Branch (1362:3): [True: 0, False: 2.42k]
  ------------------
 1363|      0|    DiagnosticPredicate DP(Operand.isTPRelAddSymbol());
 1364|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1364:9): [True: 0, False: 0]
  ------------------
 1365|      0|      return MCTargetAsmParser::Match_Success;
 1366|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1366:9): [True: 0, False: 0]
  ------------------
 1367|      0|      return RISCVAsmParser::Match_InvalidTPRelAddSymbol;
 1368|      0|    break;
 1369|      0|    }
 1370|       |  // 'UImmLog2XLen' class
 1371|      0|  case MCK_UImmLog2XLen: {
  ------------------
  |  Branch (1371:3): [True: 0, False: 2.42k]
  ------------------
 1372|      0|    DiagnosticPredicate DP(Operand.isUImmLog2XLen());
 1373|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1373:9): [True: 0, False: 0]
  ------------------
 1374|      0|      return MCTargetAsmParser::Match_Success;
 1375|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1375:9): [True: 0, False: 0]
  ------------------
 1376|      0|      return RISCVAsmParser::Match_InvalidUImmLog2XLen;
 1377|      0|    break;
 1378|      0|    }
 1379|       |  // 'UImmLog2XLenNonZero' class
 1380|      0|  case MCK_UImmLog2XLenNonZero: {
  ------------------
  |  Branch (1380:3): [True: 0, False: 2.42k]
  ------------------
 1381|      0|    DiagnosticPredicate DP(Operand.isUImmLog2XLenNonZero());
 1382|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1382:9): [True: 0, False: 0]
  ------------------
 1383|      0|      return MCTargetAsmParser::Match_Success;
 1384|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1384:9): [True: 0, False: 0]
  ------------------
 1385|      0|      return RISCVAsmParser::Match_InvalidUImmLog2XLenNonZero;
 1386|      0|    break;
 1387|      0|    }
 1388|       |  // 'UImm5' class
 1389|      6|  case MCK_UImm5: {
  ------------------
  |  Branch (1389:3): [True: 6, False: 2.42k]
  ------------------
 1390|      6|    DiagnosticPredicate DP(Operand.isUImm5());
 1391|      6|    if (DP.isMatch())
  ------------------
  |  Branch (1391:9): [True: 3, False: 3]
  ------------------
 1392|      3|      return MCTargetAsmParser::Match_Success;
 1393|      3|    if (DP.isNearMatch())
  ------------------
  |  Branch (1393:9): [True: 3, False: 0]
  ------------------
 1394|      3|      return RISCVAsmParser::Match_InvalidUImm5;
 1395|      0|    break;
 1396|      3|    }
 1397|       |  // 'SImm12' class
 1398|    206|  case MCK_SImm12: {
  ------------------
  |  Branch (1398:3): [True: 206, False: 2.22k]
  ------------------
 1399|    206|    DiagnosticPredicate DP(Operand.isSImm12());
 1400|    206|    if (DP.isMatch())
  ------------------
  |  Branch (1400:9): [True: 156, False: 50]
  ------------------
 1401|    156|      return MCTargetAsmParser::Match_Success;
 1402|     50|    if (DP.isNearMatch())
  ------------------
  |  Branch (1402:9): [True: 50, False: 0]
  ------------------
 1403|     50|      return RISCVAsmParser::Match_InvalidSImm12;
 1404|      0|    break;
 1405|     50|    }
 1406|       |  // 'SImm13Lsb0' class
 1407|      0|  case MCK_SImm13Lsb0: {
  ------------------
  |  Branch (1407:3): [True: 0, False: 2.42k]
  ------------------
 1408|      0|    DiagnosticPredicate DP(Operand.isSImm13Lsb0());
 1409|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1409:9): [True: 0, False: 0]
  ------------------
 1410|      0|      return MCTargetAsmParser::Match_Success;
 1411|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1411:9): [True: 0, False: 0]
  ------------------
 1412|      0|      return RISCVAsmParser::Match_InvalidSImm13Lsb0;
 1413|      0|    break;
 1414|      0|    }
 1415|       |  // 'UImm20LUI' class
 1416|      0|  case MCK_UImm20LUI: {
  ------------------
  |  Branch (1416:3): [True: 0, False: 2.42k]
  ------------------
 1417|      0|    DiagnosticPredicate DP(Operand.isUImm20LUI());
 1418|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1418:9): [True: 0, False: 0]
  ------------------
 1419|      0|      return MCTargetAsmParser::Match_Success;
 1420|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1420:9): [True: 0, False: 0]
  ------------------
 1421|      0|      return RISCVAsmParser::Match_InvalidUImm20LUI;
 1422|      0|    break;
 1423|      0|    }
 1424|       |  // 'UImm20AUIPC' class
 1425|      0|  case MCK_UImm20AUIPC: {
  ------------------
  |  Branch (1425:3): [True: 0, False: 2.42k]
  ------------------
 1426|      0|    DiagnosticPredicate DP(Operand.isUImm20AUIPC());
 1427|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1427:9): [True: 0, False: 0]
  ------------------
 1428|      0|      return MCTargetAsmParser::Match_Success;
 1429|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1429:9): [True: 0, False: 0]
  ------------------
 1430|      0|      return RISCVAsmParser::Match_InvalidUImm20AUIPC;
 1431|      0|    break;
 1432|      0|    }
 1433|       |  // 'ImmXLenLI' class
 1434|      0|  case MCK_ImmXLenLI: {
  ------------------
  |  Branch (1434:3): [True: 0, False: 2.42k]
  ------------------
 1435|      0|    DiagnosticPredicate DP(Operand.isImmXLenLI());
 1436|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1436:9): [True: 0, False: 0]
  ------------------
 1437|      0|      return MCTargetAsmParser::Match_Success;
 1438|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1438:9): [True: 0, False: 0]
  ------------------
 1439|      0|      return RISCVAsmParser::Match_InvalidImmXLenLI;
 1440|      0|    break;
 1441|      0|    }
 1442|       |  // 'SImm6' class
 1443|      0|  case MCK_SImm6: {
  ------------------
  |  Branch (1443:3): [True: 0, False: 2.42k]
  ------------------
 1444|      0|    DiagnosticPredicate DP(Operand.isSImm6());
 1445|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1445:9): [True: 0, False: 0]
  ------------------
 1446|      0|      return MCTargetAsmParser::Match_Success;
 1447|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1447:9): [True: 0, False: 0]
  ------------------
 1448|      0|      return RISCVAsmParser::Match_InvalidSImm6;
 1449|      0|    break;
 1450|      0|    }
 1451|       |  // 'SImm6NonZero' class
 1452|      0|  case MCK_SImm6NonZero: {
  ------------------
  |  Branch (1452:3): [True: 0, False: 2.42k]
  ------------------
 1453|      0|    DiagnosticPredicate DP(Operand.isSImm6NonZero());
 1454|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1454:9): [True: 0, False: 0]
  ------------------
 1455|      0|      return MCTargetAsmParser::Match_Success;
 1456|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1456:9): [True: 0, False: 0]
  ------------------
 1457|      0|      return RISCVAsmParser::Match_InvalidSImm6NonZero;
 1458|      0|    break;
 1459|      0|    }
 1460|       |  // 'UImm7Lsb00' class
 1461|      0|  case MCK_UImm7Lsb00: {
  ------------------
  |  Branch (1461:3): [True: 0, False: 2.42k]
  ------------------
 1462|      0|    DiagnosticPredicate DP(Operand.isUImm7Lsb00());
 1463|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1463:9): [True: 0, False: 0]
  ------------------
 1464|      0|      return MCTargetAsmParser::Match_Success;
 1465|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1465:9): [True: 0, False: 0]
  ------------------
 1466|      0|      return RISCVAsmParser::Match_InvalidUImm7Lsb00;
 1467|      0|    break;
 1468|      0|    }
 1469|       |  // 'UImm8Lsb00' class
 1470|      0|  case MCK_UImm8Lsb00: {
  ------------------
  |  Branch (1470:3): [True: 0, False: 2.42k]
  ------------------
 1471|      0|    DiagnosticPredicate DP(Operand.isUImm8Lsb00());
 1472|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1472:9): [True: 0, False: 0]
  ------------------
 1473|      0|      return MCTargetAsmParser::Match_Success;
 1474|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1474:9): [True: 0, False: 0]
  ------------------
 1475|      0|      return RISCVAsmParser::Match_InvalidUImm8Lsb00;
 1476|      0|    break;
 1477|      0|    }
 1478|       |  // 'UImm8Lsb000' class
 1479|      0|  case MCK_UImm8Lsb000: {
  ------------------
  |  Branch (1479:3): [True: 0, False: 2.42k]
  ------------------
 1480|      0|    DiagnosticPredicate DP(Operand.isUImm8Lsb000());
 1481|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1481:9): [True: 0, False: 0]
  ------------------
 1482|      0|      return MCTargetAsmParser::Match_Success;
 1483|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1483:9): [True: 0, False: 0]
  ------------------
 1484|      0|      return RISCVAsmParser::Match_InvalidUImm8Lsb000;
 1485|      0|    break;
 1486|      0|    }
 1487|       |  // 'SImm9Lsb0' class
 1488|      0|  case MCK_SImm9Lsb0: {
  ------------------
  |  Branch (1488:3): [True: 0, False: 2.42k]
  ------------------
 1489|      0|    DiagnosticPredicate DP(Operand.isSImm9Lsb0());
 1490|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1490:9): [True: 0, False: 0]
  ------------------
 1491|      0|      return MCTargetAsmParser::Match_Success;
 1492|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1492:9): [True: 0, False: 0]
  ------------------
 1493|      0|      return RISCVAsmParser::Match_InvalidSImm9Lsb0;
 1494|      0|    break;
 1495|      0|    }
 1496|       |  // 'UImm9Lsb000' class
 1497|      0|  case MCK_UImm9Lsb000: {
  ------------------
  |  Branch (1497:3): [True: 0, False: 2.42k]
  ------------------
 1498|      0|    DiagnosticPredicate DP(Operand.isUImm9Lsb000());
 1499|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1499:9): [True: 0, False: 0]
  ------------------
 1500|      0|      return MCTargetAsmParser::Match_Success;
 1501|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1501:9): [True: 0, False: 0]
  ------------------
 1502|      0|      return RISCVAsmParser::Match_InvalidUImm9Lsb000;
 1503|      0|    break;
 1504|      0|    }
 1505|       |  // 'UImm10Lsb00NonZero' class
 1506|      0|  case MCK_UImm10Lsb00NonZero: {
  ------------------
  |  Branch (1506:3): [True: 0, False: 2.42k]
  ------------------
 1507|      0|    DiagnosticPredicate DP(Operand.isUImm10Lsb00NonZero());
 1508|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1508:9): [True: 0, False: 0]
  ------------------
 1509|      0|      return MCTargetAsmParser::Match_Success;
 1510|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1510:9): [True: 0, False: 0]
  ------------------
 1511|      0|      return RISCVAsmParser::Match_InvalidUImm10Lsb00NonZero;
 1512|      0|    break;
 1513|      0|    }
 1514|       |  // 'SImm10Lsb0000NonZero' class
 1515|      0|  case MCK_SImm10Lsb0000NonZero: {
  ------------------
  |  Branch (1515:3): [True: 0, False: 2.42k]
  ------------------
 1516|      0|    DiagnosticPredicate DP(Operand.isSImm10Lsb0000NonZero());
 1517|      0|    if (DP.isMatch())
  ------------------
  |  Branch (1517:9): [True: 0, False: 0]
  ------------------
 1518|      0|      return MCTargetAsmParser::Match_Success;
 1519|      0|    if (DP.isNearMatch())
  ------------------
  |  Branch (1519:9): [True: 0, False: 0]
  ------------------
 1520|      0|      return RISCVAsmParser::Match_InvalidSImm10Lsb0000NonZero;
 1521|      0|    break;
 1522|      0|    }
 1523|       |  // 'SImm12Lsb0' class
 1524|      4|  case MCK_SImm12Lsb0: {
  ------------------
  |  Branch (1524:3): [True: 4, False: 2.42k]
  ------------------
 1525|      4|    DiagnosticPredicate DP(Operand.isSImm12Lsb0());
 1526|      4|    if (DP.isMatch())
  ------------------
  |  Branch (1526:9): [True: 1, False: 3]
  ------------------
 1527|      1|      return MCTargetAsmParser::Match_Success;
 1528|      3|    if (DP.isNearMatch())
  ------------------
  |  Branch (1528:9): [True: 3, False: 0]
  ------------------
 1529|      3|      return RISCVAsmParser::Match_InvalidSImm12Lsb0;
 1530|      0|    break;
 1531|      3|    }
 1532|  2.42k|  } // end switch (Kind)
 1533|       |
 1534|  1.36k|  if (Operand.isReg()) {
  ------------------
  |  Branch (1534:7): [True: 996, False: 369]
  ------------------
 1535|    996|    MatchClassKind OpKind;
 1536|    996|    switch (Operand.getReg()) {
 1537|      0|    default: OpKind = InvalidMatchClass; break;
  ------------------
  |  Branch (1537:5): [True: 0, False: 996]
  ------------------
 1538|     17|    case RISCV::X0: OpKind = MCK_GPR; break;
  ------------------
  |  Branch (1538:5): [True: 17, False: 979]
  ------------------
 1539|      2|    case RISCV::X1: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1539:5): [True: 2, False: 994]
  ------------------
 1540|    795|    case RISCV::X2: OpKind = MCK_SP; break;
  ------------------
  |  Branch (1540:5): [True: 795, False: 201]
  ------------------
 1541|     12|    case RISCV::X3: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1541:5): [True: 12, False: 984]
  ------------------
 1542|     20|    case RISCV::X4: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1542:5): [True: 20, False: 976]
  ------------------
 1543|      4|    case RISCV::X5: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1543:5): [True: 4, False: 992]
  ------------------
 1544|      0|    case RISCV::X6: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1544:5): [True: 0, False: 996]
  ------------------
 1545|      0|    case RISCV::X7: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1545:5): [True: 0, False: 996]
  ------------------
 1546|     27|    case RISCV::X8: OpKind = MCK_GPRC; break;
  ------------------
  |  Branch (1546:5): [True: 27, False: 969]
  ------------------
 1547|     10|    case RISCV::X9: OpKind = MCK_GPRC; break;
  ------------------
  |  Branch (1547:5): [True: 10, False: 986]
  ------------------
 1548|      3|    case RISCV::X10: OpKind = MCK_Reg6; break;
  ------------------
  |  Branch (1548:5): [True: 3, False: 993]
  ------------------
 1549|      0|    case RISCV::X11: OpKind = MCK_Reg6; break;
  ------------------
  |  Branch (1549:5): [True: 0, False: 996]
  ------------------
 1550|      2|    case RISCV::X12: OpKind = MCK_Reg6; break;
  ------------------
  |  Branch (1550:5): [True: 2, False: 994]
  ------------------
 1551|      0|    case RISCV::X13: OpKind = MCK_Reg6; break;
  ------------------
  |  Branch (1551:5): [True: 0, False: 996]
  ------------------
 1552|      4|    case RISCV::X14: OpKind = MCK_Reg6; break;
  ------------------
  |  Branch (1552:5): [True: 4, False: 992]
  ------------------
 1553|      0|    case RISCV::X15: OpKind = MCK_Reg6; break;
  ------------------
  |  Branch (1553:5): [True: 0, False: 996]
  ------------------
 1554|      0|    case RISCV::X16: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1554:5): [True: 0, False: 996]
  ------------------
 1555|      0|    case RISCV::X17: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1555:5): [True: 0, False: 996]
  ------------------
 1556|      1|    case RISCV::X18: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1556:5): [True: 1, False: 995]
  ------------------
 1557|      8|    case RISCV::X19: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1557:5): [True: 8, False: 988]
  ------------------
 1558|      6|    case RISCV::X20: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1558:5): [True: 6, False: 990]
  ------------------
 1559|      4|    case RISCV::X21: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1559:5): [True: 4, False: 992]
  ------------------
 1560|      6|    case RISCV::X22: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1560:5): [True: 6, False: 990]
  ------------------
 1561|     11|    case RISCV::X23: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1561:5): [True: 11, False: 985]
  ------------------
 1562|      3|    case RISCV::X24: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1562:5): [True: 3, False: 993]
  ------------------
 1563|     18|    case RISCV::X25: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1563:5): [True: 18, False: 978]
  ------------------
 1564|      0|    case RISCV::X26: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1564:5): [True: 0, False: 996]
  ------------------
 1565|      0|    case RISCV::X27: OpKind = MCK_GPRNoX0X2; break;
  ------------------
  |  Branch (1565:5): [True: 0, False: 996]
  ------------------
 1566|      3|    case RISCV::X28: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1566:5): [True: 3, False: 993]
  ------------------
 1567|     12|    case RISCV::X29: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1567:5): [True: 12, False: 984]
  ------------------
 1568|      6|    case RISCV::X30: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1568:5): [True: 6, False: 990]
  ------------------
 1569|      3|    case RISCV::X31: OpKind = MCK_GPRTC; break;
  ------------------
  |  Branch (1569:5): [True: 3, False: 993]
  ------------------
 1570|      4|    case RISCV::F0_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1570:5): [True: 4, False: 992]
  ------------------
 1571|      0|    case RISCV::F1_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1571:5): [True: 0, False: 996]
  ------------------
 1572|      0|    case RISCV::F2_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1572:5): [True: 0, False: 996]
  ------------------
 1573|      0|    case RISCV::F3_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1573:5): [True: 0, False: 996]
  ------------------
 1574|      1|    case RISCV::F4_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1574:5): [True: 1, False: 995]
  ------------------
 1575|      4|    case RISCV::F5_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1575:5): [True: 4, False: 992]
  ------------------
 1576|      0|    case RISCV::F6_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1576:5): [True: 0, False: 996]
  ------------------
 1577|      1|    case RISCV::F7_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1577:5): [True: 1, False: 995]
  ------------------
 1578|      1|    case RISCV::F8_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1578:5): [True: 1, False: 995]
  ------------------
 1579|      3|    case RISCV::F9_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1579:5): [True: 3, False: 993]
  ------------------
 1580|      0|    case RISCV::F10_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1580:5): [True: 0, False: 996]
  ------------------
 1581|      0|    case RISCV::F11_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1581:5): [True: 0, False: 996]
  ------------------
 1582|      0|    case RISCV::F12_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1582:5): [True: 0, False: 996]
  ------------------
 1583|      0|    case RISCV::F13_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1583:5): [True: 0, False: 996]
  ------------------
 1584|      0|    case RISCV::F14_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1584:5): [True: 0, False: 996]
  ------------------
 1585|      1|    case RISCV::F15_32: OpKind = MCK_FPR32C; break;
  ------------------
  |  Branch (1585:5): [True: 1, False: 995]
  ------------------
 1586|      0|    case RISCV::F16_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1586:5): [True: 0, False: 996]
  ------------------
 1587|      0|    case RISCV::F17_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1587:5): [True: 0, False: 996]
  ------------------
 1588|      1|    case RISCV::F18_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1588:5): [True: 1, False: 995]
  ------------------
 1589|      0|    case RISCV::F19_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1589:5): [True: 0, False: 996]
  ------------------
 1590|      0|    case RISCV::F20_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1590:5): [True: 0, False: 996]
  ------------------
 1591|      3|    case RISCV::F21_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1591:5): [True: 3, False: 993]
  ------------------
 1592|      0|    case RISCV::F22_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1592:5): [True: 0, False: 996]
  ------------------
 1593|      0|    case RISCV::F23_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1593:5): [True: 0, False: 996]
  ------------------
 1594|      0|    case RISCV::F24_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1594:5): [True: 0, False: 996]
  ------------------
 1595|      0|    case RISCV::F25_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1595:5): [True: 0, False: 996]
  ------------------
 1596|      0|    case RISCV::F26_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1596:5): [True: 0, False: 996]
  ------------------
 1597|      0|    case RISCV::F27_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1597:5): [True: 0, False: 996]
  ------------------
 1598|      0|    case RISCV::F28_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1598:5): [True: 0, False: 996]
  ------------------
 1599|      0|    case RISCV::F29_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1599:5): [True: 0, False: 996]
  ------------------
 1600|      0|    case RISCV::F30_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1600:5): [True: 0, False: 996]
  ------------------
 1601|      0|    case RISCV::F31_32: OpKind = MCK_FPR32; break;
  ------------------
  |  Branch (1601:5): [True: 0, False: 996]
  ------------------
 1602|      0|    case RISCV::F0_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1602:5): [True: 0, False: 996]
  ------------------
 1603|      0|    case RISCV::F1_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1603:5): [True: 0, False: 996]
  ------------------
 1604|      0|    case RISCV::F2_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1604:5): [True: 0, False: 996]
  ------------------
 1605|      0|    case RISCV::F3_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1605:5): [True: 0, False: 996]
  ------------------
 1606|      0|    case RISCV::F4_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1606:5): [True: 0, False: 996]
  ------------------
 1607|      0|    case RISCV::F5_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1607:5): [True: 0, False: 996]
  ------------------
 1608|      0|    case RISCV::F6_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1608:5): [True: 0, False: 996]
  ------------------
 1609|      0|    case RISCV::F7_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1609:5): [True: 0, False: 996]
  ------------------
 1610|      0|    case RISCV::F8_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1610:5): [True: 0, False: 996]
  ------------------
 1611|      0|    case RISCV::F9_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1611:5): [True: 0, False: 996]
  ------------------
 1612|      0|    case RISCV::F10_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1612:5): [True: 0, False: 996]
  ------------------
 1613|      0|    case RISCV::F11_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1613:5): [True: 0, False: 996]
  ------------------
 1614|      0|    case RISCV::F12_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1614:5): [True: 0, False: 996]
  ------------------
 1615|      0|    case RISCV::F13_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1615:5): [True: 0, False: 996]
  ------------------
 1616|      0|    case RISCV::F14_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1616:5): [True: 0, False: 996]
  ------------------
 1617|      0|    case RISCV::F15_64: OpKind = MCK_FPR64C; break;
  ------------------
  |  Branch (1617:5): [True: 0, False: 996]
  ------------------
 1618|      0|    case RISCV::F16_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1618:5): [True: 0, False: 996]
  ------------------
 1619|      0|    case RISCV::F17_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1619:5): [True: 0, False: 996]
  ------------------
 1620|      0|    case RISCV::F18_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1620:5): [True: 0, False: 996]
  ------------------
 1621|      0|    case RISCV::F19_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1621:5): [True: 0, False: 996]
  ------------------
 1622|      0|    case RISCV::F20_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1622:5): [True: 0, False: 996]
  ------------------
 1623|      0|    case RISCV::F21_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1623:5): [True: 0, False: 996]
  ------------------
 1624|      0|    case RISCV::F22_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1624:5): [True: 0, False: 996]
  ------------------
 1625|      0|    case RISCV::F23_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1625:5): [True: 0, False: 996]
  ------------------
 1626|      0|    case RISCV::F24_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1626:5): [True: 0, False: 996]
  ------------------
 1627|      0|    case RISCV::F25_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1627:5): [True: 0, False: 996]
  ------------------
 1628|      0|    case RISCV::F26_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1628:5): [True: 0, False: 996]
  ------------------
 1629|      0|    case RISCV::F27_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1629:5): [True: 0, False: 996]
  ------------------
 1630|      0|    case RISCV::F28_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1630:5): [True: 0, False: 996]
  ------------------
 1631|      0|    case RISCV::F29_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1631:5): [True: 0, False: 996]
  ------------------
 1632|      0|    case RISCV::F30_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1632:5): [True: 0, False: 996]
  ------------------
 1633|      0|    case RISCV::F31_64: OpKind = MCK_FPR64; break;
  ------------------
  |  Branch (1633:5): [True: 0, False: 996]
  ------------------
 1634|    996|    }
 1635|    996|    return isSubclass(OpKind, Kind) ? (unsigned)MCTargetAsmParser::Match_Success :
  ------------------
  |  Branch (1635:12): [True: 976, False: 20]
  ------------------
 1636|    996|                                      getDiagKindFromRegisterClass(Kind);
 1637|    996|  }
 1638|       |
 1639|    369|  if (Kind > MCK_LAST_TOKEN && Kind <= MCK_LAST_REGISTER)
  ------------------
  |  Branch (1639:7): [True: 362, False: 7]
  |  Branch (1639:32): [True: 362, False: 0]
  ------------------
 1640|    362|    return getDiagKindFromRegisterClass(Kind);
 1641|       |
 1642|      7|  return MCTargetAsmParser::Match_InvalidOperand;
 1643|    369|}
RISCVAsmParser.cpp:_ZL28getDiagKindFromRegisterClassN12_GLOBAL__N_114MatchClassKindE:
 1199|    382|static unsigned getDiagKindFromRegisterClass(MatchClassKind RegisterClass) {
 1200|    382|  return MCTargetAsmParser::Match_InvalidOperand;
 1201|    382|}
RISCVAsmParser.cpp:_ZL30checkAsmTiedOperandConstraintsRKN7llvm_ks14RISCVAsmParserEjRKNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS4_14default_deleteIS6_EEEEEERm:
 1721|  1.21k|                               uint64_t &ErrorInfo) {
 1722|  1.21k|  assert(Kind < CVT_NUM_SIGNATURES && "Invalid signature!");
  ------------------
  |  Branch (1722:3): [True: 1.21k, False: 0]
  |  Branch (1722:3): [True: 1.21k, Folded]
  |  Branch (1722:3): [True: 1.21k, False: 0]
  ------------------
 1723|  1.21k|  const uint8_t *Converter = ConversionTable[Kind];
 1724|  3.97k|  for (const uint8_t *p = Converter; *p; p+= 2) {
  ------------------
  |  Branch (1724:38): [True: 2.75k, False: 1.21k]
  ------------------
 1725|  2.75k|    switch (*p) {
 1726|      0|    case CVT_Tied: {
  ------------------
  |  Branch (1726:5): [True: 0, False: 2.75k]
  ------------------
 1727|      0|      unsigned OpIdx = *(p+1);
 1728|      0|      assert(OpIdx < (size_t)(std::end(TiedAsmOperandTable) -
  ------------------
  |  Branch (1728:7): [True: 0, False: 0]
  |  Branch (1728:7): [True: 0, Folded]
  |  Branch (1728:7): [True: 0, False: 0]
  ------------------
 1729|      0|                              std::begin(TiedAsmOperandTable)) &&
 1730|      0|             "Tied operand not found");
 1731|      0|      unsigned OpndNum1 = TiedAsmOperandTable[OpIdx][1];
 1732|      0|      unsigned OpndNum2 = TiedAsmOperandTable[OpIdx][2];
 1733|      0|      if (OpndNum1 != OpndNum2) {
  ------------------
  |  Branch (1733:11): [True: 0, False: 0]
  ------------------
 1734|      0|        auto &SrcOp1 = Operands[OpndNum1];
 1735|      0|        auto &SrcOp2 = Operands[OpndNum2];
 1736|      0|        if (SrcOp1->isReg() && SrcOp2->isReg()) {
  ------------------
  |  Branch (1736:13): [True: 0, False: 0]
  |  Branch (1736:32): [True: 0, False: 0]
  ------------------
 1737|      0|          if (SrcOp1->getReg() != SrcOp2->getReg()) {
  ------------------
  |  Branch (1737:15): [True: 0, False: 0]
  ------------------
 1738|      0|            ErrorInfo = OpndNum2;
 1739|      0|            return false;
 1740|      0|          }
 1741|      0|        }
 1742|      0|      }
 1743|      0|      break;
 1744|      0|    }
 1745|  2.75k|    default:
  ------------------
  |  Branch (1745:5): [True: 2.75k, False: 0]
  ------------------
 1746|  2.75k|      break;
 1747|  2.75k|    }
 1748|  2.75k|  }
 1749|  1.21k|  return true;
 1750|  1.21k|}
RISCVAsmParser.cpp:_ZNK12_GLOBAL__N_117OperandMatchEntry11getMnemonicEv:
 2534|   207k|    StringRef getMnemonic() const {
 2535|   207k|      return StringRef(MnemonicTable + Mnemonic + 1,
 2536|   207k|                       MnemonicTable[Mnemonic]);
 2537|   207k|    }
_ZN7llvm_ks14RISCVAsmParser20MatchInstructionImplERKNS_15SmallVectorImplINSt3__110unique_ptrINS_18MCParsedAsmOperandENS2_14default_deleteIS4_EEEEEERNS_6MCInstERmbj:
   29|  3.35k|                                unsigned VariantID = 0) {
   30|  3.35k|    FeatureBitset MissingFeatures;
   31|  3.35k|    return MatchInstructionImpl(Operands, Inst, ErrorInfo, MissingFeatures,
   32|  3.35k|                                matchingInlineAsm, VariantID);
   33|  3.35k|  }
RISCVAsmParser.cpp:_ZL17MatchRegisterNameN7llvm_ks9StringRefE:
   97|  14.3k|static unsigned MatchRegisterName(StringRef Name) {
   98|  14.3k|  switch (Name.size()) {
   99|  5.96k|  default: break;
  ------------------
  |  Branch (99:3): [True: 5.96k, False: 8.33k]
  ------------------
  100|  6.06k|  case 2:	 // 30 strings to match.
  ------------------
  |  Branch (100:3): [True: 6.06k, False: 8.24k]
  ------------------
  101|  6.06k|    switch (Name[0]) {
  102|  5.37k|    default: break;
  ------------------
  |  Branch (102:5): [True: 5.37k, False: 681]
  ------------------
  103|  5.37k|    case 'f':	 // 20 strings to match.
  ------------------
  |  Branch (103:5): [True: 403, False: 5.65k]
  ------------------
  104|    403|      switch (Name[1]) {
  105|    352|      default: break;
  ------------------
  |  Branch (105:7): [True: 352, False: 51]
  ------------------
  106|    352|      case '0':	 // 2 strings to match.
  ------------------
  |  Branch (106:7): [True: 3, False: 400]
  ------------------
  107|      3|        return 33;	 // "f0"
  108|      6|      case '1':	 // 2 strings to match.
  ------------------
  |  Branch (108:7): [True: 6, False: 397]
  ------------------
  109|      6|        return 35;	 // "f1"
  110|     12|      case '2':	 // 2 strings to match.
  ------------------
  |  Branch (110:7): [True: 12, False: 391]
  ------------------
  111|     12|        return 37;	 // "f2"
  112|      3|      case '3':	 // 2 strings to match.
  ------------------
  |  Branch (112:7): [True: 3, False: 400]
  ------------------
  113|      3|        return 39;	 // "f3"
  114|      2|      case '4':	 // 2 strings to match.
  ------------------
  |  Branch (114:7): [True: 2, False: 401]
  ------------------
  115|      2|        return 41;	 // "f4"
  116|      8|      case '5':	 // 2 strings to match.
  ------------------
  |  Branch (116:7): [True: 8, False: 395]
  ------------------
  117|      8|        return 43;	 // "f5"
  118|      3|      case '6':	 // 2 strings to match.
  ------------------
  |  Branch (118:7): [True: 3, False: 400]
  ------------------
  119|      3|        return 45;	 // "f6"
  120|      8|      case '7':	 // 2 strings to match.
  ------------------
  |  Branch (120:7): [True: 8, False: 395]
  ------------------
  121|      8|        return 47;	 // "f7"
  122|      4|      case '8':	 // 2 strings to match.
  ------------------
  |  Branch (122:7): [True: 4, False: 399]
  ------------------
  123|      4|        return 49;	 // "f8"
  124|      2|      case '9':	 // 2 strings to match.
  ------------------
  |  Branch (124:7): [True: 2, False: 401]
  ------------------
  125|      2|        return 51;	 // "f9"
  126|    403|      }
  127|    352|      break;
  128|    352|    case 'x':	 // 10 strings to match.
  ------------------
  |  Branch (128:5): [True: 278, False: 5.78k]
  ------------------
  129|    278|      switch (Name[1]) {
  130|     77|      default: break;
  ------------------
  |  Branch (130:7): [True: 77, False: 201]
  ------------------
  131|     77|      case '0':	 // 1 string to match.
  ------------------
  |  Branch (131:7): [True: 8, False: 270]
  ------------------
  132|      8|        return 1;	 // "x0"
  133|     45|      case '1':	 // 1 string to match.
  ------------------
  |  Branch (133:7): [True: 45, False: 233]
  ------------------
  134|     45|        return 2;	 // "x1"
  135|    104|      case '2':	 // 1 string to match.
  ------------------
  |  Branch (135:7): [True: 104, False: 174]
  ------------------
  136|    104|        return 3;	 // "x2"
  137|      3|      case '3':	 // 1 string to match.
  ------------------
  |  Branch (137:7): [True: 3, False: 275]
  ------------------
  138|      3|        return 4;	 // "x3"
  139|      1|      case '4':	 // 1 string to match.
  ------------------
  |  Branch (139:7): [True: 1, False: 277]
  ------------------
  140|      1|        return 5;	 // "x4"
  141|      2|      case '5':	 // 1 string to match.
  ------------------
  |  Branch (141:7): [True: 2, False: 276]
  ------------------
  142|      2|        return 6;	 // "x5"
  143|     16|      case '6':	 // 1 string to match.
  ------------------
  |  Branch (143:7): [True: 16, False: 262]
  ------------------
  144|     16|        return 7;	 // "x6"
  145|      3|      case '7':	 // 1 string to match.
  ------------------
  |  Branch (145:7): [True: 3, False: 275]
  ------------------
  146|      3|        return 8;	 // "x7"
  147|     14|      case '8':	 // 1 string to match.
  ------------------
  |  Branch (147:7): [True: 14, False: 264]
  ------------------
  148|     14|        return 9;	 // "x8"
  149|      5|      case '9':	 // 1 string to match.
  ------------------
  |  Branch (149:7): [True: 5, False: 273]
  ------------------
  150|      5|        return 10;	 // "x9"
  151|    278|      }
  152|     77|      break;
  153|  6.06k|    }
  154|  5.80k|    break;
  155|  5.80k|  case 3:	 // 66 strings to match.
  ------------------
  |  Branch (155:3): [True: 2.27k, False: 12.0k]
  ------------------
  156|  2.27k|    switch (Name[0]) {
  157|  1.50k|    default: break;
  ------------------
  |  Branch (157:5): [True: 1.50k, False: 775]
  ------------------
  158|  1.50k|    case 'f':	 // 44 strings to match.
  ------------------
  |  Branch (158:5): [True: 503, False: 1.77k]
  ------------------
  159|    503|      switch (Name[1]) {
  160|    368|      default: break;
  ------------------
  |  Branch (160:7): [True: 368, False: 135]
  ------------------
  161|    368|      case '1':	 // 20 strings to match.
  ------------------
  |  Branch (161:7): [True: 36, False: 467]
  ------------------
  162|     36|        switch (Name[2]) {
  163|      3|        default: break;
  ------------------
  |  Branch (163:9): [True: 3, False: 33]
  ------------------
  164|      3|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (164:9): [True: 3, False: 33]
  ------------------
  165|      3|          return 53;	 // "f10"
  166|      2|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (166:9): [True: 2, False: 34]
  ------------------
  167|      2|          return 55;	 // "f11"
  168|      8|        case '2':	 // 2 strings to match.
  ------------------
  |  Branch (168:9): [True: 8, False: 28]
  ------------------
  169|      8|          return 57;	 // "f12"
  170|      8|        case '3':	 // 2 strings to match.
  ------------------
  |  Branch (170:9): [True: 8, False: 28]
  ------------------
  171|      8|          return 59;	 // "f13"
  172|      0|        case '4':	 // 2 strings to match.
  ------------------
  |  Branch (172:9): [True: 0, False: 36]
  ------------------
  173|      0|          return 61;	 // "f14"
  174|      2|        case '5':	 // 2 strings to match.
  ------------------
  |  Branch (174:9): [True: 2, False: 34]
  ------------------
  175|      2|          return 63;	 // "f15"
  176|      4|        case '6':	 // 2 strings to match.
  ------------------
  |  Branch (176:9): [True: 4, False: 32]
  ------------------
  177|      4|          return 65;	 // "f16"
  178|      1|        case '7':	 // 2 strings to match.
  ------------------
  |  Branch (178:9): [True: 1, False: 35]
  ------------------
  179|      1|          return 67;	 // "f17"
  180|      4|        case '8':	 // 2 strings to match.
  ------------------
  |  Branch (180:9): [True: 4, False: 32]
  ------------------
  181|      4|          return 69;	 // "f18"
  182|      1|        case '9':	 // 2 strings to match.
  ------------------
  |  Branch (182:9): [True: 1, False: 35]
  ------------------
  183|      1|          return 71;	 // "f19"
  184|     36|        }
  185|      3|        break;
  186|     71|      case '2':	 // 20 strings to match.
  ------------------
  |  Branch (186:7): [True: 71, False: 432]
  ------------------
  187|     71|        switch (Name[2]) {
  188|      7|        default: break;
  ------------------
  |  Branch (188:9): [True: 7, False: 64]
  ------------------
  189|      7|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (189:9): [True: 1, False: 70]
  ------------------
  190|      1|          return 73;	 // "f20"
  191|      0|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (191:9): [True: 0, False: 71]
  ------------------
  192|      0|          return 75;	 // "f21"
  193|      3|        case '2':	 // 2 strings to match.
  ------------------
  |  Branch (193:9): [True: 3, False: 68]
  ------------------
  194|      3|          return 77;	 // "f22"
  195|      9|        case '3':	 // 2 strings to match.
  ------------------
  |  Branch (195:9): [True: 9, False: 62]
  ------------------
  196|      9|          return 79;	 // "f23"
  197|      2|        case '4':	 // 2 strings to match.
  ------------------
  |  Branch (197:9): [True: 2, False: 69]
  ------------------
  198|      2|          return 81;	 // "f24"
  199|      1|        case '5':	 // 2 strings to match.
  ------------------
  |  Branch (199:9): [True: 1, False: 70]
  ------------------
  200|      1|          return 83;	 // "f25"
  201|      0|        case '6':	 // 2 strings to match.
  ------------------
  |  Branch (201:9): [True: 0, False: 71]
  ------------------
  202|      0|          return 85;	 // "f26"
  203|      3|        case '7':	 // 2 strings to match.
  ------------------
  |  Branch (203:9): [True: 3, False: 68]
  ------------------
  204|      3|          return 87;	 // "f27"
  205|      1|        case '8':	 // 2 strings to match.
  ------------------
  |  Branch (205:9): [True: 1, False: 70]
  ------------------
  206|      1|          return 89;	 // "f28"
  207|     44|        case '9':	 // 2 strings to match.
  ------------------
  |  Branch (207:9): [True: 44, False: 27]
  ------------------
  208|     44|          return 91;	 // "f29"
  209|     71|        }
  210|      7|        break;
  211|     28|      case '3':	 // 4 strings to match.
  ------------------
  |  Branch (211:7): [True: 28, False: 475]
  ------------------
  212|     28|        switch (Name[2]) {
  213|     26|        default: break;
  ------------------
  |  Branch (213:9): [True: 26, False: 2]
  ------------------
  214|     26|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (214:9): [True: 1, False: 27]
  ------------------
  215|      1|          return 93;	 // "f30"
  216|      1|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (216:9): [True: 1, False: 27]
  ------------------
  217|      1|          return 95;	 // "f31"
  218|     28|        }
  219|     26|        break;
  220|    503|      }
  221|    404|      break;
  222|    404|    case 'x':	 // 22 strings to match.
  ------------------
  |  Branch (222:5): [True: 272, False: 2.00k]
  ------------------
  223|    272|      switch (Name[1]) {
  224|     48|      default: break;
  ------------------
  |  Branch (224:7): [True: 48, False: 224]
  ------------------
  225|     48|      case '1':	 // 10 strings to match.
  ------------------
  |  Branch (225:7): [True: 27, False: 245]
  ------------------
  226|     27|        switch (Name[2]) {
  227|      3|        default: break;
  ------------------
  |  Branch (227:9): [True: 3, False: 24]
  ------------------
  228|     10|        case '0':	 // 1 string to match.
  ------------------
  |  Branch (228:9): [True: 10, False: 17]
  ------------------
  229|     10|          return 11;	 // "x10"
  230|      0|        case '1':	 // 1 string to match.
  ------------------
  |  Branch (230:9): [True: 0, False: 27]
  ------------------
  231|      0|          return 12;	 // "x11"
  232|      0|        case '2':	 // 1 string to match.
  ------------------
  |  Branch (232:9): [True: 0, False: 27]
  ------------------
  233|      0|          return 13;	 // "x12"
  234|      1|        case '3':	 // 1 string to match.
  ------------------
  |  Branch (234:9): [True: 1, False: 26]
  ------------------
  235|      1|          return 14;	 // "x13"
  236|      2|        case '4':	 // 1 string to match.
  ------------------
  |  Branch (236:9): [True: 2, False: 25]
  ------------------
  237|      2|          return 15;	 // "x14"
  238|      1|        case '5':	 // 1 string to match.
  ------------------
  |  Branch (238:9): [True: 1, False: 26]
  ------------------
  239|      1|          return 16;	 // "x15"
  240|      3|        case '6':	 // 1 string to match.
  ------------------
  |  Branch (240:9): [True: 3, False: 24]
  ------------------
  241|      3|          return 17;	 // "x16"
  242|      5|        case '7':	 // 1 string to match.
  ------------------
  |  Branch (242:9): [True: 5, False: 22]
  ------------------
  243|      5|          return 18;	 // "x17"
  244|      1|        case '8':	 // 1 string to match.
  ------------------
  |  Branch (244:9): [True: 1, False: 26]
  ------------------
  245|      1|          return 19;	 // "x18"
  246|      1|        case '9':	 // 1 string to match.
  ------------------
  |  Branch (246:9): [True: 1, False: 26]
  ------------------
  247|      1|          return 20;	 // "x19"
  248|     27|        }
  249|      3|        break;
  250|    111|      case '2':	 // 10 strings to match.
  ------------------
  |  Branch (250:7): [True: 111, False: 161]
  ------------------
  251|    111|        switch (Name[2]) {
  252|     19|        default: break;
  ------------------
  |  Branch (252:9): [True: 19, False: 92]
  ------------------
  253|     19|        case '0':	 // 1 string to match.
  ------------------
  |  Branch (253:9): [True: 1, False: 110]
  ------------------
  254|      1|          return 21;	 // "x20"
  255|      4|        case '1':	 // 1 string to match.
  ------------------
  |  Branch (255:9): [True: 4, False: 107]
  ------------------
  256|      4|          return 22;	 // "x21"
  257|      8|        case '2':	 // 1 string to match.
  ------------------
  |  Branch (257:9): [True: 8, False: 103]
  ------------------
  258|      8|          return 23;	 // "x22"
  259|      3|        case '3':	 // 1 string to match.
  ------------------
  |  Branch (259:9): [True: 3, False: 108]
  ------------------
  260|      3|          return 24;	 // "x23"
  261|      3|        case '4':	 // 1 string to match.
  ------------------
  |  Branch (261:9): [True: 3, False: 108]
  ------------------
  262|      3|          return 25;	 // "x24"
  263|      7|        case '5':	 // 1 string to match.
  ------------------
  |  Branch (263:9): [True: 7, False: 104]
  ------------------
  264|      7|          return 26;	 // "x25"
  265|      2|        case '6':	 // 1 string to match.
  ------------------
  |  Branch (265:9): [True: 2, False: 109]
  ------------------
  266|      2|          return 27;	 // "x26"
  267|     43|        case '7':	 // 1 string to match.
  ------------------
  |  Branch (267:9): [True: 43, False: 68]
  ------------------
  268|     43|          return 28;	 // "x27"
  269|      2|        case '8':	 // 1 string to match.
  ------------------
  |  Branch (269:9): [True: 2, False: 109]
  ------------------
  270|      2|          return 29;	 // "x28"
  271|     19|        case '9':	 // 1 string to match.
  ------------------
  |  Branch (271:9): [True: 19, False: 92]
  ------------------
  272|     19|          return 30;	 // "x29"
  273|    111|        }
  274|     19|        break;
  275|     86|      case '3':	 // 2 strings to match.
  ------------------
  |  Branch (275:7): [True: 86, False: 186]
  ------------------
  276|     86|        switch (Name[2]) {
  277|     17|        default: break;
  ------------------
  |  Branch (277:9): [True: 17, False: 69]
  ------------------
  278|     17|        case '0':	 // 1 string to match.
  ------------------
  |  Branch (278:9): [True: 7, False: 79]
  ------------------
  279|      7|          return 31;	 // "x30"
  280|     62|        case '1':	 // 1 string to match.
  ------------------
  |  Branch (280:9): [True: 62, False: 24]
  ------------------
  281|     62|          return 32;	 // "x31"
  282|     86|        }
  283|     17|        break;
  284|    272|      }
  285|     87|      break;
  286|  2.27k|    }
  287|  1.99k|    break;
  288|  14.3k|  }
  289|  13.7k|  return 0;
  290|  14.3k|}
RISCVAsmParser.cpp:_ZL20MatchRegisterAltNameN7llvm_ks9StringRefE:
  292|  13.7k|static unsigned MatchRegisterAltName(StringRef Name) {
  293|  13.7k|  switch (Name.size()) {
  294|  5.23k|  default: break;
  ------------------
  |  Branch (294:3): [True: 5.23k, False: 8.52k]
  ------------------
  295|  5.80k|  case 2:	 // 30 strings to match.
  ------------------
  |  Branch (295:3): [True: 5.80k, False: 7.95k]
  ------------------
  296|  5.80k|    switch (Name[0]) {
  297|  1.68k|    default: break;
  ------------------
  |  Branch (297:5): [True: 1.68k, False: 4.12k]
  ------------------
  298|  1.68k|    case 'a':	 // 8 strings to match.
  ------------------
  |  Branch (298:5): [True: 917, False: 4.89k]
  ------------------
  299|    917|      switch (Name[1]) {
  300|    851|      default: break;
  ------------------
  |  Branch (300:7): [True: 851, False: 66]
  ------------------
  301|    851|      case '0':	 // 1 string to match.
  ------------------
  |  Branch (301:7): [True: 3, False: 914]
  ------------------
  302|      3|        return 11;	 // "a0"
  303|      6|      case '1':	 // 1 string to match.
  ------------------
  |  Branch (303:7): [True: 6, False: 911]
  ------------------
  304|      6|        return 12;	 // "a1"
  305|      6|      case '2':	 // 1 string to match.
  ------------------
  |  Branch (305:7): [True: 6, False: 911]
  ------------------
  306|      6|        return 13;	 // "a2"
  307|      2|      case '3':	 // 1 string to match.
  ------------------
  |  Branch (307:7): [True: 2, False: 915]
  ------------------
  308|      2|        return 14;	 // "a3"
  309|      7|      case '4':	 // 1 string to match.
  ------------------
  |  Branch (309:7): [True: 7, False: 910]
  ------------------
  310|      7|        return 15;	 // "a4"
  311|      5|      case '5':	 // 1 string to match.
  ------------------
  |  Branch (311:7): [True: 5, False: 912]
  ------------------
  312|      5|        return 16;	 // "a5"
  313|     27|      case '6':	 // 1 string to match.
  ------------------
  |  Branch (313:7): [True: 27, False: 890]
  ------------------
  314|     27|        return 17;	 // "a6"
  315|     10|      case '7':	 // 1 string to match.
  ------------------
  |  Branch (315:7): [True: 10, False: 907]
  ------------------
  316|     10|        return 18;	 // "a7"
  317|    917|      }
  318|    851|      break;
  319|    851|    case 'f':	 // 1 string to match.
  ------------------
  |  Branch (319:5): [True: 352, False: 5.45k]
  ------------------
  320|    352|      if (Name[1] != 'p')
  ------------------
  |  Branch (320:11): [True: 218, False: 134]
  ------------------
  321|    218|        break;
  322|    134|      return 9;	 // "fp"
  323|     33|    case 'g':	 // 1 string to match.
  ------------------
  |  Branch (323:5): [True: 33, False: 5.77k]
  ------------------
  324|     33|      if (Name[1] != 'p')
  ------------------
  |  Branch (324:11): [True: 24, False: 9]
  ------------------
  325|     24|        break;
  326|      9|      return 4;	 // "gp"
  327|    366|    case 'r':	 // 1 string to match.
  ------------------
  |  Branch (327:5): [True: 366, False: 5.44k]
  ------------------
  328|    366|      if (Name[1] != 'a')
  ------------------
  |  Branch (328:11): [True: 355, False: 11]
  ------------------
  329|    355|        break;
  330|     11|      return 2;	 // "ra"
  331|  2.18k|    case 's':	 // 11 strings to match.
  ------------------
  |  Branch (331:5): [True: 2.18k, False: 3.62k]
  ------------------
  332|  2.18k|      switch (Name[1]) {
  333|    138|      default: break;
  ------------------
  |  Branch (333:7): [True: 138, False: 2.04k]
  ------------------
  334|    424|      case '0':	 // 1 string to match.
  ------------------
  |  Branch (334:7): [True: 424, False: 1.76k]
  ------------------
  335|    424|        return 9;	 // "s0"
  336|     50|      case '1':	 // 1 string to match.
  ------------------
  |  Branch (336:7): [True: 50, False: 2.13k]
  ------------------
  337|     50|        return 10;	 // "s1"
  338|    145|      case '2':	 // 1 string to match.
  ------------------
  |  Branch (338:7): [True: 145, False: 2.04k]
  ------------------
  339|    145|        return 19;	 // "s2"
  340|    117|      case '3':	 // 1 string to match.
  ------------------
  |  Branch (340:7): [True: 117, False: 2.06k]
  ------------------
  341|    117|        return 20;	 // "s3"
  342|     47|      case '4':	 // 1 string to match.
  ------------------
  |  Branch (342:7): [True: 47, False: 2.13k]
  ------------------
  343|     47|        return 21;	 // "s4"
  344|    118|      case '5':	 // 1 string to match.
  ------------------
  |  Branch (344:7): [True: 118, False: 2.06k]
  ------------------
  345|    118|        return 22;	 // "s5"
  346|     52|      case '6':	 // 1 string to match.
  ------------------
  |  Branch (346:7): [True: 52, False: 2.13k]
  ------------------
  347|     52|        return 23;	 // "s6"
  348|     29|      case '7':	 // 1 string to match.
  ------------------
  |  Branch (348:7): [True: 29, False: 2.15k]
  ------------------
  349|     29|        return 24;	 // "s7"
  350|    334|      case '8':	 // 1 string to match.
  ------------------
  |  Branch (350:7): [True: 334, False: 1.85k]
  ------------------
  351|    334|        return 25;	 // "s8"
  352|    198|      case '9':	 // 1 string to match.
  ------------------
  |  Branch (352:7): [True: 198, False: 1.98k]
  ------------------
  353|    198|        return 26;	 // "s9"
  354|    533|      case 'p':	 // 1 string to match.
  ------------------
  |  Branch (354:7): [True: 533, False: 1.65k]
  ------------------
  355|    533|        return 3;	 // "sp"
  356|  2.18k|      }
  357|    138|      break;
  358|    275|    case 't':	 // 8 strings to match.
  ------------------
  |  Branch (358:5): [True: 275, False: 5.53k]
  ------------------
  359|    275|      switch (Name[1]) {
  360|     32|      default: break;
  ------------------
  |  Branch (360:7): [True: 32, False: 243]
  ------------------
  361|     90|      case '0':	 // 1 string to match.
  ------------------
  |  Branch (361:7): [True: 90, False: 185]
  ------------------
  362|     90|        return 6;	 // "t0"
  363|     53|      case '1':	 // 1 string to match.
  ------------------
  |  Branch (363:7): [True: 53, False: 222]
  ------------------
  364|     53|        return 7;	 // "t1"
  365|     17|      case '2':	 // 1 string to match.
  ------------------
  |  Branch (365:7): [True: 17, False: 258]
  ------------------
  366|     17|        return 8;	 // "t2"
  367|      3|      case '3':	 // 1 string to match.
  ------------------
  |  Branch (367:7): [True: 3, False: 272]
  ------------------
  368|      3|        return 29;	 // "t3"
  369|     30|      case '4':	 // 1 string to match.
  ------------------
  |  Branch (369:7): [True: 30, False: 245]
  ------------------
  370|     30|        return 30;	 // "t4"
  371|     23|      case '5':	 // 1 string to match.
  ------------------
  |  Branch (371:7): [True: 23, False: 252]
  ------------------
  372|     23|        return 31;	 // "t5"
  373|     10|      case '6':	 // 1 string to match.
  ------------------
  |  Branch (373:7): [True: 10, False: 265]
  ------------------
  374|     10|        return 32;	 // "t6"
  375|     17|      case 'p':	 // 1 string to match.
  ------------------
  |  Branch (375:7): [True: 17, False: 258]
  ------------------
  376|     17|        return 5;	 // "tp"
  377|    275|      }
  378|     32|      break;
  379|  5.80k|    }
  380|  3.29k|    break;
  381|  3.29k|  case 3:	 // 58 strings to match.
  ------------------
  |  Branch (381:3): [True: 1.99k, False: 11.7k]
  ------------------
  382|  1.99k|    switch (Name[0]) {
  383|  1.14k|    default: break;
  ------------------
  |  Branch (383:5): [True: 1.14k, False: 853]
  ------------------
  384|  1.14k|    case 'f':	 // 56 strings to match.
  ------------------
  |  Branch (384:5): [True: 404, False: 1.58k]
  ------------------
  385|    404|      switch (Name[1]) {
  386|    167|      default: break;
  ------------------
  |  Branch (386:7): [True: 167, False: 237]
  ------------------
  387|    167|      case 'a':	 // 16 strings to match.
  ------------------
  |  Branch (387:7): [True: 53, False: 351]
  ------------------
  388|     53|        switch (Name[2]) {
  389|     24|        default: break;
  ------------------
  |  Branch (389:9): [True: 24, False: 29]
  ------------------
  390|     24|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (390:9): [True: 5, False: 48]
  ------------------
  391|      5|          return 53;	 // "fa0"
  392|      1|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (392:9): [True: 1, False: 52]
  ------------------
  393|      1|          return 55;	 // "fa1"
  394|      1|        case '2':	 // 2 strings to match.
  ------------------
  |  Branch (394:9): [True: 1, False: 52]
  ------------------
  395|      1|          return 57;	 // "fa2"
  396|      2|        case '3':	 // 2 strings to match.
  ------------------
  |  Branch (396:9): [True: 2, False: 51]
  ------------------
  397|      2|          return 59;	 // "fa3"
  398|      1|        case '4':	 // 2 strings to match.
  ------------------
  |  Branch (398:9): [True: 1, False: 52]
  ------------------
  399|      1|          return 61;	 // "fa4"
  400|     12|        case '5':	 // 2 strings to match.
  ------------------
  |  Branch (400:9): [True: 12, False: 41]
  ------------------
  401|     12|          return 63;	 // "fa5"
  402|      1|        case '6':	 // 2 strings to match.
  ------------------
  |  Branch (402:9): [True: 1, False: 52]
  ------------------
  403|      1|          return 65;	 // "fa6"
  404|      6|        case '7':	 // 2 strings to match.
  ------------------
  |  Branch (404:9): [True: 6, False: 47]
  ------------------
  405|      6|          return 67;	 // "fa7"
  406|     53|        }
  407|     24|        break;
  408|    162|      case 's':	 // 20 strings to match.
  ------------------
  |  Branch (408:7): [True: 162, False: 242]
  ------------------
  409|    162|        switch (Name[2]) {
  410|     16|        default: break;
  ------------------
  |  Branch (410:9): [True: 16, False: 146]
  ------------------
  411|     16|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (411:9): [True: 12, False: 150]
  ------------------
  412|     12|          return 49;	 // "fs0"
  413|      1|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (413:9): [True: 1, False: 161]
  ------------------
  414|      1|          return 51;	 // "fs1"
  415|      1|        case '2':	 // 2 strings to match.
  ------------------
  |  Branch (415:9): [True: 1, False: 161]
  ------------------
  416|      1|          return 69;	 // "fs2"
  417|      2|        case '3':	 // 2 strings to match.
  ------------------
  |  Branch (417:9): [True: 2, False: 160]
  ------------------
  418|      2|          return 71;	 // "fs3"
  419|     13|        case '4':	 // 2 strings to match.
  ------------------
  |  Branch (419:9): [True: 13, False: 149]
  ------------------
  420|     13|          return 73;	 // "fs4"
  421|     67|        case '5':	 // 2 strings to match.
  ------------------
  |  Branch (421:9): [True: 67, False: 95]
  ------------------
  422|     67|          return 75;	 // "fs5"
  423|      5|        case '6':	 // 2 strings to match.
  ------------------
  |  Branch (423:9): [True: 5, False: 157]
  ------------------
  424|      5|          return 77;	 // "fs6"
  425|     36|        case '7':	 // 2 strings to match.
  ------------------
  |  Branch (425:9): [True: 36, False: 126]
  ------------------
  426|     36|          return 79;	 // "fs7"
  427|      7|        case '8':	 // 2 strings to match.
  ------------------
  |  Branch (427:9): [True: 7, False: 155]
  ------------------
  428|      7|          return 81;	 // "fs8"
  429|      2|        case '9':	 // 2 strings to match.
  ------------------
  |  Branch (429:9): [True: 2, False: 160]
  ------------------
  430|      2|          return 83;	 // "fs9"
  431|    162|        }
  432|     16|        break;
  433|     22|      case 't':	 // 20 strings to match.
  ------------------
  |  Branch (433:7): [True: 22, False: 382]
  ------------------
  434|     22|        switch (Name[2]) {
  435|      4|        default: break;
  ------------------
  |  Branch (435:9): [True: 4, False: 18]
  ------------------
  436|      4|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (436:9): [True: 0, False: 22]
  ------------------
  437|      0|          return 33;	 // "ft0"
  438|      0|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (438:9): [True: 0, False: 22]
  ------------------
  439|      0|          return 35;	 // "ft1"
  440|      1|        case '2':	 // 2 strings to match.
  ------------------
  |  Branch (440:9): [True: 1, False: 21]
  ------------------
  441|      1|          return 37;	 // "ft2"
  442|      0|        case '3':	 // 2 strings to match.
  ------------------
  |  Branch (442:9): [True: 0, False: 22]
  ------------------
  443|      0|          return 39;	 // "ft3"
  444|      1|        case '4':	 // 2 strings to match.
  ------------------
  |  Branch (444:9): [True: 1, False: 21]
  ------------------
  445|      1|          return 41;	 // "ft4"
  446|      1|        case '5':	 // 2 strings to match.
  ------------------
  |  Branch (446:9): [True: 1, False: 21]
  ------------------
  447|      1|          return 43;	 // "ft5"
  448|      1|        case '6':	 // 2 strings to match.
  ------------------
  |  Branch (448:9): [True: 1, False: 21]
  ------------------
  449|      1|          return 45;	 // "ft6"
  450|     12|        case '7':	 // 2 strings to match.
  ------------------
  |  Branch (450:9): [True: 12, False: 10]
  ------------------
  451|     12|          return 47;	 // "ft7"
  452|      1|        case '8':	 // 2 strings to match.
  ------------------
  |  Branch (452:9): [True: 1, False: 21]
  ------------------
  453|      1|          return 89;	 // "ft8"
  454|      1|        case '9':	 // 2 strings to match.
  ------------------
  |  Branch (454:9): [True: 1, False: 21]
  ------------------
  455|      1|          return 91;	 // "ft9"
  456|     22|        }
  457|      4|        break;
  458|    404|      }
  459|    211|      break;
  460|    449|    case 's':	 // 2 strings to match.
  ------------------
  |  Branch (460:5): [True: 449, False: 1.54k]
  ------------------
  461|    449|      if (Name[1] != '1')
  ------------------
  |  Branch (461:11): [True: 433, False: 16]
  ------------------
  462|    433|        break;
  463|     16|      switch (Name[2]) {
  464|     14|      default: break;
  ------------------
  |  Branch (464:7): [True: 14, False: 2]
  ------------------
  465|     14|      case '0':	 // 1 string to match.
  ------------------
  |  Branch (465:7): [True: 1, False: 15]
  ------------------
  466|      1|        return 27;	 // "s10"
  467|      1|      case '1':	 // 1 string to match.
  ------------------
  |  Branch (467:7): [True: 1, False: 15]
  ------------------
  468|      1|        return 28;	 // "s11"
  469|     16|      }
  470|     14|      break;
  471|  1.99k|    }
  472|  1.79k|    break;
  473|  1.79k|  case 4:	 // 9 strings to match.
  ------------------
  |  Branch (473:3): [True: 727, False: 13.0k]
  ------------------
  474|    727|    switch (Name[0]) {
  475|    626|    default: break;
  ------------------
  |  Branch (475:5): [True: 626, False: 101]
  ------------------
  476|    626|    case 'f':	 // 8 strings to match.
  ------------------
  |  Branch (476:5): [True: 85, False: 642]
  ------------------
  477|     85|      switch (Name[1]) {
  478|     62|      default: break;
  ------------------
  |  Branch (478:7): [True: 62, False: 23]
  ------------------
  479|     62|      case 's':	 // 4 strings to match.
  ------------------
  |  Branch (479:7): [True: 15, False: 70]
  ------------------
  480|     15|        if (Name[2] != '1')
  ------------------
  |  Branch (480:13): [True: 14, False: 1]
  ------------------
  481|     14|          break;
  482|      1|        switch (Name[3]) {
  483|      1|        default: break;
  ------------------
  |  Branch (483:9): [True: 1, False: 0]
  ------------------
  484|      1|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (484:9): [True: 0, False: 1]
  ------------------
  485|      0|          return 85;	 // "fs10"
  486|      0|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (486:9): [True: 0, False: 1]
  ------------------
  487|      0|          return 87;	 // "fs11"
  488|      1|        }
  489|      1|        break;
  490|      8|      case 't':	 // 4 strings to match.
  ------------------
  |  Branch (490:7): [True: 8, False: 77]
  ------------------
  491|      8|        if (Name[2] != '1')
  ------------------
  |  Branch (491:13): [True: 5, False: 3]
  ------------------
  492|      5|          break;
  493|      3|        switch (Name[3]) {
  494|      3|        default: break;
  ------------------
  |  Branch (494:9): [True: 3, False: 0]
  ------------------
  495|      3|        case '0':	 // 2 strings to match.
  ------------------
  |  Branch (495:9): [True: 0, False: 3]
  ------------------
  496|      0|          return 93;	 // "ft10"
  497|      0|        case '1':	 // 2 strings to match.
  ------------------
  |  Branch (497:9): [True: 0, False: 3]
  ------------------
  498|      0|          return 95;	 // "ft11"
  499|      3|        }
  500|      3|        break;
  501|     85|      }
  502|     85|      break;
  503|     85|    case 'z':	 // 1 string to match.
  ------------------
  |  Branch (503:5): [True: 16, False: 711]
  ------------------
  504|     16|      if (memcmp(Name.data()+1, "ero", 3) != 0)
  ------------------
  |  Branch (504:11): [True: 14, False: 2]
  ------------------
  505|     14|        break;
  506|      2|      return 1;	 // "zero"
  507|    727|    }
  508|    725|    break;
  509|  13.7k|  }
  510|  11.0k|  return 0;
  511|  13.7k|}
RISCVAsmParser.cpp:_ZN12_GLOBAL__N_110LessOpcodeclERKNS_10MatchEntryEN7llvm_ks9StringRefE:
 1857|  28.4k|    bool operator()(const MatchEntry &LHS, StringRef RHS) {
 1858|  28.4k|      return LHS.getMnemonic() < RHS;
 1859|  28.4k|    }
RISCVAsmParser.cpp:_ZN12_GLOBAL__N_110LessOpcodeclEN7llvm_ks9StringRefERKNS_10MatchEntryE:
 1860|  14.8k|    bool operator()(StringRef LHS, const MatchEntry &RHS) {
 1861|  14.8k|      return LHS < RHS.getMnemonic();
 1862|  14.8k|    }
RISCVAsmParser.cpp:_ZN12_GLOBAL__N_117LessOpcodeOperandclERKNS_17OperandMatchEntryEN7llvm_ks9StringRefE:
 2542|   136k|    bool operator()(const OperandMatchEntry &LHS, StringRef RHS) {
 2543|   136k|      return LHS.getMnemonic()  < RHS;
 2544|   136k|    }
RISCVAsmParser.cpp:_ZN12_GLOBAL__N_117LessOpcodeOperandclEN7llvm_ks9StringRefERKNS_17OperandMatchEntryE:
 2545|  65.0k|    bool operator()(StringRef LHS, const OperandMatchEntry &RHS) {
 2546|  65.0k|      return LHS < RHS.getMnemonic();
 2547|  65.0k|    }

RISCVAsmParser.cpp:_ZL12compressInstRN7llvm_ks6MCInstERKS0_RKNS_15MCSubtargetInfoERNS_9MCContextE:
  126|  1.21k|                         MCContext &Context) {
  127|  1.21k|  const MCRegisterInfo &MRI = *Context.getRegisterInfo();
  128|  1.21k|  switch (MI.getOpcode()) {
  129|    151|    default: return false;
  ------------------
  |  Branch (129:5): [True: 151, False: 1.06k]
  ------------------
  130|      4|    case RISCV::ADD: {
  ------------------
  |  Branch (130:5): [True: 4, False: 1.21k]
  ------------------
  131|      4|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (131:9): [True: 4, False: 0]
  |  Branch (131:9): [True: 0, False: 4]
  ------------------
  132|      4|      (MI.getOperand(1).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (132:7): [True: 0, False: 4]
  ------------------
  133|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (133:7): [True: 0, False: 0]
  ------------------
  134|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (134:7): [True: 0, False: 0]
  ------------------
  135|       |      // c.mv	$rs1, $rs2
  136|      0|      OutInst.setOpcode(RISCV::C_MV);
  137|       |      // Operand: rs1
  138|      0|      OutInst.addOperand(MI.getOperand(0));
  139|       |      // Operand: rs2
  140|      0|      OutInst.addOperand(MI.getOperand(2));
  141|      0|      return true;
  142|      0|    } // if
  143|      4|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (143:9): [True: 4, False: 0]
  |  Branch (143:9): [True: 1, False: 3]
  ------------------
  144|      4|      (MI.getOperand(2).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (144:7): [True: 1, False: 3]
  ------------------
  145|      1|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (145:7): [True: 1, False: 0]
  ------------------
  146|      1|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (146:7): [True: 1, False: 0]
  ------------------
  147|       |      // c.mv	$rs1, $rs2
  148|      1|      OutInst.setOpcode(RISCV::C_MV);
  149|       |      // Operand: rs1
  150|      1|      OutInst.addOperand(MI.getOperand(0));
  151|       |      // Operand: rs2
  152|      1|      OutInst.addOperand(MI.getOperand(1));
  153|      1|      return true;
  154|      1|    } // if
  155|      3|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (155:9): [True: 3, False: 0]
  |  Branch (155:9): [True: 1, False: 2]
  ------------------
  156|      3|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (156:7): [True: 1, False: 2]
  ------------------
  157|      1|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (157:7): [True: 1, False: 0]
  ------------------
  158|      1|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (158:7): [True: 1, False: 0]
  ------------------
  159|       |      // c.add	$rs1, $rs2
  160|      1|      OutInst.setOpcode(RISCV::C_ADD);
  161|       |      // Operand: rs1_wb
  162|      1|      OutInst.addOperand(MI.getOperand(1));
  163|       |      // Operand: rs1
  164|      1|      OutInst.addOperand(MI.getOperand(1));
  165|       |      // Operand: rs2
  166|      1|      OutInst.addOperand(MI.getOperand(2));
  167|      1|      return true;
  168|      1|    } // if
  169|      2|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (169:9): [True: 2, False: 0]
  |  Branch (169:9): [True: 1, False: 1]
  ------------------
  170|      2|      (MI.getOperand(2).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (170:7): [True: 1, False: 1]
  ------------------
  171|      1|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(2).getReg())) &&
  ------------------
  |  Branch (171:7): [True: 1, False: 0]
  ------------------
  172|      1|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (172:7): [True: 1, False: 0]
  ------------------
  173|       |      // c.add	$rs1, $rs2
  174|      1|      OutInst.setOpcode(RISCV::C_ADD);
  175|       |      // Operand: rs1_wb
  176|      1|      OutInst.addOperand(MI.getOperand(2));
  177|       |      // Operand: rs1
  178|      1|      OutInst.addOperand(MI.getOperand(2));
  179|       |      // Operand: rs2
  180|      1|      OutInst.addOperand(MI.getOperand(1));
  181|      1|      return true;
  182|      1|    } // if
  183|      1|      break;
  184|      2|    } // case ADD
  185|    351|    case RISCV::ADDI: {
  ------------------
  |  Branch (185:5): [True: 351, False: 867]
  ------------------
  186|    351|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (186:9): [True: 351, False: 0]
  |  Branch (186:9): [True: 4, False: 347]
  ------------------
  187|    351|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (187:7): [True: 10, False: 341]
  ------------------
  188|     10|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (188:7): [True: 8, False: 2]
  ------------------
  189|      8|      RISCVValidateMCOperand(MI.getOperand(2), STI, 1)) {
  ------------------
  |  Branch (189:7): [True: 4, False: 4]
  ------------------
  190|       |      // c.addi4spn	$rd, $rs1, $imm
  191|      4|      OutInst.setOpcode(RISCV::C_ADDI4SPN);
  192|       |      // Operand: rd
  193|      4|      OutInst.addOperand(MI.getOperand(0));
  194|       |      // Operand: rs1
  195|      4|      OutInst.addOperand(MI.getOperand(1));
  196|       |      // Operand: imm
  197|      4|      OutInst.addOperand(MI.getOperand(2));
  198|      4|      return true;
  199|      4|    } // if
  200|    347|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (200:9): [True: 347, False: 0]
  |  Branch (200:9): [True: 201, False: 146]
  ------------------
  201|    347|      (MI.getOperand(0).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (201:7): [True: 203, False: 144]
  ------------------
  202|    203|      (MI.getOperand(1).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (202:7): [True: 201, False: 2]
  ------------------
  203|    201|      (MI.getOperand(2).isImm()) &&
  ------------------
  |  Branch (203:7): [True: 201, False: 0]
  ------------------
  204|    201|      (MI.getOperand(2).getImm() == 0)) {
  ------------------
  |  Branch (204:7): [True: 201, False: 0]
  ------------------
  205|       |      // c.nop	
  206|    201|      OutInst.setOpcode(RISCV::C_NOP);
  207|    201|      return true;
  208|    201|    } // if
  209|    146|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (209:9): [True: 146, False: 0]
  |  Branch (209:9): [True: 57, False: 89]
  ------------------
  210|    146|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (210:7): [True: 114, False: 32]
  ------------------
  211|    114|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (211:7): [True: 114, False: 0]
  ------------------
  212|    114|      RISCVValidateMCOperand(MI.getOperand(2), STI, 2)) {
  ------------------
  |  Branch (212:7): [True: 57, False: 57]
  ------------------
  213|       |      // c.addi	$rd, $imm
  214|     57|      OutInst.setOpcode(RISCV::C_ADDI);
  215|       |      // Operand: rd_wb
  216|     57|      OutInst.addOperand(MI.getOperand(1));
  217|       |      // Operand: rd
  218|     57|      OutInst.addOperand(MI.getOperand(1));
  219|       |      // Operand: imm
  220|     57|      OutInst.addOperand(MI.getOperand(2));
  221|     57|      return true;
  222|     57|    } // if
  223|     89|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (223:9): [True: 89, False: 0]
  |  Branch (223:9): [True: 0, False: 89]
  ------------------
  224|     89|      (MI.getOperand(1).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (224:7): [True: 0, False: 89]
  ------------------
  225|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (225:7): [True: 0, False: 0]
  ------------------
  226|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 3)) {
  ------------------
  |  Branch (226:7): [True: 0, False: 0]
  ------------------
  227|       |      // c.li	$rd, $imm
  228|      0|      OutInst.setOpcode(RISCV::C_LI);
  229|       |      // Operand: rd
  230|      0|      OutInst.addOperand(MI.getOperand(0));
  231|       |      // Operand: imm
  232|      0|      OutInst.addOperand(MI.getOperand(2));
  233|      0|      return true;
  234|      0|    } // if
  235|     89|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (235:9): [True: 89, False: 0]
  |  Branch (235:9): [True: 9, False: 80]
  ------------------
  236|     89|      (MI.getOperand(0).getReg() == RISCV::X2) &&
  ------------------
  |  Branch (236:7): [True: 62, False: 27]
  ------------------
  237|     62|      (MI.getOperand(1).getReg() == RISCV::X2) &&
  ------------------
  |  Branch (237:7): [True: 57, False: 5]
  ------------------
  238|     57|      RISCVValidateMCOperand(MI.getOperand(2), STI, 4)) {
  ------------------
  |  Branch (238:7): [True: 9, False: 48]
  ------------------
  239|       |      // c.addi16sp	$rd, $imm
  240|      9|      OutInst.setOpcode(RISCV::C_ADDI16SP);
  241|       |      // Operand: rd_wb
  242|      9|      OutInst.addOperand(MCOperand::createReg(RISCV::X2));
  243|       |      // Operand: rd
  244|      9|      OutInst.addOperand(MCOperand::createReg(RISCV::X2));
  245|       |      // Operand: imm
  246|      9|      OutInst.addOperand(MI.getOperand(2));
  247|      9|      return true;
  248|      9|    } // if
  249|     80|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (249:9): [True: 80, False: 0]
  |  Branch (249:9): [True: 4, False: 76]
  ------------------
  250|     80|      (MI.getOperand(2).isImm()) &&
  ------------------
  |  Branch (250:7): [True: 80, False: 0]
  ------------------
  251|     80|      (MI.getOperand(2).getImm() == 0) &&
  ------------------
  |  Branch (251:7): [True: 5, False: 75]
  ------------------
  252|      5|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (252:7): [True: 4, False: 1]
  ------------------
  253|      4|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (253:7): [True: 4, False: 0]
  ------------------
  254|       |      // c.mv	$rs1, $rs2
  255|      4|      OutInst.setOpcode(RISCV::C_MV);
  256|       |      // Operand: rs1
  257|      4|      OutInst.addOperand(MI.getOperand(0));
  258|       |      // Operand: rs2
  259|      4|      OutInst.addOperand(MI.getOperand(1));
  260|      4|      return true;
  261|      4|    } // if
  262|     76|      break;
  263|     80|    } // case ADDI
  264|     76|    case RISCV::ADDIW: {
  ------------------
  |  Branch (264:5): [True: 0, False: 1.21k]
  ------------------
  265|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (265:9): [True: 0, False: 0]
  |  Branch (265:9): [True: 0, False: 0]
  ------------------
  266|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (266:7): [True: 0, False: 0]
  ------------------
  267|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (267:7): [True: 0, False: 0]
  ------------------
  268|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (268:7): [True: 0, False: 0]
  ------------------
  269|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 3)) {
  ------------------
  |  Branch (269:7): [True: 0, False: 0]
  ------------------
  270|       |      // c.addiw	$rd, $imm
  271|      0|      OutInst.setOpcode(RISCV::C_ADDIW);
  272|       |      // Operand: rd_wb
  273|      0|      OutInst.addOperand(MI.getOperand(1));
  274|       |      // Operand: rd
  275|      0|      OutInst.addOperand(MI.getOperand(1));
  276|       |      // Operand: imm
  277|      0|      OutInst.addOperand(MI.getOperand(2));
  278|      0|      return true;
  279|      0|    } // if
  280|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (280:9): [True: 0, False: 0]
  |  Branch (280:9): [True: 0, False: 0]
  ------------------
  281|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (281:7): [True: 0, False: 0]
  ------------------
  282|      0|      (MI.getOperand(1).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (282:7): [True: 0, False: 0]
  ------------------
  283|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (283:7): [True: 0, False: 0]
  ------------------
  284|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 3)) {
  ------------------
  |  Branch (284:7): [True: 0, False: 0]
  ------------------
  285|       |      // c.li	$rd, $imm
  286|      0|      OutInst.setOpcode(RISCV::C_LI);
  287|       |      // Operand: rd
  288|      0|      OutInst.addOperand(MI.getOperand(0));
  289|       |      // Operand: imm
  290|      0|      OutInst.addOperand(MI.getOperand(2));
  291|      0|      return true;
  292|      0|    } // if
  293|      0|      break;
  294|      0|    } // case ADDIW
  295|      0|    case RISCV::ADDW: {
  ------------------
  |  Branch (295:5): [True: 0, False: 1.21k]
  ------------------
  296|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (296:9): [True: 0, False: 0]
  |  Branch (296:9): [True: 0, False: 0]
  ------------------
  297|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (297:7): [True: 0, False: 0]
  ------------------
  298|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (298:7): [True: 0, False: 0]
  ------------------
  299|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (299:7): [True: 0, False: 0]
  ------------------
  300|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (300:7): [True: 0, False: 0]
  ------------------
  301|       |      // c.addw	$rd, $rs2
  302|      0|      OutInst.setOpcode(RISCV::C_ADDW);
  303|       |      // Operand: rd_wb
  304|      0|      OutInst.addOperand(MI.getOperand(1));
  305|       |      // Operand: rd
  306|      0|      OutInst.addOperand(MI.getOperand(1));
  307|       |      // Operand: rs2
  308|      0|      OutInst.addOperand(MI.getOperand(2));
  309|      0|      return true;
  310|      0|    } // if
  311|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (311:9): [True: 0, False: 0]
  |  Branch (311:9): [True: 0, False: 0]
  ------------------
  312|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (312:7): [True: 0, False: 0]
  ------------------
  313|      0|      (MI.getOperand(2).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (313:7): [True: 0, False: 0]
  ------------------
  314|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg())) &&
  ------------------
  |  Branch (314:7): [True: 0, False: 0]
  ------------------
  315|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (315:7): [True: 0, False: 0]
  ------------------
  316|       |      // c.addw	$rd, $rs2
  317|      0|      OutInst.setOpcode(RISCV::C_ADDW);
  318|       |      // Operand: rd_wb
  319|      0|      OutInst.addOperand(MI.getOperand(2));
  320|       |      // Operand: rd
  321|      0|      OutInst.addOperand(MI.getOperand(2));
  322|       |      // Operand: rs2
  323|      0|      OutInst.addOperand(MI.getOperand(1));
  324|      0|      return true;
  325|      0|    } // if
  326|      0|      break;
  327|      0|    } // case ADDW
  328|      6|    case RISCV::AND: {
  ------------------
  |  Branch (328:5): [True: 6, False: 1.21k]
  ------------------
  329|      6|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (329:9): [True: 6, False: 0]
  |  Branch (329:9): [True: 0, False: 6]
  ------------------
  330|      6|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (330:7): [True: 1, False: 5]
  ------------------
  331|      1|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (331:7): [True: 0, False: 1]
  ------------------
  332|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (332:7): [True: 0, False: 0]
  ------------------
  333|       |      // c.and	$rd, $rs2
  334|      0|      OutInst.setOpcode(RISCV::C_AND);
  335|       |      // Operand: rd_wb
  336|      0|      OutInst.addOperand(MI.getOperand(1));
  337|       |      // Operand: rd
  338|      0|      OutInst.addOperand(MI.getOperand(1));
  339|       |      // Operand: rs2
  340|      0|      OutInst.addOperand(MI.getOperand(2));
  341|      0|      return true;
  342|      0|    } // if
  343|      6|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (343:9): [True: 6, False: 0]
  |  Branch (343:9): [True: 0, False: 6]
  ------------------
  344|      6|      (MI.getOperand(2).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (344:7): [True: 1, False: 5]
  ------------------
  345|      1|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg())) &&
  ------------------
  |  Branch (345:7): [True: 0, False: 1]
  ------------------
  346|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (346:7): [True: 0, False: 0]
  ------------------
  347|       |      // c.and	$rd, $rs2
  348|      0|      OutInst.setOpcode(RISCV::C_AND);
  349|       |      // Operand: rd_wb
  350|      0|      OutInst.addOperand(MI.getOperand(2));
  351|       |      // Operand: rd
  352|      0|      OutInst.addOperand(MI.getOperand(2));
  353|       |      // Operand: rs2
  354|      0|      OutInst.addOperand(MI.getOperand(1));
  355|      0|      return true;
  356|      0|    } // if
  357|      6|      break;
  358|      6|    } // case AND
  359|      6|    case RISCV::ANDI: {
  ------------------
  |  Branch (359:5): [True: 3, False: 1.21k]
  ------------------
  360|      3|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (360:9): [True: 3, False: 0]
  |  Branch (360:9): [True: 0, False: 3]
  ------------------
  361|      3|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (361:7): [True: 2, False: 1]
  ------------------
  362|      2|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (362:7): [True: 0, False: 2]
  ------------------
  363|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 3)) {
  ------------------
  |  Branch (363:7): [True: 0, False: 0]
  ------------------
  364|       |      // c.andi	$rs1, $imm
  365|      0|      OutInst.setOpcode(RISCV::C_ANDI);
  366|       |      // Operand: rs1_wb
  367|      0|      OutInst.addOperand(MI.getOperand(1));
  368|       |      // Operand: rs1
  369|      0|      OutInst.addOperand(MI.getOperand(1));
  370|       |      // Operand: imm
  371|      0|      OutInst.addOperand(MI.getOperand(2));
  372|      0|      return true;
  373|      0|    } // if
  374|      3|      break;
  375|      3|    } // case ANDI
  376|      3|    case RISCV::BEQ: {
  ------------------
  |  Branch (376:5): [True: 0, False: 1.21k]
  ------------------
  377|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (377:9): [True: 0, False: 0]
  |  Branch (377:9): [True: 0, False: 0]
  ------------------
  378|      0|      (MI.getOperand(1).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (378:7): [True: 0, False: 0]
  ------------------
  379|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (379:7): [True: 0, False: 0]
  ------------------
  380|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 5)) {
  ------------------
  |  Branch (380:7): [True: 0, False: 0]
  ------------------
  381|       |      // c.beqz	$rs1, $imm
  382|      0|      OutInst.setOpcode(RISCV::C_BEQZ);
  383|       |      // Operand: rs1
  384|      0|      OutInst.addOperand(MI.getOperand(0));
  385|       |      // Operand: imm
  386|      0|      OutInst.addOperand(MI.getOperand(2));
  387|      0|      return true;
  388|      0|    } // if
  389|      0|      break;
  390|      0|    } // case BEQ
  391|      0|    case RISCV::BNE: {
  ------------------
  |  Branch (391:5): [True: 0, False: 1.21k]
  ------------------
  392|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (392:9): [True: 0, False: 0]
  |  Branch (392:9): [True: 0, False: 0]
  ------------------
  393|      0|      (MI.getOperand(1).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (393:7): [True: 0, False: 0]
  ------------------
  394|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (394:7): [True: 0, False: 0]
  ------------------
  395|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 5)) {
  ------------------
  |  Branch (395:7): [True: 0, False: 0]
  ------------------
  396|       |      // c.bnez	$rs1, $imm
  397|      0|      OutInst.setOpcode(RISCV::C_BNEZ);
  398|       |      // Operand: rs1
  399|      0|      OutInst.addOperand(MI.getOperand(0));
  400|       |      // Operand: imm
  401|      0|      OutInst.addOperand(MI.getOperand(2));
  402|      0|      return true;
  403|      0|    } // if
  404|      0|      break;
  405|      0|    } // case BNE
  406|      2|    case RISCV::EBREAK: {
  ------------------
  |  Branch (406:5): [True: 2, False: 1.21k]
  ------------------
  407|      2|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC]) {
  ------------------
  |  Branch (407:9): [True: 2, False: 0]
  ------------------
  408|       |      // c.ebreak	
  409|      2|      OutInst.setOpcode(RISCV::C_EBREAK);
  410|      2|      return true;
  411|      2|    } // if
  412|      0|      break;
  413|      2|    } // case EBREAK
  414|      0|    case RISCV::FLD: {
  ------------------
  |  Branch (414:5): [True: 0, False: 1.21k]
  ------------------
  415|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (415:9): [True: 0, False: 0]
  |  Branch (415:9): [True: 0, False: 0]
  ------------------
  416|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtD] &&
  ------------------
  |  Branch (416:7): [True: 0, False: 0]
  ------------------
  417|      0|      (MRI.getRegClass(RISCV::FPR64CRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (417:7): [True: 0, False: 0]
  ------------------
  418|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (418:7): [True: 0, False: 0]
  ------------------
  419|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 6)) {
  ------------------
  |  Branch (419:7): [True: 0, False: 0]
  ------------------
  420|       |      // c.fld	$rd, ${imm}(${rs1})
  421|      0|      OutInst.setOpcode(RISCV::C_FLD);
  422|       |      // Operand: rd
  423|      0|      OutInst.addOperand(MI.getOperand(0));
  424|       |      // Operand: rs1
  425|      0|      OutInst.addOperand(MI.getOperand(1));
  426|       |      // Operand: imm
  427|      0|      OutInst.addOperand(MI.getOperand(2));
  428|      0|      return true;
  429|      0|    } // if
  430|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (430:9): [True: 0, False: 0]
  |  Branch (430:9): [True: 0, False: 0]
  ------------------
  431|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtD] &&
  ------------------
  |  Branch (431:7): [True: 0, False: 0]
  ------------------
  432|      0|      (MRI.getRegClass(RISCV::FPR64RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (432:7): [True: 0, False: 0]
  ------------------
  433|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (433:7): [True: 0, False: 0]
  ------------------
  434|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 7)) {
  ------------------
  |  Branch (434:7): [True: 0, False: 0]
  ------------------
  435|       |      // c.fldsp	$rd, ${imm}(${rs1})
  436|      0|      OutInst.setOpcode(RISCV::C_FLDSP);
  437|       |      // Operand: rd
  438|      0|      OutInst.addOperand(MI.getOperand(0));
  439|       |      // Operand: rs1
  440|      0|      OutInst.addOperand(MI.getOperand(1));
  441|       |      // Operand: imm
  442|      0|      OutInst.addOperand(MI.getOperand(2));
  443|      0|      return true;
  444|      0|    } // if
  445|      0|      break;
  446|      0|    } // case FLD
  447|      0|    case RISCV::FLW: {
  ------------------
  |  Branch (447:5): [True: 0, False: 1.21k]
  ------------------
  448|      0|    if (!STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (448:9): [True: 0, False: 0]
  |  Branch (448:9): [True: 0, False: 0]
  ------------------
  449|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (449:7): [True: 0, False: 0]
  ------------------
  450|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtF] &&
  ------------------
  |  Branch (450:7): [True: 0, False: 0]
  ------------------
  451|      0|      (MRI.getRegClass(RISCV::FPR32CRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (451:7): [True: 0, False: 0]
  ------------------
  452|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (452:7): [True: 0, False: 0]
  ------------------
  453|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 8)) {
  ------------------
  |  Branch (453:7): [True: 0, False: 0]
  ------------------
  454|       |      // c.flw	$rd, ${imm}(${rs1})
  455|      0|      OutInst.setOpcode(RISCV::C_FLW);
  456|       |      // Operand: rd
  457|      0|      OutInst.addOperand(MI.getOperand(0));
  458|       |      // Operand: rs1
  459|      0|      OutInst.addOperand(MI.getOperand(1));
  460|       |      // Operand: imm
  461|      0|      OutInst.addOperand(MI.getOperand(2));
  462|      0|      return true;
  463|      0|    } // if
  464|      0|    if (!STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (464:9): [True: 0, False: 0]
  |  Branch (464:9): [True: 0, False: 0]
  ------------------
  465|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (465:7): [True: 0, False: 0]
  ------------------
  466|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtF] &&
  ------------------
  |  Branch (466:7): [True: 0, False: 0]
  ------------------
  467|      0|      (MRI.getRegClass(RISCV::FPR32RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (467:7): [True: 0, False: 0]
  ------------------
  468|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (468:7): [True: 0, False: 0]
  ------------------
  469|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 9)) {
  ------------------
  |  Branch (469:7): [True: 0, False: 0]
  ------------------
  470|       |      // c.flwsp	$rd, ${imm}(${rs1})
  471|      0|      OutInst.setOpcode(RISCV::C_FLWSP);
  472|       |      // Operand: rd
  473|      0|      OutInst.addOperand(MI.getOperand(0));
  474|       |      // Operand: rs1
  475|      0|      OutInst.addOperand(MI.getOperand(1));
  476|       |      // Operand: imm
  477|      0|      OutInst.addOperand(MI.getOperand(2));
  478|      0|      return true;
  479|      0|    } // if
  480|      0|      break;
  481|      0|    } // case FLW
  482|      0|    case RISCV::FSD: {
  ------------------
  |  Branch (482:5): [True: 0, False: 1.21k]
  ------------------
  483|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (483:9): [True: 0, False: 0]
  |  Branch (483:9): [True: 0, False: 0]
  ------------------
  484|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtD] &&
  ------------------
  |  Branch (484:7): [True: 0, False: 0]
  ------------------
  485|      0|      (MRI.getRegClass(RISCV::FPR64CRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (485:7): [True: 0, False: 0]
  ------------------
  486|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (486:7): [True: 0, False: 0]
  ------------------
  487|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 6)) {
  ------------------
  |  Branch (487:7): [True: 0, False: 0]
  ------------------
  488|       |      // c.fsd	$rs2, ${imm}(${rs1})
  489|      0|      OutInst.setOpcode(RISCV::C_FSD);
  490|       |      // Operand: rs2
  491|      0|      OutInst.addOperand(MI.getOperand(0));
  492|       |      // Operand: rs1
  493|      0|      OutInst.addOperand(MI.getOperand(1));
  494|       |      // Operand: imm
  495|      0|      OutInst.addOperand(MI.getOperand(2));
  496|      0|      return true;
  497|      0|    } // if
  498|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (498:9): [True: 0, False: 0]
  |  Branch (498:9): [True: 0, False: 0]
  ------------------
  499|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtD] &&
  ------------------
  |  Branch (499:7): [True: 0, False: 0]
  ------------------
  500|      0|      (MRI.getRegClass(RISCV::FPR64RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (500:7): [True: 0, False: 0]
  ------------------
  501|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (501:7): [True: 0, False: 0]
  ------------------
  502|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 7)) {
  ------------------
  |  Branch (502:7): [True: 0, False: 0]
  ------------------
  503|       |      // c.fsdsp	$rs2, ${imm}(${rs1})
  504|      0|      OutInst.setOpcode(RISCV::C_FSDSP);
  505|       |      // Operand: rs2
  506|      0|      OutInst.addOperand(MI.getOperand(0));
  507|       |      // Operand: rs1
  508|      0|      OutInst.addOperand(MI.getOperand(1));
  509|       |      // Operand: imm
  510|      0|      OutInst.addOperand(MI.getOperand(2));
  511|      0|      return true;
  512|      0|    } // if
  513|      0|      break;
  514|      0|    } // case FSD
  515|      0|    case RISCV::FSW: {
  ------------------
  |  Branch (515:5): [True: 0, False: 1.21k]
  ------------------
  516|      0|    if (!STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (516:9): [True: 0, False: 0]
  |  Branch (516:9): [True: 0, False: 0]
  ------------------
  517|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (517:7): [True: 0, False: 0]
  ------------------
  518|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtF] &&
  ------------------
  |  Branch (518:7): [True: 0, False: 0]
  ------------------
  519|      0|      (MRI.getRegClass(RISCV::FPR32CRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (519:7): [True: 0, False: 0]
  ------------------
  520|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (520:7): [True: 0, False: 0]
  ------------------
  521|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 8)) {
  ------------------
  |  Branch (521:7): [True: 0, False: 0]
  ------------------
  522|       |      // c.fsw	$rs2, ${imm}(${rs1})
  523|      0|      OutInst.setOpcode(RISCV::C_FSW);
  524|       |      // Operand: rs2
  525|      0|      OutInst.addOperand(MI.getOperand(0));
  526|       |      // Operand: rs1
  527|      0|      OutInst.addOperand(MI.getOperand(1));
  528|       |      // Operand: imm
  529|      0|      OutInst.addOperand(MI.getOperand(2));
  530|      0|      return true;
  531|      0|    } // if
  532|      0|    if (!STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (532:9): [True: 0, False: 0]
  |  Branch (532:9): [True: 0, False: 0]
  ------------------
  533|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (533:7): [True: 0, False: 0]
  ------------------
  534|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtF] &&
  ------------------
  |  Branch (534:7): [True: 0, False: 0]
  ------------------
  535|      0|      (MRI.getRegClass(RISCV::FPR32RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (535:7): [True: 0, False: 0]
  ------------------
  536|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (536:7): [True: 0, False: 0]
  ------------------
  537|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 9)) {
  ------------------
  |  Branch (537:7): [True: 0, False: 0]
  ------------------
  538|       |      // c.fswsp	$rs2, ${imm}(${rs1})
  539|      0|      OutInst.setOpcode(RISCV::C_FSWSP);
  540|       |      // Operand: rs2
  541|      0|      OutInst.addOperand(MI.getOperand(0));
  542|       |      // Operand: rs1
  543|      0|      OutInst.addOperand(MI.getOperand(1));
  544|       |      // Operand: imm
  545|      0|      OutInst.addOperand(MI.getOperand(2));
  546|      0|      return true;
  547|      0|    } // if
  548|      0|      break;
  549|      0|    } // case FSW
  550|    694|    case RISCV::JAL: {
  ------------------
  |  Branch (550:5): [True: 694, False: 524]
  ------------------
  551|    694|    if (!STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (551:9): [True: 694, False: 0]
  |  Branch (551:9): [True: 17, False: 677]
  ------------------
  552|    694|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (552:7): [True: 694, False: 0]
  ------------------
  553|    694|      (MI.getOperand(0).getReg() == RISCV::X1) &&
  ------------------
  |  Branch (553:7): [True: 19, False: 675]
  ------------------
  554|     19|      RISCVValidateMCOperand(MI.getOperand(1), STI, 10)) {
  ------------------
  |  Branch (554:7): [True: 17, False: 2]
  ------------------
  555|       |      // c.jal	$offset
  556|     17|      OutInst.setOpcode(RISCV::C_JAL);
  557|       |      // Operand: offset
  558|     17|      OutInst.addOperand(MI.getOperand(1));
  559|     17|      return true;
  560|     17|    } // if
  561|    677|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (561:9): [True: 677, False: 0]
  |  Branch (561:9): [True: 659, False: 18]
  ------------------
  562|    677|      (MI.getOperand(0).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (562:7): [True: 675, False: 2]
  ------------------
  563|    675|      RISCVValidateMCOperand(MI.getOperand(1), STI, 10)) {
  ------------------
  |  Branch (563:7): [True: 659, False: 16]
  ------------------
  564|       |      // c.j	$offset
  565|    659|      OutInst.setOpcode(RISCV::C_J);
  566|       |      // Operand: offset
  567|    659|      OutInst.addOperand(MI.getOperand(1));
  568|    659|      return true;
  569|    659|    } // if
  570|     18|      break;
  571|    677|    } // case JAL
  572|     18|    case RISCV::JALR: {
  ------------------
  |  Branch (572:5): [True: 6, False: 1.21k]
  ------------------
  573|      6|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (573:9): [True: 6, False: 0]
  |  Branch (573:9): [True: 6, False: 0]
  ------------------
  574|      6|      (MI.getOperand(0).getReg() == RISCV::X0) &&
  ------------------
  |  Branch (574:7): [True: 6, False: 0]
  ------------------
  575|      6|      (MI.getOperand(2).isImm()) &&
  ------------------
  |  Branch (575:7): [True: 6, False: 0]
  ------------------
  576|      6|      (MI.getOperand(2).getImm() == 0) &&
  ------------------
  |  Branch (576:7): [True: 6, False: 0]
  ------------------
  577|      6|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (577:7): [True: 6, False: 0]
  ------------------
  578|       |      // c.jr	$rs1
  579|      6|      OutInst.setOpcode(RISCV::C_JR);
  580|       |      // Operand: rs1
  581|      6|      OutInst.addOperand(MI.getOperand(1));
  582|      6|      return true;
  583|      6|    } // if
  584|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (584:9): [True: 0, False: 0]
  |  Branch (584:9): [True: 0, False: 0]
  ------------------
  585|      0|      (MI.getOperand(0).getReg() == RISCV::X1) &&
  ------------------
  |  Branch (585:7): [True: 0, False: 0]
  ------------------
  586|      0|      (MI.getOperand(2).isImm()) &&
  ------------------
  |  Branch (586:7): [True: 0, False: 0]
  ------------------
  587|      0|      (MI.getOperand(2).getImm() == 0) &&
  ------------------
  |  Branch (587:7): [True: 0, False: 0]
  ------------------
  588|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (588:7): [True: 0, False: 0]
  ------------------
  589|       |      // c.jalr	$rs1
  590|      0|      OutInst.setOpcode(RISCV::C_JALR);
  591|       |      // Operand: rs1
  592|      0|      OutInst.addOperand(MI.getOperand(1));
  593|      0|      return true;
  594|      0|    } // if
  595|      0|      break;
  596|      0|    } // case JALR
  597|      0|    case RISCV::LD: {
  ------------------
  |  Branch (597:5): [True: 0, False: 1.21k]
  ------------------
  598|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (598:9): [True: 0, False: 0]
  |  Branch (598:9): [True: 0, False: 0]
  ------------------
  599|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (599:7): [True: 0, False: 0]
  ------------------
  600|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (600:7): [True: 0, False: 0]
  ------------------
  601|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (601:7): [True: 0, False: 0]
  ------------------
  602|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 6)) {
  ------------------
  |  Branch (602:7): [True: 0, False: 0]
  ------------------
  603|       |      // c.ld	$rd, ${imm}(${rs1})
  604|      0|      OutInst.setOpcode(RISCV::C_LD);
  605|       |      // Operand: rd
  606|      0|      OutInst.addOperand(MI.getOperand(0));
  607|       |      // Operand: rs1
  608|      0|      OutInst.addOperand(MI.getOperand(1));
  609|       |      // Operand: imm
  610|      0|      OutInst.addOperand(MI.getOperand(2));
  611|      0|      return true;
  612|      0|    } // if
  613|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (613:9): [True: 0, False: 0]
  |  Branch (613:9): [True: 0, False: 0]
  ------------------
  614|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (614:7): [True: 0, False: 0]
  ------------------
  615|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (615:7): [True: 0, False: 0]
  ------------------
  616|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (616:7): [True: 0, False: 0]
  ------------------
  617|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 7)) {
  ------------------
  |  Branch (617:7): [True: 0, False: 0]
  ------------------
  618|       |      // c.ldsp	$rd, ${imm}(${rs1})
  619|      0|      OutInst.setOpcode(RISCV::C_LDSP);
  620|       |      // Operand: rd
  621|      0|      OutInst.addOperand(MI.getOperand(0));
  622|       |      // Operand: rs1
  623|      0|      OutInst.addOperand(MI.getOperand(1));
  624|       |      // Operand: imm
  625|      0|      OutInst.addOperand(MI.getOperand(2));
  626|      0|      return true;
  627|      0|    } // if
  628|      0|      break;
  629|      0|    } // case LD
  630|      0|    case RISCV::LUI: {
  ------------------
  |  Branch (630:5): [True: 0, False: 1.21k]
  ------------------
  631|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (631:9): [True: 0, False: 0]
  |  Branch (631:9): [True: 0, False: 0]
  ------------------
  632|      0|      (MRI.getRegClass(RISCV::GPRNoX0X2RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (632:7): [True: 0, False: 0]
  ------------------
  633|      0|      RISCVValidateMCOperand(MI.getOperand(1), STI, 11)) {
  ------------------
  |  Branch (633:7): [True: 0, False: 0]
  ------------------
  634|       |      // c.lui	$rd, $imm
  635|      0|      OutInst.setOpcode(RISCV::C_LUI);
  636|       |      // Operand: rd
  637|      0|      OutInst.addOperand(MI.getOperand(0));
  638|       |      // Operand: imm
  639|      0|      OutInst.addOperand(MI.getOperand(1));
  640|      0|      return true;
  641|      0|    } // if
  642|      0|      break;
  643|      0|    } // case LUI
  644|      0|    case RISCV::LW: {
  ------------------
  |  Branch (644:5): [True: 0, False: 1.21k]
  ------------------
  645|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (645:9): [True: 0, False: 0]
  |  Branch (645:9): [True: 0, False: 0]
  ------------------
  646|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (646:7): [True: 0, False: 0]
  ------------------
  647|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (647:7): [True: 0, False: 0]
  ------------------
  648|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 8)) {
  ------------------
  |  Branch (648:7): [True: 0, False: 0]
  ------------------
  649|       |      // c.lw	$rd, ${imm}(${rs1})
  650|      0|      OutInst.setOpcode(RISCV::C_LW);
  651|       |      // Operand: rd
  652|      0|      OutInst.addOperand(MI.getOperand(0));
  653|       |      // Operand: rs1
  654|      0|      OutInst.addOperand(MI.getOperand(1));
  655|       |      // Operand: imm
  656|      0|      OutInst.addOperand(MI.getOperand(2));
  657|      0|      return true;
  658|      0|    } // if
  659|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (659:9): [True: 0, False: 0]
  |  Branch (659:9): [True: 0, False: 0]
  ------------------
  660|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (660:7): [True: 0, False: 0]
  ------------------
  661|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (661:7): [True: 0, False: 0]
  ------------------
  662|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 9)) {
  ------------------
  |  Branch (662:7): [True: 0, False: 0]
  ------------------
  663|       |      // c.lwsp	$rd, ${imm}(${rs1})
  664|      0|      OutInst.setOpcode(RISCV::C_LWSP);
  665|       |      // Operand: rd
  666|      0|      OutInst.addOperand(MI.getOperand(0));
  667|       |      // Operand: rs1
  668|      0|      OutInst.addOperand(MI.getOperand(1));
  669|       |      // Operand: imm
  670|      0|      OutInst.addOperand(MI.getOperand(2));
  671|      0|      return true;
  672|      0|    } // if
  673|      0|      break;
  674|      0|    } // case LW
  675|      0|    case RISCV::OR: {
  ------------------
  |  Branch (675:5): [True: 0, False: 1.21k]
  ------------------
  676|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (676:9): [True: 0, False: 0]
  |  Branch (676:9): [True: 0, False: 0]
  ------------------
  677|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (677:7): [True: 0, False: 0]
  ------------------
  678|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (678:7): [True: 0, False: 0]
  ------------------
  679|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (679:7): [True: 0, False: 0]
  ------------------
  680|       |      // c.or	$rd, $rs2
  681|      0|      OutInst.setOpcode(RISCV::C_OR);
  682|       |      // Operand: rd_wb
  683|      0|      OutInst.addOperand(MI.getOperand(1));
  684|       |      // Operand: rd
  685|      0|      OutInst.addOperand(MI.getOperand(1));
  686|       |      // Operand: rs2
  687|      0|      OutInst.addOperand(MI.getOperand(2));
  688|      0|      return true;
  689|      0|    } // if
  690|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (690:9): [True: 0, False: 0]
  |  Branch (690:9): [True: 0, False: 0]
  ------------------
  691|      0|      (MI.getOperand(2).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (691:7): [True: 0, False: 0]
  ------------------
  692|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg())) &&
  ------------------
  |  Branch (692:7): [True: 0, False: 0]
  ------------------
  693|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (693:7): [True: 0, False: 0]
  ------------------
  694|       |      // c.or	$rd, $rs2
  695|      0|      OutInst.setOpcode(RISCV::C_OR);
  696|       |      // Operand: rd_wb
  697|      0|      OutInst.addOperand(MI.getOperand(2));
  698|       |      // Operand: rd
  699|      0|      OutInst.addOperand(MI.getOperand(2));
  700|       |      // Operand: rs2
  701|      0|      OutInst.addOperand(MI.getOperand(1));
  702|      0|      return true;
  703|      0|    } // if
  704|      0|      break;
  705|      0|    } // case OR
  706|      0|    case RISCV::SD: {
  ------------------
  |  Branch (706:5): [True: 0, False: 1.21k]
  ------------------
  707|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (707:9): [True: 0, False: 0]
  |  Branch (707:9): [True: 0, False: 0]
  ------------------
  708|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (708:7): [True: 0, False: 0]
  ------------------
  709|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (709:7): [True: 0, False: 0]
  ------------------
  710|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (710:7): [True: 0, False: 0]
  ------------------
  711|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 6)) {
  ------------------
  |  Branch (711:7): [True: 0, False: 0]
  ------------------
  712|       |      // c.sd	$rs2, ${imm}(${rs1})
  713|      0|      OutInst.setOpcode(RISCV::C_SD);
  714|       |      // Operand: rs2
  715|      0|      OutInst.addOperand(MI.getOperand(0));
  716|       |      // Operand: rs1
  717|      0|      OutInst.addOperand(MI.getOperand(1));
  718|       |      // Operand: imm
  719|      0|      OutInst.addOperand(MI.getOperand(2));
  720|      0|      return true;
  721|      0|    } // if
  722|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (722:9): [True: 0, False: 0]
  |  Branch (722:9): [True: 0, False: 0]
  ------------------
  723|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (723:7): [True: 0, False: 0]
  ------------------
  724|      0|      (MRI.getRegClass(RISCV::GPRRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (724:7): [True: 0, False: 0]
  ------------------
  725|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (725:7): [True: 0, False: 0]
  ------------------
  726|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 7)) {
  ------------------
  |  Branch (726:7): [True: 0, False: 0]
  ------------------
  727|       |      // c.sdsp	$rs2, ${imm}(${rs1})
  728|      0|      OutInst.setOpcode(RISCV::C_SDSP);
  729|       |      // Operand: rs2
  730|      0|      OutInst.addOperand(MI.getOperand(0));
  731|       |      // Operand: rs1
  732|      0|      OutInst.addOperand(MI.getOperand(1));
  733|       |      // Operand: imm
  734|      0|      OutInst.addOperand(MI.getOperand(2));
  735|      0|      return true;
  736|      0|    } // if
  737|      0|      break;
  738|      0|    } // case SD
  739|      0|    case RISCV::SLLI: {
  ------------------
  |  Branch (739:5): [True: 0, False: 1.21k]
  ------------------
  740|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (740:9): [True: 0, False: 0]
  |  Branch (740:9): [True: 0, False: 0]
  ------------------
  741|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (741:7): [True: 0, False: 0]
  ------------------
  742|      0|      (MRI.getRegClass(RISCV::GPRNoX0RegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (742:7): [True: 0, False: 0]
  ------------------
  743|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 12)) {
  ------------------
  |  Branch (743:7): [True: 0, False: 0]
  ------------------
  744|       |      // c.slli	$rd, $imm
  745|      0|      OutInst.setOpcode(RISCV::C_SLLI);
  746|       |      // Operand: rd_wb
  747|      0|      OutInst.addOperand(MI.getOperand(1));
  748|       |      // Operand: rd
  749|      0|      OutInst.addOperand(MI.getOperand(1));
  750|       |      // Operand: imm
  751|      0|      OutInst.addOperand(MI.getOperand(2));
  752|      0|      return true;
  753|      0|    } // if
  754|      0|      break;
  755|      0|    } // case SLLI
  756|      0|    case RISCV::SRAI: {
  ------------------
  |  Branch (756:5): [True: 0, False: 1.21k]
  ------------------
  757|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (757:9): [True: 0, False: 0]
  |  Branch (757:9): [True: 0, False: 0]
  ------------------
  758|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (758:7): [True: 0, False: 0]
  ------------------
  759|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (759:7): [True: 0, False: 0]
  ------------------
  760|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 12)) {
  ------------------
  |  Branch (760:7): [True: 0, False: 0]
  ------------------
  761|       |      // c.srai	$rs1, $imm
  762|      0|      OutInst.setOpcode(RISCV::C_SRAI);
  763|       |      // Operand: rs1_wb
  764|      0|      OutInst.addOperand(MI.getOperand(1));
  765|       |      // Operand: rs1
  766|      0|      OutInst.addOperand(MI.getOperand(1));
  767|       |      // Operand: imm
  768|      0|      OutInst.addOperand(MI.getOperand(2));
  769|      0|      return true;
  770|      0|    } // if
  771|      0|      break;
  772|      0|    } // case SRAI
  773|      0|    case RISCV::SRLI: {
  ------------------
  |  Branch (773:5): [True: 0, False: 1.21k]
  ------------------
  774|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (774:9): [True: 0, False: 0]
  |  Branch (774:9): [True: 0, False: 0]
  ------------------
  775|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (775:7): [True: 0, False: 0]
  ------------------
  776|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (776:7): [True: 0, False: 0]
  ------------------
  777|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 12)) {
  ------------------
  |  Branch (777:7): [True: 0, False: 0]
  ------------------
  778|       |      // c.srli	$rs1, $imm
  779|      0|      OutInst.setOpcode(RISCV::C_SRLI);
  780|       |      // Operand: rs1_wb
  781|      0|      OutInst.addOperand(MI.getOperand(1));
  782|       |      // Operand: rs1
  783|      0|      OutInst.addOperand(MI.getOperand(1));
  784|       |      // Operand: imm
  785|      0|      OutInst.addOperand(MI.getOperand(2));
  786|      0|      return true;
  787|      0|    } // if
  788|      0|      break;
  789|      0|    } // case SRLI
  790|      0|    case RISCV::SUB: {
  ------------------
  |  Branch (790:5): [True: 0, False: 1.21k]
  ------------------
  791|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (791:9): [True: 0, False: 0]
  |  Branch (791:9): [True: 0, False: 0]
  ------------------
  792|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (792:7): [True: 0, False: 0]
  ------------------
  793|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (793:7): [True: 0, False: 0]
  ------------------
  794|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (794:7): [True: 0, False: 0]
  ------------------
  795|       |      // c.sub	$rd, $rs2
  796|      0|      OutInst.setOpcode(RISCV::C_SUB);
  797|       |      // Operand: rd_wb
  798|      0|      OutInst.addOperand(MI.getOperand(1));
  799|       |      // Operand: rd
  800|      0|      OutInst.addOperand(MI.getOperand(1));
  801|       |      // Operand: rs2
  802|      0|      OutInst.addOperand(MI.getOperand(2));
  803|      0|      return true;
  804|      0|    } // if
  805|      0|      break;
  806|      0|    } // case SUB
  807|      0|    case RISCV::SUBW: {
  ------------------
  |  Branch (807:5): [True: 0, False: 1.21k]
  ------------------
  808|      0|    if (STI.getFeatureBits()[RISCV::Feature64Bit] &&
  ------------------
  |  Branch (808:9): [True: 0, False: 0]
  |  Branch (808:9): [True: 0, False: 0]
  ------------------
  809|      0|      STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (809:7): [True: 0, False: 0]
  ------------------
  810|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (810:7): [True: 0, False: 0]
  ------------------
  811|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (811:7): [True: 0, False: 0]
  ------------------
  812|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (812:7): [True: 0, False: 0]
  ------------------
  813|       |      // c.subw	$rd, $rs2
  814|      0|      OutInst.setOpcode(RISCV::C_SUBW);
  815|       |      // Operand: rd_wb
  816|      0|      OutInst.addOperand(MI.getOperand(1));
  817|       |      // Operand: rd
  818|      0|      OutInst.addOperand(MI.getOperand(1));
  819|       |      // Operand: rs2
  820|      0|      OutInst.addOperand(MI.getOperand(2));
  821|      0|      return true;
  822|      0|    } // if
  823|      0|      break;
  824|      0|    } // case SUBW
  825|      0|    case RISCV::SW: {
  ------------------
  |  Branch (825:5): [True: 0, False: 1.21k]
  ------------------
  826|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (826:9): [True: 0, False: 0]
  |  Branch (826:9): [True: 0, False: 0]
  ------------------
  827|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (827:7): [True: 0, False: 0]
  ------------------
  828|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (828:7): [True: 0, False: 0]
  ------------------
  829|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 8)) {
  ------------------
  |  Branch (829:7): [True: 0, False: 0]
  ------------------
  830|       |      // c.sw	$rs2, ${imm}(${rs1})
  831|      0|      OutInst.setOpcode(RISCV::C_SW);
  832|       |      // Operand: rs2
  833|      0|      OutInst.addOperand(MI.getOperand(0));
  834|       |      // Operand: rs1
  835|      0|      OutInst.addOperand(MI.getOperand(1));
  836|       |      // Operand: imm
  837|      0|      OutInst.addOperand(MI.getOperand(2));
  838|      0|      return true;
  839|      0|    } // if
  840|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (840:9): [True: 0, False: 0]
  |  Branch (840:9): [True: 0, False: 0]
  ------------------
  841|      0|      (MRI.getRegClass(RISCV::GPRRegClassID).contains(MI.getOperand(0).getReg())) &&
  ------------------
  |  Branch (841:7): [True: 0, False: 0]
  ------------------
  842|      0|      (MRI.getRegClass(RISCV::SPRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (842:7): [True: 0, False: 0]
  ------------------
  843|      0|      RISCVValidateMCOperand(MI.getOperand(2), STI, 9)) {
  ------------------
  |  Branch (843:7): [True: 0, False: 0]
  ------------------
  844|       |      // c.swsp	$rs2, ${imm}(${rs1})
  845|      0|      OutInst.setOpcode(RISCV::C_SWSP);
  846|       |      // Operand: rs2
  847|      0|      OutInst.addOperand(MI.getOperand(0));
  848|       |      // Operand: rs1
  849|      0|      OutInst.addOperand(MI.getOperand(1));
  850|       |      // Operand: imm
  851|      0|      OutInst.addOperand(MI.getOperand(2));
  852|      0|      return true;
  853|      0|    } // if
  854|      0|      break;
  855|      0|    } // case SW
  856|      1|    case RISCV::UNIMP: {
  ------------------
  |  Branch (856:5): [True: 1, False: 1.21k]
  ------------------
  857|      1|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC]) {
  ------------------
  |  Branch (857:9): [True: 1, False: 0]
  ------------------
  858|       |      // c.unimp	
  859|      1|      OutInst.setOpcode(RISCV::C_UNIMP);
  860|      1|      return true;
  861|      1|    } // if
  862|      0|      break;
  863|      1|    } // case UNIMP
  864|      0|    case RISCV::XOR: {
  ------------------
  |  Branch (864:5): [True: 0, False: 1.21k]
  ------------------
  865|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (865:9): [True: 0, False: 0]
  |  Branch (865:9): [True: 0, False: 0]
  ------------------
  866|      0|      (MI.getOperand(1).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (866:7): [True: 0, False: 0]
  ------------------
  867|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg())) &&
  ------------------
  |  Branch (867:7): [True: 0, False: 0]
  ------------------
  868|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg()))) {
  ------------------
  |  Branch (868:7): [True: 0, False: 0]
  ------------------
  869|       |      // c.xor	$rd, $rs2
  870|      0|      OutInst.setOpcode(RISCV::C_XOR);
  871|       |      // Operand: rd_wb
  872|      0|      OutInst.addOperand(MI.getOperand(1));
  873|       |      // Operand: rd
  874|      0|      OutInst.addOperand(MI.getOperand(1));
  875|       |      // Operand: rs2
  876|      0|      OutInst.addOperand(MI.getOperand(2));
  877|      0|      return true;
  878|      0|    } // if
  879|      0|    if (STI.getFeatureBits()[RISCV::FeatureStdExtC] &&
  ------------------
  |  Branch (879:9): [True: 0, False: 0]
  |  Branch (879:9): [True: 0, False: 0]
  ------------------
  880|      0|      (MI.getOperand(2).getReg() ==  MI.getOperand(0).getReg()) &&
  ------------------
  |  Branch (880:7): [True: 0, False: 0]
  ------------------
  881|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(2).getReg())) &&
  ------------------
  |  Branch (881:7): [True: 0, False: 0]
  ------------------
  882|      0|      (MRI.getRegClass(RISCV::GPRCRegClassID).contains(MI.getOperand(1).getReg()))) {
  ------------------
  |  Branch (882:7): [True: 0, False: 0]
  ------------------
  883|       |      // c.xor	$rd, $rs2
  884|      0|      OutInst.setOpcode(RISCV::C_XOR);
  885|       |      // Operand: rd_wb
  886|      0|      OutInst.addOperand(MI.getOperand(2));
  887|       |      // Operand: rd
  888|      0|      OutInst.addOperand(MI.getOperand(2));
  889|       |      // Operand: rs2
  890|      0|      OutInst.addOperand(MI.getOperand(1));
  891|      0|      return true;
  892|      0|    } // if
  893|       |
  894|      0|    } // case XOR
  895|  1.21k|  } // switch
  896|    104|  return false;
  897|  1.21k|}
RISCVAsmParser.cpp:_ZL22RISCVValidateMCOperandRKN7llvm_ks9MCOperandERKNS_15MCSubtargetInfoEj:
   15|    873|                  unsigned PredicateIndex) {
   16|    873|  switch (PredicateIndex) {
   17|      0|  default:
  ------------------
  |  Branch (17:3): [True: 0, False: 873]
  ------------------
   18|      0|    llvm_unreachable("Unknown MCOperandPredicate kind");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
   19|      0|    break;
   20|      8|  case 1: {
  ------------------
  |  Branch (20:3): [True: 8, False: 865]
  ------------------
   21|       |   // uimm10_lsb00nonzero
   22|      8|    int64_t Imm;
   23|      8|    if (!MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (23:9): [True: 0, False: 8]
  ------------------
   24|      0|      return false;
   25|      8|    return isShiftedUInt<8, 2>(Imm) && (Imm != 0);
  ------------------
  |  Branch (25:12): [True: 5, False: 3]
  |  Branch (25:40): [True: 4, False: 1]
  ------------------
   26|       |  
   27|      8|    }
   28|    114|  case 2: {
  ------------------
  |  Branch (28:3): [True: 114, False: 759]
  ------------------
   29|       |   // simm6nonzero
   30|    114|    int64_t Imm;
   31|    114|    if (MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (31:9): [True: 114, False: 0]
  ------------------
   32|    114|      return (Imm != 0) && isInt<6>(Imm);
  ------------------
  |  Branch (32:14): [True: 113, False: 1]
  |  Branch (32:28): [True: 57, False: 56]
  ------------------
   33|      0|    return MCOp.isBareSymbolRef();
   34|       |  
   35|    114|    }
   36|      0|  case 3: {
  ------------------
  |  Branch (36:3): [True: 0, False: 873]
  ------------------
   37|       |   // simm6
   38|      0|    int64_t Imm;
   39|      0|    if (MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (39:9): [True: 0, False: 0]
  ------------------
   40|      0|      return isInt<6>(Imm);
   41|      0|    return MCOp.isBareSymbolRef();
   42|       |  
   43|      0|    }
   44|     57|  case 4: {
  ------------------
  |  Branch (44:3): [True: 57, False: 816]
  ------------------
   45|       |   // simm10_lsb0000nonzero
   46|     57|    int64_t Imm;
   47|     57|    if (!MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (47:9): [True: 0, False: 57]
  ------------------
   48|      0|      return false;
   49|     57|    return isShiftedInt<6, 4>(Imm) && (Imm != 0);
  ------------------
  |  Branch (49:12): [True: 10, False: 47]
  |  Branch (49:39): [True: 9, False: 1]
  ------------------
   50|       |  
   51|     57|    }
   52|      0|  case 5: {
  ------------------
  |  Branch (52:3): [True: 0, False: 873]
  ------------------
   53|       |   // simm9_lsb0
   54|      0|    int64_t Imm;
   55|      0|    if (MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (55:9): [True: 0, False: 0]
  ------------------
   56|      0|      return isShiftedInt<8, 1>(Imm);
   57|      0|    return MCOp.isBareSymbolRef();
   58|       |
   59|       |  
   60|      0|    }
   61|      0|  case 6: {
  ------------------
  |  Branch (61:3): [True: 0, False: 873]
  ------------------
   62|       |   // uimm8_lsb000
   63|      0|    int64_t Imm;
   64|      0|    if (!MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (64:9): [True: 0, False: 0]
  ------------------
   65|      0|      return false;
   66|      0|    return isShiftedUInt<5, 3>(Imm);
   67|       |  
   68|      0|    }
   69|      0|  case 7: {
  ------------------
  |  Branch (69:3): [True: 0, False: 873]
  ------------------
   70|       |   // uimm9_lsb000
   71|      0|    int64_t Imm;
   72|      0|    if (!MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (72:9): [True: 0, False: 0]
  ------------------
   73|      0|      return false;
   74|      0|    return isShiftedUInt<6, 3>(Imm);
   75|       |  
   76|      0|    }
   77|      0|  case 8: {
  ------------------
  |  Branch (77:3): [True: 0, False: 873]
  ------------------
   78|       |   // uimm7_lsb00
   79|      0|    int64_t Imm;
   80|      0|    if (!MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (80:9): [True: 0, False: 0]
  ------------------
   81|      0|      return false;
   82|      0|    return isShiftedUInt<5, 2>(Imm);
   83|       |  
   84|      0|    }
   85|      0|  case 9: {
  ------------------
  |  Branch (85:3): [True: 0, False: 873]
  ------------------
   86|       |   // uimm8_lsb00
   87|      0|    int64_t Imm;
   88|      0|    if (!MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (88:9): [True: 0, False: 0]
  ------------------
   89|      0|      return false;
   90|      0|    return isShiftedUInt<6, 2>(Imm);
   91|       |  
   92|      0|    }
   93|    694|  case 10: {
  ------------------
  |  Branch (93:3): [True: 694, False: 179]
  ------------------
   94|       |   // simm12_lsb0
   95|    694|    int64_t Imm;
   96|    694|    if (MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (96:9): [True: 368, False: 326]
  ------------------
   97|    368|      return isShiftedInt<11, 1>(Imm);
   98|    326|    return MCOp.isBareSymbolRef();
   99|       |  
  100|    694|    }
  101|      0|  case 11: {
  ------------------
  |  Branch (101:3): [True: 0, False: 873]
  ------------------
  102|       |   // c_lui_imm
  103|      0|    int64_t Imm;
  104|      0|    if (MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (104:9): [True: 0, False: 0]
  ------------------
  105|      0|      return (Imm != 0) && (isUInt<5>(Imm) ||
  ------------------
  |  Branch (105:14): [True: 0, False: 0]
  |  Branch (105:29): [True: 0, False: 0]
  ------------------
  106|      0|             (Imm >= 0xfffe0 && Imm <= 0xfffff));
  ------------------
  |  Branch (106:15): [True: 0, False: 0]
  |  Branch (106:33): [True: 0, False: 0]
  ------------------
  107|      0|    return MCOp.isBareSymbolRef();
  108|       |  
  109|      0|    }
  110|      0|  case 12: {
  ------------------
  |  Branch (110:3): [True: 0, False: 873]
  ------------------
  111|       |   // uimmlog2xlennonzero
  112|      0|    int64_t Imm;
  113|      0|    if (!MCOp.evaluateAsConstantImm(Imm))
  ------------------
  |  Branch (113:9): [True: 0, False: 0]
  ------------------
  114|      0|      return false;
  115|      0|    if (STI.getTargetTriple().isArch64Bit())
  ------------------
  |  Branch (115:9): [True: 0, False: 0]
  ------------------
  116|      0|      return  isUInt<6>(Imm) && (Imm != 0);
  ------------------
  |  Branch (116:15): [True: 0, False: 0]
  |  Branch (116:33): [True: 0, False: 0]
  ------------------
  117|      0|    return isUInt<5>(Imm) && (Imm != 0);
  ------------------
  |  Branch (117:12): [True: 0, False: 0]
  |  Branch (117:30): [True: 0, False: 0]
  ------------------
  118|       |  
  119|      0|    }
  120|    873|  }
  121|    873|}

RISCVMCTargetDesc.cpp:_ZN7llvm_ksL20InitRISCVMCInstrInfoEPNS_11MCInstrInfoE:
 1604|  13.6k|static inline void InitRISCVMCInstrInfo(MCInstrInfo *II) {
 1605|  13.6k|  II->InitMCInstrInfo(RISCVInsts, RISCVInstrNameIndices, RISCVInstrNameData, 486);
 1606|  13.6k|}

RISCVMCCodeEmitter.cpp:_ZNK12_GLOBAL__N_118RISCVMCCodeEmitter21getBinaryCodeForInstrERKN7llvm_ks6MCInstERNS1_15SmallVectorImplINS1_7MCFixupEEERKNS1_15MCSubtargetInfoE:
   11|  1.22k|    const MCSubtargetInfo &STI) const {
   12|  1.22k|  static const uint64_t InstBits[] = {
   13|  1.22k|    UINT64_C(0),
   14|  1.22k|    UINT64_C(0),
   15|  1.22k|    UINT64_C(0),
   16|  1.22k|    UINT64_C(0),
   17|  1.22k|    UINT64_C(0),
   18|  1.22k|    UINT64_C(0),
   19|  1.22k|    UINT64_C(0),
   20|  1.22k|    UINT64_C(0),
   21|  1.22k|    UINT64_C(0),
   22|  1.22k|    UINT64_C(0),
   23|  1.22k|    UINT64_C(0),
   24|  1.22k|    UINT64_C(0),
   25|  1.22k|    UINT64_C(0),
   26|  1.22k|    UINT64_C(0),
   27|  1.22k|    UINT64_C(0),
   28|  1.22k|    UINT64_C(0),
   29|  1.22k|    UINT64_C(0),
   30|  1.22k|    UINT64_C(0),
   31|  1.22k|    UINT64_C(0),
   32|  1.22k|    UINT64_C(0),
   33|  1.22k|    UINT64_C(0),
   34|  1.22k|    UINT64_C(0),
   35|  1.22k|    UINT64_C(0),
   36|  1.22k|    UINT64_C(0),
   37|  1.22k|    UINT64_C(0),
   38|  1.22k|    UINT64_C(0),
   39|  1.22k|    UINT64_C(0),
   40|  1.22k|    UINT64_C(0),
   41|  1.22k|    UINT64_C(0),
   42|  1.22k|    UINT64_C(0),
   43|  1.22k|    UINT64_C(0),
   44|  1.22k|    UINT64_C(0),
   45|  1.22k|    UINT64_C(0),
   46|  1.22k|    UINT64_C(0),
   47|  1.22k|    UINT64_C(0),
   48|  1.22k|    UINT64_C(0),
   49|  1.22k|    UINT64_C(0),
   50|  1.22k|    UINT64_C(0),
   51|  1.22k|    UINT64_C(0),
   52|  1.22k|    UINT64_C(0),
   53|  1.22k|    UINT64_C(0),
   54|  1.22k|    UINT64_C(0),
   55|  1.22k|    UINT64_C(0),
   56|  1.22k|    UINT64_C(0),
   57|  1.22k|    UINT64_C(0),
   58|  1.22k|    UINT64_C(0),
   59|  1.22k|    UINT64_C(0),
   60|  1.22k|    UINT64_C(0),
   61|  1.22k|    UINT64_C(0),
   62|  1.22k|    UINT64_C(0),
   63|  1.22k|    UINT64_C(0),
   64|  1.22k|    UINT64_C(0),
   65|  1.22k|    UINT64_C(0),
   66|  1.22k|    UINT64_C(0),
   67|  1.22k|    UINT64_C(0),
   68|  1.22k|    UINT64_C(0),
   69|  1.22k|    UINT64_C(0),
   70|  1.22k|    UINT64_C(0),
   71|  1.22k|    UINT64_C(0),
   72|  1.22k|    UINT64_C(0),
   73|  1.22k|    UINT64_C(0),
   74|  1.22k|    UINT64_C(0),
   75|  1.22k|    UINT64_C(0),
   76|  1.22k|    UINT64_C(0),
   77|  1.22k|    UINT64_C(0),
   78|  1.22k|    UINT64_C(0),
   79|  1.22k|    UINT64_C(0),
   80|  1.22k|    UINT64_C(0),
   81|  1.22k|    UINT64_C(0),
   82|  1.22k|    UINT64_C(0),
   83|  1.22k|    UINT64_C(0),
   84|  1.22k|    UINT64_C(0),
   85|  1.22k|    UINT64_C(0),
   86|  1.22k|    UINT64_C(0),
   87|  1.22k|    UINT64_C(0),
   88|  1.22k|    UINT64_C(0),
   89|  1.22k|    UINT64_C(0),
   90|  1.22k|    UINT64_C(0),
   91|  1.22k|    UINT64_C(0),
   92|  1.22k|    UINT64_C(0),
   93|  1.22k|    UINT64_C(0),
   94|  1.22k|    UINT64_C(0),
   95|  1.22k|    UINT64_C(0),
   96|  1.22k|    UINT64_C(0),
   97|  1.22k|    UINT64_C(0),
   98|  1.22k|    UINT64_C(0),
   99|  1.22k|    UINT64_C(0),
  100|  1.22k|    UINT64_C(0),
  101|  1.22k|    UINT64_C(0),
  102|  1.22k|    UINT64_C(0),
  103|  1.22k|    UINT64_C(0),
  104|  1.22k|    UINT64_C(0),
  105|  1.22k|    UINT64_C(0),
  106|  1.22k|    UINT64_C(0),
  107|  1.22k|    UINT64_C(0),
  108|  1.22k|    UINT64_C(0),
  109|  1.22k|    UINT64_C(0),
  110|  1.22k|    UINT64_C(0),
  111|  1.22k|    UINT64_C(0),
  112|  1.22k|    UINT64_C(0),
  113|  1.22k|    UINT64_C(0),
  114|  1.22k|    UINT64_C(0),
  115|  1.22k|    UINT64_C(0),
  116|  1.22k|    UINT64_C(0),
  117|  1.22k|    UINT64_C(0),
  118|  1.22k|    UINT64_C(0),
  119|  1.22k|    UINT64_C(0),
  120|  1.22k|    UINT64_C(0),
  121|  1.22k|    UINT64_C(0),
  122|  1.22k|    UINT64_C(0),
  123|  1.22k|    UINT64_C(0),
  124|  1.22k|    UINT64_C(0),
  125|  1.22k|    UINT64_C(0),
  126|  1.22k|    UINT64_C(0),
  127|  1.22k|    UINT64_C(0),
  128|  1.22k|    UINT64_C(0),
  129|  1.22k|    UINT64_C(0),
  130|  1.22k|    UINT64_C(0),
  131|  1.22k|    UINT64_C(0),
  132|  1.22k|    UINT64_C(0),
  133|  1.22k|    UINT64_C(0),
  134|  1.22k|    UINT64_C(0),
  135|  1.22k|    UINT64_C(0),
  136|  1.22k|    UINT64_C(0),
  137|  1.22k|    UINT64_C(0),
  138|  1.22k|    UINT64_C(0),
  139|  1.22k|    UINT64_C(0),
  140|  1.22k|    UINT64_C(0),
  141|  1.22k|    UINT64_C(0),
  142|  1.22k|    UINT64_C(0),
  143|  1.22k|    UINT64_C(0),
  144|  1.22k|    UINT64_C(0),
  145|  1.22k|    UINT64_C(0),
  146|  1.22k|    UINT64_C(0),
  147|  1.22k|    UINT64_C(0),
  148|  1.22k|    UINT64_C(0),
  149|  1.22k|    UINT64_C(0),
  150|  1.22k|    UINT64_C(0),
  151|  1.22k|    UINT64_C(0),
  152|  1.22k|    UINT64_C(0),
  153|  1.22k|    UINT64_C(0),
  154|  1.22k|    UINT64_C(0),
  155|  1.22k|    UINT64_C(0),
  156|  1.22k|    UINT64_C(0),
  157|  1.22k|    UINT64_C(0),
  158|  1.22k|    UINT64_C(0),
  159|  1.22k|    UINT64_C(0),
  160|  1.22k|    UINT64_C(0),
  161|  1.22k|    UINT64_C(0),
  162|  1.22k|    UINT64_C(0),
  163|  1.22k|    UINT64_C(0),
  164|  1.22k|    UINT64_C(0),
  165|  1.22k|    UINT64_C(0),
  166|  1.22k|    UINT64_C(0),
  167|  1.22k|    UINT64_C(0),
  168|  1.22k|    UINT64_C(0),
  169|  1.22k|    UINT64_C(0),
  170|  1.22k|    UINT64_C(0),
  171|  1.22k|    UINT64_C(0),
  172|  1.22k|    UINT64_C(0),
  173|  1.22k|    UINT64_C(0),
  174|  1.22k|    UINT64_C(0),
  175|  1.22k|    UINT64_C(0),
  176|  1.22k|    UINT64_C(0),
  177|  1.22k|    UINT64_C(0),
  178|  1.22k|    UINT64_C(0),
  179|  1.22k|    UINT64_C(0),
  180|  1.22k|    UINT64_C(0),
  181|  1.22k|    UINT64_C(0),
  182|  1.22k|    UINT64_C(0),
  183|  1.22k|    UINT64_C(0),
  184|  1.22k|    UINT64_C(0),
  185|  1.22k|    UINT64_C(0),
  186|  1.22k|    UINT64_C(0),
  187|  1.22k|    UINT64_C(0),
  188|  1.22k|    UINT64_C(0),
  189|  1.22k|    UINT64_C(0),
  190|  1.22k|    UINT64_C(0),
  191|  1.22k|    UINT64_C(0),
  192|  1.22k|    UINT64_C(0),
  193|  1.22k|    UINT64_C(0),
  194|  1.22k|    UINT64_C(0),
  195|  1.22k|    UINT64_C(0),
  196|  1.22k|    UINT64_C(0),
  197|  1.22k|    UINT64_C(0),
  198|  1.22k|    UINT64_C(0),
  199|  1.22k|    UINT64_C(0),
  200|  1.22k|    UINT64_C(0),
  201|  1.22k|    UINT64_C(0),
  202|  1.22k|    UINT64_C(0),
  203|  1.22k|    UINT64_C(0),
  204|  1.22k|    UINT64_C(0),
  205|  1.22k|    UINT64_C(0),
  206|  1.22k|    UINT64_C(0),
  207|  1.22k|    UINT64_C(0),
  208|  1.22k|    UINT64_C(0),
  209|  1.22k|    UINT64_C(0),
  210|  1.22k|    UINT64_C(0),
  211|  1.22k|    UINT64_C(0),
  212|  1.22k|    UINT64_C(0),
  213|  1.22k|    UINT64_C(0),
  214|  1.22k|    UINT64_C(0),
  215|  1.22k|    UINT64_C(0),
  216|  1.22k|    UINT64_C(0),
  217|  1.22k|    UINT64_C(0),
  218|  1.22k|    UINT64_C(0),
  219|  1.22k|    UINT64_C(0),
  220|  1.22k|    UINT64_C(0),
  221|  1.22k|    UINT64_C(0),
  222|  1.22k|    UINT64_C(0),
  223|  1.22k|    UINT64_C(0),
  224|  1.22k|    UINT64_C(0),
  225|  1.22k|    UINT64_C(0),
  226|  1.22k|    UINT64_C(0),
  227|  1.22k|    UINT64_C(51),	// ADD
  228|  1.22k|    UINT64_C(19),	// ADDI
  229|  1.22k|    UINT64_C(27),	// ADDIW
  230|  1.22k|    UINT64_C(59),	// ADDW
  231|  1.22k|    UINT64_C(12335),	// AMOADD_D
  232|  1.22k|    UINT64_C(67121199),	// AMOADD_D_AQ
  233|  1.22k|    UINT64_C(100675631),	// AMOADD_D_AQ_RL
  234|  1.22k|    UINT64_C(33566767),	// AMOADD_D_RL
  235|  1.22k|    UINT64_C(8239),	// AMOADD_W
  236|  1.22k|    UINT64_C(67117103),	// AMOADD_W_AQ
  237|  1.22k|    UINT64_C(100671535),	// AMOADD_W_AQ_RL
  238|  1.22k|    UINT64_C(33562671),	// AMOADD_W_RL
  239|  1.22k|    UINT64_C(1610625071),	// AMOAND_D
  240|  1.22k|    UINT64_C(1677733935),	// AMOAND_D_AQ
  241|  1.22k|    UINT64_C(1711288367),	// AMOAND_D_AQ_RL
  242|  1.22k|    UINT64_C(1644179503),	// AMOAND_D_RL
  243|  1.22k|    UINT64_C(1610620975),	// AMOAND_W
  244|  1.22k|    UINT64_C(1677729839),	// AMOAND_W_AQ
  245|  1.22k|    UINT64_C(1711284271),	// AMOAND_W_AQ_RL
  246|  1.22k|    UINT64_C(1644175407),	// AMOAND_W_RL
  247|  1.22k|    UINT64_C(3758108719),	// AMOMAXU_D
  248|  1.22k|    UINT64_C(3825217583),	// AMOMAXU_D_AQ
  249|  1.22k|    UINT64_C(3858772015),	// AMOMAXU_D_AQ_RL
  250|  1.22k|    UINT64_C(3791663151),	// AMOMAXU_D_RL
  251|  1.22k|    UINT64_C(3758104623),	// AMOMAXU_W
  252|  1.22k|    UINT64_C(3825213487),	// AMOMAXU_W_AQ
  253|  1.22k|    UINT64_C(3858767919),	// AMOMAXU_W_AQ_RL
  254|  1.22k|    UINT64_C(3791659055),	// AMOMAXU_W_RL
  255|  1.22k|    UINT64_C(2684366895),	// AMOMAX_D
  256|  1.22k|    UINT64_C(2751475759),	// AMOMAX_D_AQ
  257|  1.22k|    UINT64_C(2785030191),	// AMOMAX_D_AQ_RL
  258|  1.22k|    UINT64_C(2717921327),	// AMOMAX_D_RL
  259|  1.22k|    UINT64_C(2684362799),	// AMOMAX_W
  260|  1.22k|    UINT64_C(2751471663),	// AMOMAX_W_AQ
  261|  1.22k|    UINT64_C(2785026095),	// AMOMAX_W_AQ_RL
  262|  1.22k|    UINT64_C(2717917231),	// AMOMAX_W_RL
  263|  1.22k|    UINT64_C(3221237807),	// AMOMINU_D
  264|  1.22k|    UINT64_C(3288346671),	// AMOMINU_D_AQ
  265|  1.22k|    UINT64_C(3321901103),	// AMOMINU_D_AQ_RL
  266|  1.22k|    UINT64_C(3254792239),	// AMOMINU_D_RL
  267|  1.22k|    UINT64_C(3221233711),	// AMOMINU_W
  268|  1.22k|    UINT64_C(3288342575),	// AMOMINU_W_AQ
  269|  1.22k|    UINT64_C(3321897007),	// AMOMINU_W_AQ_RL
  270|  1.22k|    UINT64_C(3254788143),	// AMOMINU_W_RL
  271|  1.22k|    UINT64_C(2147495983),	// AMOMIN_D
  272|  1.22k|    UINT64_C(2214604847),	// AMOMIN_D_AQ
  273|  1.22k|    UINT64_C(2248159279),	// AMOMIN_D_AQ_RL
  274|  1.22k|    UINT64_C(2181050415),	// AMOMIN_D_RL
  275|  1.22k|    UINT64_C(2147491887),	// AMOMIN_W
  276|  1.22k|    UINT64_C(2214600751),	// AMOMIN_W_AQ
  277|  1.22k|    UINT64_C(2248155183),	// AMOMIN_W_AQ_RL
  278|  1.22k|    UINT64_C(2181046319),	// AMOMIN_W_RL
  279|  1.22k|    UINT64_C(1073754159),	// AMOOR_D
  280|  1.22k|    UINT64_C(1140863023),	// AMOOR_D_AQ
  281|  1.22k|    UINT64_C(1174417455),	// AMOOR_D_AQ_RL
  282|  1.22k|    UINT64_C(1107308591),	// AMOOR_D_RL
  283|  1.22k|    UINT64_C(1073750063),	// AMOOR_W
  284|  1.22k|    UINT64_C(1140858927),	// AMOOR_W_AQ
  285|  1.22k|    UINT64_C(1174413359),	// AMOOR_W_AQ_RL
  286|  1.22k|    UINT64_C(1107304495),	// AMOOR_W_RL
  287|  1.22k|    UINT64_C(134230063),	// AMOSWAP_D
  288|  1.22k|    UINT64_C(201338927),	// AMOSWAP_D_AQ
  289|  1.22k|    UINT64_C(234893359),	// AMOSWAP_D_AQ_RL
  290|  1.22k|    UINT64_C(167784495),	// AMOSWAP_D_RL
  291|  1.22k|    UINT64_C(134225967),	// AMOSWAP_W
  292|  1.22k|    UINT64_C(201334831),	// AMOSWAP_W_AQ
  293|  1.22k|    UINT64_C(234889263),	// AMOSWAP_W_AQ_RL
  294|  1.22k|    UINT64_C(167780399),	// AMOSWAP_W_RL
  295|  1.22k|    UINT64_C(536883247),	// AMOXOR_D
  296|  1.22k|    UINT64_C(603992111),	// AMOXOR_D_AQ
  297|  1.22k|    UINT64_C(637546543),	// AMOXOR_D_AQ_RL
  298|  1.22k|    UINT64_C(570437679),	// AMOXOR_D_RL
  299|  1.22k|    UINT64_C(536879151),	// AMOXOR_W
  300|  1.22k|    UINT64_C(603988015),	// AMOXOR_W_AQ
  301|  1.22k|    UINT64_C(637542447),	// AMOXOR_W_AQ_RL
  302|  1.22k|    UINT64_C(570433583),	// AMOXOR_W_RL
  303|  1.22k|    UINT64_C(28723),	// AND
  304|  1.22k|    UINT64_C(28691),	// ANDI
  305|  1.22k|    UINT64_C(23),	// AUIPC
  306|  1.22k|    UINT64_C(99),	// BEQ
  307|  1.22k|    UINT64_C(20579),	// BGE
  308|  1.22k|    UINT64_C(28771),	// BGEU
  309|  1.22k|    UINT64_C(16483),	// BLT
  310|  1.22k|    UINT64_C(24675),	// BLTU
  311|  1.22k|    UINT64_C(4195),	// BNE
  312|  1.22k|    UINT64_C(12403),	// CSRRC
  313|  1.22k|    UINT64_C(28787),	// CSRRCI
  314|  1.22k|    UINT64_C(8307),	// CSRRS
  315|  1.22k|    UINT64_C(24691),	// CSRRSI
  316|  1.22k|    UINT64_C(4211),	// CSRRW
  317|  1.22k|    UINT64_C(20595),	// CSRRWI
  318|  1.22k|    UINT64_C(36866),	// C_ADD
  319|  1.22k|    UINT64_C(1),	// C_ADDI
  320|  1.22k|    UINT64_C(24833),	// C_ADDI16SP
  321|  1.22k|    UINT64_C(0),	// C_ADDI4SPN
  322|  1.22k|    UINT64_C(8193),	// C_ADDIW
  323|  1.22k|    UINT64_C(39969),	// C_ADDW
  324|  1.22k|    UINT64_C(35937),	// C_AND
  325|  1.22k|    UINT64_C(34817),	// C_ANDI
  326|  1.22k|    UINT64_C(49153),	// C_BEQZ
  327|  1.22k|    UINT64_C(57345),	// C_BNEZ
  328|  1.22k|    UINT64_C(36866),	// C_EBREAK
  329|  1.22k|    UINT64_C(8192),	// C_FLD
  330|  1.22k|    UINT64_C(8194),	// C_FLDSP
  331|  1.22k|    UINT64_C(24576),	// C_FLW
  332|  1.22k|    UINT64_C(24578),	// C_FLWSP
  333|  1.22k|    UINT64_C(40960),	// C_FSD
  334|  1.22k|    UINT64_C(40962),	// C_FSDSP
  335|  1.22k|    UINT64_C(57344),	// C_FSW
  336|  1.22k|    UINT64_C(57346),	// C_FSWSP
  337|  1.22k|    UINT64_C(40961),	// C_J
  338|  1.22k|    UINT64_C(8193),	// C_JAL
  339|  1.22k|    UINT64_C(36866),	// C_JALR
  340|  1.22k|    UINT64_C(32770),	// C_JR
  341|  1.22k|    UINT64_C(24576),	// C_LD
  342|  1.22k|    UINT64_C(24578),	// C_LDSP
  343|  1.22k|    UINT64_C(16385),	// C_LI
  344|  1.22k|    UINT64_C(24577),	// C_LUI
  345|  1.22k|    UINT64_C(16384),	// C_LW
  346|  1.22k|    UINT64_C(16386),	// C_LWSP
  347|  1.22k|    UINT64_C(32770),	// C_MV
  348|  1.22k|    UINT64_C(1),	// C_NOP
  349|  1.22k|    UINT64_C(35905),	// C_OR
  350|  1.22k|    UINT64_C(57344),	// C_SD
  351|  1.22k|    UINT64_C(57346),	// C_SDSP
  352|  1.22k|    UINT64_C(2),	// C_SLLI
  353|  1.22k|    UINT64_C(33793),	// C_SRAI
  354|  1.22k|    UINT64_C(32769),	// C_SRLI
  355|  1.22k|    UINT64_C(35841),	// C_SUB
  356|  1.22k|    UINT64_C(39937),	// C_SUBW
  357|  1.22k|    UINT64_C(49152),	// C_SW
  358|  1.22k|    UINT64_C(49154),	// C_SWSP
  359|  1.22k|    UINT64_C(0),	// C_UNIMP
  360|  1.22k|    UINT64_C(35873),	// C_XOR
  361|  1.22k|    UINT64_C(33570867),	// DIV
  362|  1.22k|    UINT64_C(33574963),	// DIVU
  363|  1.22k|    UINT64_C(33574971),	// DIVUW
  364|  1.22k|    UINT64_C(33570875),	// DIVW
  365|  1.22k|    UINT64_C(1048691),	// EBREAK
  366|  1.22k|    UINT64_C(115),	// ECALL
  367|  1.22k|    UINT64_C(33554515),	// FADD_D
  368|  1.22k|    UINT64_C(83),	// FADD_S
  369|  1.22k|    UINT64_C(3791654995),	// FCLASS_D
  370|  1.22k|    UINT64_C(3758100563),	// FCLASS_S
  371|  1.22k|    UINT64_C(3525312595),	// FCVT_D_L
  372|  1.22k|    UINT64_C(3526361171),	// FCVT_D_LU
  373|  1.22k|    UINT64_C(1107296339),	// FCVT_D_S
  374|  1.22k|    UINT64_C(3523215443),	// FCVT_D_W
  375|  1.22k|    UINT64_C(3524264019),	// FCVT_D_WU
  376|  1.22k|    UINT64_C(3257925715),	// FCVT_LU_D
  377|  1.22k|    UINT64_C(3224371283),	// FCVT_LU_S
  378|  1.22k|    UINT64_C(3256877139),	// FCVT_L_D
  379|  1.22k|    UINT64_C(3223322707),	// FCVT_L_S
  380|  1.22k|    UINT64_C(1074790483),	// FCVT_S_D
  381|  1.22k|    UINT64_C(3491758163),	// FCVT_S_L
  382|  1.22k|    UINT64_C(3492806739),	// FCVT_S_LU
  383|  1.22k|    UINT64_C(3489661011),	// FCVT_S_W
  384|  1.22k|    UINT64_C(3490709587),	// FCVT_S_WU
  385|  1.22k|    UINT64_C(3255828563),	// FCVT_WU_D
  386|  1.22k|    UINT64_C(3222274131),	// FCVT_WU_S
  387|  1.22k|    UINT64_C(3254779987),	// FCVT_W_D
  388|  1.22k|    UINT64_C(3221225555),	// FCVT_W_S
  389|  1.22k|    UINT64_C(436207699),	// FDIV_D
  390|  1.22k|    UINT64_C(402653267),	// FDIV_S
  391|  1.22k|    UINT64_C(15),	// FENCE
  392|  1.22k|    UINT64_C(4111),	// FENCE_I
  393|  1.22k|    UINT64_C(2200961039),	// FENCE_TSO
  394|  1.22k|    UINT64_C(2717917267),	// FEQ_D
  395|  1.22k|    UINT64_C(2684362835),	// FEQ_S
  396|  1.22k|    UINT64_C(12295),	// FLD
  397|  1.22k|    UINT64_C(2717909075),	// FLE_D
  398|  1.22k|    UINT64_C(2684354643),	// FLE_S
  399|  1.22k|    UINT64_C(2717913171),	// FLT_D
  400|  1.22k|    UINT64_C(2684358739),	// FLT_S
  401|  1.22k|    UINT64_C(8199),	// FLW
  402|  1.22k|    UINT64_C(33554499),	// FMADD_D
  403|  1.22k|    UINT64_C(67),	// FMADD_S
  404|  1.22k|    UINT64_C(704647251),	// FMAX_D
  405|  1.22k|    UINT64_C(671092819),	// FMAX_S
  406|  1.22k|    UINT64_C(704643155),	// FMIN_D
  407|  1.22k|    UINT64_C(671088723),	// FMIN_S
  408|  1.22k|    UINT64_C(33554503),	// FMSUB_D
  409|  1.22k|    UINT64_C(71),	// FMSUB_S
  410|  1.22k|    UINT64_C(301989971),	// FMUL_D
  411|  1.22k|    UINT64_C(268435539),	// FMUL_S
  412|  1.22k|    UINT64_C(4060086355),	// FMV_D_X
  413|  1.22k|    UINT64_C(4026531923),	// FMV_W_X
  414|  1.22k|    UINT64_C(3791650899),	// FMV_X_D
  415|  1.22k|    UINT64_C(3758096467),	// FMV_X_W
  416|  1.22k|    UINT64_C(33554511),	// FNMADD_D
  417|  1.22k|    UINT64_C(79),	// FNMADD_S
  418|  1.22k|    UINT64_C(33554507),	// FNMSUB_D
  419|  1.22k|    UINT64_C(75),	// FNMSUB_S
  420|  1.22k|    UINT64_C(12327),	// FSD
  421|  1.22k|    UINT64_C(570429523),	// FSGNJN_D
  422|  1.22k|    UINT64_C(536875091),	// FSGNJN_S
  423|  1.22k|    UINT64_C(570433619),	// FSGNJX_D
  424|  1.22k|    UINT64_C(536879187),	// FSGNJX_S
  425|  1.22k|    UINT64_C(570425427),	// FSGNJ_D
  426|  1.22k|    UINT64_C(536870995),	// FSGNJ_S
  427|  1.22k|    UINT64_C(1509949523),	// FSQRT_D
  428|  1.22k|    UINT64_C(1476395091),	// FSQRT_S
  429|  1.22k|    UINT64_C(167772243),	// FSUB_D
  430|  1.22k|    UINT64_C(134217811),	// FSUB_S
  431|  1.22k|    UINT64_C(8231),	// FSW
  432|  1.22k|    UINT64_C(111),	// JAL
  433|  1.22k|    UINT64_C(103),	// JALR
  434|  1.22k|    UINT64_C(3),	// LB
  435|  1.22k|    UINT64_C(16387),	// LBU
  436|  1.22k|    UINT64_C(12291),	// LD
  437|  1.22k|    UINT64_C(4099),	// LH
  438|  1.22k|    UINT64_C(20483),	// LHU
  439|  1.22k|    UINT64_C(268447791),	// LR_D
  440|  1.22k|    UINT64_C(335556655),	// LR_D_AQ
  441|  1.22k|    UINT64_C(369111087),	// LR_D_AQ_RL
  442|  1.22k|    UINT64_C(302002223),	// LR_D_RL
  443|  1.22k|    UINT64_C(268443695),	// LR_W
  444|  1.22k|    UINT64_C(335552559),	// LR_W_AQ
  445|  1.22k|    UINT64_C(369106991),	// LR_W_AQ_RL
  446|  1.22k|    UINT64_C(301998127),	// LR_W_RL
  447|  1.22k|    UINT64_C(55),	// LUI
  448|  1.22k|    UINT64_C(8195),	// LW
  449|  1.22k|    UINT64_C(24579),	// LWU
  450|  1.22k|    UINT64_C(807403635),	// MRET
  451|  1.22k|    UINT64_C(33554483),	// MUL
  452|  1.22k|    UINT64_C(33558579),	// MULH
  453|  1.22k|    UINT64_C(33562675),	// MULHSU
  454|  1.22k|    UINT64_C(33566771),	// MULHU
  455|  1.22k|    UINT64_C(33554491),	// MULW
  456|  1.22k|    UINT64_C(24627),	// OR
  457|  1.22k|    UINT64_C(24595),	// ORI
  458|  1.22k|    UINT64_C(33579059),	// REM
  459|  1.22k|    UINT64_C(33583155),	// REMU
  460|  1.22k|    UINT64_C(33583163),	// REMUW
  461|  1.22k|    UINT64_C(33579067),	// REMW
  462|  1.22k|    UINT64_C(35),	// SB
  463|  1.22k|    UINT64_C(402665519),	// SC_D
  464|  1.22k|    UINT64_C(469774383),	// SC_D_AQ
  465|  1.22k|    UINT64_C(503328815),	// SC_D_AQ_RL
  466|  1.22k|    UINT64_C(436219951),	// SC_D_RL
  467|  1.22k|    UINT64_C(402661423),	// SC_W
  468|  1.22k|    UINT64_C(469770287),	// SC_W_AQ
  469|  1.22k|    UINT64_C(503324719),	// SC_W_AQ_RL
  470|  1.22k|    UINT64_C(436215855),	// SC_W_RL
  471|  1.22k|    UINT64_C(12323),	// SD
  472|  1.22k|    UINT64_C(301990003),	// SFENCE_VMA
  473|  1.22k|    UINT64_C(4131),	// SH
  474|  1.22k|    UINT64_C(4147),	// SLL
  475|  1.22k|    UINT64_C(4115),	// SLLI
  476|  1.22k|    UINT64_C(4123),	// SLLIW
  477|  1.22k|    UINT64_C(4155),	// SLLW
  478|  1.22k|    UINT64_C(8243),	// SLT
  479|  1.22k|    UINT64_C(8211),	// SLTI
  480|  1.22k|    UINT64_C(12307),	// SLTIU
  481|  1.22k|    UINT64_C(12339),	// SLTU
  482|  1.22k|    UINT64_C(1073762355),	// SRA
  483|  1.22k|    UINT64_C(1073762323),	// SRAI
  484|  1.22k|    UINT64_C(1073762331),	// SRAIW
  485|  1.22k|    UINT64_C(1073762363),	// SRAW
  486|  1.22k|    UINT64_C(270532723),	// SRET
  487|  1.22k|    UINT64_C(20531),	// SRL
  488|  1.22k|    UINT64_C(20499),	// SRLI
  489|  1.22k|    UINT64_C(20507),	// SRLIW
  490|  1.22k|    UINT64_C(20539),	// SRLW
  491|  1.22k|    UINT64_C(1073741875),	// SUB
  492|  1.22k|    UINT64_C(1073741883),	// SUBW
  493|  1.22k|    UINT64_C(8227),	// SW
  494|  1.22k|    UINT64_C(3221229683),	// UNIMP
  495|  1.22k|    UINT64_C(2097267),	// URET
  496|  1.22k|    UINT64_C(273678451),	// WFI
  497|  1.22k|    UINT64_C(16435),	// XOR
  498|  1.22k|    UINT64_C(16403),	// XORI
  499|  1.22k|    UINT64_C(0)
  500|  1.22k|  };
  501|  1.22k|  const unsigned opcode = MI.getOpcode();
  502|  1.22k|  uint64_t Value = InstBits[opcode];
  503|  1.22k|  uint64_t op = 0;
  504|  1.22k|  (void)op;  // suppress warning
  505|  1.22k|  switch (opcode) {
  506|      2|    case RISCV::C_EBREAK:
  ------------------
  |  Branch (506:5): [True: 2, False: 1.22k]
  ------------------
  507|    203|    case RISCV::C_NOP:
  ------------------
  |  Branch (507:5): [True: 201, False: 1.02k]
  ------------------
  508|    204|    case RISCV::C_UNIMP:
  ------------------
  |  Branch (508:5): [True: 1, False: 1.22k]
  ------------------
  509|    204|    case RISCV::EBREAK:
  ------------------
  |  Branch (509:5): [True: 0, False: 1.22k]
  ------------------
  510|    222|    case RISCV::ECALL:
  ------------------
  |  Branch (510:5): [True: 18, False: 1.20k]
  ------------------
  511|    222|    case RISCV::FENCE_I:
  ------------------
  |  Branch (511:5): [True: 0, False: 1.22k]
  ------------------
  512|    222|    case RISCV::FENCE_TSO:
  ------------------
  |  Branch (512:5): [True: 0, False: 1.22k]
  ------------------
  513|    225|    case RISCV::MRET:
  ------------------
  |  Branch (513:5): [True: 3, False: 1.22k]
  ------------------
  514|    231|    case RISCV::SRET:
  ------------------
  |  Branch (514:5): [True: 6, False: 1.22k]
  ------------------
  515|    231|    case RISCV::UNIMP:
  ------------------
  |  Branch (515:5): [True: 0, False: 1.22k]
  ------------------
  516|    234|    case RISCV::URET:
  ------------------
  |  Branch (516:5): [True: 3, False: 1.22k]
  ------------------
  517|    340|    case RISCV::WFI: {
  ------------------
  |  Branch (517:5): [True: 106, False: 1.12k]
  ------------------
  518|    340|      break;
  519|    234|    }
  520|      0|    case RISCV::C_LI:
  ------------------
  |  Branch (520:5): [True: 0, False: 1.22k]
  ------------------
  521|      0|    case RISCV::C_LUI: {
  ------------------
  |  Branch (521:5): [True: 0, False: 1.22k]
  ------------------
  522|       |      // op: imm
  523|      0|      op = getImmOpValue(MI, 1, Fixups, STI);
  524|      0|      Value |= (op & UINT64_C(32)) << 7;
  525|      0|      Value |= (op & UINT64_C(31)) << 2;
  526|       |      // op: rd
  527|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  528|      0|      Value |= (op & UINT64_C(31)) << 7;
  529|      0|      break;
  530|      0|    }
  531|      0|    case RISCV::C_FLDSP:
  ------------------
  |  Branch (531:5): [True: 0, False: 1.22k]
  ------------------
  532|      0|    case RISCV::C_LDSP: {
  ------------------
  |  Branch (532:5): [True: 0, False: 1.22k]
  ------------------
  533|       |      // op: imm
  534|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  535|      0|      Value |= (op & UINT64_C(32)) << 7;
  536|      0|      Value |= (op & UINT64_C(24)) << 2;
  537|      0|      Value |= (op & UINT64_C(448)) >> 4;
  538|       |      // op: rd
  539|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  540|      0|      Value |= (op & UINT64_C(31)) << 7;
  541|      0|      break;
  542|      0|    }
  543|      0|    case RISCV::C_FLWSP:
  ------------------
  |  Branch (543:5): [True: 0, False: 1.22k]
  ------------------
  544|      0|    case RISCV::C_LWSP: {
  ------------------
  |  Branch (544:5): [True: 0, False: 1.22k]
  ------------------
  545|       |      // op: imm
  546|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  547|      0|      Value |= (op & UINT64_C(32)) << 7;
  548|      0|      Value |= (op & UINT64_C(28)) << 2;
  549|      0|      Value |= (op & UINT64_C(192)) >> 4;
  550|       |      // op: rd
  551|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  552|      0|      Value |= (op & UINT64_C(31)) << 7;
  553|      0|      break;
  554|      0|    }
  555|     57|    case RISCV::C_ADDI:
  ------------------
  |  Branch (555:5): [True: 57, False: 1.16k]
  ------------------
  556|     57|    case RISCV::C_ADDIW: {
  ------------------
  |  Branch (556:5): [True: 0, False: 1.22k]
  ------------------
  557|       |      // op: imm
  558|     57|      op = getImmOpValue(MI, 2, Fixups, STI);
  559|     57|      Value |= (op & UINT64_C(32)) << 7;
  560|     57|      Value |= (op & UINT64_C(31)) << 2;
  561|       |      // op: rd
  562|     57|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  563|     57|      Value |= (op & UINT64_C(31)) << 7;
  564|     57|      break;
  565|     57|    }
  566|      0|    case RISCV::C_ANDI: {
  ------------------
  |  Branch (566:5): [True: 0, False: 1.22k]
  ------------------
  567|       |      // op: imm
  568|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  569|      0|      Value |= (op & UINT64_C(32)) << 7;
  570|      0|      Value |= (op & UINT64_C(31)) << 2;
  571|       |      // op: rs1
  572|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  573|      0|      Value |= (op & UINT64_C(7)) << 7;
  574|      0|      break;
  575|     57|    }
  576|      4|    case RISCV::C_ADDI4SPN: {
  ------------------
  |  Branch (576:5): [True: 4, False: 1.22k]
  ------------------
  577|       |      // op: imm
  578|      4|      op = getImmOpValue(MI, 2, Fixups, STI);
  579|      4|      Value |= (op & UINT64_C(48)) << 7;
  580|      4|      Value |= (op & UINT64_C(960)) << 1;
  581|      4|      Value |= (op & UINT64_C(4)) << 4;
  582|      4|      Value |= (op & UINT64_C(8)) << 2;
  583|       |      // op: rd
  584|      4|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  585|      4|      Value |= (op & UINT64_C(7)) << 2;
  586|      4|      break;
  587|     57|    }
  588|      9|    case RISCV::C_ADDI16SP: {
  ------------------
  |  Branch (588:5): [True: 9, False: 1.21k]
  ------------------
  589|       |      // op: imm
  590|      9|      op = getImmOpValue(MI, 2, Fixups, STI);
  591|      9|      Value |= (op & UINT64_C(512)) << 3;
  592|      9|      Value |= (op & UINT64_C(16)) << 2;
  593|      9|      Value |= (op & UINT64_C(64)) >> 1;
  594|      9|      Value |= (op & UINT64_C(384)) >> 4;
  595|      9|      Value |= (op & UINT64_C(32)) >> 3;
  596|      9|      break;
  597|     57|    }
  598|      0|    case RISCV::C_FSDSP:
  ------------------
  |  Branch (598:5): [True: 0, False: 1.22k]
  ------------------
  599|      0|    case RISCV::C_SDSP: {
  ------------------
  |  Branch (599:5): [True: 0, False: 1.22k]
  ------------------
  600|       |      // op: imm
  601|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  602|      0|      Value |= (op & UINT64_C(56)) << 7;
  603|      0|      Value |= (op & UINT64_C(448)) << 1;
  604|       |      // op: rs2
  605|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  606|      0|      Value |= (op & UINT64_C(31)) << 2;
  607|      0|      break;
  608|      0|    }
  609|      0|    case RISCV::C_FSWSP:
  ------------------
  |  Branch (609:5): [True: 0, False: 1.22k]
  ------------------
  610|      0|    case RISCV::C_SWSP: {
  ------------------
  |  Branch (610:5): [True: 0, False: 1.22k]
  ------------------
  611|       |      // op: imm
  612|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  613|      0|      Value |= (op & UINT64_C(60)) << 7;
  614|      0|      Value |= (op & UINT64_C(192)) << 1;
  615|       |      // op: rs2
  616|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  617|      0|      Value |= (op & UINT64_C(31)) << 2;
  618|      0|      break;
  619|      0|    }
  620|      0|    case RISCV::C_BEQZ:
  ------------------
  |  Branch (620:5): [True: 0, False: 1.22k]
  ------------------
  621|      0|    case RISCV::C_BNEZ: {
  ------------------
  |  Branch (621:5): [True: 0, False: 1.22k]
  ------------------
  622|       |      // op: imm
  623|      0|      op = getImmOpValueAsr1(MI, 1, Fixups, STI);
  624|      0|      Value |= (op & UINT64_C(128)) << 5;
  625|      0|      Value |= (op & UINT64_C(12)) << 8;
  626|      0|      Value |= op & UINT64_C(96);
  627|      0|      Value |= (op & UINT64_C(3)) << 3;
  628|      0|      Value |= (op & UINT64_C(16)) >> 2;
  629|       |      // op: rs1
  630|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  631|      0|      Value |= (op & UINT64_C(7)) << 7;
  632|      0|      break;
  633|      0|    }
  634|      0|    case RISCV::C_SLLI: {
  ------------------
  |  Branch (634:5): [True: 0, False: 1.22k]
  ------------------
  635|       |      // op: imm
  636|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
  637|      0|      Value |= (op & UINT64_C(32)) << 7;
  638|      0|      Value |= (op & UINT64_C(31)) << 2;
  639|       |      // op: rd
  640|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  641|      0|      Value |= (op & UINT64_C(31)) << 7;
  642|      0|      break;
  643|      0|    }
  644|      0|    case RISCV::C_SRAI:
  ------------------
  |  Branch (644:5): [True: 0, False: 1.22k]
  ------------------
  645|      0|    case RISCV::C_SRLI: {
  ------------------
  |  Branch (645:5): [True: 0, False: 1.22k]
  ------------------
  646|       |      // op: imm
  647|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
  648|      0|      Value |= (op & UINT64_C(32)) << 7;
  649|      0|      Value |= (op & UINT64_C(31)) << 2;
  650|       |      // op: rs1
  651|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  652|      0|      Value |= (op & UINT64_C(7)) << 7;
  653|      0|      break;
  654|      0|    }
  655|      0|    case RISCV::FSD:
  ------------------
  |  Branch (655:5): [True: 0, False: 1.22k]
  ------------------
  656|      0|    case RISCV::FSW:
  ------------------
  |  Branch (656:5): [True: 0, False: 1.22k]
  ------------------
  657|      0|    case RISCV::SB:
  ------------------
  |  Branch (657:5): [True: 0, False: 1.22k]
  ------------------
  658|      0|    case RISCV::SD:
  ------------------
  |  Branch (658:5): [True: 0, False: 1.22k]
  ------------------
  659|      0|    case RISCV::SH:
  ------------------
  |  Branch (659:5): [True: 0, False: 1.22k]
  ------------------
  660|      0|    case RISCV::SW: {
  ------------------
  |  Branch (660:5): [True: 0, False: 1.22k]
  ------------------
  661|       |      // op: imm12
  662|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  663|      0|      Value |= (op & UINT64_C(4064)) << 20;
  664|      0|      Value |= (op & UINT64_C(31)) << 7;
  665|       |      // op: rs2
  666|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  667|      0|      Value |= (op & UINT64_C(31)) << 20;
  668|       |      // op: rs1
  669|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  670|      0|      Value |= (op & UINT64_C(31)) << 15;
  671|      0|      break;
  672|      0|    }
  673|     76|    case RISCV::ADDI:
  ------------------
  |  Branch (673:5): [True: 76, False: 1.15k]
  ------------------
  674|     76|    case RISCV::ADDIW:
  ------------------
  |  Branch (674:5): [True: 0, False: 1.22k]
  ------------------
  675|     79|    case RISCV::ANDI:
  ------------------
  |  Branch (675:5): [True: 3, False: 1.22k]
  ------------------
  676|     79|    case RISCV::FLD:
  ------------------
  |  Branch (676:5): [True: 0, False: 1.22k]
  ------------------
  677|     79|    case RISCV::FLW:
  ------------------
  |  Branch (677:5): [True: 0, False: 1.22k]
  ------------------
  678|     87|    case RISCV::JALR:
  ------------------
  |  Branch (678:5): [True: 8, False: 1.21k]
  ------------------
  679|     87|    case RISCV::LB:
  ------------------
  |  Branch (679:5): [True: 0, False: 1.22k]
  ------------------
  680|     87|    case RISCV::LBU:
  ------------------
  |  Branch (680:5): [True: 0, False: 1.22k]
  ------------------
  681|     87|    case RISCV::LD:
  ------------------
  |  Branch (681:5): [True: 0, False: 1.22k]
  ------------------
  682|     88|    case RISCV::LH:
  ------------------
  |  Branch (682:5): [True: 1, False: 1.22k]
  ------------------
  683|     88|    case RISCV::LHU:
  ------------------
  |  Branch (683:5): [True: 0, False: 1.22k]
  ------------------
  684|     88|    case RISCV::LW:
  ------------------
  |  Branch (684:5): [True: 0, False: 1.22k]
  ------------------
  685|     88|    case RISCV::LWU:
  ------------------
  |  Branch (685:5): [True: 0, False: 1.22k]
  ------------------
  686|     88|    case RISCV::ORI:
  ------------------
  |  Branch (686:5): [True: 0, False: 1.22k]
  ------------------
  687|     88|    case RISCV::SLTI:
  ------------------
  |  Branch (687:5): [True: 0, False: 1.22k]
  ------------------
  688|     88|    case RISCV::SLTIU:
  ------------------
  |  Branch (688:5): [True: 0, False: 1.22k]
  ------------------
  689|     88|    case RISCV::XORI: {
  ------------------
  |  Branch (689:5): [True: 0, False: 1.22k]
  ------------------
  690|       |      // op: imm12
  691|     88|      op = getImmOpValue(MI, 2, Fixups, STI);
  692|     88|      Value |= (op & UINT64_C(4095)) << 20;
  693|       |      // op: rs1
  694|     88|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  695|     88|      Value |= (op & UINT64_C(31)) << 15;
  696|       |      // op: rd
  697|     88|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  698|     88|      Value |= (op & UINT64_C(31)) << 7;
  699|     88|      break;
  700|     88|    }
  701|      0|    case RISCV::BEQ:
  ------------------
  |  Branch (701:5): [True: 0, False: 1.22k]
  ------------------
  702|      0|    case RISCV::BGE:
  ------------------
  |  Branch (702:5): [True: 0, False: 1.22k]
  ------------------
  703|      0|    case RISCV::BGEU:
  ------------------
  |  Branch (703:5): [True: 0, False: 1.22k]
  ------------------
  704|      0|    case RISCV::BLT:
  ------------------
  |  Branch (704:5): [True: 0, False: 1.22k]
  ------------------
  705|      0|    case RISCV::BLTU:
  ------------------
  |  Branch (705:5): [True: 0, False: 1.22k]
  ------------------
  706|      0|    case RISCV::BNE: {
  ------------------
  |  Branch (706:5): [True: 0, False: 1.22k]
  ------------------
  707|       |      // op: imm12
  708|      0|      op = getImmOpValueAsr1(MI, 2, Fixups, STI);
  709|      0|      Value |= (op & UINT64_C(2048)) << 20;
  710|      0|      Value |= (op & UINT64_C(1008)) << 21;
  711|      0|      Value |= (op & UINT64_C(15)) << 8;
  712|      0|      Value |= (op & UINT64_C(1024)) >> 3;
  713|       |      // op: rs2
  714|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  715|      0|      Value |= (op & UINT64_C(31)) << 20;
  716|       |      // op: rs1
  717|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  718|      0|      Value |= (op & UINT64_C(31)) << 15;
  719|      0|      break;
  720|      0|    }
  721|      0|    case RISCV::CSRRC:
  ------------------
  |  Branch (721:5): [True: 0, False: 1.22k]
  ------------------
  722|      1|    case RISCV::CSRRCI:
  ------------------
  |  Branch (722:5): [True: 1, False: 1.22k]
  ------------------
  723|      1|    case RISCV::CSRRS:
  ------------------
  |  Branch (723:5): [True: 0, False: 1.22k]
  ------------------
  724|      2|    case RISCV::CSRRSI:
  ------------------
  |  Branch (724:5): [True: 1, False: 1.22k]
  ------------------
  725|      2|    case RISCV::CSRRW:
  ------------------
  |  Branch (725:5): [True: 0, False: 1.22k]
  ------------------
  726|      3|    case RISCV::CSRRWI: {
  ------------------
  |  Branch (726:5): [True: 1, False: 1.22k]
  ------------------
  727|       |      // op: imm12
  728|      3|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  729|      3|      Value |= (op & UINT64_C(4095)) << 20;
  730|       |      // op: rs1
  731|      3|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
  732|      3|      Value |= (op & UINT64_C(31)) << 15;
  733|       |      // op: rd
  734|      3|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  735|      3|      Value |= (op & UINT64_C(31)) << 7;
  736|      3|      break;
  737|      2|    }
  738|      9|    case RISCV::AUIPC:
  ------------------
  |  Branch (738:5): [True: 9, False: 1.21k]
  ------------------
  739|      9|    case RISCV::LUI: {
  ------------------
  |  Branch (739:5): [True: 0, False: 1.22k]
  ------------------
  740|       |      // op: imm20
  741|      9|      op = getImmOpValue(MI, 1, Fixups, STI);
  742|      9|      Value |= (op & UINT64_C(1048575)) << 12;
  743|       |      // op: rd
  744|      9|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  745|      9|      Value |= (op & UINT64_C(31)) << 7;
  746|      9|      break;
  747|      9|    }
  748|     18|    case RISCV::JAL: {
  ------------------
  |  Branch (748:5): [True: 18, False: 1.20k]
  ------------------
  749|       |      // op: imm20
  750|     18|      op = getImmOpValueAsr1(MI, 1, Fixups, STI);
  751|     18|      Value |= (op & UINT64_C(524288)) << 12;
  752|     18|      Value |= (op & UINT64_C(1023)) << 21;
  753|     18|      Value |= (op & UINT64_C(1024)) << 10;
  754|     18|      Value |= (op & UINT64_C(522240)) << 1;
  755|       |      // op: rd
  756|     18|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  757|     18|      Value |= (op & UINT64_C(31)) << 7;
  758|     18|      break;
  759|      9|    }
  760|    660|    case RISCV::C_J:
  ------------------
  |  Branch (760:5): [True: 660, False: 566]
  ------------------
  761|    677|    case RISCV::C_JAL: {
  ------------------
  |  Branch (761:5): [True: 17, False: 1.20k]
  ------------------
  762|       |      // op: offset
  763|    677|      op = getImmOpValueAsr1(MI, 0, Fixups, STI);
  764|    677|      Value |= (op & UINT64_C(1024)) << 2;
  765|    677|      Value |= (op & UINT64_C(8)) << 8;
  766|    677|      Value |= (op & UINT64_C(384)) << 2;
  767|    677|      Value |= (op & UINT64_C(512)) >> 1;
  768|    677|      Value |= (op & UINT64_C(32)) << 2;
  769|    677|      Value |= op & UINT64_C(64);
  770|    677|      Value |= (op & UINT64_C(7)) << 3;
  771|    677|      Value |= (op & UINT64_C(16)) >> 2;
  772|    677|      break;
  773|    660|    }
  774|      1|    case RISCV::FENCE: {
  ------------------
  |  Branch (774:5): [True: 1, False: 1.22k]
  ------------------
  775|       |      // op: pred
  776|      1|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  777|      1|      Value |= (op & UINT64_C(15)) << 24;
  778|       |      // op: succ
  779|      1|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  780|      1|      Value |= (op & UINT64_C(15)) << 20;
  781|      1|      break;
  782|    660|    }
  783|      0|    case RISCV::C_FLD:
  ------------------
  |  Branch (783:5): [True: 0, False: 1.22k]
  ------------------
  784|      0|    case RISCV::C_LD: {
  ------------------
  |  Branch (784:5): [True: 0, False: 1.22k]
  ------------------
  785|       |      // op: rd
  786|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  787|      0|      Value |= (op & UINT64_C(7)) << 2;
  788|       |      // op: rs1
  789|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  790|      0|      Value |= (op & UINT64_C(7)) << 7;
  791|       |      // op: imm
  792|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  793|      0|      Value |= (op & UINT64_C(56)) << 7;
  794|      0|      Value |= (op & UINT64_C(192)) >> 1;
  795|      0|      break;
  796|      0|    }
  797|      0|    case RISCV::C_FLW:
  ------------------
  |  Branch (797:5): [True: 0, False: 1.22k]
  ------------------
  798|      0|    case RISCV::C_LW: {
  ------------------
  |  Branch (798:5): [True: 0, False: 1.22k]
  ------------------
  799|       |      // op: rd
  800|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  801|      0|      Value |= (op & UINT64_C(7)) << 2;
  802|       |      // op: rs1
  803|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  804|      0|      Value |= (op & UINT64_C(7)) << 7;
  805|       |      // op: imm
  806|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  807|      0|      Value |= (op & UINT64_C(56)) << 7;
  808|      0|      Value |= (op & UINT64_C(4)) << 4;
  809|      0|      Value |= (op & UINT64_C(64)) >> 1;
  810|      0|      break;
  811|      0|    }
  812|      0|    case RISCV::C_JALR:
  ------------------
  |  Branch (812:5): [True: 0, False: 1.22k]
  ------------------
  813|      6|    case RISCV::C_JR: {
  ------------------
  |  Branch (813:5): [True: 6, False: 1.22k]
  ------------------
  814|       |      // op: rs1
  815|      6|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  816|      6|      Value |= (op & UINT64_C(31)) << 7;
  817|      6|      break;
  818|      0|    }
  819|      5|    case RISCV::C_MV: {
  ------------------
  |  Branch (819:5): [True: 5, False: 1.22k]
  ------------------
  820|       |      // op: rs1
  821|      5|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  822|      5|      Value |= (op & UINT64_C(31)) << 7;
  823|       |      // op: rs2
  824|      5|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  825|      5|      Value |= (op & UINT64_C(31)) << 2;
  826|      5|      break;
  827|      0|    }
  828|      0|    case RISCV::FCVT_D_L:
  ------------------
  |  Branch (828:5): [True: 0, False: 1.22k]
  ------------------
  829|      0|    case RISCV::FCVT_D_LU:
  ------------------
  |  Branch (829:5): [True: 0, False: 1.22k]
  ------------------
  830|      0|    case RISCV::FCVT_LU_D:
  ------------------
  |  Branch (830:5): [True: 0, False: 1.22k]
  ------------------
  831|      0|    case RISCV::FCVT_LU_S:
  ------------------
  |  Branch (831:5): [True: 0, False: 1.22k]
  ------------------
  832|      0|    case RISCV::FCVT_L_D:
  ------------------
  |  Branch (832:5): [True: 0, False: 1.22k]
  ------------------
  833|      0|    case RISCV::FCVT_L_S:
  ------------------
  |  Branch (833:5): [True: 0, False: 1.22k]
  ------------------
  834|      0|    case RISCV::FCVT_S_D:
  ------------------
  |  Branch (834:5): [True: 0, False: 1.22k]
  ------------------
  835|      0|    case RISCV::FCVT_S_L:
  ------------------
  |  Branch (835:5): [True: 0, False: 1.22k]
  ------------------
  836|      0|    case RISCV::FCVT_S_LU:
  ------------------
  |  Branch (836:5): [True: 0, False: 1.22k]
  ------------------
  837|      0|    case RISCV::FCVT_S_W:
  ------------------
  |  Branch (837:5): [True: 0, False: 1.22k]
  ------------------
  838|      0|    case RISCV::FCVT_S_WU:
  ------------------
  |  Branch (838:5): [True: 0, False: 1.22k]
  ------------------
  839|      0|    case RISCV::FCVT_WU_D:
  ------------------
  |  Branch (839:5): [True: 0, False: 1.22k]
  ------------------
  840|      0|    case RISCV::FCVT_WU_S:
  ------------------
  |  Branch (840:5): [True: 0, False: 1.22k]
  ------------------
  841|      0|    case RISCV::FCVT_W_D:
  ------------------
  |  Branch (841:5): [True: 0, False: 1.22k]
  ------------------
  842|      0|    case RISCV::FCVT_W_S:
  ------------------
  |  Branch (842:5): [True: 0, False: 1.22k]
  ------------------
  843|      0|    case RISCV::FSQRT_D:
  ------------------
  |  Branch (843:5): [True: 0, False: 1.22k]
  ------------------
  844|      0|    case RISCV::FSQRT_S: {
  ------------------
  |  Branch (844:5): [True: 0, False: 1.22k]
  ------------------
  845|       |      // op: rs1
  846|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  847|      0|      Value |= (op & UINT64_C(31)) << 15;
  848|       |      // op: funct3
  849|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
  850|      0|      Value |= (op & UINT64_C(7)) << 12;
  851|       |      // op: rd
  852|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  853|      0|      Value |= (op & UINT64_C(31)) << 7;
  854|      0|      break;
  855|      0|    }
  856|      0|    case RISCV::FCLASS_D:
  ------------------
  |  Branch (856:5): [True: 0, False: 1.22k]
  ------------------
  857|      0|    case RISCV::FCLASS_S:
  ------------------
  |  Branch (857:5): [True: 0, False: 1.22k]
  ------------------
  858|      0|    case RISCV::FCVT_D_S:
  ------------------
  |  Branch (858:5): [True: 0, False: 1.22k]
  ------------------
  859|      0|    case RISCV::FCVT_D_W:
  ------------------
  |  Branch (859:5): [True: 0, False: 1.22k]
  ------------------
  860|      0|    case RISCV::FCVT_D_WU:
  ------------------
  |  Branch (860:5): [True: 0, False: 1.22k]
  ------------------
  861|      0|    case RISCV::FMV_D_X:
  ------------------
  |  Branch (861:5): [True: 0, False: 1.22k]
  ------------------
  862|      0|    case RISCV::FMV_W_X:
  ------------------
  |  Branch (862:5): [True: 0, False: 1.22k]
  ------------------
  863|      0|    case RISCV::FMV_X_D:
  ------------------
  |  Branch (863:5): [True: 0, False: 1.22k]
  ------------------
  864|      0|    case RISCV::FMV_X_W:
  ------------------
  |  Branch (864:5): [True: 0, False: 1.22k]
  ------------------
  865|      0|    case RISCV::LR_D:
  ------------------
  |  Branch (865:5): [True: 0, False: 1.22k]
  ------------------
  866|      0|    case RISCV::LR_D_AQ:
  ------------------
  |  Branch (866:5): [True: 0, False: 1.22k]
  ------------------
  867|      0|    case RISCV::LR_D_AQ_RL:
  ------------------
  |  Branch (867:5): [True: 0, False: 1.22k]
  ------------------
  868|      0|    case RISCV::LR_D_RL:
  ------------------
  |  Branch (868:5): [True: 0, False: 1.22k]
  ------------------
  869|      0|    case RISCV::LR_W:
  ------------------
  |  Branch (869:5): [True: 0, False: 1.22k]
  ------------------
  870|      0|    case RISCV::LR_W_AQ:
  ------------------
  |  Branch (870:5): [True: 0, False: 1.22k]
  ------------------
  871|      0|    case RISCV::LR_W_AQ_RL:
  ------------------
  |  Branch (871:5): [True: 0, False: 1.22k]
  ------------------
  872|      0|    case RISCV::LR_W_RL: {
  ------------------
  |  Branch (872:5): [True: 0, False: 1.22k]
  ------------------
  873|       |      // op: rs1
  874|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  875|      0|      Value |= (op & UINT64_C(31)) << 15;
  876|       |      // op: rd
  877|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  878|      0|      Value |= (op & UINT64_C(31)) << 7;
  879|      0|      break;
  880|      0|    }
  881|      2|    case RISCV::C_ADD: {
  ------------------
  |  Branch (881:5): [True: 2, False: 1.22k]
  ------------------
  882|       |      // op: rs1
  883|      2|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  884|      2|      Value |= (op & UINT64_C(31)) << 7;
  885|       |      // op: rs2
  886|      2|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
  887|      2|      Value |= (op & UINT64_C(31)) << 2;
  888|      2|      break;
  889|      0|    }
  890|      0|    case RISCV::C_FSD:
  ------------------
  |  Branch (890:5): [True: 0, False: 1.22k]
  ------------------
  891|      0|    case RISCV::C_SD: {
  ------------------
  |  Branch (891:5): [True: 0, False: 1.22k]
  ------------------
  892|       |      // op: rs2
  893|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  894|      0|      Value |= (op & UINT64_C(7)) << 2;
  895|       |      // op: rs1
  896|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  897|      0|      Value |= (op & UINT64_C(7)) << 7;
  898|       |      // op: imm
  899|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  900|      0|      Value |= (op & UINT64_C(56)) << 7;
  901|      0|      Value |= (op & UINT64_C(192)) >> 1;
  902|      0|      break;
  903|      0|    }
  904|      0|    case RISCV::C_FSW:
  ------------------
  |  Branch (904:5): [True: 0, False: 1.22k]
  ------------------
  905|      0|    case RISCV::C_SW: {
  ------------------
  |  Branch (905:5): [True: 0, False: 1.22k]
  ------------------
  906|       |      // op: rs2
  907|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  908|      0|      Value |= (op & UINT64_C(7)) << 2;
  909|       |      // op: rs1
  910|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  911|      0|      Value |= (op & UINT64_C(7)) << 7;
  912|       |      // op: imm
  913|      0|      op = getImmOpValue(MI, 2, Fixups, STI);
  914|      0|      Value |= (op & UINT64_C(56)) << 7;
  915|      0|      Value |= (op & UINT64_C(4)) << 4;
  916|      0|      Value |= (op & UINT64_C(64)) >> 1;
  917|      0|      break;
  918|      0|    }
  919|      0|    case RISCV::SFENCE_VMA: {
  ------------------
  |  Branch (919:5): [True: 0, False: 1.22k]
  ------------------
  920|       |      // op: rs2
  921|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  922|      0|      Value |= (op & UINT64_C(31)) << 20;
  923|       |      // op: rs1
  924|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  925|      0|      Value |= (op & UINT64_C(31)) << 15;
  926|      0|      break;
  927|      0|    }
  928|      0|    case RISCV::FADD_D:
  ------------------
  |  Branch (928:5): [True: 0, False: 1.22k]
  ------------------
  929|      0|    case RISCV::FADD_S:
  ------------------
  |  Branch (929:5): [True: 0, False: 1.22k]
  ------------------
  930|      0|    case RISCV::FDIV_D:
  ------------------
  |  Branch (930:5): [True: 0, False: 1.22k]
  ------------------
  931|      0|    case RISCV::FDIV_S:
  ------------------
  |  Branch (931:5): [True: 0, False: 1.22k]
  ------------------
  932|      0|    case RISCV::FMUL_D:
  ------------------
  |  Branch (932:5): [True: 0, False: 1.22k]
  ------------------
  933|      0|    case RISCV::FMUL_S:
  ------------------
  |  Branch (933:5): [True: 0, False: 1.22k]
  ------------------
  934|      0|    case RISCV::FSUB_D:
  ------------------
  |  Branch (934:5): [True: 0, False: 1.22k]
  ------------------
  935|      0|    case RISCV::FSUB_S: {
  ------------------
  |  Branch (935:5): [True: 0, False: 1.22k]
  ------------------
  936|       |      // op: rs2
  937|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
  938|      0|      Value |= (op & UINT64_C(31)) << 20;
  939|       |      // op: rs1
  940|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
  941|      0|      Value |= (op & UINT64_C(31)) << 15;
  942|       |      // op: funct3
  943|      0|      op = getMachineOpValue(MI, MI.getOperand(3), Fixups, STI);
  944|      0|      Value |= (op & UINT64_C(7)) << 12;
  945|       |      // op: rd
  946|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
  947|      0|      Value |= (op & UINT64_C(31)) << 7;
  948|      0|      break;
  949|      0|    }
  950|      1|    case RISCV::ADD:
  ------------------
  |  Branch (950:5): [True: 1, False: 1.22k]
  ------------------
  951|      1|    case RISCV::ADDW:
  ------------------
  |  Branch (951:5): [True: 0, False: 1.22k]
  ------------------
  952|      1|    case RISCV::AMOADD_D:
  ------------------
  |  Branch (952:5): [True: 0, False: 1.22k]
  ------------------
  953|      1|    case RISCV::AMOADD_D_AQ:
  ------------------
  |  Branch (953:5): [True: 0, False: 1.22k]
  ------------------
  954|      1|    case RISCV::AMOADD_D_AQ_RL:
  ------------------
  |  Branch (954:5): [True: 0, False: 1.22k]
  ------------------
  955|      1|    case RISCV::AMOADD_D_RL:
  ------------------
  |  Branch (955:5): [True: 0, False: 1.22k]
  ------------------
  956|      1|    case RISCV::AMOADD_W:
  ------------------
  |  Branch (956:5): [True: 0, False: 1.22k]
  ------------------
  957|      1|    case RISCV::AMOADD_W_AQ:
  ------------------
  |  Branch (957:5): [True: 0, False: 1.22k]
  ------------------
  958|      1|    case RISCV::AMOADD_W_AQ_RL:
  ------------------
  |  Branch (958:5): [True: 0, False: 1.22k]
  ------------------
  959|      1|    case RISCV::AMOADD_W_RL:
  ------------------
  |  Branch (959:5): [True: 0, False: 1.22k]
  ------------------
  960|      1|    case RISCV::AMOAND_D:
  ------------------
  |  Branch (960:5): [True: 0, False: 1.22k]
  ------------------
  961|      1|    case RISCV::AMOAND_D_AQ:
  ------------------
  |  Branch (961:5): [True: 0, False: 1.22k]
  ------------------
  962|      1|    case RISCV::AMOAND_D_AQ_RL:
  ------------------
  |  Branch (962:5): [True: 0, False: 1.22k]
  ------------------
  963|      1|    case RISCV::AMOAND_D_RL:
  ------------------
  |  Branch (963:5): [True: 0, False: 1.22k]
  ------------------
  964|      1|    case RISCV::AMOAND_W:
  ------------------
  |  Branch (964:5): [True: 0, False: 1.22k]
  ------------------
  965|      1|    case RISCV::AMOAND_W_AQ:
  ------------------
  |  Branch (965:5): [True: 0, False: 1.22k]
  ------------------
  966|      1|    case RISCV::AMOAND_W_AQ_RL:
  ------------------
  |  Branch (966:5): [True: 0, False: 1.22k]
  ------------------
  967|      1|    case RISCV::AMOAND_W_RL:
  ------------------
  |  Branch (967:5): [True: 0, False: 1.22k]
  ------------------
  968|      1|    case RISCV::AMOMAXU_D:
  ------------------
  |  Branch (968:5): [True: 0, False: 1.22k]
  ------------------
  969|      1|    case RISCV::AMOMAXU_D_AQ:
  ------------------
  |  Branch (969:5): [True: 0, False: 1.22k]
  ------------------
  970|      1|    case RISCV::AMOMAXU_D_AQ_RL:
  ------------------
  |  Branch (970:5): [True: 0, False: 1.22k]
  ------------------
  971|      1|    case RISCV::AMOMAXU_D_RL:
  ------------------
  |  Branch (971:5): [True: 0, False: 1.22k]
  ------------------
  972|      1|    case RISCV::AMOMAXU_W:
  ------------------
  |  Branch (972:5): [True: 0, False: 1.22k]
  ------------------
  973|      1|    case RISCV::AMOMAXU_W_AQ:
  ------------------
  |  Branch (973:5): [True: 0, False: 1.22k]
  ------------------
  974|      1|    case RISCV::AMOMAXU_W_AQ_RL:
  ------------------
  |  Branch (974:5): [True: 0, False: 1.22k]
  ------------------
  975|      1|    case RISCV::AMOMAXU_W_RL:
  ------------------
  |  Branch (975:5): [True: 0, False: 1.22k]
  ------------------
  976|      1|    case RISCV::AMOMAX_D:
  ------------------
  |  Branch (976:5): [True: 0, False: 1.22k]
  ------------------
  977|      1|    case RISCV::AMOMAX_D_AQ:
  ------------------
  |  Branch (977:5): [True: 0, False: 1.22k]
  ------------------
  978|      1|    case RISCV::AMOMAX_D_AQ_RL:
  ------------------
  |  Branch (978:5): [True: 0, False: 1.22k]
  ------------------
  979|      1|    case RISCV::AMOMAX_D_RL:
  ------------------
  |  Branch (979:5): [True: 0, False: 1.22k]
  ------------------
  980|      1|    case RISCV::AMOMAX_W:
  ------------------
  |  Branch (980:5): [True: 0, False: 1.22k]
  ------------------
  981|      1|    case RISCV::AMOMAX_W_AQ:
  ------------------
  |  Branch (981:5): [True: 0, False: 1.22k]
  ------------------
  982|      1|    case RISCV::AMOMAX_W_AQ_RL:
  ------------------
  |  Branch (982:5): [True: 0, False: 1.22k]
  ------------------
  983|      1|    case RISCV::AMOMAX_W_RL:
  ------------------
  |  Branch (983:5): [True: 0, False: 1.22k]
  ------------------
  984|      1|    case RISCV::AMOMINU_D:
  ------------------
  |  Branch (984:5): [True: 0, False: 1.22k]
  ------------------
  985|      1|    case RISCV::AMOMINU_D_AQ:
  ------------------
  |  Branch (985:5): [True: 0, False: 1.22k]
  ------------------
  986|      1|    case RISCV::AMOMINU_D_AQ_RL:
  ------------------
  |  Branch (986:5): [True: 0, False: 1.22k]
  ------------------
  987|      1|    case RISCV::AMOMINU_D_RL:
  ------------------
  |  Branch (987:5): [True: 0, False: 1.22k]
  ------------------
  988|      1|    case RISCV::AMOMINU_W:
  ------------------
  |  Branch (988:5): [True: 0, False: 1.22k]
  ------------------
  989|      1|    case RISCV::AMOMINU_W_AQ:
  ------------------
  |  Branch (989:5): [True: 0, False: 1.22k]
  ------------------
  990|      1|    case RISCV::AMOMINU_W_AQ_RL:
  ------------------
  |  Branch (990:5): [True: 0, False: 1.22k]
  ------------------
  991|      1|    case RISCV::AMOMINU_W_RL:
  ------------------
  |  Branch (991:5): [True: 0, False: 1.22k]
  ------------------
  992|      1|    case RISCV::AMOMIN_D:
  ------------------
  |  Branch (992:5): [True: 0, False: 1.22k]
  ------------------
  993|      1|    case RISCV::AMOMIN_D_AQ:
  ------------------
  |  Branch (993:5): [True: 0, False: 1.22k]
  ------------------
  994|      1|    case RISCV::AMOMIN_D_AQ_RL:
  ------------------
  |  Branch (994:5): [True: 0, False: 1.22k]
  ------------------
  995|      1|    case RISCV::AMOMIN_D_RL:
  ------------------
  |  Branch (995:5): [True: 0, False: 1.22k]
  ------------------
  996|      1|    case RISCV::AMOMIN_W:
  ------------------
  |  Branch (996:5): [True: 0, False: 1.22k]
  ------------------
  997|      1|    case RISCV::AMOMIN_W_AQ:
  ------------------
  |  Branch (997:5): [True: 0, False: 1.22k]
  ------------------
  998|      1|    case RISCV::AMOMIN_W_AQ_RL:
  ------------------
  |  Branch (998:5): [True: 0, False: 1.22k]
  ------------------
  999|      1|    case RISCV::AMOMIN_W_RL:
  ------------------
  |  Branch (999:5): [True: 0, False: 1.22k]
  ------------------
 1000|      1|    case RISCV::AMOOR_D:
  ------------------
  |  Branch (1000:5): [True: 0, False: 1.22k]
  ------------------
 1001|      1|    case RISCV::AMOOR_D_AQ:
  ------------------
  |  Branch (1001:5): [True: 0, False: 1.22k]
  ------------------
 1002|      1|    case RISCV::AMOOR_D_AQ_RL:
  ------------------
  |  Branch (1002:5): [True: 0, False: 1.22k]
  ------------------
 1003|      1|    case RISCV::AMOOR_D_RL:
  ------------------
  |  Branch (1003:5): [True: 0, False: 1.22k]
  ------------------
 1004|      1|    case RISCV::AMOOR_W:
  ------------------
  |  Branch (1004:5): [True: 0, False: 1.22k]
  ------------------
 1005|      1|    case RISCV::AMOOR_W_AQ:
  ------------------
  |  Branch (1005:5): [True: 0, False: 1.22k]
  ------------------
 1006|      1|    case RISCV::AMOOR_W_AQ_RL:
  ------------------
  |  Branch (1006:5): [True: 0, False: 1.22k]
  ------------------
 1007|      1|    case RISCV::AMOOR_W_RL:
  ------------------
  |  Branch (1007:5): [True: 0, False: 1.22k]
  ------------------
 1008|      1|    case RISCV::AMOSWAP_D:
  ------------------
  |  Branch (1008:5): [True: 0, False: 1.22k]
  ------------------
 1009|      1|    case RISCV::AMOSWAP_D_AQ:
  ------------------
  |  Branch (1009:5): [True: 0, False: 1.22k]
  ------------------
 1010|      1|    case RISCV::AMOSWAP_D_AQ_RL:
  ------------------
  |  Branch (1010:5): [True: 0, False: 1.22k]
  ------------------
 1011|      1|    case RISCV::AMOSWAP_D_RL:
  ------------------
  |  Branch (1011:5): [True: 0, False: 1.22k]
  ------------------
 1012|      1|    case RISCV::AMOSWAP_W:
  ------------------
  |  Branch (1012:5): [True: 0, False: 1.22k]
  ------------------
 1013|      1|    case RISCV::AMOSWAP_W_AQ:
  ------------------
  |  Branch (1013:5): [True: 0, False: 1.22k]
  ------------------
 1014|      1|    case RISCV::AMOSWAP_W_AQ_RL:
  ------------------
  |  Branch (1014:5): [True: 0, False: 1.22k]
  ------------------
 1015|      1|    case RISCV::AMOSWAP_W_RL:
  ------------------
  |  Branch (1015:5): [True: 0, False: 1.22k]
  ------------------
 1016|      1|    case RISCV::AMOXOR_D:
  ------------------
  |  Branch (1016:5): [True: 0, False: 1.22k]
  ------------------
 1017|      1|    case RISCV::AMOXOR_D_AQ:
  ------------------
  |  Branch (1017:5): [True: 0, False: 1.22k]
  ------------------
 1018|      1|    case RISCV::AMOXOR_D_AQ_RL:
  ------------------
  |  Branch (1018:5): [True: 0, False: 1.22k]
  ------------------
 1019|      1|    case RISCV::AMOXOR_D_RL:
  ------------------
  |  Branch (1019:5): [True: 0, False: 1.22k]
  ------------------
 1020|      1|    case RISCV::AMOXOR_W:
  ------------------
  |  Branch (1020:5): [True: 0, False: 1.22k]
  ------------------
 1021|      1|    case RISCV::AMOXOR_W_AQ:
  ------------------
  |  Branch (1021:5): [True: 0, False: 1.22k]
  ------------------
 1022|      1|    case RISCV::AMOXOR_W_AQ_RL:
  ------------------
  |  Branch (1022:5): [True: 0, False: 1.22k]
  ------------------
 1023|      1|    case RISCV::AMOXOR_W_RL:
  ------------------
  |  Branch (1023:5): [True: 0, False: 1.22k]
  ------------------
 1024|      7|    case RISCV::AND:
  ------------------
  |  Branch (1024:5): [True: 6, False: 1.22k]
  ------------------
 1025|      7|    case RISCV::DIV:
  ------------------
  |  Branch (1025:5): [True: 0, False: 1.22k]
  ------------------
 1026|      7|    case RISCV::DIVU:
  ------------------
  |  Branch (1026:5): [True: 0, False: 1.22k]
  ------------------
 1027|      7|    case RISCV::DIVUW:
  ------------------
  |  Branch (1027:5): [True: 0, False: 1.22k]
  ------------------
 1028|      7|    case RISCV::DIVW:
  ------------------
  |  Branch (1028:5): [True: 0, False: 1.22k]
  ------------------
 1029|      7|    case RISCV::FEQ_D:
  ------------------
  |  Branch (1029:5): [True: 0, False: 1.22k]
  ------------------
 1030|      7|    case RISCV::FEQ_S:
  ------------------
  |  Branch (1030:5): [True: 0, False: 1.22k]
  ------------------
 1031|      7|    case RISCV::FLE_D:
  ------------------
  |  Branch (1031:5): [True: 0, False: 1.22k]
  ------------------
 1032|      7|    case RISCV::FLE_S:
  ------------------
  |  Branch (1032:5): [True: 0, False: 1.22k]
  ------------------
 1033|      7|    case RISCV::FLT_D:
  ------------------
  |  Branch (1033:5): [True: 0, False: 1.22k]
  ------------------
 1034|      7|    case RISCV::FLT_S:
  ------------------
  |  Branch (1034:5): [True: 0, False: 1.22k]
  ------------------
 1035|      7|    case RISCV::FMAX_D:
  ------------------
  |  Branch (1035:5): [True: 0, False: 1.22k]
  ------------------
 1036|      7|    case RISCV::FMAX_S:
  ------------------
  |  Branch (1036:5): [True: 0, False: 1.22k]
  ------------------
 1037|      7|    case RISCV::FMIN_D:
  ------------------
  |  Branch (1037:5): [True: 0, False: 1.22k]
  ------------------
 1038|      7|    case RISCV::FMIN_S:
  ------------------
  |  Branch (1038:5): [True: 0, False: 1.22k]
  ------------------
 1039|      7|    case RISCV::FSGNJN_D:
  ------------------
  |  Branch (1039:5): [True: 0, False: 1.22k]
  ------------------
 1040|      7|    case RISCV::FSGNJN_S:
  ------------------
  |  Branch (1040:5): [True: 0, False: 1.22k]
  ------------------
 1041|      7|    case RISCV::FSGNJX_D:
  ------------------
  |  Branch (1041:5): [True: 0, False: 1.22k]
  ------------------
 1042|      7|    case RISCV::FSGNJX_S:
  ------------------
  |  Branch (1042:5): [True: 0, False: 1.22k]
  ------------------
 1043|      7|    case RISCV::FSGNJ_D:
  ------------------
  |  Branch (1043:5): [True: 0, False: 1.22k]
  ------------------
 1044|      7|    case RISCV::FSGNJ_S:
  ------------------
  |  Branch (1044:5): [True: 0, False: 1.22k]
  ------------------
 1045|      7|    case RISCV::MUL:
  ------------------
  |  Branch (1045:5): [True: 0, False: 1.22k]
  ------------------
 1046|      7|    case RISCV::MULH:
  ------------------
  |  Branch (1046:5): [True: 0, False: 1.22k]
  ------------------
 1047|      7|    case RISCV::MULHSU:
  ------------------
  |  Branch (1047:5): [True: 0, False: 1.22k]
  ------------------
 1048|      7|    case RISCV::MULHU:
  ------------------
  |  Branch (1048:5): [True: 0, False: 1.22k]
  ------------------
 1049|      7|    case RISCV::MULW:
  ------------------
  |  Branch (1049:5): [True: 0, False: 1.22k]
  ------------------
 1050|      7|    case RISCV::OR:
  ------------------
  |  Branch (1050:5): [True: 0, False: 1.22k]
  ------------------
 1051|      7|    case RISCV::REM:
  ------------------
  |  Branch (1051:5): [True: 0, False: 1.22k]
  ------------------
 1052|      7|    case RISCV::REMU:
  ------------------
  |  Branch (1052:5): [True: 0, False: 1.22k]
  ------------------
 1053|      7|    case RISCV::REMUW:
  ------------------
  |  Branch (1053:5): [True: 0, False: 1.22k]
  ------------------
 1054|      7|    case RISCV::REMW:
  ------------------
  |  Branch (1054:5): [True: 0, False: 1.22k]
  ------------------
 1055|      7|    case RISCV::SC_D:
  ------------------
  |  Branch (1055:5): [True: 0, False: 1.22k]
  ------------------
 1056|      7|    case RISCV::SC_D_AQ:
  ------------------
  |  Branch (1056:5): [True: 0, False: 1.22k]
  ------------------
 1057|      7|    case RISCV::SC_D_AQ_RL:
  ------------------
  |  Branch (1057:5): [True: 0, False: 1.22k]
  ------------------
 1058|      7|    case RISCV::SC_D_RL:
  ------------------
  |  Branch (1058:5): [True: 0, False: 1.22k]
  ------------------
 1059|      7|    case RISCV::SC_W:
  ------------------
  |  Branch (1059:5): [True: 0, False: 1.22k]
  ------------------
 1060|      7|    case RISCV::SC_W_AQ:
  ------------------
  |  Branch (1060:5): [True: 0, False: 1.22k]
  ------------------
 1061|      7|    case RISCV::SC_W_AQ_RL:
  ------------------
  |  Branch (1061:5): [True: 0, False: 1.22k]
  ------------------
 1062|      7|    case RISCV::SC_W_RL:
  ------------------
  |  Branch (1062:5): [True: 0, False: 1.22k]
  ------------------
 1063|      7|    case RISCV::SLL:
  ------------------
  |  Branch (1063:5): [True: 0, False: 1.22k]
  ------------------
 1064|      7|    case RISCV::SLLW:
  ------------------
  |  Branch (1064:5): [True: 0, False: 1.22k]
  ------------------
 1065|      7|    case RISCV::SLT:
  ------------------
  |  Branch (1065:5): [True: 0, False: 1.22k]
  ------------------
 1066|      7|    case RISCV::SLTU:
  ------------------
  |  Branch (1066:5): [True: 0, False: 1.22k]
  ------------------
 1067|      7|    case RISCV::SRA:
  ------------------
  |  Branch (1067:5): [True: 0, False: 1.22k]
  ------------------
 1068|      7|    case RISCV::SRAW:
  ------------------
  |  Branch (1068:5): [True: 0, False: 1.22k]
  ------------------
 1069|      7|    case RISCV::SRL:
  ------------------
  |  Branch (1069:5): [True: 0, False: 1.22k]
  ------------------
 1070|      7|    case RISCV::SRLW:
  ------------------
  |  Branch (1070:5): [True: 0, False: 1.22k]
  ------------------
 1071|      7|    case RISCV::SUB:
  ------------------
  |  Branch (1071:5): [True: 0, False: 1.22k]
  ------------------
 1072|      7|    case RISCV::SUBW:
  ------------------
  |  Branch (1072:5): [True: 0, False: 1.22k]
  ------------------
 1073|      7|    case RISCV::XOR: {
  ------------------
  |  Branch (1073:5): [True: 0, False: 1.22k]
  ------------------
 1074|       |      // op: rs2
 1075|      7|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
 1076|      7|      Value |= (op & UINT64_C(31)) << 20;
 1077|       |      // op: rs1
 1078|      7|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
 1079|      7|      Value |= (op & UINT64_C(31)) << 15;
 1080|       |      // op: rd
 1081|      7|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
 1082|      7|      Value |= (op & UINT64_C(31)) << 7;
 1083|      7|      break;
 1084|      7|    }
 1085|      0|    case RISCV::C_ADDW:
  ------------------
  |  Branch (1085:5): [True: 0, False: 1.22k]
  ------------------
 1086|      0|    case RISCV::C_AND:
  ------------------
  |  Branch (1086:5): [True: 0, False: 1.22k]
  ------------------
 1087|      0|    case RISCV::C_OR:
  ------------------
  |  Branch (1087:5): [True: 0, False: 1.22k]
  ------------------
 1088|      0|    case RISCV::C_SUB:
  ------------------
  |  Branch (1088:5): [True: 0, False: 1.22k]
  ------------------
 1089|      0|    case RISCV::C_SUBW:
  ------------------
  |  Branch (1089:5): [True: 0, False: 1.22k]
  ------------------
 1090|      0|    case RISCV::C_XOR: {
  ------------------
  |  Branch (1090:5): [True: 0, False: 1.22k]
  ------------------
 1091|       |      // op: rs2
 1092|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
 1093|      0|      Value |= (op & UINT64_C(7)) << 2;
 1094|       |      // op: rd
 1095|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
 1096|      0|      Value |= (op & UINT64_C(7)) << 7;
 1097|      0|      break;
 1098|      0|    }
 1099|      0|    case RISCV::FMADD_D:
  ------------------
  |  Branch (1099:5): [True: 0, False: 1.22k]
  ------------------
 1100|      0|    case RISCV::FMADD_S:
  ------------------
  |  Branch (1100:5): [True: 0, False: 1.22k]
  ------------------
 1101|      0|    case RISCV::FMSUB_D:
  ------------------
  |  Branch (1101:5): [True: 0, False: 1.22k]
  ------------------
 1102|      0|    case RISCV::FMSUB_S:
  ------------------
  |  Branch (1102:5): [True: 0, False: 1.22k]
  ------------------
 1103|      0|    case RISCV::FNMADD_D:
  ------------------
  |  Branch (1103:5): [True: 0, False: 1.22k]
  ------------------
 1104|      0|    case RISCV::FNMADD_S:
  ------------------
  |  Branch (1104:5): [True: 0, False: 1.22k]
  ------------------
 1105|      0|    case RISCV::FNMSUB_D:
  ------------------
  |  Branch (1105:5): [True: 0, False: 1.22k]
  ------------------
 1106|      0|    case RISCV::FNMSUB_S: {
  ------------------
  |  Branch (1106:5): [True: 0, False: 1.22k]
  ------------------
 1107|       |      // op: rs3
 1108|      0|      op = getMachineOpValue(MI, MI.getOperand(3), Fixups, STI);
 1109|      0|      Value |= (op & UINT64_C(31)) << 27;
 1110|       |      // op: rs2
 1111|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
 1112|      0|      Value |= (op & UINT64_C(31)) << 20;
 1113|       |      // op: rs1
 1114|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
 1115|      0|      Value |= (op & UINT64_C(31)) << 15;
 1116|       |      // op: funct3
 1117|      0|      op = getMachineOpValue(MI, MI.getOperand(4), Fixups, STI);
 1118|      0|      Value |= (op & UINT64_C(7)) << 12;
 1119|       |      // op: rd
 1120|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
 1121|      0|      Value |= (op & UINT64_C(31)) << 7;
 1122|      0|      break;
 1123|      0|    }
 1124|      0|    case RISCV::SLLIW:
  ------------------
  |  Branch (1124:5): [True: 0, False: 1.22k]
  ------------------
 1125|      0|    case RISCV::SRAIW:
  ------------------
  |  Branch (1125:5): [True: 0, False: 1.22k]
  ------------------
 1126|      0|    case RISCV::SRLIW: {
  ------------------
  |  Branch (1126:5): [True: 0, False: 1.22k]
  ------------------
 1127|       |      // op: shamt
 1128|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
 1129|      0|      Value |= (op & UINT64_C(31)) << 20;
 1130|       |      // op: rs1
 1131|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
 1132|      0|      Value |= (op & UINT64_C(31)) << 15;
 1133|       |      // op: rd
 1134|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
 1135|      0|      Value |= (op & UINT64_C(31)) << 7;
 1136|      0|      break;
 1137|      0|    }
 1138|      0|    case RISCV::SLLI:
  ------------------
  |  Branch (1138:5): [True: 0, False: 1.22k]
  ------------------
 1139|      0|    case RISCV::SRAI:
  ------------------
  |  Branch (1139:5): [True: 0, False: 1.22k]
  ------------------
 1140|      0|    case RISCV::SRLI: {
  ------------------
  |  Branch (1140:5): [True: 0, False: 1.22k]
  ------------------
 1141|       |      // op: shamt
 1142|      0|      op = getMachineOpValue(MI, MI.getOperand(2), Fixups, STI);
 1143|      0|      Value |= (op & UINT64_C(63)) << 20;
 1144|       |      // op: rs1
 1145|      0|      op = getMachineOpValue(MI, MI.getOperand(1), Fixups, STI);
 1146|      0|      Value |= (op & UINT64_C(31)) << 15;
 1147|       |      // op: rd
 1148|      0|      op = getMachineOpValue(MI, MI.getOperand(0), Fixups, STI);
 1149|      0|      Value |= (op & UINT64_C(31)) << 7;
 1150|      0|      break;
 1151|      0|    }
 1152|      0|  default:
  ------------------
  |  Branch (1152:3): [True: 0, False: 1.22k]
  ------------------
 1153|      0|    std::string msg;
 1154|      0|    raw_string_ostream Msg(msg);
 1155|      0|    Msg << "Not supported instr: " << MI;
 1156|      0|    report_fatal_error(Msg.str());
 1157|  1.22k|  }
 1158|  1.22k|  return Value;
 1159|  1.22k|}

RISCVMCTargetDesc.cpp:_ZN7llvm_ksL23InitRISCVMCRegisterInfoEPNS_14MCRegisterInfoEjjjj:
 1072|  13.6k|static inline void InitRISCVMCRegisterInfo(MCRegisterInfo *RI, unsigned RA, unsigned DwarfFlavour = 0, unsigned EHFlavour = 0, unsigned PC = 0) {
 1073|  13.6k|  RI->InitMCRegisterInfo(RISCVRegDesc, 97, RA, PC, RISCVMCRegisterClasses, 11, RISCVRegUnitRoots, 64, RISCVRegDiffLists, RISCVLaneMaskLists, RISCVRegStrings, RISCVRegClassStrings, RISCVSubRegIdxLists, 2,
 1074|  13.6k|RISCVSubRegIdxRanges, RISCVRegEncodingTable);
 1075|       |
 1076|  13.6k|  switch (DwarfFlavour) {
 1077|      0|  default:
  ------------------
  |  Branch (1077:3): [True: 0, False: 13.6k]
  ------------------
 1078|      0|    llvm_unreachable("Unknown DWARF flavour");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 1079|  13.6k|  case 0:
  ------------------
  |  Branch (1079:3): [True: 13.6k, False: 0]
  ------------------
 1080|  13.6k|    RI->mapDwarfRegsToLLVMRegs(RISCVDwarfFlavour0Dwarf2L, RISCVDwarfFlavour0Dwarf2LSize, false);
 1081|  13.6k|    break;
 1082|  13.6k|  }
 1083|  13.6k|  switch (EHFlavour) {
 1084|      0|  default:
  ------------------
  |  Branch (1084:3): [True: 0, False: 13.6k]
  ------------------
 1085|      0|    llvm_unreachable("Unknown DWARF flavour");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 1086|  13.6k|  case 0:
  ------------------
  |  Branch (1086:3): [True: 13.6k, False: 0]
  ------------------
 1087|  13.6k|    RI->mapDwarfRegsToLLVMRegs(RISCVEHFlavour0Dwarf2L, RISCVEHFlavour0Dwarf2LSize, true);
 1088|  13.6k|    break;
 1089|  13.6k|  }
 1090|  13.6k|  switch (DwarfFlavour) {
 1091|      0|  default:
  ------------------
  |  Branch (1091:3): [True: 0, False: 13.6k]
  ------------------
 1092|      0|    llvm_unreachable("Unknown DWARF flavour");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 1093|  13.6k|  case 0:
  ------------------
  |  Branch (1093:3): [True: 13.6k, False: 0]
  ------------------
 1094|  13.6k|    RI->mapLLVMRegsToDwarfRegs(RISCVDwarfFlavour0L2Dwarf, RISCVDwarfFlavour0L2DwarfSize, false);
 1095|  13.6k|    break;
 1096|  13.6k|  }
 1097|  13.6k|  switch (EHFlavour) {
 1098|      0|  default:
  ------------------
  |  Branch (1098:3): [True: 0, False: 13.6k]
  ------------------
 1099|      0|    llvm_unreachable("Unknown DWARF flavour");
  ------------------
  |  |   99|      0|  ::llvm_ks::llvm_unreachable_internal(msg, __FILE__, __LINE__)
  ------------------
 1100|  13.6k|  case 0:
  ------------------
  |  Branch (1100:3): [True: 13.6k, False: 0]
  ------------------
 1101|  13.6k|    RI->mapLLVMRegsToDwarfRegs(RISCVEHFlavour0L2Dwarf, RISCVEHFlavour0L2DwarfSize, true);
 1102|  13.6k|    break;
 1103|  13.6k|  }
 1104|  13.6k|}

RISCVMCTargetDesc.cpp:_ZN7llvm_ksL30createRISCVMCSubtargetInfoImplERKNS_6TripleENS_9StringRefES3_:
  112|  13.6k|static inline MCSubtargetInfo *createRISCVMCSubtargetInfoImpl(const Triple &TT, StringRef CPU, StringRef FS) {
  113|  13.6k|  return new MCSubtargetInfo(TT, CPU, FS, RISCVFeatureKV, RISCVSubTypeKV,/*  
  114|       |                      RISCVWriteProcResTable, RISCVWriteLatencyTable, RISCVReadAdvanceTable, 
  115|  13.6k|                      nullptr, nullptr, nullptr */RISCVProcSchedKV);
  116|  13.6k|}

_ZN7llvm_ks11RISCVSysReg22lookupSysRegByEncodingEt:
  231|     12|const SysReg *lookupSysRegByEncoding(uint16_t Encoding) {
  232|     12|  struct KeyType {
  233|     12|    uint16_t Encoding;
  234|     12|  };
  235|     12|  KeyType Key = { Encoding };
  236|     12|  auto Table = makeArrayRef(SysRegsList);
  237|     12|  auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  238|     12|    [](const SysReg &LHS, const KeyType &RHS) {
  239|     12|      if (LHS.Encoding < RHS.Encoding)
  240|     12|        return true;
  241|     12|      if (LHS.Encoding > RHS.Encoding)
  242|     12|        return false;
  243|     12|      return false;
  244|     12|    });
  245|       |
  246|     12|  if (Idx == Table.end() ||
  ------------------
  |  Branch (246:7): [True: 1, False: 11]
  ------------------
  247|     11|      Key.Encoding != Idx->Encoding)
  ------------------
  |  Branch (247:7): [True: 4, False: 7]
  ------------------
  248|      5|    return nullptr;
  249|      7|  return &*Idx;
  250|     12|}
_ZN7llvm_ks11RISCVSysReg18lookupSysRegByNameENS_9StringRefE:
  252|     59|const SysReg *lookupSysRegByName(StringRef Name) {
  253|     59|  struct IndexType {
  254|     59|    const char * Name;
  255|     59|    unsigned _index;
  256|     59|  };
  257|     59|  static const struct IndexType Index[] = {
  258|     59|    { "CYCLE", 153 },
  259|     59|    { "CYCLEH", 185 },
  260|     59|    { "DCSR", 88 },
  261|     59|    { "DPC", 89 },
  262|     59|    { "DSCRATCH", 90 },
  263|     59|    { "FCSR", 3 },
  264|     59|    { "FFLAGS", 1 },
  265|     59|    { "FRM", 2 },
  266|     59|    { "HPMCOUNTER10", 163 },
  267|     59|    { "HPMCOUNTER10H", 195 },
  268|     59|    { "HPMCOUNTER11", 164 },
  269|     59|    { "HPMCOUNTER11H", 196 },
  270|     59|    { "HPMCOUNTER12", 165 },
  271|     59|    { "HPMCOUNTER12H", 197 },
  272|     59|    { "HPMCOUNTER13", 166 },
  273|     59|    { "HPMCOUNTER13H", 198 },
  274|     59|    { "HPMCOUNTER14", 167 },
  275|     59|    { "HPMCOUNTER14H", 199 },
  276|     59|    { "HPMCOUNTER15", 168 },
  277|     59|    { "HPMCOUNTER15H", 200 },
  278|     59|    { "HPMCOUNTER16", 169 },
  279|     59|    { "HPMCOUNTER16H", 201 },
  280|     59|    { "HPMCOUNTER17", 170 },
  281|     59|    { "HPMCOUNTER17H", 202 },
  282|     59|    { "HPMCOUNTER18", 171 },
  283|     59|    { "HPMCOUNTER18H", 203 },
  284|     59|    { "HPMCOUNTER19", 172 },
  285|     59|    { "HPMCOUNTER19H", 204 },
  286|     59|    { "HPMCOUNTER20", 173 },
  287|     59|    { "HPMCOUNTER20H", 205 },
  288|     59|    { "HPMCOUNTER21", 174 },
  289|     59|    { "HPMCOUNTER21H", 206 },
  290|     59|    { "HPMCOUNTER22", 175 },
  291|     59|    { "HPMCOUNTER22H", 207 },
  292|     59|    { "HPMCOUNTER23", 176 },
  293|     59|    { "HPMCOUNTER23H", 208 },
  294|     59|    { "HPMCOUNTER24", 177 },
  295|     59|    { "HPMCOUNTER24H", 209 },
  296|     59|    { "HPMCOUNTER25", 178 },
  297|     59|    { "HPMCOUNTER25H", 210 },
  298|     59|    { "HPMCOUNTER26", 179 },
  299|     59|    { "HPMCOUNTER26H", 211 },
  300|     59|    { "HPMCOUNTER27", 180 },
  301|     59|    { "HPMCOUNTER27H", 212 },
  302|     59|    { "HPMCOUNTER28", 181 },
  303|     59|    { "HPMCOUNTER28H", 213 },
  304|     59|    { "HPMCOUNTER29", 182 },
  305|     59|    { "HPMCOUNTER29H", 214 },
  306|     59|    { "HPMCOUNTER3", 156 },
  307|     59|    { "HPMCOUNTER30", 183 },
  308|     59|    { "HPMCOUNTER30H", 215 },
  309|     59|    { "HPMCOUNTER31", 184 },
  310|     59|    { "HPMCOUNTER31H", 216 },
  311|     59|    { "HPMCOUNTER3H", 188 },
  312|     59|    { "HPMCOUNTER4", 157 },
  313|     59|    { "HPMCOUNTER4H", 189 },
  314|     59|    { "HPMCOUNTER5", 158 },
  315|     59|    { "HPMCOUNTER5H", 190 },
  316|     59|    { "HPMCOUNTER6", 159 },
  317|     59|    { "HPMCOUNTER6H", 191 },
  318|     59|    { "HPMCOUNTER7", 160 },
  319|     59|    { "HPMCOUNTER7H", 192 },
  320|     59|    { "HPMCOUNTER8", 161 },
  321|     59|    { "HPMCOUNTER8H", 193 },
  322|     59|    { "HPMCOUNTER9", 162 },
  323|     59|    { "HPMCOUNTER9H", 194 },
  324|     59|    { "INSTRET", 155 },
  325|     59|    { "INSTRETH", 187 },
  326|     59|    { "MARCHID", 218 },
  327|     59|    { "MCAUSE", 61 },
  328|     59|    { "MCOUNTEREN", 29 },
  329|     59|    { "MCYCLE", 91 },
  330|     59|    { "MCYCLEH", 122 },
  331|     59|    { "MEDELEG", 25 },
  332|     59|    { "MEPC", 60 },
  333|     59|    { "MHARTID", 220 },
  334|     59|    { "MHPMCOUNTER10", 100 },
  335|     59|    { "MHPMCOUNTER10H", 131 },
  336|     59|    { "MHPMCOUNTER11", 101 },
  337|     59|    { "MHPMCOUNTER11H", 132 },
  338|     59|    { "MHPMCOUNTER12", 102 },
  339|     59|    { "MHPMCOUNTER12H", 133 },
  340|     59|    { "MHPMCOUNTER13", 103 },
  341|     59|    { "MHPMCOUNTER13H", 134 },
  342|     59|    { "MHPMCOUNTER14", 104 },
  343|     59|    { "MHPMCOUNTER14H", 135 },
  344|     59|    { "MHPMCOUNTER15", 105 },
  345|     59|    { "MHPMCOUNTER15H", 136 },
  346|     59|    { "MHPMCOUNTER16", 106 },
  347|     59|    { "MHPMCOUNTER16H", 137 },
  348|     59|    { "MHPMCOUNTER17", 107 },
  349|     59|    { "MHPMCOUNTER17H", 138 },
  350|     59|    { "MHPMCOUNTER18", 108 },
  351|     59|    { "MHPMCOUNTER18H", 139 },
  352|     59|    { "MHPMCOUNTER19", 109 },
  353|     59|    { "MHPMCOUNTER19H", 140 },
  354|     59|    { "MHPMCOUNTER20", 110 },
  355|     59|    { "MHPMCOUNTER20H", 141 },
  356|     59|    { "MHPMCOUNTER21", 111 },
  357|     59|    { "MHPMCOUNTER21H", 142 },
  358|     59|    { "MHPMCOUNTER22", 112 },
  359|     59|    { "MHPMCOUNTER22H", 143 },
  360|     59|    { "MHPMCOUNTER23", 113 },
  361|     59|    { "MHPMCOUNTER23H", 144 },
  362|     59|    { "MHPMCOUNTER24", 114 },
  363|     59|    { "MHPMCOUNTER24H", 145 },
  364|     59|    { "MHPMCOUNTER25", 115 },
  365|     59|    { "MHPMCOUNTER25H", 146 },
  366|     59|    { "MHPMCOUNTER26", 116 },
  367|     59|    { "MHPMCOUNTER26H", 147 },
  368|     59|    { "MHPMCOUNTER27", 117 },
  369|     59|    { "MHPMCOUNTER27H", 148 },
  370|     59|    { "MHPMCOUNTER28", 118 },
  371|     59|    { "MHPMCOUNTER28H", 149 },
  372|     59|    { "MHPMCOUNTER29", 119 },
  373|     59|    { "MHPMCOUNTER29H", 150 },
  374|     59|    { "MHPMCOUNTER3", 93 },
  375|     59|    { "MHPMCOUNTER30", 120 },
  376|     59|    { "MHPMCOUNTER30H", 151 },
  377|     59|    { "MHPMCOUNTER31", 121 },
  378|     59|    { "MHPMCOUNTER31H", 152 },
  379|     59|    { "MHPMCOUNTER3H", 124 },
  380|     59|    { "MHPMCOUNTER4", 94 },
  381|     59|    { "MHPMCOUNTER4H", 125 },
  382|     59|    { "MHPMCOUNTER5", 95 },
  383|     59|    { "MHPMCOUNTER5H", 126 },
  384|     59|    { "MHPMCOUNTER6", 96 },
  385|     59|    { "MHPMCOUNTER6H", 127 },
  386|     59|    { "MHPMCOUNTER7", 97 },
  387|     59|    { "MHPMCOUNTER7H", 128 },
  388|     59|    { "MHPMCOUNTER8", 98 },
  389|     59|    { "MHPMCOUNTER8H", 129 },
  390|     59|    { "MHPMCOUNTER9", 99 },
  391|     59|    { "MHPMCOUNTER9H", 130 },
  392|     59|    { "MHPMEVENT10", 37 },
  393|     59|    { "MHPMEVENT11", 38 },
  394|     59|    { "MHPMEVENT12", 39 },
  395|     59|    { "MHPMEVENT13", 40 },
  396|     59|    { "MHPMEVENT14", 41 },
  397|     59|    { "MHPMEVENT15", 42 },
  398|     59|    { "MHPMEVENT16", 43 },
  399|     59|    { "MHPMEVENT17", 44 },
  400|     59|    { "MHPMEVENT18", 45 },
  401|     59|    { "MHPMEVENT19", 46 },
  402|     59|    { "MHPMEVENT20", 47 },
  403|     59|    { "MHPMEVENT21", 48 },
  404|     59|    { "MHPMEVENT22", 49 },
  405|     59|    { "MHPMEVENT23", 50 },
  406|     59|    { "MHPMEVENT24", 51 },
  407|     59|    { "MHPMEVENT25", 52 },
  408|     59|    { "MHPMEVENT26", 53 },
  409|     59|    { "MHPMEVENT27", 54 },
  410|     59|    { "MHPMEVENT28", 55 },
  411|     59|    { "MHPMEVENT29", 56 },
  412|     59|    { "MHPMEVENT3", 30 },
  413|     59|    { "MHPMEVENT30", 57 },
  414|     59|    { "MHPMEVENT31", 58 },
  415|     59|    { "MHPMEVENT4", 31 },
  416|     59|    { "MHPMEVENT5", 32 },
  417|     59|    { "MHPMEVENT6", 33 },
  418|     59|    { "MHPMEVENT7", 34 },
  419|     59|    { "MHPMEVENT8", 35 },
  420|     59|    { "MHPMEVENT9", 36 },
  421|     59|    { "MIDELEG", 26 },
  422|     59|    { "MIE", 27 },
  423|     59|    { "MIMPID", 219 },
  424|     59|    { "MINSTRET", 92 },
  425|     59|    { "MINSTRETH", 123 },
  426|     59|    { "MIP", 63 },
  427|     59|    { "MISA", 24 },
  428|     59|    { "MSCRATCH", 59 },
  429|     59|    { "MSTATUS", 23 },
  430|     59|    { "MTVAL", 62 },
  431|     59|    { "MTVEC", 28 },
  432|     59|    { "MVENDORID", 217 },
  433|     59|    { "PMPADDR0", 68 },
  434|     59|    { "PMPADDR1", 69 },
  435|     59|    { "PMPADDR10", 78 },
  436|     59|    { "PMPADDR11", 79 },
  437|     59|    { "PMPADDR12", 80 },
  438|     59|    { "PMPADDR13", 81 },
  439|     59|    { "PMPADDR14", 82 },
  440|     59|    { "PMPADDR15", 83 },
  441|     59|    { "PMPADDR2", 70 },
  442|     59|    { "PMPADDR3", 71 },
  443|     59|    { "PMPADDR4", 72 },
  444|     59|    { "PMPADDR5", 73 },
  445|     59|    { "PMPADDR6", 74 },
  446|     59|    { "PMPADDR7", 75 },
  447|     59|    { "PMPADDR8", 76 },
  448|     59|    { "PMPADDR9", 77 },
  449|     59|    { "PMPCFG0", 64 },
  450|     59|    { "PMPCFG1", 65 },
  451|     59|    { "PMPCFG2", 66 },
  452|     59|    { "PMPCFG3", 67 },
  453|     59|    { "SATP", 22 },
  454|     59|    { "SCAUSE", 19 },
  455|     59|    { "SCOUNTEREN", 16 },
  456|     59|    { "SEDELEG", 12 },
  457|     59|    { "SEPC", 18 },
  458|     59|    { "SIDELEG", 13 },
  459|     59|    { "SIE", 14 },
  460|     59|    { "SIP", 21 },
  461|     59|    { "SSCRATCH", 17 },
  462|     59|    { "SSTATUS", 11 },
  463|     59|    { "STVAL", 20 },
  464|     59|    { "STVEC", 15 },
  465|     59|    { "TDATA1", 85 },
  466|     59|    { "TDATA2", 86 },
  467|     59|    { "TDATA3", 87 },
  468|     59|    { "TIME", 154 },
  469|     59|    { "TIMEH", 186 },
  470|     59|    { "TSELECT", 84 },
  471|     59|    { "UCAUSE", 8 },
  472|     59|    { "UEPC", 7 },
  473|     59|    { "UIE", 4 },
  474|     59|    { "UIP", 10 },
  475|     59|    { "USCRATCH", 6 },
  476|     59|    { "USTATUS", 0 },
  477|     59|    { "UTVAL", 9 },
  478|     59|    { "UTVEC", 5 },
  479|     59|  };
  480|       |
  481|     59|  struct KeyType {
  482|     59|    std::string Name;
  483|     59|  };
  484|     59|  KeyType Key = { Name.upper() };
  485|     59|  auto Table = makeArrayRef(Index);
  486|     59|  auto Idx = std::lower_bound(Table.begin(), Table.end(), Key,
  487|     59|    [](const IndexType &LHS, const KeyType &RHS) {
  488|     59|      int CmpName = StringRef(LHS.Name).compare(RHS.Name);
  489|     59|      if (CmpName < 0) return true;
  490|     59|      if (CmpName > 0) return false;
  491|     59|      return false;
  492|     59|    });
  493|       |
  494|     59|  if (Idx == Table.end() ||
  ------------------
  |  Branch (494:7): [True: 4, False: 55]
  ------------------
  495|     55|      Key.Name != Idx->Name)
  ------------------
  |  Branch (495:7): [True: 54, False: 1]
  ------------------
  496|     58|    return nullptr;
  497|      1|  return &SysRegsList[Idx->_index];
  498|     59|}
RISCVBaseInfo.cpp:_ZZN7llvm_ks11RISCVSysReg22lookupSysRegByEncodingEtENK3$_0clERKNS0_6SysRegERKZNS0_22lookupSysRegByEncodingEtE7KeyType:
  238|     94|    [](const SysReg &LHS, const KeyType &RHS) {
  239|     94|      if (LHS.Encoding < RHS.Encoding)
  ------------------
  |  Branch (239:11): [True: 30, False: 64]
  ------------------
  240|     30|        return true;
  241|     64|      if (LHS.Encoding > RHS.Encoding)
  ------------------
  |  Branch (241:11): [True: 57, False: 7]
  ------------------
  242|     57|        return false;
  243|      7|      return false;
  244|     64|    });
RISCVBaseInfo.cpp:_ZZN7llvm_ks11RISCVSysReg18lookupSysRegByNameENS_9StringRefEENK3$_0clERKZNS0_18lookupSysRegByNameES1_E9IndexTypeRKZNS0_18lookupSysRegByNameES1_E7KeyType:
  487|    466|    [](const IndexType &LHS, const KeyType &RHS) {
  488|    466|      int CmpName = StringRef(LHS.Name).compare(RHS.Name);
  489|    466|      if (CmpName < 0) return true;
  ------------------
  |  Branch (489:11): [True: 214, False: 252]
  ------------------
  490|    252|      if (CmpName > 0) return false;
  ------------------
  |  Branch (490:11): [True: 251, False: 1]
  ------------------
  491|      1|      return false;
  492|    252|    });

LLVMInitializeRISCVTargetInfo:
   26|      1|extern "C" void LLVMInitializeRISCVTargetInfo() {
   27|       |
   28|       |
   29|      1|  RegisterTarget<Triple::riscv32> X(TheRISCV32Target, "riscv32",
   30|      1|                                    "32-bit RISC-V");
   31|      1|  RegisterTarget<Triple::riscv64> Y(TheRISCV64Target, "riscv64",
   32|      1|                                    "64-bit RISC-V");
   33|      1|}

_ZN7llvm_ks8RISCVABI16computeTargetABIERKNS_6TripleENS_13FeatureBitsetENS_9StringRefE:
   14|  13.6k|                     StringRef ABIName) {
   15|  13.6k|  auto TargetABI = StringSwitch<ABI>(ABIName)
   16|  13.6k|                       .Case("ilp32", ABI_ILP32)
   17|  13.6k|                       .Case("ilp32f", ABI_ILP32F)
   18|  13.6k|                       .Case("ilp32d", ABI_ILP32D)
   19|  13.6k|                       .Case("ilp32e", ABI_ILP32E)
   20|  13.6k|                       .Case("lp64", ABI_LP64)
   21|  13.6k|                       .Case("lp64f", ABI_LP64F)
   22|  13.6k|                       .Case("lp64d", ABI_LP64D)
   23|  13.6k|                       .Default(ABI_Unknown);
   24|       |
   25|  13.6k|  bool IsRV64 = TT.isArch64Bit();
   26|  13.6k|  bool IsRV32E = FeatureBits[RISCV::FeatureRV32E];
   27|       |
   28|  13.6k|  if (!ABIName.empty() && TargetABI == ABI_Unknown) {
  ------------------
  |  Branch (28:7): [True: 0, False: 13.6k]
  |  Branch (28:27): [True: 0, False: 0]
  ------------------
   29|      0|    errs()
   30|      0|        << "'" << ABIName
   31|      0|        << "' is not a recognized ABI for this target (ignoring target-abi)\n";
   32|  13.6k|  } else if (ABIName.startswith("ilp32") && IsRV64) {
  ------------------
  |  Branch (32:14): [True: 0, False: 13.6k]
  |  Branch (32:14): [True: 0, False: 13.6k]
  |  Branch (32:45): [True: 0, False: 0]
  ------------------
   33|      0|    errs() << "32-bit ABIs are not supported for 64-bit targets (ignoring "
   34|      0|              "target-abi)\n";
   35|      0|    TargetABI = ABI_Unknown;
   36|  13.6k|  } else if (ABIName.startswith("lp64") && !IsRV64) {
  ------------------
  |  Branch (36:14): [True: 0, False: 13.6k]
  |  Branch (36:14): [True: 0, False: 13.6k]
  |  Branch (36:44): [True: 0, False: 0]
  ------------------
   37|      0|    errs() << "64-bit ABIs are not supported for 32-bit targets (ignoring "
   38|      0|              "target-abi)\n";
   39|      0|    TargetABI = ABI_Unknown;
   40|  13.6k|  } else if (ABIName.endswith("f") && !FeatureBits[RISCV::FeatureStdExtF]) {
  ------------------
  |  Branch (40:14): [True: 0, False: 13.6k]
  |  Branch (40:14): [True: 0, False: 13.6k]
  |  Branch (40:39): [True: 0, False: 0]
  ------------------
   41|      0|    errs() << "Hard-float 'f' ABI can't be used for a target that "
   42|      0|              "doesn't support the F instruction set extension (ignoring "
   43|      0|              "target-abi)\n";
   44|      0|    TargetABI = ABI_Unknown;
   45|  13.6k|  } else if (ABIName.endswith("d") && !FeatureBits[RISCV::FeatureStdExtD]) {
  ------------------
  |  Branch (45:14): [True: 0, False: 13.6k]
  |  Branch (45:14): [True: 0, False: 13.6k]
  |  Branch (45:39): [True: 0, False: 0]
  ------------------
   46|      0|    errs() << "Hard-float 'd' ABI can't be used for a target that "
   47|      0|              "doesn't support the D instruction set extension (ignoring "
   48|      0|              "target-abi)\n";
   49|      0|    TargetABI = ABI_Unknown;
   50|  13.6k|  } else if (IsRV32E && TargetABI != ABI_ILP32E && TargetABI != ABI_Unknown) {
  ------------------
  |  Branch (50:14): [True: 0, False: 13.6k]
  |  Branch (50:25): [True: 0, False: 0]
  |  Branch (50:52): [True: 0, False: 0]
  ------------------
   51|      0|    errs()
   52|      0|        << "Only the ilp32e ABI is supported for RV32E (ignoring target-abi)\n";
   53|      0|    TargetABI = ABI_Unknown;
   54|      0|  }
   55|       |
   56|  13.6k|  if (TargetABI != ABI_Unknown)
  ------------------
  |  Branch (56:7): [True: 0, False: 13.6k]
  ------------------
   57|      0|    return TargetABI;
   58|       |
   59|       |  // For now, default to the ilp32/ilp32e/lp64 ABI if no explicit ABI is given
   60|       |  // or an invalid/unrecognised string is given. In the future, it might be
   61|       |  // worth changing this to default to ilp32f/lp64f and ilp32d/lp64d when
   62|       |  // hardware support for floating point is present.
   63|  13.6k|  if (IsRV32E)
  ------------------
  |  Branch (63:7): [True: 0, False: 13.6k]
  ------------------
   64|      0|    return ABI_ILP32E;
   65|  13.6k|  if (IsRV64)
  ------------------
  |  Branch (65:7): [True: 0, False: 13.6k]
  ------------------
   66|      0|    return ABI_LP64;
   67|  13.6k|  return ABI_ILP32;
   68|  13.6k|}
_ZN7llvm_ks13RISCVFeatures8validateERKNS_6TripleERKNS_13FeatureBitsetE:
   73|  27.2k|void validate(const Triple &TT, const FeatureBitset &FeatureBits) {
   74|  27.2k|  if (TT.isArch64Bit() && FeatureBits[RISCV::FeatureRV32E])
  ------------------
  |  Branch (74:7): [True: 0, False: 27.2k]
  |  Branch (74:7): [True: 0, False: 27.2k]
  |  Branch (74:27): [True: 0, False: 0]
  ------------------
   75|      0|    report_fatal_error("RV32E can't be enabled for an RV64 target");
   76|  27.2k|}

_ZNK7llvm_ks11RISCVSysReg6SysReg20haveRequiredFeaturesENS_13FeatureBitsetE:
  149|      1|  bool haveRequiredFeatures(FeatureBitset ActiveFeatures) const {
  150|       |    // Not in 32-bit mode.
  151|      1|    if (isRV32Only && ActiveFeatures[RISCV::Feature64Bit])
  ------------------
  |  Branch (151:9): [True: 0, False: 1]
  |  Branch (151:9): [True: 0, False: 1]
  |  Branch (151:23): [True: 0, False: 0]
  ------------------
  152|      0|      return false;
  153|       |    // No required feature associated with the system register.
  154|      1|    if (FeaturesRequired.none())
  ------------------
  |  Branch (154:9): [True: 1, False: 0]
  ------------------
  155|      1|      return true;
  156|      0|    return (FeaturesRequired & ActiveFeatures) == FeaturesRequired;
  157|      1|  }

LLVMInitializeSparcAsmParser:
 1188|      1|extern "C" void LLVMInitializeSparcAsmParser() {
 1189|      1|  RegisterMCAsmParser<SparcAsmParser> A(TheSparcTarget);
 1190|      1|  RegisterMCAsmParser<SparcAsmParser> B(TheSparcV9Target);
 1191|      1|  RegisterMCAsmParser<SparcAsmParser> C(TheSparcelTarget);
 1192|      1|}

LLVMInitializeSparcTargetMC:
   83|      1|extern "C" void LLVMInitializeSparcTargetMC() {
   84|       |  // Register the MC asm info.
   85|      1|  RegisterMCAsmInfoFn X(TheSparcTarget, createSparcMCAsmInfo);
   86|      1|  RegisterMCAsmInfoFn Y(TheSparcV9Target, createSparcV9MCAsmInfo);
   87|      1|  RegisterMCAsmInfoFn Z(TheSparcelTarget, createSparcMCAsmInfo);
   88|       |
   89|      3|  for (Target *T : {&TheSparcTarget, &TheSparcV9Target, &TheSparcelTarget}) {
  ------------------
  |  Branch (89:18): [True: 3, False: 1]
  ------------------
   90|       |    // Register the MC instruction info.
   91|      3|    TargetRegistry::RegisterMCInstrInfo(*T, createSparcMCInstrInfo);
   92|       |
   93|       |    // Register the MC register info.
   94|      3|    TargetRegistry::RegisterMCRegInfo(*T, createSparcMCRegisterInfo);
   95|       |
   96|       |    // Register the MC subtarget info.
   97|      3|    TargetRegistry::RegisterMCSubtargetInfo(*T, createSparcMCSubtargetInfo);
   98|       |
   99|       |    // Register the MC Code Emitter.
  100|      3|    TargetRegistry::RegisterMCCodeEmitter(*T, createSparcMCCodeEmitter);
  101|       |
  102|       |    // Register the asm backend.
  103|      3|    TargetRegistry::RegisterMCAsmBackend(*T, createSparcAsmBackend);
  104|      3|  }
  105|      1|}

LLVMInitializeSparcTargetInfo:
   18|      1|extern "C" void LLVMInitializeSparcTargetInfo() {
   19|      1|  RegisterTarget<Triple::sparc> X(TheSparcTarget, "sparc",
   20|      1|                                                   "Sparc");
   21|      1|  RegisterTarget<Triple::sparcv9> Y(TheSparcV9Target,
   22|      1|                                                     "sparcv9", "Sparc V9");
   23|      1|  RegisterTarget<Triple::sparcel> Z(TheSparcelTarget,
   24|      1|                                                     "sparcel", "Sparc LE");
   25|      1|}

LLVMInitializeSystemZAsmParser:
  972|      1|extern "C" void LLVMInitializeSystemZAsmParser() {
  973|      1|  RegisterMCAsmParser<SystemZAsmParser> X(TheSystemZTarget);
  974|      1|}

LLVMInitializeSystemZTargetMC:
  161|      1|extern "C" void LLVMInitializeSystemZTargetMC() {
  162|       |  // Register the MCAsmInfo.
  163|      1|  TargetRegistry::RegisterMCAsmInfo(TheSystemZTarget,
  164|      1|                                    createSystemZMCAsmInfo);
  165|       |
  166|       |  // Register the MCCodeEmitter.
  167|      1|  TargetRegistry::RegisterMCCodeEmitter(TheSystemZTarget,
  168|      1|                                        createSystemZMCCodeEmitter);
  169|       |
  170|       |  // Register the MCInstrInfo.
  171|      1|  TargetRegistry::RegisterMCInstrInfo(TheSystemZTarget,
  172|      1|                                      createSystemZMCInstrInfo);
  173|       |
  174|       |  // Register the MCRegisterInfo.
  175|      1|  TargetRegistry::RegisterMCRegInfo(TheSystemZTarget,
  176|      1|                                    createSystemZMCRegisterInfo);
  177|       |
  178|       |  // Register the MCSubtargetInfo.
  179|      1|  TargetRegistry::RegisterMCSubtargetInfo(TheSystemZTarget,
  180|      1|                                          createSystemZMCSubtargetInfo);
  181|       |
  182|       |  // Register the MCAsmBackend.
  183|      1|  TargetRegistry::RegisterMCAsmBackend(TheSystemZTarget,
  184|      1|                                       createSystemZMCAsmBackend);
  185|      1|}

LLVMInitializeSystemZTargetInfo:
   17|      1|extern "C" void LLVMInitializeSystemZTargetInfo() {
   18|      1|  RegisterTarget<Triple::systemz>
   19|      1|    X(TheSystemZTarget, "systemz", "SystemZ");
   20|      1|}

LLVMInitializeX86AsmParser:
 3433|      1|extern "C" void LLVMInitializeX86AsmParser() {
 3434|      1|  RegisterMCAsmParser<X86AsmParser> X(TheX86_32Target);
 3435|      1|  RegisterMCAsmParser<X86AsmParser> Y(TheX86_64Target);
 3436|      1|}

LLVMInitializeX86TargetMC:
  158|      1|extern "C" void LLVMInitializeX86TargetMC() {
  159|      2|  for (Target *T : {&TheX86_32Target, &TheX86_64Target}) {
  ------------------
  |  Branch (159:18): [True: 2, False: 1]
  ------------------
  160|       |    // Register the MC asm info.
  161|      2|    RegisterMCAsmInfoFn X(*T, createX86MCAsmInfo);
  162|       |
  163|       |    // Register the MC instruction info.
  164|      2|    TargetRegistry::RegisterMCInstrInfo(*T, createX86MCInstrInfo);
  165|       |
  166|       |    // Register the MC register info.
  167|      2|    TargetRegistry::RegisterMCRegInfo(*T, createX86MCRegisterInfo);
  168|       |
  169|       |    // Register the MC subtarget info.
  170|      2|    TargetRegistry::RegisterMCSubtargetInfo(*T,
  171|      2|                                            X86_MC::createX86MCSubtargetInfo);
  172|       |
  173|       |    // Register the code emitter.
  174|      2|    TargetRegistry::RegisterMCCodeEmitter(*T, createX86MCCodeEmitter);
  175|       |
  176|       |    // Register the MC relocation info.
  177|      2|    TargetRegistry::RegisterMCRelocationInfo(*T, createX86MCRelocationInfo);
  178|      2|  }
  179|       |
  180|       |  // Register the asm backend.
  181|      1|  TargetRegistry::RegisterMCAsmBackend(TheX86_32Target,
  182|      1|                                       createX86_32AsmBackend);
  183|      1|  TargetRegistry::RegisterMCAsmBackend(TheX86_64Target,
  184|      1|                                       createX86_64AsmBackend);
  185|      1|}

LLVMInitializeX86TargetInfo:
   16|      1|extern "C" void LLVMInitializeX86TargetInfo() {
   17|      1|  RegisterTarget<Triple::x86>
   18|      1|    X(TheX86_32Target, "x86", "32-bit X86: Pentium-Pro and above");
   19|       |
   20|      1|  RegisterTarget<Triple::x86_64>
   21|      1|    Y(TheX86_64Target, "x86-64", "64-bit X86: EM64T and AMD64");
   22|      1|}

LLVMFuzzerTestOneInput:
    8|  13.6k|int LLVMFuzzerTestOneInput(const uint8_t *Data, size_t Size) {
    9|  13.6k|    ks_engine *ks;
   10|  13.6k|    ks_err err;
   11|  13.6k|    size_t count;
   12|  13.6k|    unsigned char *encode = NULL;
   13|  13.6k|    size_t size;
   14|  13.6k|    char * assembler;
   15|       |
   16|  13.6k|    if (outfile == NULL) {
  ------------------
  |  Branch (16:9): [True: 1, False: 13.6k]
  ------------------
   17|       |        // we compute the output
   18|      1|        outfile = fopen("/dev/null", "w");
   19|      1|        if (outfile == NULL) {
  ------------------
  |  Branch (19:13): [True: 0, False: 1]
  ------------------
   20|      0|            printf("failed opening /dev/null\n");
   21|      0|            abort();
   22|      0|        }
   23|      1|    }
   24|       |
   25|  13.6k|    if (Size < 1) {
  ------------------
  |  Branch (25:9): [True: 0, False: 13.6k]
  ------------------
   26|      0|        return 0;
   27|      0|    }
   28|       |
   29|  13.6k|    err = ks_open(KS_ARCH_RISCV, KS_MODE_RISCV32 + KS_MODE_LITTLE_ENDIAN, &ks);
   30|  13.6k|    if (err != KS_ERR_OK) {
  ------------------
  |  Branch (30:9): [True: 0, False: 13.6k]
  ------------------
   31|      0|        printf("ERROR: failed on ks_open(), quit error = %u\n", err);
   32|      0|        abort();
   33|      0|    }
   34|       |
   35|  13.6k|    ks_option(ks, KS_OPT_SYNTAX, Data[Size-1]);
   36|       |
   37|  13.6k|    assembler = malloc(Size);
   38|  13.6k|    memcpy(assembler, Data, Size-1);
   39|       |    //null terminate string
   40|  13.6k|    assembler[Size-1] = 0;
   41|       |
   42|  13.6k|    if (ks_asm(ks, assembler, 0, &encode, &size, &count) != KS_ERR_OK) {
  ------------------
  |  Branch (42:9): [True: 5.64k, False: 7.99k]
  ------------------
   43|  5.64k|        fprintf(outfile, "ERROR: ks_asm() failed & count = %lu, error = %u\n",
   44|  5.64k|                count, ks_errno(ks));
   45|  7.99k|    } else {
   46|  7.99k|        size_t i;
   47|       |
   48|  7.99k|        fprintf(outfile, "%s = ", assembler);
   49|   122M|        for (i = 0; i < size; i++) {
  ------------------
  |  Branch (49:21): [True: 122M, False: 7.99k]
  ------------------
   50|   122M|            fprintf(outfile, "%02x ", encode[i]);
   51|   122M|        }
   52|  7.99k|        fprintf(outfile, "\n");
   53|  7.99k|        fprintf(outfile, "Compiled: %lu bytes, statements: %lu\n", size, count);
   54|  7.99k|    }
   55|       |
   56|  13.6k|    free(assembler);
   57|       |    // NOTE: free encode after usage to avoid leaking memory
   58|  13.6k|    if (encode != NULL) {
  ------------------
  |  Branch (58:9): [True: 7.99k, False: 5.64k]
  ------------------
   59|  7.99k|        ks_free(encode);
   60|  7.99k|    }
   61|       |
   62|       |    // close Keystone instance when done
   63|  13.6k|    ks_close(ks);
   64|       |
   65|  13.6k|    return 0;
   66|  13.6k|}

