10b57cec5SDimitry Andric //===- MCInstrAnalysis.cpp - InstrDesc target hooks -----------------------===//
20b57cec5SDimitry Andric //
30b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric //
70b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric 
90b57cec5SDimitry Andric #include "llvm/MC/MCInstrAnalysis.h"
100b57cec5SDimitry Andric 
110b57cec5SDimitry Andric #include "llvm/ADT/APInt.h"
120b57cec5SDimitry Andric #include <cstdint>
130b57cec5SDimitry Andric 
1481ad6265SDimitry Andric namespace llvm {
1581ad6265SDimitry Andric class MCSubtargetInfo;
1681ad6265SDimitry Andric }
1781ad6265SDimitry Andric 
180b57cec5SDimitry Andric using namespace llvm;
190b57cec5SDimitry Andric 
clearsSuperRegisters(const MCRegisterInfo & MRI,const MCInst & Inst,APInt & Writes) const200b57cec5SDimitry Andric bool MCInstrAnalysis::clearsSuperRegisters(const MCRegisterInfo &MRI,
210b57cec5SDimitry Andric                                            const MCInst &Inst,
220b57cec5SDimitry Andric                                            APInt &Writes) const {
230b57cec5SDimitry Andric   Writes.clearAllBits();
240b57cec5SDimitry Andric   return false;
250b57cec5SDimitry Andric }
260b57cec5SDimitry Andric 
evaluateBranch(const MCInst &,uint64_t,uint64_t,uint64_t &) const275ffd83dbSDimitry Andric bool MCInstrAnalysis::evaluateBranch(const MCInst & /*Inst*/, uint64_t /*Addr*/,
285ffd83dbSDimitry Andric                                      uint64_t /*Size*/,
295ffd83dbSDimitry Andric                                      uint64_t & /*Target*/) const {
300b57cec5SDimitry Andric   return false;
310b57cec5SDimitry Andric }
328bcb0991SDimitry Andric 
evaluateMemoryOperandAddress(const MCInst & Inst,const MCSubtargetInfo * STI,uint64_t Addr,uint64_t Size) const33bdd1243dSDimitry Andric std::optional<uint64_t> MCInstrAnalysis::evaluateMemoryOperandAddress(
34349cc55cSDimitry Andric     const MCInst &Inst, const MCSubtargetInfo *STI, uint64_t Addr,
35349cc55cSDimitry Andric     uint64_t Size) const {
36bdd1243dSDimitry Andric   return std::nullopt;
37349cc55cSDimitry Andric }
38349cc55cSDimitry Andric 
39bdd1243dSDimitry Andric std::optional<uint64_t>
getMemoryOperandRelocationOffset(const MCInst & Inst,uint64_t Size) const40349cc55cSDimitry Andric MCInstrAnalysis::getMemoryOperandRelocationOffset(const MCInst &Inst,
418bcb0991SDimitry Andric                                                   uint64_t Size) const {
42bdd1243dSDimitry Andric   return std::nullopt;
438bcb0991SDimitry Andric }
44