Path: blob/main/contrib/llvm-project/llvm/lib/Target/Xtensa/XtensaUtils.h
35271 views
//===--- XtensaUtils.h ---- Xtensa Utility Functions ------------*- 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 miscellaneous utility functions.9//10//===----------------------------------------------------------------------===//1112#ifndef LLVM_LIB_TARGET_XTENSA_XTENSAUTILS_H13#define LLVM_LIB_TARGET_XTENSA_XTENSAUTILS_H1415#include "XtensaInstrInfo.h"16#include "llvm/CodeGen/MachineInstr.h"1718namespace llvm {19// Check address offset for load/store instructions.20// The offset should be multiple of scale.21bool isValidAddrOffset(int Scale, int64_t OffsetVal);2223// Check address offset for load/store instructions.24bool isValidAddrOffset(MachineInstr &MI, int64_t Offset);25} // namespace llvm26#endif // LLVM_LIB_TARGET_XTENSA_XTENSAUTILS_H272829