[all-commits] [llvm/llvm-project] 52eb2f: [MC] Move MCInstrAnalysis::evaluateBranch to X86MC...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Apr 29 23:25:09 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 52eb2f65a7d28bb225ca8a0bc8c4090d324e22d9
      https://github.com/llvm/llvm-project/commit/52eb2f65a7d28bb225ca8a0bc8c4090d324e22d9
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-29 (Wed, 29 Apr 2020)

  Changed paths:
    M llvm/lib/MC/MCInstrAnalysis.cpp
    M llvm/lib/Target/X86/MCTargetDesc/X86MCTargetDesc.cpp

  Log Message:
  -----------
  [MC] Move MCInstrAnalysis::evaluateBranch to X86MCInstrAnalysis::evaluateBranch

The generic implementation is actually specific to x86. It assumes the
offset is relative to the end of the instruction and the immediate is
not scaled (which is false on most RISC).




More information about the All-commits mailing list