2017-02-11 00:27:28 +00:00
|
|
|
//===- MCInstrAnalysis.cpp - InstrDesc target hooks -----------------------===//
|
2011-08-08 18:56:44 +00:00
|
|
|
//
|
2019-01-19 08:50:56 +00:00
|
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
2011-08-08 18:56:44 +00:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCInstrAnalysis.h"
|
2019-11-13 16:36:21 -08:00
|
|
|
|
2018-06-20 10:08:11 +00:00
|
|
|
#include "llvm/ADT/APInt.h"
|
2017-02-11 00:27:28 +00:00
|
|
|
#include <cstdint>
|
|
|
|
|
2022-02-08 15:32:21 +01:00
|
|
|
namespace llvm {
|
|
|
|
class MCSubtargetInfo;
|
|
|
|
}
|
|
|
|
|
2011-08-08 18:56:44 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2018-06-20 10:08:11 +00:00
|
|
|
bool MCInstrAnalysis::clearsSuperRegisters(const MCRegisterInfo &MRI,
|
|
|
|
const MCInst &Inst,
|
|
|
|
APInt &Writes) const {
|
|
|
|
Writes.clearAllBits();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2020-04-29 23:17:14 -07:00
|
|
|
bool MCInstrAnalysis::evaluateBranch(const MCInst & /*Inst*/, uint64_t /*Addr*/,
|
|
|
|
uint64_t /*Size*/,
|
|
|
|
uint64_t & /*Target*/) const {
|
|
|
|
return false;
|
2011-08-08 18:56:44 +00:00
|
|
|
}
|
2019-07-25 06:57:09 +00:00
|
|
|
|
2021-08-05 13:56:14 +07:00
|
|
|
Optional<uint64_t> MCInstrAnalysis::evaluateMemoryOperandAddress(
|
|
|
|
const MCInst &Inst, const MCSubtargetInfo *STI, uint64_t Addr,
|
|
|
|
uint64_t Size) const {
|
2019-07-25 06:57:09 +00:00
|
|
|
return None;
|
|
|
|
}
|
2021-11-02 10:49:08 -07:00
|
|
|
|
|
|
|
Optional<uint64_t>
|
|
|
|
MCInstrAnalysis::getMemoryOperandRelocationOffset(const MCInst &Inst,
|
|
|
|
uint64_t Size) const {
|
|
|
|
return None;
|
2021-12-12 11:04:44 -08:00
|
|
|
}
|