Path: blob/main/contrib/llvm-project/llvm/lib/MC/MCInstrAnalysis.cpp
35233 views
//===- MCInstrAnalysis.cpp - InstrDesc target hooks -----------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "llvm/MC/MCInstrAnalysis.h"910#include "llvm/ADT/APInt.h"11#include <cstdint>1213namespace llvm {14class MCSubtargetInfo;15}1617using namespace llvm;1819bool MCInstrAnalysis::clearsSuperRegisters(const MCRegisterInfo &MRI,20const MCInst &Inst,21APInt &Writes) const {22Writes.clearAllBits();23return false;24}2526bool MCInstrAnalysis::evaluateBranch(const MCInst & /*Inst*/, uint64_t /*Addr*/,27uint64_t /*Size*/,28uint64_t & /*Target*/) const {29return false;30}3132std::optional<uint64_t> MCInstrAnalysis::evaluateMemoryOperandAddress(33const MCInst &Inst, const MCSubtargetInfo *STI, uint64_t Addr,34uint64_t Size) const {35return std::nullopt;36}3738std::optional<uint64_t>39MCInstrAnalysis::getMemoryOperandRelocationOffset(const MCInst &Inst,40uint64_t Size) const {41return std::nullopt;42}434445