//===- AMDGPUGlobalISelUtils.cpp ---------------------------------*- C++ -*-==// // // 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 // //===----------------------------------------------------------------------===// #include "AMDGPUGlobalISelUtils.h" #include "GCNSubtarget.h" #include "llvm/CodeGen/GlobalISel/GISelKnownBits.h" #include "llvm/CodeGen/GlobalISel/MIPatternMatch.h" #include "llvm/CodeGenTypes/LowLevelType.h" #include "llvm/IR/Constants.h" usingnamespacellvm; usingnamespaceMIPatternMatch; std::pair<Register, unsigned> AMDGPU::getBaseWithConstantOffset(MachineRegisterInfo &MRI, Register Reg, GISelKnownBits *KnownBits, bool CheckNUW) { … }