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