Path: blob/main/contrib/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUGlobalISelUtils.h
35269 views
//===- AMDGPUGlobalISelUtils -------------------------------------*- 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//===----------------------------------------------------------------------===//78#ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUGLOBALISELUTILS_H9#define LLVM_LIB_TARGET_AMDGPU_AMDGPUGLOBALISELUTILS_H1011#include "llvm/CodeGen/Register.h"12#include <utility>1314namespace llvm {1516class MachineRegisterInfo;17class GCNSubtarget;18class GISelKnownBits;19class LLT;2021namespace AMDGPU {2223/// Returns base register and constant offset.24std::pair<Register, unsigned>25getBaseWithConstantOffset(MachineRegisterInfo &MRI, Register Reg,26GISelKnownBits *KnownBits = nullptr,27bool CheckNUW = false);28}29}3031#endif323334