2017-02-11 08:27:28 +08:00
|
|
|
//===- MCInstrAnalysis.cpp - InstrDesc target hooks -----------------------===//
|
2011-08-09 02:56:44 +08:00
|
|
|
//
|
2019-01-19 16:50:56 +08: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-09 02:56:44 +08:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "llvm/MC/MCInstrAnalysis.h"
|
2019-11-14 08:36:21 +08:00
|
|
|
|
2018-06-20 18:08:11 +08:00
|
|
|
#include "llvm/ADT/APInt.h"
|
2017-06-06 19:49:48 +08:00
|
|
|
#include "llvm/MC/MCInst.h"
|
2017-02-11 08:27:28 +08:00
|
|
|
#include "llvm/MC/MCInstrDesc.h"
|
|
|
|
#include "llvm/MC/MCInstrInfo.h"
|
|
|
|
#include <cstdint>
|
|
|
|
|
2011-08-09 02:56:44 +08:00
|
|
|
using namespace llvm;
|
|
|
|
|
2018-06-20 18:08:11 +08:00
|
|
|
bool MCInstrAnalysis::clearsSuperRegisters(const MCRegisterInfo &MRI,
|
|
|
|
const MCInst &Inst,
|
|
|
|
APInt &Writes) const {
|
|
|
|
Writes.clearAllBits();
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2020-04-30 14:17:14 +08:00
|
|
|
bool MCInstrAnalysis::evaluateBranch(const MCInst & /*Inst*/, uint64_t /*Addr*/,
|
|
|
|
uint64_t /*Size*/,
|
|
|
|
uint64_t & /*Target*/) const {
|
|
|
|
return false;
|
2011-08-09 02:56:44 +08:00
|
|
|
}
|
2019-07-25 14:57:09 +08:00
|
|
|
|
|
|
|
Optional<uint64_t>
|
|
|
|
MCInstrAnalysis::evaluateMemoryOperandAddress(const MCInst &Inst, uint64_t Addr,
|
|
|
|
uint64_t Size) const {
|
|
|
|
return None;
|
|
|
|
}
|