Path: blob/main/contrib/llvm-project/llvm/lib/Target/ARM/ARMInstrInfo.h
35267 views
//===-- ARMInstrInfo.h - ARM Instruction Information ------------*- C++ -*-===//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//===----------------------------------------------------------------------===//7//8// This file contains the ARM implementation of the TargetInstrInfo class.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_ARM_ARMINSTRINFO_H13#define LLVM_LIB_TARGET_ARM_ARMINSTRINFO_H1415#include "ARMBaseInstrInfo.h"16#include "ARMRegisterInfo.h"1718namespace llvm {19class ARMSubtarget;2021class ARMInstrInfo : public ARMBaseInstrInfo {22ARMRegisterInfo RI;23public:24explicit ARMInstrInfo(const ARMSubtarget &STI);2526/// Return the noop instruction to use for a noop.27MCInst getNop() const override;2829// Return the non-pre/post incrementing version of 'Opc'. Return 030// if there is not such an opcode.31unsigned getUnindexedOpcode(unsigned Opc) const override;3233/// getRegisterInfo - TargetInstrInfo is a superset of MRegister info. As34/// such, whenever a client has an instance of instruction info, it should35/// always be able to get register info as well (through this method).36///37const ARMRegisterInfo &getRegisterInfo() const override { return RI; }3839private:40void expandLoadStackGuard(MachineBasicBlock::iterator MI) const override;41};4243}4445#endif464748