1 //===- MCInstrAnalysis.cpp - InstrDesc target hooks -----------------------===//
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
9 #include "llvm/MC/MCInstrAnalysis.h"
11 #include "llvm/ADT/APInt.h"
15 class MCSubtargetInfo
;
20 bool MCInstrAnalysis::clearsSuperRegisters(const MCRegisterInfo
&MRI
,
22 APInt
&Writes
) const {
23 Writes
.clearAllBits();
27 bool MCInstrAnalysis::evaluateBranch(const MCInst
& /*Inst*/, uint64_t /*Addr*/,
29 uint64_t & /*Target*/) const {
33 std::optional
<uint64_t> MCInstrAnalysis::evaluateMemoryOperandAddress(
34 const MCInst
&Inst
, const MCSubtargetInfo
*STI
, uint64_t Addr
,
35 uint64_t Size
) const {
39 std::optional
<uint64_t>
40 MCInstrAnalysis::getMemoryOperandRelocationOffset(const MCInst
&Inst
,
41 uint64_t Size
) const {